summaryrefslogtreecommitdiffstats
path: root/partimage
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2006-03-04 00:29:10 +0000
committer Eric Hameleers <alien@slackware.com>2006-03-04 00:29:10 +0000
commita20cc40fd85abd465ae19bb17a12b15ae79769a9 (patch)
tree7cdca9afe8e16615ac182e12e828812f4995e7d4 /partimage
parent91bfcb8e4514524016e3702bde36ce7a408636f2 (diff)
downloadasb-a20cc40fd85abd465ae19bb17a12b15ae79769a9.tar.gz
asb-a20cc40fd85abd465ae19bb17a12b15ae79769a9.tar.xz
Added Copyright and License, nicer man page zipping.
Diffstat (limited to 'partimage')
-rwxr-xr-xpartimage/build/partimage.SlackBuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/partimage/build/partimage.SlackBuild b/partimage/build/partimage.SlackBuild
index e1ff4240..99555b5f 100755
--- a/partimage/build/partimage.SlackBuild
+++ b/partimage/build/partimage.SlackBuild
@@ -1,10 +1,12 @@
#!/bin/sh
-#
+# $Id$
+# Copyright (c) 2006 Eric Hameleers <alien@slackware.com>
+# Distributed under the terms of the GNU General Public License, Version 2
# -----------------------------------------------------------------------------
#
# Slackware SlackBuild script
# ===========================
-# By: Eric Hameleers <alien@sox.homeip.net>
+# By: Eric Hameleers <alien@slackware.com>
# For: partimage
# URL: http://partimage.org/
# Needs:
@@ -133,10 +135,11 @@ cp -a $DOCS \
$PKG/usr/doc/$PRGNAM-$VERSION
chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/*
+# Move incorrectly installed man pages, if any
+[ -d $PKG/usr/share/man ] && \
+ mv $PKG/usr/share/man $PKG/usr/ && rmdir $PKG/usr/share
# Compress the man page(s)
-gzip -9f $PKG/usr/man/*/*
-gzip -9f $PKG/usr/share/man/*/*
-gzip -9f $PKG/usr/man/*/*/*
+[ -d $PKG/usr/man ] && find $PKG/usr/man -type f -exec gzip -9f {} \;
# Strip binaries
( cd $PKG
@@ -168,7 +171,7 @@ cd $PKG
makepkg --linkadd y --chown n $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz \
2>&1 | tee $CWD/makepkg-${PRGNAM}.log
(cd $TMP && md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5)
-cat $CWD/slack-desc | grep "^${PRGNAM}" > $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt
+cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $TMP/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt
# --- CLEANUP ---