mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/sudosh2: Fixed the install routine.
Thanks to spaceman Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
deb76d5a0d
commit
48407e31dd
1 changed files with 4 additions and 7 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=sudosh2
|
||||
VERSION=${VERSION:-1.0.4}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -88,13 +88,10 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
$do_record
|
||||
|
||||
make
|
||||
# make install will install sudosh.conf in the build system, use
|
||||
# make install-am to avoid this and manualy install the conf file.
|
||||
make install-am DESTDIR=$PKG
|
||||
install -m 0644 -D $TMP/$PRGNAM-$VERSION/src/sudosh.conf $PKG/etc/sudosh.conf.new
|
||||
make install-strip DESTDIR=$PKG
|
||||
|
||||
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
|
||||
# manually install the conf file
|
||||
install -m 0644 -D $TMP/$PRGNAM-$VERSION/src/sudosh.conf $PKG/etc/sudosh.conf.new
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue