diff --git a/debian/changelog b/debian/changelog index a63bef6..cc444b9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/debian/conffiles b/debian/conffiles deleted file mode 100644 index 9667d53..0000000 --- a/debian/conffiles +++ /dev/null @@ -1 +0,0 @@ -/opt/oarc/bpq/bpq32.cfg diff --git a/debian/install b/debian/install index fb787b0..3367546 100644 --- a/debian/install +++ b/debian/install @@ -1 +1 @@ -debian/templates/bpq32.cfg etc/bpq32.cfg +debian/templates/bpq32.cfg etc/ diff --git a/debian/linbpq.links b/debian/linbpq.links deleted file mode 100644 index 9f1a328..0000000 --- a/debian/linbpq.links +++ /dev/null @@ -1 +0,0 @@ -/opt/oarc/bpq/bpq32.cfg /etc/bpq32.cfg diff --git a/debian/linbpq.service b/debian/linbpq.service index 3b46a5d..598393c 100644 --- a/debian/linbpq.service +++ b/debian/linbpq.service @@ -2,7 +2,7 @@ After=network.target [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 Restart=always User=linbpq diff --git a/debian/patches/makefile b/debian/patches/makefile index 2132816..d2888a9 100644 --- a/debian/patches/makefile +++ b/debian/patches/makefile @@ -8,8 +8,8 @@ +# setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq + +install: -+ install -b -m 755 -D -d debian/usr/sbin -+ install -b -m 755 -s -p linbpq debian/usr/sbin ++ install -b -m 755 -D -d debian/linbpq/usr/sbin ++ install -b -m 755 -s -p linbpq debian/linbpq/usr/sbin -include *.d diff --git a/debian/postinst b/debian/postinst index 4289690..70eac96 100644 --- a/debian/postinst +++ b/debian/postinst @@ -26,7 +26,7 @@ if [ "$1" = configure ]; then # which allows us to install our binaries without the setuid # bit. 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 echo "Setcap failed on /usr/sbin/linbpq, Features may be limited" >&2 fi diff --git a/debian/preinst b/debian/preinst index 8ba52dd..4dae0eb 100644 --- a/debian/preinst +++ b/debian/preinst @@ -8,5 +8,5 @@ node="/opt/oarc/bpq/bpq32.cfg" if [ -L $confile ]; then rm $confile cp $node $confile - rm $node + mv $node $node.bak fi