Skip to content

Commit

Permalink
Merge pull request #160 from ZhouBox/v2.7
Browse files Browse the repository at this point in the history
[v2.7]focas:update focas2 lib and check apt-mark exits
  • Loading branch information
fengzeroz authored Jan 11, 2024
2 parents bd71ca0 + bbc3264 commit 34872d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion create_neuron_deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def parse_args():

rules.append(mkdeb.FileMap(package_dir + '/neuron', "/opt/neuron/", "x"))
rules.append(mkdeb.FileMap(
package_dir + "/libfwlib32.so.1", "/opt/neuron/"))
package_dir + "/libfocas32.so.1", "/opt/neuron/"))
rules.append(mkdeb.FileMap(
package_dir + '/libneuron-base.so', "/opt/neuron/"))
rules.append(mkdeb.FileMap(
Expand Down
2 changes: 1 addition & 1 deletion cross-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ cp $neuron_modules_dir/build/plugins/libplugin-gewu2.so \
$neuron_modules_dir/build/plugins/libplugin-focas.so \
$package_dir/plugins/

cp $neuron_modules_dir/build/plugins/focas/libfwlib32.so.1 $package_dir/
cp $neuron_modules_dir/build/plugins/focas/libfocas32.so.1 $package_dir/

cp $neuron_modules_dir/build/plugins/schema/*.json \
$package_dir/plugins/schema/
Expand Down
4 changes: 3 additions & 1 deletion deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ systemctl enable neuron
systemctl start neuron
(
sleep 3
apt-mark hold neuron
if command -v apt-mark >/dev/null 2>&1; then
apt-mark hold neuron
fi
) &

if [ -e "/etc/systemd/system/neuron.ekuiper.service" ]; then
Expand Down
2 changes: 1 addition & 1 deletion deb2rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Requires: perl-interpreter
sed -i '/\%description/i \
%global privlibs libneuron-base\
%global privlibs %{privlibs}|liblicense\
%global privlibs %{privlibs}|libfwlib32\
%global privlibs %{privlibs}|libfocas32\
%global privlibs %{privlibs}|libzlog\
%global __requires_exclude ^(%{privlibs})\\.so\
' $specfile
Expand Down

0 comments on commit 34872d7

Please sign in to comment.