comparison security/shadow/shadow.sh @ 549:bad483aace64

vanilla: use prefix= instead
author David Demelier <markand@malikania.fr>
date Sun, 23 Jun 2019 15:13:10 +0200
parents adaa1ae0fe9d
children 25cecc6dca48
comparison
equal deleted inserted replaced
548:b1d040632d36 549:bad483aace64
57 with_nls="--disable-nls" 57 with_nls="--disable-nls"
58 fi 58 fi
59 59
60 if [ "$PAM" = "yes" ]; then 60 if [ "$PAM" = "yes" ]; then
61 PKGDEPENDS="security/pam $PKGDEPENDS" 61 PKGDEPENDS="security/pam $PKGDEPENDS"
62 with_pam="--with-pam" 62 with_pam="--with-libpam"
63 else 63 else
64 with_pam="--without-pam" 64 with_pam="--without-libpam"
65 fi 65 fi
66 66
67 if [ "$SELINUX" = "yes" ]; then 67 if [ "$SELINUX" = "yes" ]; then
68 with_selinux="--enable-selinux" 68 with_selinux="--with-selinux"
69 else 69 else
70 with_selinux="--disable-selinux" 70 with_selinux="--without-selinux"
71 fi 71 fi
72 72
73 build() 73 build()
74 { 74 {
75 rm -rf $PKGNAME-$PKGVERSION 75 rm -rf $PKGNAME-$PKGVERSION
87 LDFLAGS="$LDFLAGS" \ 87 LDFLAGS="$LDFLAGS" \
88 LIBS="$LIBS" \ 88 LIBS="$LIBS" \
89 ./configure \ 89 ./configure \
90 --build=$CBUILD \ 90 --build=$CBUILD \
91 --host=$CHOST \ 91 --host=$CHOST \
92 --prefix=/ \ 92 --prefix= \
93 --bindir=/bin \ 93 --bindir=/bin \
94 --sbindir=/bin \ 94 --sbindir=/bin \
95 --without-audit \
96 --without-tcb \
97 --without-libcrack \
98 --disable-static \ 95 --disable-static \
99 --enable-shared \ 96 --enable-shared \
100 $with_acl \ 97 $with_acl \
101 $with_attr \ 98 $with_attr \
102 $with_nls \ 99 $with_nls \
103 $with_pam \ 100 $with_pam \
104 $with_selinux 101 $with_selinux
105 make 102 make ubindir=/bin usbindir=/bin
106 make install DESTDIR=$DESTDIR 103 make DESTDIR=$DESTDIR ubindir=/bin usbindir=/bin install
107 104
108 # --disable-selinux does not update pam.d files 105 if [ "$PAM" = "yes" ]; then
109 if [ "$SELINUX" = "no" ]; then 106 # --disable-selinux does not update pam.d files
110 sed -i -e "/pam_selinux.so/d" $DESTDIR/etc/pam.d/{login,su} 107 if [ "$SELINUX" = "no" ]; then
108 sed -i -e "/pam_selinux.so/d" $DESTDIR/etc/pam.d/{login,su}
109 fi
110
111 # pam_console.so isn't shipped with linux-pam.
112 sed -i -e "/pam_console.so/d" $DESTDIR/etc/pam.d/login
111 fi 113 fi
112
113 # pam_console.so isn't shipped with linux-pam.
114 sed -i -e "/pam_console.so/d" $DESTDIR/etc/pam.d/login
115 114
116 popd 115 popd
117 rm -rf $PKGNAME-$PKGVERSION 116 rm -rf $PKGNAME-$PKGVERSION
118 } 117 }