diff options
author | Conrado Ruch Jr <conradojr@gmail.com> | 2010-05-13 00:37:09 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:37:09 +0200 |
commit | 97f1e307dfccd9bfecaabd5d814916c9549aaf81 (patch) | |
tree | 8aa272a46ccf8a60efd8aa63463b3ee2f3e36c37 /network/memcached/memcached.SlackBuild | |
parent | 65331254f1de2c8394b7ca9e9d5e7c0e08efae0d (diff) | |
download | slackbuilds-97f1e307dfccd9bfecaabd5d814916c9549aaf81.tar.gz |
network/memcached: Updated for version 1.2.8
Diffstat (limited to 'network/memcached/memcached.SlackBuild')
-rw-r--r-- | network/memcached/memcached.SlackBuild | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/network/memcached/memcached.SlackBuild b/network/memcached/memcached.SlackBuild index 9d70c3d6a2..70a009ed0d 100644 --- a/network/memcached/memcached.SlackBuild +++ b/network/memcached/memcached.SlackBuild @@ -4,7 +4,7 @@ # Written by Conrado Ruch Jr conradojr@gmail.com PRGNAM=memcached -VERSION=1.2.6 +VERSION=1.2.8 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -16,32 +16,37 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" - elif [ "$ARCH" = "x86_64" ]; then + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 -cd $PRGNAM-$VERSION || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --enable-static=no \ - || exit 1 + --build=$ARCH-slackware-linux -make || exit 1 -make install-strip DESTDIR=$PKG || exit 1 +make +make install-strip DESTDIR=$PKG ( cd $PKG/usr/man || exit find . -type f -exec gzip -9 {} \; @@ -49,11 +54,13 @@ make install-strip DESTDIR=$PKG || exit 1 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README sample $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING ChangeLog NEWS README TODO \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |