summaryrefslogtreecommitdiff
path: root/system/ZoneMinder/ZoneMinder.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/ZoneMinder/ZoneMinder.SlackBuild')
-rw-r--r--system/ZoneMinder/ZoneMinder.SlackBuild19
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