diff options
author | Gene Baxter <GenoBob@gmail.com> | 2018-04-30 01:44:39 +0100 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2018-05-01 22:01:20 +0100 |
commit | 215eae93b78f90e24900cd7ff3a76b8eaca9d420 (patch) | |
tree | 23c9f20627c6a7ba73011f6b14998fa155926228 /system/ZoneMinder/ZoneMinder.SlackBuild | |
parent | c2e0f210493bfcf515d5449d2981a8af216c8ddd (diff) | |
download | slackbuilds-215eae93b78f90e24900cd7ff3a76b8eaca9d420.tar.gz |
system/ZoneMinder: Updated for version 1.31.1.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/ZoneMinder/ZoneMinder.SlackBuild')
-rw-r--r-- | system/ZoneMinder/ZoneMinder.SlackBuild | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/system/ZoneMinder/ZoneMinder.SlackBuild b/system/ZoneMinder/ZoneMinder.SlackBuild index 89b1015da4..9fd598d71e 100644 --- a/system/ZoneMinder/ZoneMinder.SlackBuild +++ b/system/ZoneMinder/ZoneMinder.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=ZoneMinder -VERSION=${VERSION:-1.30.0} +VERSION=${VERSION:-1.31.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -91,16 +91,26 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \ make make install DESTDIR=$PKG INSTALLDIRS=vendor INSTALLVENDORMAN3DIR=/usr/man/man3 +# Strip binaries 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 -find $PKG/usr/man -type f -exec gzip -9 {} \; -mv $PKG/usr/share/man/man8 $PKG/usr/man/ +# Compress manpages +mkdir -p $PKG/usr/man/man3 +mv $PKG/usr/share/man/man3/* $PKG/usr/man/man3/ +mkdir -p $PKG/usr/man/man8 +mv $PKG/usr/share/man/man8/* $PKG/usr/man/man8/ rm -rf $PKG/usr/share/man +find $PKG/usr/man -type f -exec gzip -9 {} \; +# Remove junk files and dirs find $PKG -name perllocal.pod \ -o -name ".packlist" \ -o -name "*.bs" \ + -o -name ".editorconfig" \ + -o -name ".packlist" \ + -o -name ".git" \ + -o -name "empty" \ | xargs rm -f || true find $PKG/usr -depth -type d -empty -delete || true @@ -109,7 +119,7 @@ mkdir -p $PKG/var/{log,lock/subsys} install -d -o $DOCOWN -g $DOCGRP $PKG/var/log/zm for DIR in events images sound; do - install -d -o $DOCOWN -g $DOCGRP $PKG$DOCROOT/$DIR + install -d -o $DOCOWN -g $DOCGRP $PKG/var/lib/zoneminder/$DIR done # Install logrotate script @@ -141,6 +151,7 @@ mkdir -p $PKG/tmp chmod 777 $PKG/tmp chmod +t $PKG/tmp +# Copy documentation mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog INSTALL NEWS TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |