From bdb175a2a8a9b1545bea9dbf212260722b7599bd Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Wed, 21 May 2008 08:36:54 +0000 Subject: Removed the kernel version from the salck-desc --- madwifi/build/madwifi.SlackBuild | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'madwifi') diff --git a/madwifi/build/madwifi.SlackBuild b/madwifi/build/madwifi.SlackBuild index 04a9e46b..2925534e 100755 --- a/madwifi/build/madwifi.SlackBuild +++ b/madwifi/build/madwifi.SlackBuild @@ -252,18 +252,17 @@ cp -a scripts $PKG/usr/doc/$PRGNAM-$VERSION/ || true cp -a $SRCDIR/$(basename $0) $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -type f -exec chmod 644 {} \; -# Compress the man pages +# Compress the man pages: [ -d $PKG/usr/man ] && find $PKG/usr/man -name "*.?" -type f -exec gzip -9f {} \; -# Compress the kernel modules +# Compress the kernel modules: [ $PATCHLEVEL -eq 4 ] && find $PKG/lib/modules -name "*.?" -type f -exec gzip -9 {} \; -# Add the slack-desc and doinst.sh files +# Add a package description: mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc -# Substitute correct kernel versions -sed -i -e "s#\@\@KERNELVERS\@\@#${KVER}#g" $PKG/install/slack-desc -# Write a doinst.sh + +# Write a doinst.sh file: [ $PATCHLEVEL -eq 4 ] && MODCONFFILE=modules.conf || MODCONFFILE=modprobe.conf cat <<-EEOOTT > $PKG/install/doinst.sh # Only run depmod on matching running kernel @@ -279,13 +278,13 @@ cat <<-EEOOTT > $PKG/install/doinst.sh EEOOTT -# Strip binaries +# Strip binaries: ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true ) -# Create the package +# Create the package: cd $PKG makepkg -l y -c n $OUTPUT/$PRGNAM-${VERSION}_$(echo $KVER | tr - _)-$ARCH-$BUILD$TAG.tgz 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log cd $OUTPUT -- cgit v1.2.3-79-gdb01