aboutsummaryrefslogtreecommitdiffstats
path: root/main/memcached/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2011-04-13 10:37:05 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2011-04-13 10:37:05 +0000
commitd799936de683061e7c04c2fb34a6541d2fb2a6c4 (patch)
treeb0c95bac3229ad3ff54cae7658bd569f97e2b590 /main/memcached/APKBUILD
parent8728a1db8aad5cfec5228f65921fb4d777956037 (diff)
downloadaports-d799936de683061e7c04c2fb34a6541d2fb2a6c4.tar.bz2
aports-d799936de683061e7c04c2fb34a6541d2fb2a6c4.tar.xz
main/memcached: moved from testing to main
Diffstat (limited to 'main/memcached/APKBUILD')
-rw-r--r--main/memcached/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/memcached/APKBUILD b/main/memcached/APKBUILD
new file mode 100644
index 0000000000..fbbd9b1929
--- /dev/null
+++ b/main/memcached/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=memcached
+pkgver=1.4.5
+pkgrel=1
+pkgdesc="Distributed memory object caching system"
+url="http://memcached.org"
+arch="all"
+license="GPL"
+depends="perl"
+depends_dev="libevent-dev"
+makedepends="$depends_dev"
+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
+ $pkgname.confd
+ $pkgname.initd"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+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
+a5b61a9b9a92a2619d9e99338a9a2a64 0001-fix-type-punning-issues.patch
+9d7396bf77c72ca3845118424cd1898b memcached.confd
+cc344c9aead89042ca2fbf45cd3930a6 memcached.initd"