Mercurial > vanilla
comparison security/shadow/shadow.sh @ 606:25cecc6dca48
vanilla: use POSIX shell and busybox tar
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 18 Jul 2019 07:26:43 +0200 |
parents | bad483aace64 |
children | 9de04ddc6f6d |
comparison
equal
deleted
inserted
replaced
605:860ab66f5f71 | 606:25cecc6dca48 |
---|---|
71 fi | 71 fi |
72 | 72 |
73 build() | 73 build() |
74 { | 74 { |
75 rm -rf $PKGNAME-$PKGVERSION | 75 rm -rf $PKGNAME-$PKGVERSION |
76 tar xvaf $PKGNAME-$PKGVERSION.tar.xz | 76 tar xvf $PKGNAME-$PKGVERSION.tar.xz |
77 pushd $PKGNAME-$PKGVERSION | 77 cd $PKGNAME-$PKGVERSION |
78 | 78 |
79 # disable groups, it's provided by coreutils and documentation by man-pages. | 79 # disable groups, it's provided by coreutils and documentation by man-pages. |
80 sed -i 's/groups$(EXEEXT) //' src/Makefile.in | 80 sed -i 's/groups$(EXEEXT) //' src/Makefile.in |
81 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; | 81 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; |
82 find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; | 82 find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; |
110 | 110 |
111 # pam_console.so isn't shipped with linux-pam. | 111 # pam_console.so isn't shipped with linux-pam. |
112 sed -i -e "/pam_console.so/d" $DESTDIR/etc/pam.d/login | 112 sed -i -e "/pam_console.so/d" $DESTDIR/etc/pam.d/login |
113 fi | 113 fi |
114 | 114 |
115 popd | 115 cd .. |
116 rm -rf $PKGNAME-$PKGVERSION | 116 rm -rf $PKGNAME-$PKGVERSION |
117 } | 117 } |