File: ldapdns.packages

package info (click to toggle)
yada 0.34
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,160 kB
  • ctags: 83
  • sloc: perl: 3,554; makefile: 26; sh: 12
file content (154 lines) | stat: -rw-r--r-- 5,038 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# $Id: /trunk/debian/dists/ldapdns/debian/packages 5 2005-02-16T19:48:00.421413Z svm  $

Source: ldapdns
Section: net
Priority: optional
Maintainer: Piotr Roszatycki <dexter@debian.org>
Standards-Version: 3.6.1
Upstream-Source: <URL:http://www.nimh.org/dl/ldapdns-(.*)\.tar\.gz>
Home-Page: <URL:http://www.nimh.org/code/ldapdns/>
Description: DNS server that pulls data from an LDAP directory
Copyright: GPL
 .
Major-Changes:
 [001] fix segfault in some axfr configurations
 [002] fix for gcc-3.4
Build-Depends: libldap2-dev
Build: sh
 if [ ! -f stamp-unpack ]; then
     (
         mkdir -p build-tree
         cd build-tree
         tar zxvf ../ldapdns-*.tar.gz
     ) || false
     touch stamp-unpack
 fi
 if [ ! -f stamp-patch ]; then
     (
         cd build-tree/*
         for p in ../../debian/patches/*.diff; do
             patch -p1 < $p
         done
     ) || false
     touch stamp-patch
 fi
 CC=${CC:-gcc}
 CFLAGS=${CFLAGS:--Wall -g}
 if [ "${DEB_BUILD_OPTIONS#*noopt}" != "$DEB_BUILD_OPTIONS" ]; then
     CFLAGS="$CFLAGS -O0"
 else
     CFLAGS="$CFLAGS -O2"
 fi
 cd build-tree/*
 make EXTRA_CFLAGS="$CFLAGS" EXTRA_LDFLAGS="$LDFLAGS" CC="$CC"
Clean: sh
 rm -rf build-tree
 rm -f stamp-*

Package: ldapdns
Architecture: any
Recommends: ldap-server
Suggests: dnsutils, ldap-utils
Description: DNS server that pulls data from an LDAP directory
 LDAPDNS is a ultra-fast, stable, multithreaded DNS server that pulls
 data from an LDAP directory. It supports RFC1279 (bind-style),
 Microsoft Active Directory, and it's own directory layouts.
Install: sh
 cd build-tree/*
 RUN_USER=daemon NO_DAEMONTOOLS=1 NO_TCPSERVERS=1 INITRC=1 bin=sbin \
     DESTDIR=$ROOT prefix=/usr \
     ./install.sh
 yada remove -dir /etc /var
 yada install -conffile $pwd/debian/conf/ldapdns.conf
 yada install -doc -subdir admin admin/*
 yada install -doc -subdir examples sample/ldapdns.conf
 yada install -doc FAQ AUTHORS README README.* TODO
 yada remove -doc README.using
 yada install -doc -as changelog CHANGELOG
 yada undocumented ldapaxfr.8 ldapdns.8
Postinst: sh
 if [ "$1" = "configure" ]; then
     if ! id -u ldapdns >/dev/null 2>/dev/null; then
         adduser --system --group --home /var/lib/ldapdns ldapdns
         chown root:root /var/lib/ldapdns
     fi
     if [ ! -f /var/lib/ldapdns/axfr ]; then
         touch /var/lib/ldapdns/axfr
     fi
     if [ ! -f /var/lib/ldapdns/password ]; then
         touch /var/lib/ldapdns/password
         chown root:root /var/lib/ldapdns/password
         chmod 400 /var/lib/ldapdns/password
     fi
 fi
Postrm: sh
 if [ "$1" = "purge" ]; then
     if id -u ldapdns >/dev/null 2>/dev/null; then
         userdel ldapdns
     fi
     rm -rf /var/lib/ldapdns || true
     rm -f /etc/ldapdns.conf || true
 fi
Init: sh
 start 15 2 3 4 5 . stop 85 0 1 6 .
 .
 PATH=/sbin:/bin:/usr/sbin:/usr/bin
 .
 test -x /usr/sbin/ldapdns || exit 0
 test -f /etc/ldapdns.conf || exit 0
 .
 . /etc/ldapdns.conf
 .
 export \
     ACCELERATE_CACHE ALWAYS_HANGUP ALWAYS_HANGUP_TCP AXFR CACHE \
     DEFAULT_EXPIRE DEFAULT_MINIMUM DEFAULT_REFRESH DEFAULT_RETRY DNSRECORD \
     DNS_THREADS GID HANDLERS HELPER_NOTIFY HOSTMASTER IP \
     I_AM_STUPID_LET_ME_RUN_LDAPDNS_AS_ROOT LDAP_AUTH LDAP_AUTH_NAME \
     LDAP_AXFR LDAP_BINDDN LDAP_HOST LDAP_HOSTS LDAP_SASL LDAP_SUFFIX \
     LDAP_THREADS LOG NETBIOS NO_ADDITIONALS NO_ADDITIONALS_NS NS NSSELF \
     NSUPDATE NS_SELF PORT RELATIVE_NAMES RFC1279 ROOT SCHEDULE_ARECORD \
     SCHEMA SELFNS SELF_NS SUPERVISE TCPREMOTEIP TCPREMOTEPORT THREADS \
     TIMEOUT TIMEOUT_TCP UID
 .
 case "$1" in
     start)
         echo -n "Starting domain name service:"
         if [ -n "$DNS" ]; then
             echo -n " ldapdns"
             env UID=$RUN_UID GID=$RUN_GID SUPERVISE=/var/run/ldapdns.pid \
             start-stop-daemon --start --quiet \
                 --pidfile /var/run/ldapdns.pid --exec /usr/sbin/ldapdns
         fi
         if [ -n "$AXFR" ]; then
             echo -n " ldapaxfr"
             env UID=$RUN_UID GID=$RUN_GID SUPERVISE=/var/run/ldapaxfr.pid \
             start-stop-daemon --start --quiet \
                 --pidfile /var/run/ldapaxfr.pid --exec /usr/sbin/ldapaxfr
         fi
         echo "."
         ;;
     stop)
         echo -n "Stopping domain name service:"
         if [ -n "$DNS" ]; then
             echo -n " ldapdns"
             start-stop-daemon --stop --pidfile /var/run/ldapdns.pid \
                  --oknodo --quiet --retry 30 --exec /usr/sbin/ldapdns
             rm -f /var/run/ldapdns.pid || true
         fi
         if [ -n "$AXFR" ]; then
             echo -n " ldapaxfr"
             start-stop-daemon --stop --pidfile /var/run/ldapaxfr.pid \
                 --oknodo --quiet --retry 30 --exec /usr/sbin/ldapaxfr
             rm -f /var/run/ldapaxfr.pid || true
         fi
         echo "."
         ;;
     restart|force-reload)
         $0 stop
         sleep 2
         $0 start
         ;;
     *)
         echo "Usage: /etc/init.d/ldapdns {start|stop|restart|force-reload}" >&2
         exit 1
 esac