endif
export CFLAGS
-config: config-stamp
-config-stamp:
+configure: configure-stamp
+configure-stamp:
dh_testdir
+ cp -f /usr/share/misc/config.sub config.sub
+ cp -f /usr/share/misc/config.guess config.guess
# simple version
mkdir -p build-simple
cd build-simple && NROFFPROG=/usr/bin/nroff ../configure \
--prefix=/usr -v \
--with-all-insults \
- --with-devel --with-pam --with-fqdn \
- --with-logging=syslog --with-logfac=authpriv \
- --with-env-editor --with-editor=/usr/bin/vi \
- --with-timeout=15 --with-password-timeout=0 \
+ --with-devel \
+ --with-pam \
+ --with-fqdn \
+ --with-logging=syslog \
+ --with-logfac=authpriv \
+ --with-env-editor \
+ --with-editor=/usr/bin/editor \
+ --with-timeout=15 \
+ --with-password-timeout=0 \
--with-passprompt="[sudo] password for %p: " \
- --disable-root-mailer --disable-setresuid \
+ --disable-root-mailer \
+ --disable-setresuid \
--with-sendmail=/usr/sbin/sendmail \
- --mandir=/usr/share/man --libexecdir=/usr/lib/sudo \
- --with-ldap-conf-file=/etc/sudo-ldap.conf \
+ --mandir=/usr/share/man \
+ --libexecdir=/usr/lib/sudo \
--with-secure-path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
# LDAP version
cd build-ldap && NROFFPROG=/usr/bin/nroff ../configure \
--prefix=/usr -v \
--with-all-insults \
- --with-exempt=sudo --with-pam --with-ldap --with-fqdn \
- --with-logging=syslog --with-logfac=authpriv \
- --with-env-editor --with-editor=/usr/bin/vi \
- --with-timeout=15 --with-password-timeout=0 \
+ --with-devel \
+ --with-pam \
+ --with-ldap \
+ --with-fqdn \
+ --with-logging=syslog \
+ --with-logfac=authpriv \
+ --with-env-editor \
+ --with-editor=/usr/bin/editor \
+ --with-timeout=15 \
+ --with-password-timeout=0 \
--with-passprompt="[sudo] password for %p: " \
- --disable-root-mailer --disable-setresuid \
+ --disable-root-mailer \
+ --disable-setresuid \
--with-sendmail=/usr/sbin/sendmail \
- --with-ldap-conf-file=/etc/ldap/ldap.conf \
- --mandir=/usr/share/man --libexecdir=/usr/lib/sudo \
+ --with-ldap-conf-file=/etc/sudo-ldap.conf \
+ --mandir=/usr/share/man \
+ --libexecdir=/usr/lib/sudo \
--with-secure-path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
touch config-stamp
build: build-stamp
-build-stamp: config-stamp
+build-stamp: configure-stamp
dh_testdir
# ensure our pod changes get picked up
rm -f config-stamp build-stamp
rm -rf build-simple build-ldap
rm -f config.cache
-
- -test -r /usr/share/misc/config.sub && \
- cp -f /usr/share/misc/config.sub config.sub
- -test -r /usr/share/misc/config.guess && \
- cp -f /usr/share/misc/config.guess config.guess
-
dh_clean
install: build-stamp
dh_testroot
dh_installdocs
dh_installexamples -A sudoers
- dh_installinit -psudo -psudo-ldap
- dh_installmanpages fnmatch.3
+ dh_installinit -psudo -psudo-ldap --name=sudo
+ dh_installman
dh_installinfo -A
- dh_installchangelogs CHANGES
+ dh_installchangelogs ChangeLog
dh_strip
dh_compress
dh_fixperms
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+.PHONY: configure build clean binary-indep binary-arch binary install