diff options
author | Derek Noonburg <derekn@foolabs.com> | 2013-10-27 02:59:47 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-27 23:39:01 -0500 |
commit | 22f0b340c3a440e2dac469a44e07980e412fef66 (patch) | |
tree | 275ecb641a16fe6535201df4b82444c656f0c0d8 /network/courier-authlib/courier-authlib.SlackBuild | |
parent | 79ee353aab46b79b4d05312d294a02ff379c3b21 (diff) |
network/courier-authlib: Added (Courier authentication library)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/courier-authlib/courier-authlib.SlackBuild')
-rw-r--r-- | network/courier-authlib/courier-authlib.SlackBuild | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/network/courier-authlib/courier-authlib.SlackBuild b/network/courier-authlib/courier-authlib.SlackBuild new file mode 100644 index 0000000000000..97707268b96c4 --- /dev/null +++ b/network/courier-authlib/courier-authlib.SlackBuild @@ -0,0 +1,87 @@ +#!/bin/sh + +# Slackware build script for mod_fastcgi + +# Written by Derek Noonburg (derekn@foolabs.com) +# 2013-05-15 +# Released into the public domain. + +PRGNAM=courier-authlib +VERSION=${VERSION:-0.65.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG="$TMP/package-$PRGNAM" +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e # exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R operator . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --build=$ARCH-slackware-linux \ + --with-authshadow + +make +make install DESTDIR=$PKG +make install-configure 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 + +gzip -9 $PKG/usr/man/*/* +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +for f in authdaemonrc authldaprc authmysqlrc ; do + mv $PKG/etc/authlib/$f $PKG/etc/authlib/$f.new +done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README INSTALL COPYING COPYING.GPL AUTHORS NEWS README* \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc -type f -exec chmod 0644 {} \; + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |