mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-23 10:11:53 +00:00
329d6e3fbc
Files in a single new distro/ dir allow apkg to build BIRD packages for various distros directly from upstream sources as well as from upstream archives. Please see distro/README.md for more detail as well as apkg docs: https://apkg.rtfd.io I've used these files to build bird-2.0.8 on all currently supported releases of following distros: * Debian * Ubuntu * Fedora * CentOS * openSUSE Please note that latest apkg with accumulated fixes for bird is needed: https://gitlab.nic.cz/packaging/apkg/-/merge_requests/35
27 lines
688 B
Bash
27 lines
688 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if test "$1" = "purge"; then
|
|
|
|
# Check if there is no collision of ownership of /etc/bird/bird.conf
|
|
if ! command -v ucf ucfr >/dev/null || ucfr bird2 /etc/bird/bird.conf 2>/dev/null; then
|
|
dpkg-statoverride --remove /etc/bird >/dev/null 2>/dev/null || true
|
|
dpkg-statoverride --remove /etc/bird/bird.conf >/dev/null 2>/dev/null || true
|
|
|
|
for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist; do
|
|
rm -f /etc/bird/bird.conf$ext
|
|
done
|
|
rm -f /etc/bird/bird.conf
|
|
if command -v ucf ucfr >/dev/null; then
|
|
ucf --purge /etc/bird/bird.conf
|
|
ucfr --purge bird2 /etc/bird/bird.conf
|
|
fi
|
|
|
|
deluser --quiet bird > /dev/null || true
|
|
fi
|
|
fi
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|