comparison core/util-linux/util-linux.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents a47aaf9743a0
children 9867e578b1a9
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
101 with_selinux="--with-selinux" 101 with_selinux="--with-selinux"
102 else 102 else
103 with_selinux="--without-selinux" 103 with_selinux="--without-selinux"
104 fi 104 fi
105 105
106 rm -rf $PKGNAME-$PKGVERSION 106 build()
107 tar xvf $PKGNAME-$PKGVERSION.tar.xz 107 {
108 cd $PKGNAME-$PKGVERSION 108 rm -rf $PKGNAME-$PKGVERSION
109 tar xvf $PKGNAME-$PKGVERSION.tar.xz
110 cd $PKGNAME-$PKGVERSION
109 111
110 # All these tools are provided by shadow instead: 112 # All these tools are provided by shadow instead:
111 # --disable-chfn-chsh 113 # --disable-chfn-chsh
112 # --disable-chsh 114 # --disable-chsh
113 # --disable-login 115 # --disable-login
114 # --disable-nologin 116 # --disable-nologin
115 # --disable-su 117 # --disable-su
116 # --disable-vipw 118 # --disable-vipw
117 119
118 # The configure.ac script has hardcoded /sbin checks. 120 # The configure.ac script has hardcoded /sbin checks.
119 sed -i -e 's|/sbin|/bin|' configure.ac 121 sed -i -e 's|/sbin|/bin|' configure.ac
120 autoreconf -vif 122 autoreconf -vif
121 CC="$CC" \ 123 CC="$CC" \
122 CFLAGS="$CFLAGS" \ 124 CFLAGS="$CFLAGS" \
123 LDFLAGS="$LDFLAGS" \ 125 LDFLAGS="$LDFLAGS" \
124 LIBS="$LIBS" \ 126 LIBS="$LIBS" \
125 ./configure \ 127 ./configure \
126 --build=$CBUILD \ 128 --build=$CBUILD \
127 --host=$CHOST \ 129 --host=$CHOST \
128 --prefix=/usr \ 130 --prefix= \
129 --bindir=/bin \ 131 --bindir=/bin \
130 --libdir=/lib \ 132 --libdir=/lib \
131 --sbindir=/bin \ 133 --sbindir=/bin \
132 --disable-chfn-chsh \ 134 --disable-chfn-chsh \
133 --disable-gtk-doc \ 135 --disable-gtk-doc \
134 --disable-login \ 136 --disable-login \
135 --disable-nologin \ 137 --disable-nologin \
136 --disable-su \ 138 --disable-su \
137 --disable-vipw \ 139 --disable-vipw \
138 --enable-libblkid \ 140 --enable-libblkid \
139 --enable-libmount \ 141 --enable-libmount \
140 --enable-libsmartcols \ 142 --enable-libsmartcols \
141 --enable-libuuid \ 143 --enable-libuuid \
142 --enable-shared \ 144 --enable-shared \
143 --without-systemd \ 145 --without-systemd \
144 $with_audit \ 146 $with_audit \
145 $with_colors \ 147 $with_colors \
146 $with_components \ 148 $with_components \
147 $with_nls \ 149 $with_nls \
148 $with_python \ 150 $with_python \
149 $with_selinux 151 $with_selinux
150 make 152 make
151 make install DESTDIR=$DESTDIR 153 make install DESTDIR=$DESTDIR
152 find $DESTDIR -type f -name "*.la" -delete 154 find $DESTDIR -type f -name "*.la" -delete
153 155
154 cd .. 156 cd ..
155 rm -rf $PKGNAME-$PKGVERSION 157 rm -rf $PKGNAME-$PKGVERSION
158 }