tags 316219 patch
thanks

I attached a patch to do that.

Bastian

-- 
You can't evaluate a man by logic alone.
                -- McCoy, "I, Mudd", stardate 4513.3
diff -ur shadow-4.0.3.orig/config.h.in shadow-4.0.3/config.h.in
diff -ur shadow-4.0.3.orig/debian/changelog shadow-4.0.3/debian/changelog
--- shadow-4.0.3.orig/debian/changelog  2005-06-30 09:46:29.897999185 +0200
+++ shadow-4.0.3/debian/changelog       2005-06-30 09:29:46.603806355 +0200
@@ -1,3 +1,9 @@
+shadow (1:4.0.3-35.0.0waldi.1) UNRELEASED; urgency=low
+
+  * Enable shadow on firsttime installation.
+
+ -- Bastian Blank <[EMAIL PROTECTED]>  Thu, 30 Jun 2005 09:29:33 +0200
+
 shadow (1:4.0.3-35) unstable; urgency=low
 
   * Re-apply the debian/patches/036_CAN-2004-1001_passwd_check patch
diff -ur shadow-4.0.3.orig/debian/passwd.preinst 
shadow-4.0.3/debian/passwd.preinst
--- shadow-4.0.3.orig/debian/passwd.preinst     2005-06-30 09:46:29.881001537 
+0200
+++ shadow-4.0.3/debian/passwd.preinst  2005-06-30 09:29:17.920774693 +0200
@@ -29,7 +30,9 @@
            if dpkg --compare-versions $2 lt 1:4.0.3 ; then
                remove_md5 /etc/pam.d/passwd 23a5d1465bbc1e39ca6e0c32f22a75c9
            fi
-           fi
+       else
+           shadowconfig on
+       fi
            
     ;;
 
diff -ur shadow-4.0.3.orig/debian/rules shadow-4.0.3/debian/rules
--- shadow-4.0.3.orig/debian/rules      2005-06-30 09:46:29.883001260 +0200
+++ shadow-4.0.3/debian/rules   2005-06-30 09:36:34.132424195 +0200
@@ -2,7 +2,7 @@
 
 config_options := --disable-shared --without-libcrack --mandir=/usr/share/man 
--with-libpam
 
-DEB_HOST_GNU_SYSTEM := $(shell dpkg-architecture -qDEB_HOST_GNU_SYSTEM)
+DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
@@ -104,7 +104,7 @@
        install -c -m 444 debian/pam.d/chsh debian/passwd/etc/pam.d/chsh
        install -c -m 444 debian/pam.d/passwd debian/passwd/etc/pam.d/passwd
        install -c -m 444 debian/login.defs debian/login/etc/login.defs
-       install -c -m 444 debian/securetty.$(DEB_HOST_GNU_SYSTEM) 
debian/login/etc/securetty
+       install -c -m 444 debian/securetty.$(DEB_HOST_ARCH_OS) 
debian/login/etc/securetty
        install -d debian/passwd/usr/share/passwd
        install -c -m 444 debian/shells debian/passwd/usr/share/passwd/shells
        install -d debian/passwd/sbin

Attachment: signature.asc
Description: Digital signature

Reply via email to