comparison security/shadow/shadow.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 930266b723d4
children 27d1a83dc8d6
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
85 with_selinux="--with-selinux" 85 with_selinux="--with-selinux"
86 else 86 else
87 with_selinux="--without-selinux" 87 with_selinux="--without-selinux"
88 fi 88 fi
89 89
90 build() 90 rm -rf $PKGNAME-$PKGVERSION
91 { 91 tar xvf $PKGNAME-$PKGVERSION.tar.xz
92 rm -rf $PKGNAME-$PKGVERSION 92 cd $PKGNAME-$PKGVERSION
93 tar xvf $PKGNAME-$PKGVERSION.tar.xz
94 cd $PKGNAME-$PKGVERSION
95 93
96 # 94 #
97 # Disable groups, it's provided by busybox/coreutils and documentation 95 # Disable groups, it's provided by busybox/coreutils and documentation
98 # by man-pages. 96 # by man-pages.
99 # 97 #
100 sed -i 's/groups$(EXEEXT) //' src/Makefile.in 98 sed -i 's/groups$(EXEEXT) //' src/Makefile.in
101 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \; 99 find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
102 find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \; 100 find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
103 find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \; 101 find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;
104 102
105 CC="$CC" \ 103 CC="$CC" \
106 CFLAGS="$CFLAGS" \ 104 CFLAGS="$CFLAGS" \
107 LDFLAGS="$LDFLAGS" \ 105 LDFLAGS="$LDFLAGS" \
108 LIBS="$LIBS" \ 106 LIBS="$LIBS" \
109 ./configure \ 107 ./configure \
110 --build=$CBUILD \ 108 --build=$CBUILD \
111 --host=$CHOST \ 109 --host=$CHOST \
112 --prefix= \ 110 --prefix= \
113 --bindir=/bin \ 111 --bindir=/bin \
114 --sbindir=/bin \ 112 --sbindir=/bin \
115 --enable-shared \ 113 --enable-shared \
116 $with_acl \ 114 $with_acl \
117 $with_attr \ 115 $with_attr \
118 $with_nls \ 116 $with_nls \
119 $with_pam \ 117 $with_pam \
120 $with_selinux 118 $with_selinux
121 make ubindir=/bin usbindir=/bin 119 make ubindir=/bin usbindir=/bin
122 make DESTDIR=$DESTDIR ubindir=/bin usbindir=/bin install 120 make DESTDIR=$DESTDIR ubindir=/bin usbindir=/bin install
123 121
124 if [ "$PAM" = "yes" ]; then 122 if [ "$PAM" = "yes" ]; then
125 for i in \ 123 for i in \
126 chage chfn chgpasswd chpasswd chsh groupadd groupdel \ 124 chage chfn chgpasswd chpasswd chsh groupadd groupdel \
127 groupmems groupmod login newusers passwd su useradd \ 125 groupmems groupmod login newusers passwd su useradd \
128 userdel usermod; do 126 userdel usermod; do
129 install -Dm0600 ../$i $DESTDIR/etc/pam.d/$i 127 install -Dm0600 ../$i $DESTDIR/etc/pam.d/$i
130 done 128 done
131 fi 129 fi
132 130
133 cd .. 131 cd ..
134 rm -rf $PKGNAME-$PKGVERSION 132 rm -rf $PKGNAME-$PKGVERSION
135 }