#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-fetchmail VERSION=6.2.4 ARCH=sparc BUILD=1 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi cd $TMP tar xjvf $CWD/fetchmail-$VERSION.tar.bz2 cd fetchmail-$VERSION # this is the sloppiest source tarball ever chown -R root.root . find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 400 -exec chmod 644 {} \; find . -perm 440 -exec chmod 644 {} \; find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 511 -exec chmod 755 {} \; find . -perm 711 -exec chmod 755 {} \; find . -perm 555 -exec chmod 755 {} \; CFLAGS="-O2" LDFLAGS=-s ./configure \ --prefix=/usr \ --enable-nls \ --with-ssl \ sparc-slackware-linux make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/fetchmail-$VERSION cp -a \ ABOUT-NLS COPYING FAQ FEATURES INSTALL MANIFEST NEWS NOTES README README.NTLM README.SSL TODO \ *.html contrib *.lsm \ $PKG/usr/doc/fetchmail-$VERSION rm -rf $PKG/usr/doc/fetchmail-$VERSION/RCS $PKG/usr/doc/fetchmail-$VERSION/contrib/RCS mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc gzip -9 $PKG/usr/man/man1/* cd $PKG makepkg -l y -c n $TMP/fetchmail-$VERSION-$ARCH-$BUILD.tgz