[Slackbuilds-users] clamav.SlackBuild: wrong permissions on documentation dirs.
Kees Theunissen
theuniss at rijnh.nl
Wed Dec 19 17:05:57 UTC 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi,
The clamav.SlackBuild sets wrong permissions on subdirectories in
the documentation directory. The executable rights are missing:
kees at lankhmar:/$ cd
kees at lankhmar:~$ cd /usr/doc/clamav-0.97.6
kees at lankhmar:/usr/doc/clamav-0.97.6$ ls -l
total 1372
- -rw-r--r-- 1 root root 2676 Aug 6 22:26 AUTHORS
- -rw-r--r-- 1 root root 24 May 15 2012 BUGS
- -rw-r--r-- 1 root root 17991 May 15 2012 COPYING
- -rw-r--r-- 1 root root 682667 Sep 17 17:15 ChangeLog
- -rw-r--r-- 1 root root 53 May 15 2012 FAQ
- -rw-r--r-- 1 root root 9416 May 15 2012 INSTALL
- -rw-r--r-- 1 root root 238 Sep 17 17:16 NEWS
- -rw-r--r-- 1 root root 86968 Sep 17 17:02 README
- -rw-r--r-- 1 root root 1779 Dec 18 04:14 README.SLACKWARE
- -rw-r--r-- 1 root root 48 May 15 2012 UPGRADE
- -rw-r--r-- 1 root root 82058 May 15 2012 clamav-mirror-howto.pdf
- -rw-r--r-- 1 root root 6478 Dec 18 04:14 clamav.SlackBuild
- -rw-r--r-- 1 root root 268835 Aug 6 22:26 clamdoc.pdf
drw-r--r-- 2 root root 4096 May 15 2012 examples/
drw-r--r-- 2 root root 4096 Aug 6 22:26 html/
- -rw-r--r-- 1 root root 103999 May 15 2012 phishsigs_howto.pdf
- -rw-r--r-- 1 root root 66019 May 15 2012 signatures.pdf
I only looked at he current version of the script for Slackware 14.0.
Proposed solution (untested):
- --- clamav.SlackBuild.original 2012-10-02 19:59:14.000000000 +0200
+++ clamav.SlackBuild 2012-12-19 17:26:50.000000000 +0100
@@ -182,7 +182,8 @@
cp -a \
AUTHORS BUGS COPYING ChangeLog FAQ INSTALL NEWS README UPGRADE \
docs/*.pdf docs/html examples $PKG/usr/doc/$PRGNAM-$VERSION
- -chmod 0644 $PKG/usr/doc/$PRGNAM-$VERSION/*
+chmod -R 0644 $PKG/usr/doc/$PRGNAM-$VERSION
+find $PKG/usr/doc/$PRGNAM-$VERSION -type d -exec chmod 0755 {} \;
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
Regards,
Kees Theunissen.
- --
Kees Theunissen
Dutch Institute for Fundamental Energy Research (DIFFER)
E-mail: theuniss at rijnh.nl, Tel: 030-6096724, Fax: 030-6031204
-----BEGIN PGP SIGNATURE-----
Version: PGP Universal 3.0.0 (Build 2881)
Charset: US-ASCII
wsBVAwUBUNHz9lBhouBnv/doAQj9XQf+IF6xa72k3RP2uEuh0XuGJpDRrI5je5/v
Hj+sDx9fehPIcHQi55NkBej4VgwUN4UkFrIVNTtl0CKcfq5WTnWI2+YUZaDbAIPE
N1d+2OijzEmO5WqzbhYv8bjmCl/KciXVAIs+MxztlXZCzvrtyGErk5Ys89atcbo4
EfBsf2r4pcPmG0UGCQs5AjLpq9X6FylIwxVy1/coQ8WDV4twvQJIma++IoAAAJut
WRu4yK91z9tMHqgLLB5ix79KUqiuLCdwM2lBCdQqita2o7GnMEysqiid0/CFBZVG
Aw6tGJdbJW4+huZBjC65//+6GPSEuS1GyYMoQYWVO/rOyuOgZSp/wA==
=T0m1
-----END PGP SIGNATURE-----
More information about the SlackBuilds-users
mailing list