From cd00d70b4c39859b0f4d9c9107297f5a2936837e Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Wed, 13 Apr 2011 09:18:55 +0000 Subject: testing/memcached: various fixes build against new libevent fix including init scripts update md5 added pre install user creation --- testing/memcached/APKBUILD | 16 ++++++++++++---- testing/memcached/memcached.pre-install | 5 +++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 testing/memcached/memcached.pre-install diff --git a/testing/memcached/APKBUILD b/testing/memcached/APKBUILD index db0607ae99..fbbd9b1929 100644 --- a/testing/memcached/APKBUILD +++ b/testing/memcached/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa pkgname=memcached pkgver=1.4.5 -pkgrel=0 +pkgrel=1 pkgdesc="Distributed memory object caching system" url="http://memcached.org" arch="all" @@ -10,10 +10,12 @@ license="GPL" depends="perl" depends_dev="libevent-dev" makedepends="$depends_dev" -install="" +install="$pkgname.pre-install" subpackages="$pkgname-dev $pkgname-doc" source="http://memcached.googlecode.com/files/$pkgname-$pkgver.tar.gz - 0001-fix-type-punning-issues.patch" + 0001-fix-type-punning-issues.patch + $pkgname.confd + $pkgname.initd" _builddir="$srcdir/$pkgname-$pkgver" @@ -36,7 +38,13 @@ build() { package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 + install -m755 -D "$srcdir/$pkgname.initd" \ + "$pkgdir/etc/init.d/$pkgname" || return 1 + install -m644 -D "$srcdir/$pkgname.confd" \ + "$pkgdir/etc/conf.d/$pkgname" || return 1 } md5sums="583441a25f937360624024f2881e5ea8 memcached-1.4.5.tar.gz -c4f6da682cb4e7599fede4904021f4ae 0001-fix-type-punning-issues.patch" +a5b61a9b9a92a2619d9e99338a9a2a64 0001-fix-type-punning-issues.patch +9d7396bf77c72ca3845118424cd1898b memcached.confd +cc344c9aead89042ca2fbf45cd3930a6 memcached.initd" diff --git a/testing/memcached/memcached.pre-install b/testing/memcached/memcached.pre-install new file mode 100644 index 0000000000..f9d7c71690 --- /dev/null +++ b/testing/memcached/memcached.pre-install @@ -0,0 +1,5 @@ +#!/bin/sh + +adduser -H -s /bin/false -D memcached 2>/dev/null +exit 0 + -- cgit v1.2.3