Skip to content
Commits on Source (6)
#!/bin/sh
#!/bin/bash
set -e
fix_named_conf() {
# The following sed script:
# - scopes the named.conf changes to dynamic-db
# - replaces arg "name value" syntax with name "value"
# - changes dynamic-db header to dyndb
# - uses the new way the define path to the library
# - removes no longer supported arguments (library, cache_ttl,
# psearch, serial_autoincrement, zone_refresh)
while read -r PATTERN
do
SEDSCRIPT+="$PATTERN"
done <<EOF
/^\s*dynamic-db/,/};/ {
s/\(\s*\)arg\s\+\(["']\)\([a-zA-Z_]\+\s\)/\1\3\2/g;
s/^dynamic-db/dyndb/;
s@\(dyndb "[^"]\+"\)@\1 "/usr/lib/bind/ldap.so"@;
s@\(dyndb '[^']\+'\)@\1 '/usr/lib/bind/ldap.so'@;
/\s*library[^;]\+;/d;
/\s*cache_ttl[^;]\+;/d;
/\s*psearch[^;]\+;/d;
/\s*serial_autoincrement[^;]\+;/d;
/\s*zone_refresh[^;]\+;/d;
}
EOF
sed -i.bak -e "$SEDSCRIPT" /etc/bind/named.conf
}
if [ $1 = "configure" ]; then
chown root:bind /var/cache/bind/dynamic /var/cache/bind/dyndb-ldap
chmod 0770 /var/cache/bind/dynamic /var/cache/bind/dyndb-ldap
if dpkg --compare-versions "$2" lt "11.1-4"; then
fix_named_conf
fi
fi
#DEBHELPER#
bind-dyndb-ldap (11.1-3) UNRELEASED; urgency=medium
bind-dyndb-ldap (11.1-4) unstable; urgency=medium
* postinst: Migrate old style named.conf to new.
* control: Update the maintainer address.
* Bump policy to 4.15, dh to 11.
-- Timo Aaltonen <tjaalton@debian.org> Tue, 31 Jul 2018 23:44:13 +0300
bind-dyndb-ldap (11.1-3) unstable; urgency=medium
* control: Update VCS urls.
* rules: Don't use multiarch path.
-- Timo Aaltonen <tjaalton@debian.org> Sat, 14 Apr 2018 10:20:18 +0300
-- Timo Aaltonen <tjaalton@debian.org> Mon, 16 Apr 2018 13:02:48 +0300
bind-dyndb-ldap (11.1-2) unstable; urgency=medium
......
Source: bind-dyndb-ldap
Section: net
Priority: optional
Maintainer: Debian FreeIPA Team <pkg-freeipa-devel@lists.alioth.debian.org>
Maintainer: Debian FreeIPA Team <pkg-freeipa-devel@alioth-lists.debian.net>
Uploaders: Timo Aaltonen <tjaalton@debian.org>
Build-Depends:
debhelper (>= 9),
dh-autoreconf,
debhelper (>= 11),
libbind-dev (>= 1:9.11),
libkrb5-dev,
libldap2-dev,
libsasl2-dev,
uuid-dev,
Standards-Version: 3.9.8
Standards-Version: 4.1.5
Homepage: https://pagure.io/bind-dyndb-ldap
Vcs-Git: https://salsa.debian.org/freeipa-team/bind-dyndb-ldap.git
Vcs-Browser: https://salsa.debian.org/freeipa-team/bind-dyndb-ldap
......
#!/usr/bin/make -f
%:
dh $@ --parallel --with autoreconf --builddirectory=build
dh $@ --builddirectory=build
override_dh_auto_configure:
dh_auto_configure -- \
--libdir=/usr/lib \
--docdir=/usr/share/doc/bind9-dyndb-ldap
override_dh_auto_install:
......