diff options
author | Conrado Ruch Jr <conradojr@gmail.com> | 2010-05-11 22:54:54 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:54:54 +0200 |
commit | a7d87e6789dd8f8905977cefbc3d1d59d488184e (patch) | |
tree | 54aafa2999f3256c7d32e62b742a67cf42b0c48e | |
parent | 2b1574a532681f799fce5b7f92382aefdddf7025 (diff) |
network/memcached: Added to 12.1 repository
-rw-r--r-- | network/memcached/README | 3 | ||||
-rw-r--r-- | network/memcached/memcached.SlackBuild | 59 | ||||
-rw-r--r-- | network/memcached/memcached.info | 8 | ||||
-rw-r--r-- | network/memcached/slack-desc | 18 |
4 files changed, 88 insertions, 0 deletions
diff --git a/network/memcached/README b/network/memcached/README new file mode 100644 index 0000000000000..c2470754ec4c2 --- /dev/null +++ b/network/memcached/README @@ -0,0 +1,3 @@ +memcached is a high-performance, distributed memory object caching system, +generic in nature, but intended for use in speeding up dynamic web +applications by alleviating database load. diff --git a/network/memcached/memcached.SlackBuild b/network/memcached/memcached.SlackBuild new file mode 100644 index 0000000000000..9d70c3d6a2a3c --- /dev/null +++ b/network/memcached/memcached.SlackBuild @@ -0,0 +1,59 @@ +#!/bin/sh + +# Slackware build script for memcached +# Written by Conrado Ruch Jr conradojr@gmail.com + +PRGNAM=memcached +VERSION=1.2.6 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP || exit 1 +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +cd $PRGNAM-$VERSION || exit 1 +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --enable-static=no \ + || exit 1 + +make || exit 1 +make install-strip DESTDIR=$PKG || exit 1 + +( cd $PKG/usr/man || exit + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README sample $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 diff --git a/network/memcached/memcached.info b/network/memcached/memcached.info new file mode 100644 index 0000000000000..74dd441d9329d --- /dev/null +++ b/network/memcached/memcached.info @@ -0,0 +1,8 @@ +PRGNAM="memcached" +VERSION="1.2.6" +HOMEPAGE="http://danga.com:80/memcached/" +DOWNLOAD="http://danga.com:80/memcached/dist/memcached-1.2.6.tar.gz" +MD5SUM="200d22f7ac2d114f74a6904552e9eb70" +MAINTAINER="Conrado Ruch Jr" +EMAIL="conradojr@gmail.com" +APPROVED="David Somero"
\ No newline at end of file diff --git a/network/memcached/slack-desc b/network/memcached/slack-desc new file mode 100644 index 0000000000000..2cf4bccc42bdb --- /dev/null +++ b/network/memcached/slack-desc @@ -0,0 +1,18 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler-----------------------------------------------------| +memcached: memcached (object caching system) +memcached: +memcached: memcached is a high-performance, distributed memory object +memcached: caching system, generic in nature, but intended for use in +memcached: speeding up dynamic web applications by alleviating database load. +memcached: +memcached: http://danga.com:80/memcached/ +memcached: +memcached: +memcached: |