#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-slrn VERSION=0.9.8.1 ARCH=alpha BUILD=1 mkdir -p $PKG ( cd $TMP tar xjf $CWD/slrn-$VERSION.tar.bz2 cd slrn-$VERSION chown -R root.root . zcat $CWD/slrn.slrnfeat.diff.gz | patch -p1 ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-docdir=/usr/doc \ --with-ssl \ --with-slrnpull \ --enable-setgid-code \ --with-server-file=/etc/nntpserver make make install DESTDIR=$PKG chown root.news $PKG/usr/bin/slrnpull mkdir -p $PKG/usr/tmp mv $PKG/usr/doc/* $PKG/usr/tmp mkdir -p $PKG/usr/doc/slrn-$VERSION mv $PKG/usr/tmp/* $PKG/usr/doc/slrn-$VERSION rm -rf $PKG/usr/tmp # big chmod 2750 $PKG/usr/bin/slrnpull mkdir -p $PKG/var/spool/slrnpull/data mkdir -p $PKG/var/spool/slrnpull/news mkdir -p $PKG/var/spool/slrnpull/out.going mkdir -p $PKG/var/spool/slrnpull/out.going/rejects cp -a $PKG/usr/doc/slrn-$VERSION/slrnpull/slrnpull.conf $PKG/var/spool/slrnpull mv $PKG/usr/doc/slrn-$VERSION/score.sl $PKG/usr/share/slrn/macros chown -R news.news $PKG/var/spool/slrnpull chmod 3777 $PKG/var/spool/slrnpull/out.going $PKG/var/spool/slrnpull/out.going/rejects mkdir -p $PKG/etc cp -a $PKG/usr/doc/slrn-$VERSION/slrn.rc $PKG/etc/slrn.rc gzip -9 $PKG/usr/man/man1/* strip --strip-unneeded $PKG/usr/bin/* chown root.bin $PKG/usr/bin chown root.bin $PKG/usr/bin/slrn mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/slrn-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/slrn.build.log