summaryrefslogtreecommitdiff
path: root/network/memcached/memcached.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'network/memcached/memcached.SlackBuild')
-rw-r--r--network/memcached/memcached.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/network/memcached/memcached.SlackBuild b/network/memcached/memcached.SlackBuild
index 812cbbe98f..07f70fb69c 100644
--- a/network/memcached/memcached.SlackBuild
+++ b/network/memcached/memcached.SlackBuild
@@ -26,9 +26,10 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Originally written by Conrado Ruch Jr conradojr@gmail.com
+# Added rc startup script contributed by Miguel De Anda
PRGNAM="memcached"
-VERSION=${VERSION:-1.4.17}
+VERSION=${VERSION:-1.4.21}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -79,7 +80,7 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
./configure \
@@ -97,13 +98,15 @@ make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+install -D -m 0644 $CWD/rc.memcached $PKG/etc/rc.d/rc.memcached.new
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING ChangeLog \
- NEWS README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog NEWS README.md $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}