Tested final release for new layout

This commit is contained in:
Dave Hibberd 2023-12-16 14:33:42 +00:00
parent 7890635e04
commit 1ff37aad01
No known key found for this signature in database
GPG Key ID: 03A1FB7A1904771B
8 changed files with 7 additions and 9 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
linbpq (6.0.24.22-2) UNRELEASED; urgency=medium linbpq (6.0.24.22-2~bpo12+1) bookworm; urgency=medium
* Moved config file home, caused chaos * Moved config file home, caused chaos

1
debian/conffiles vendored
View File

@ -1 +0,0 @@
/opt/oarc/bpq/bpq32.cfg

2
debian/install vendored
View File

@ -1 +1 @@
debian/templates/bpq32.cfg etc/bpq32.cfg debian/templates/bpq32.cfg etc/

1
debian/linbpq.links vendored
View File

@ -1 +0,0 @@
/opt/oarc/bpq/bpq32.cfg /etc/bpq32.cfg

View File

@ -2,7 +2,7 @@
After=network.target After=network.target
[Service] [Service]
ExecStart=/usr/sbin/linbpq -c /etc -d /opt/oarc/linbpq -l /opt/oarc/linbpq/logs ExecStart=/usr/sbin/linbpq -c /etc -d /opt/oarc/bpq -l /opt/oarc/bpq
WorkingDirectory=/opt/oarc/bpq WorkingDirectory=/opt/oarc/bpq
Restart=always Restart=always
User=linbpq User=linbpq

View File

@ -8,8 +8,8 @@
+# setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq +# setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq
+ +
+install: +install:
+ install -b -m 755 -D -d debian/usr/sbin + install -b -m 755 -D -d debian/linbpq/usr/sbin
+ install -b -m 755 -s -p linbpq debian/usr/sbin + install -b -m 755 -s -p linbpq debian/linbpq/usr/sbin
-include *.d -include *.d

2
debian/postinst vendored
View File

@ -26,7 +26,7 @@ if [ "$1" = configure ]; then
# which allows us to install our binaries without the setuid # which allows us to install our binaries without the setuid
# bit. # bit.
if command -v setcap > /dev/null; then if command -v setcap > /dev/null; then
setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" /opt/oarc/bpq/linbpq setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" /usr/sbin/linbpq
else else
echo "Setcap failed on /usr/sbin/linbpq, Features may be limited" >&2 echo "Setcap failed on /usr/sbin/linbpq, Features may be limited" >&2
fi fi

2
debian/preinst vendored
View File

@ -8,5 +8,5 @@ node="/opt/oarc/bpq/bpq32.cfg"
if [ -L $confile ]; then if [ -L $confile ]; then
rm $confile rm $confile
cp $node $confile cp $node $confile
rm $node mv $node $node.bak
fi fi