diff options
author | Menno Duursma <druiloor@zonnet.nl> | 2010-09-10 21:19:15 -0400 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2010-09-10 21:19:15 -0400 |
commit | 11d1d4b150c5638bdf223158d59ce3f12986be93 (patch) | |
tree | 5a11b57de7b6d5cbd5283099f4781403efc36e7b | |
parent | d6615ee8e42fb02ab3b98dc9c1a90bec7288308e (diff) |
system/tiger: Updated build and added patch.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
-rw-r--r-- | system/tiger/config/tiger.cron | 9 | ||||
-rw-r--r-- | system/tiger/config/tiger.ignore | 31 | ||||
-rw-r--r-- | system/tiger/patches/tiger-3.2.3-build-fix.diff | 18 | ||||
-rw-r--r-- | system/tiger/tiger.SlackBuild | 24 | ||||
-rw-r--r-- | system/tiger/tiger.info | 2 |
5 files changed, 74 insertions, 10 deletions
diff --git a/system/tiger/config/tiger.cron b/system/tiger/config/tiger.cron new file mode 100644 index 000000000000..1e1c2d0c0a6f --- /dev/null +++ b/system/tiger/config/tiger.cron @@ -0,0 +1,9 @@ +# +# Regular cron jobs for the tiger package +# +# Configuration file +DEFAULT=/etc/default/tiger +# default setting, overriden in the above file +NICETIGER=10 +# +0 * * * * root test -x /usr/sbin/tigercron && { [ -r "$DEFAULT" ] && . "$DEFAULT" ; nice -n$NICETIGER /usr/sbin/tigercron -q ; } diff --git a/system/tiger/config/tiger.ignore b/system/tiger/config/tiger.ignore new file mode 100644 index 000000000000..1f7906789e08 --- /dev/null +++ b/system/tiger/config/tiger.ignore @@ -0,0 +1,31 @@ +Login ID nobody is disabled, but still has a valid shell \(/bin/sh\) +Login ID mail's home directory \(/var/mail\) has group `mail' write access. +Login ID \w+'s parent directory \(/home\) has group `staff' write access. +Log file /var/log/wtmp permission should be 644 +Log file /var/log/btmp does not exist +Log file /var/run/utmp permission should be 644 +Log file /var/log/loginlog does not exist +Log file /var/log/messages permission should be 640 +The owner of /var/log/wtmp should be root (owned by utmp). +/var/log/wtmp should not have group write. +The owner of /var/run/utmp should be root (owned by utmp). +/var/run/utmp should not have group write. +/var/log/XFree86.0.log should not have world read. +/etc/fstab should not have group read. +/etc/fstab should not have world read. +/etc/inetd.conf should not have group read. +/etc/inetd.conf should not have world read. +/etc/pam.d/sudo should not have world read. +The directory /dev/ataraid resides in a device directory. +The directory /dev/cciss resides in a device directory. +The directory /dev/fd resides in a device directory. +The directory /dev/input resides in a device directory. +The directory /dev/pts resides in a device directory. +The directory /dev/rd resides in a device directory. +The directory /dev/usb resides in a device directory. +The directory /dev/ida resides in a device directory. +/dev/null has world permissions +/dev/ptmx has world permissions +/dev/gpmctl has world permissions +/dev/gpmdata has world permissions +File ".fetchmail-UIDL-cache" in the mail spool, owned by "fetchmail". diff --git a/system/tiger/patches/tiger-3.2.3-build-fix.diff b/system/tiger/patches/tiger-3.2.3-build-fix.diff new file mode 100644 index 000000000000..28b698536069 --- /dev/null +++ b/system/tiger/patches/tiger-3.2.3-build-fix.diff @@ -0,0 +1,18 @@ +diff -ur tiger-3.2.3/util/genmsgidx tiger-3.2.3.new/util/genmsgidx +--- tiger-3.2.3/util/genmsgidx 2008-11-27 23:34:21.000000000 +0100 ++++ tiger-3.2.3.new/util/genmsgidx 2010-09-01 12:43:22.000000000 +0200 +@@ -96,10 +96,10 @@ + haveallof variables BASEDIR || exit 1 + + # Clear idx file and detect error +-> $BASEDIR/doc/explain.idx && { +- echo "Error: Cannot write over the index file $BASEDIR/doc/explain.idx. Aborting" +- exit 1 +-} ++#> $BASEDIR/doc/explain.idx && { ++# echo "Error: Cannot write over the index file $BASEDIR/doc/explain.idx. Aborting" ++# exit 1 ++#} + + $LS $BASEDIR/doc/*.txt | + while read infile diff --git a/system/tiger/tiger.SlackBuild b/system/tiger/tiger.SlackBuild index e3ce594fb637..6f4f566ab20c 100644 --- a/system/tiger/tiger.SlackBuild +++ b/system/tiger/tiger.SlackBuild @@ -10,7 +10,7 @@ PRGNAM=tiger VERSION=${VERSION:-3.2.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -57,6 +57,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# The build errs on this +patch --verbose -p1 < $CWD/patches/tiger-3.2.3-build-fix.diff + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" export CFLAGS CXXFLAGS @@ -76,15 +79,15 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -install -D -m 0644 debian/cron.d $PKG/etc/cron.d/tiger.new -install -D -m 0640 debian/debian.ignore $PKG/etc/tiger/tiger.ignore.new +install -D -m 0644 $CWD/config/tiger.cron $PKG/etc/cron.d/tiger.new +install -D -m 0640 $CWD/config/tiger.ignore $PKG/etc/tiger/tiger.ignore.new # From the .spec: 3.- This should be done by the Makefile, grumble... install -D -m 0644 version.h $PKG/usr/lib/tiger/version.h # Remove unnecesary stuff ( cd $PKG - for system in AIX HPUX IRIX NeXT SunOS UNICOS UNICOSMK Tru64 MacOSX ; do + for system in AIX HPUX IRIX NeXT SunOS UNICOS UNICOSMK Tru64 MacOSX ; do rm -rf ./usr/libexec/tiger/systems/$system done find . -type d -name CVS | xargs -iX rm -rf "X" @@ -95,17 +98,20 @@ install -D -m 0644 version.h $PKG/usr/lib/tiger/version.h mv -v tigerrc tigerrc.new ) -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a [A-Z][A-Z]* site-* tigerrc* $PKG/usr/doc/$PRGNAM-$VERSION +cp -a [A-Z][A-Z]* site-* tigerrc* \ + $PKG/usr/doc/$PRGNAM-$VERSION +cp -a other/cert-usc20.txt contrib/fix_tiger_GROUPS.sh \ + $PKG/usr/doc/$PRGNAM-$VERSION + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/txt cp $PKG/usr/libexec/tiger/doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION/txt mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html cp $PKG/usr/libexec/tiger/html/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html + # Delete the redundant stuff rm -rf $PKG/usr/libexec/tiger/doc $PKG/usr/libexec/tiger/html cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/system/tiger/tiger.info b/system/tiger/tiger.info index dfe6a8f921ca..9e654314e3f0 100644 --- a/system/tiger/tiger.info +++ b/system/tiger/tiger.info @@ -7,4 +7,4 @@ DOWNLOAD_x86_64="" MD5SUM_x86_64="" MAINTAINER="Menno Duursma" EMAIL="druiloor@zonnet.nl" -APPROVED="rworkman" +APPROVED="dsomero" |