#!/ffp/bin/sh # # cyrus-sasl build script for funplug # # I'm not installing a bootscript BTW... set -e CWD=`pwd` PKGNAME=cyrus-sasl PKG=$CWD/package-$PKGNAME VERSION=2.1.24rc1 SRCDIR=2.1.24 BUILD=1 TAG=jag PKGDIR=/ffp/var/cache/packages URL=ftp://ftp.andrew.cmu.edu/pub/cyrus CLEANUP=yes # Make the package directory if not found: if [ ! -d $PKGDIR ]; then mkdir -p $PKGDIR fi # Grab the source ( mkdir -p source && cd source wget -N $URL/$PKGNAME-$VERSION.tar.gz ) rm -rf $PKG mkdir -p $PKG echo echo "$PKGNAME-$VERSION source is now extracting..." rm -rf $PKGNAME-$SRCDIR tar xf $CWD/source/$PKGNAME-$VERSION.tar.gz cd $PKGNAME-$SRCDIR chown -R root:root . CFLAGS="-march=armv5te -O2" \ ./configure --prefix=/ffp \ --sysconfdir=/ffp/etc \ --with-dbpath=/ffp/var/lib/sasl/sasldb2 \ --with-saslauthd=/ffp/var/run/saslauthd \ --mandir=/ffp/share/man \ --with-plugindir=/ffp/lib/sasl2 \ --disable-anon \ --without-ldap make make install DESTDIR=$PKG install -m 700 -d $PKG/ffp/var/lib/sasl $PKG/ffp/var/run/saslauthd # Strip: find $PKG | xargs file | grep -e "executable" -e "shared object" \ | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null \ | true # Build the package: cd $PKG echo && echo "Making funplug package..." && echo tar czvf $PKGDIR/$PKGNAME-$VERSION-$BUILD$TAG.tgz * echo && echo "Your $PKGNAME package is in $PKGDIR" && echo # Clean up: [[ $CLEANUP == yes ]] && \ rm -rf $CWD/$PKGNAME-$SRCDIR $CWD/package-$PKGNAME exit 1