IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src STRIPLIB=y STRIPBIN=y VERSION=0.9.8.0 PROGNAME="slrn $VERSION" DESC="\ slrn (s-lang read news) \n\ \n\ slrn is an easy to use but powerful newsreader. It is highly \n\ customizable, supports scoring, free key bindings, and can be extended \n\ using the s-lang macro language. \n\ \n\ slrn was written by John E. Davis, and is maintained by Thomas \n\ Schultz." BUILD=1 MAINTAINER="Mark Post " SOURCE=ftp://ftp.gnu.org/pub/gnu/slrn PKGNAME=slrn-$VERSION-s390-$BUILD TAG=OPT compile() { tar -yxvf $CWD/slrn-$VERSION.tar.bz2 cd slrn-$VERSION/ chown -R root.root . zcat $CWD/slrn.slrnfeat.diff.gz | patch -p1 CFLAGS=-O2 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --with-ssl \ --with-slrnpull \ --enable-setgid-code \ --with-server-file=/etc/nntpserver make } install() { make install DESTDIR=/package-slrn mkdir -p /package-slrn/usr/doc mv /package-slrn/usr/share/doc/slrn /package-slrn/usr/doc/slrn-$VERSION rmdir /package-slrn/usr/share/doc rm -rf /package-slrn/usr/doc/slrn-$VERSION/changes mkdir -p /package-slrn/var/spool/slrnpull/data \ /package-slrn/var/spool/slrnpull/news \ /package-slrn/var/spool/slrnpull/out.going/rejects cp -a /package-slrn/usr/doc/slrn-$VERSION/slrnpull/slrnpull.conf \ /package-slrn/var/spool/slrnpull/ mkdir -p /package-slrn/etc cp -a /package-slrn/usr/doc/slrn-$VERSION/slrn.rc /package-slrn/etc/ ( cd /package-slrn/usr/man/man1 rm -f *.gz gzip -9 *.1 ) } attributes() { chown -R root.bin $PKG/package-slrn/usr/bin chown root.news $PKG/package-slrn/usr/bin/slrnpull chmod 2750 $PKG/package-slrn/usr/bin/slrnpull chown -R news.news $PKG/package-slrn/var/spool/slrnpull chmod 3777 $PKG/package-slrn/var/spool/slrnpull/out.going \ $PKG/package-slrn/var/spool/slrnpull/out.going/rejects } special() { cd $PKG mv package-slrn/* ./ rmdir package-slrn cd $CTL cat $CWD/slack-desc > slack-desc sed -e 's%package-slrn/%%g' doinst.sh > doinst.sh.new cat doinst.sh.new > doinst.sh rm doinst.sh.new }