system/wipe: Fixed install paths.

Signed-off-by: David Spencer <baildon.research@googlemail.com>
This commit is contained in:
David Spencer 2016-05-28 20:28:41 +01:00 committed by Willy Sudiarto Raharjo
parent 5989450978
commit 33040e4da6

View file

@ -76,24 +76,17 @@ CXXFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
make install prefix=$PKG/usr mandir=$PKG/usr/man
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man1
cp -a wipe.1 $PKG/usr/man/man1
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/bin
cp -a wipe $PKG/usr/bin
DOCS="CHANGES copyright INSTALL LICENSE README TESTING TODO"
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION