Magellan Linux

Diff of /smage/trunk/core/shadow/shadow-4.1.4.2-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 725 by niro, Thu Oct 21 15:16:51 2010 UTC revision 726 by niro, Thu Oct 21 15:21:52 2010 UTC
# Line 11  DESCRIPTION="Utilities to deal with user Line 11  DESCRIPTION="Utilities to deal with user
11  HOMEPAGE="http://pkg-shadow.alioth.debian.org/"  HOMEPAGE="http://pkg-shadow.alioth.debian.org/"
12    
13  DEPEND=">= virtual/glibc  DEPEND=">= virtual/glibc
14   >= app-shells/bash-4   >= app-shells/bash-4"
  >= sys-libs/pam-1.1.1  
  >= sys-libs/cracklib-2.8"  
15    
16  SDEPEND=">= sys-dev/autoconf-5  SDEPEND=">= sys-dev/autoconf-5
17   >= sys-dev/automake-4   >= sys-dev/automake-4
# Line 22  SDEPEND=">= sys-dev/autoconf-5 Line 20  SDEPEND=">= sys-dev/autoconf-5
20  SRCFILE="${PNAME}-${PVER}.tar.bz2"  SRCFILE="${PNAME}-${PVER}.tar.bz2"
21  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23    MCORE_ONLY_KEEP="bin
24     etc
25     $(mlibdir)
26     usr/bin/passwd
27     usr/$(mlibdir)
28     usr/sbin/groupadd
29     usr/sbin/groupdel
30     usr/sbin/groupmod
31     usr/sbin/useradd
32     usr/sbin/userdel
33     usr/sbin/usermod
34     usr/sbin/pwconv
35     usr/sbin/grpconv
36     sbin"
37    
38  # no shared libs get installed, is multilib needed anymore?  # no shared libs get installed, is multilib needed anymore?
39  sminclude multilib mtools  sminclude multilib mtools mcore-split
40    
41  SRC_URI=(  SRC_URI=(
42   ftp://pkg-${PNAME}.alioth.debian.org/pub/pkg-${PNAME}/${SRCFILE}   ftp://pkg-${PNAME}.alioth.debian.org/pub/pkg-${PNAME}/${SRCFILE}
43   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
44   mirror://${PNAME}/securetty   mirror://${PNAME}/securetty
  mirror://${PNAME}/pamd/chage  
  mirror://${PNAME}/pamd/login  
  mirror://${PNAME}/pamd/other  
  mirror://${PNAME}/pamd/passwd  
  mirror://${PNAME}/pamd/su  
45   mirror://${PNAME}/${PNAME}-4.1.2.1-defaults.patch   mirror://${PNAME}/${PNAME}-4.1.2.1-defaults.patch
46   mirror://${PNAME}/${PNAME}-${PVER}-groupmod-username.patch   mirror://${PNAME}/${PNAME}-${PVER}-groupmod-username.patch
47  )  )
# Line 58  src_prepare() Line 66  src_prepare()
66    
67  src_compile()  src_compile()
68  {  {
  # configures shadow with pam  
69   mconfigure \   mconfigure \
70   --enable-shared \   --enable-shared \
71   --with-libpam \   --without-libpam \
72   --with-libcrack \   --without-libcrack \
73   --with-libcrypt \   --with-libcrypt \
74   --enable-nls \   --disable-nls \
75   --without-selinux \   --without-selinux \
76   || die   || die
77    
78   mmake || die   mmake || die
79  }  }
80    
81  src_install()  mcore_generic_src_install()
82  {  {
83   # needed directories   # needed directories
84   minstalldir /etc/{default,skel} || die   minstalldir /etc/{default,skel} || die
# Line 89  src_install() Line 96  src_install()
96   # not provided by shadow anymore; install our own now   # not provided by shadow anymore; install our own now
97   minstalletc securetty || die   minstalletc securetty || die
98    
  # install pam related configuration files  
  minstallpam chage || die  
  minstallpam login || die  
  minstallpam other || die  
  minstallpam passwd || die  
  minstallpam su || die  
  minstallpam chage chpasswd || die  
  minstallpam chage chfn || die  
  minstallpam chage chsh || die  
  minstallpam chage newusers || die  
  minstallpam chage groupadd || die  
  minstallpam chage groupdel || die  
  minstallpam chage groupmod || die  
  minstallpam chage useradd || die  
  minstallpam chage userdel || die  
  minstallpam chage usermod || die  
   
99   # disable these checks as pam controls them now   # disable these checks as pam controls them now
100   sed -e "s/^DIALUPS_CHECK_ENAB/# &/" \   sed -e "s/^DIALUPS_CHECK_ENAB/# &/" \
101   -e "s/^LASTLOG_ENAB/# &/" \   -e "s/^LASTLOG_ENAB/# &/" \
# Line 135  src_install() Line 125  src_install()
125   -e 's%/var/spool/mail%/var/mail%' \   -e 's%/var/spool/mail%/var/mail%' \
126   -e 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \   -e 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \
127   ${BINDIR}/etc/login.defs || die   ${BINDIR}/etc/login.defs || die
128    
129     # fix src_install; mcore has no cracklib installed
130     sed -i -e 's:# OBSCURE_CHECKS_ENAB:OBSCURE_CHECKS_ENAB:' \
131     -e 's:^CRACKLIB_DICTPATH:#CRACKLIB_DICTPATH:' \
132     -e 's:# PASS_CHANGE_TRIES:PASS_CHANGE_TRIES:' \
133     -e 's:# PASS_ALWAYS_WARN:PASS_ALWAYS_WARN:' \
134     ${BINDIR}/etc/login.defs || die
135  }  }
136    
137  postinstall()  postinstall()

Legend:
Removed from v.725  
changed lines
  Added in v.726