use sudo as the init.d script name for both sudo and sudo-ldap packages
[debian/sudo] / debian / rules
index 5796fcaf7d02af5522f5efc272c75ce26523c875..fd9c2b348c3f60862a1355f8d0c37a9815f50209 100755 (executable)
@@ -21,9 +21,11 @@ config-stamp:
                --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 \
                --with-sendmail=/usr/sbin/sendmail \
                --mandir=/usr/share/man --libexecdir=/usr/lib/sudo \
+               --with-ldap-conf-file=/etc/sudo-ldap.conf \
                --with-secure-path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin"
 
        # LDAP version
@@ -33,8 +35,9 @@ config-stamp:
                --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/editor \
+               --with-env-editor --with-editor=/usr/bin/vi \
                --with-timeout=15 --with-password-timeout=0 \
+               --with-passprompt="[sudo] password for %p: " \
                --disable-root-mailer --disable-setresuid \
                --with-sendmail=/usr/sbin/sendmail \
                --with-ldap-conf-file=/etc/ldap/ldap.conf \
@@ -100,6 +103,7 @@ binary-arch: build install
        dh_testroot
        dh_installdocs
        dh_installexamples -A sudoers
+       dh_installinit -psudo -psudo-ldap --name=sudo
        dh_installmanpages fnmatch.3
        dh_installinfo -A
        dh_installchangelogs CHANGES