summaryrefslogtreecommitdiffstats
path: root/madwifi
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-05-21 08:36:54 +0000
committer Eric Hameleers <alien@slackware.com>2008-05-21 08:36:54 +0000
commitbdb175a2a8a9b1545bea9dbf212260722b7599bd (patch)
tree851802bef1c6b09ff499a335be07f74b9497f4bd /madwifi
parent848240830268037bbfc6646abf157825adfeb0b5 (diff)
downloadasb-bdb175a2a8a9b1545bea9dbf212260722b7599bd.tar.gz
asb-bdb175a2a8a9b1545bea9dbf212260722b7599bd.tar.xz
Removed the kernel version from the salck-desc
Diffstat (limited to 'madwifi')
-rwxr-xr-xmadwifi/build/madwifi.SlackBuild15
1 files changed, 7 insertions, 8 deletions
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