diff options
author | Eric Hameleers <alien@slackware.com> | 2015-07-13 21:14:01 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2015-07-13 21:14:01 +0000 |
commit | 3f74f647f8c810eacb246b0ed6153bb22179bef2 (patch) | |
tree | 1a915b0e2b36d44070206fc480f13459d3e093e0 /veracrypt/build | |
parent | 4b3611af5c6426d78d5ef824931eeaaff6a1177e (diff) | |
download | asb-3f74f647f8c810eacb246b0ed6153bb22179bef2.tar.gz asb-3f74f647f8c810eacb246b0ed6153bb22179bef2.tar.xz |
veracrypt: clean up the SlackBuild script
Diffstat (limited to 'veracrypt/build')
-rwxr-xr-x | veracrypt/build/veracrypt.SlackBuild | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/veracrypt/build/veracrypt.SlackBuild b/veracrypt/build/veracrypt.SlackBuild index 52d04614..23712dac 100755 --- a/veracrypt/build/veracrypt.SlackBuild +++ b/veracrypt/build/veracrypt.SlackBuild @@ -227,25 +227,6 @@ EOT # Add this to the doinst.sh: mkdir -p $PKG/install cat <<EOINS >> $PKG/install/doinst.sh -# Handle the incoming configuration files: -config() { - for infile in \$1; do - NEW="\$infile" - OLD="\`dirname \$NEW\`/\`basename \$NEW .new\`" - # If there's no config file by that name, mv it over: - if [ ! -r \$OLD ]; then - mv \$NEW \$OLD - elif [ "\`cat \$OLD | md5sum\`" = "\`cat \$NEW | md5sum\`" ]; then - # toss the redundant copy - rm \$NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... - done -} - -# An example of how you handle your '.new' config files: -#config etc/veracrypt.conf.new - # Update the desktop database: if [ -x usr/bin/update-desktop-database ]; then chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1 @@ -278,15 +259,6 @@ if [ -d $PKG/usr/man ]; then for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done fi -# Compress info pages and remove the package's dir file: -if [ -d $PKG/usr/info ]; then - rm -f $PKG/usr/info/dir - gzip -9f $PKG/usr/info/*.info* - # If any info files are present, consider adding this to a doinst.sh - # (replacing XXXXX with whatever files you find): - # chroot . install-info /usr/info/XXXXX.info.gz /usr/info/dir 2> /dev/null -fi - # Strip binaries (if any): find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -294,14 +266,6 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ # Add a package description: mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc -if [ -f $SRCDIR/doinst.sh ]; then - cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh -elif [ -f $SRCDIR/doinst.sh.gz ]; then - zcat $SRCDIR/doinst.sh.gz >> $PKG/install/doinst.sh -fi -if [ -f $SRCDIR/slack-required ]; then - cat $SRCDIR/slack-required > $PKG/install/slack-required -fi # Build the package: cd $PKG @@ -310,9 +274,6 @@ cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz}.md5 cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt -if [ -f $PKG/install/slack-required ]; then - cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.dep -fi # Restore the original umask: umask ${_UMASK_} |