aboutsummaryrefslogtreecommitdiffstats
path: root/main/memcached/APKBUILD
blob: 23a808dfac5e532036ee5e4270a069e63488e6b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=memcached
pkgver=1.5.5
pkgrel=0
pkgdesc="Distributed memory object caching system"
url="https://memcached.org/"
arch="all"
license="BSD"
makedepends="cyrus-sasl-dev libevent-dev libseccomp-dev linux-headers"
install="$pkgname.pre-install"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.memcached.org/files/${pkgname}-${pkgver}.tar.gz
	$pkgname.confd
	$pkgname.initd"
builddir="${srcdir}/${pkgname}-${pkgver}"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-sasl \
		--enable-sasl-pwdb \
		--enable-seccomp
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir/$pkgname.initd" \
		"$pkgdir/etc/init.d/$pkgname"
	install -m644 -D "$srcdir/$pkgname.confd" \
		"$pkgdir/etc/conf.d/$pkgname"
}

sha1sums="29cb75cc234dbaceed6e89db029af8363706f0fe  memcached-1.5.4.tar.gz
a9c12a750a354c8d33849d106e285ddba150b6d2  memcached.confd
4092666ae58207034e0de40d25b15c6b6cd31b5f  memcached.initd"
sha512sums="38883600398b5d9378bb57508ed94b80ed2c4ef0e2610e328a60bcb79268f85c67c99159993040b36eac964138822862fa78f62c649560abc4818233b1b2f3d0  memcached-1.5.5.tar.gz
31bd788433b8021ed332f86d291e7f03222ae234520e52ba673b581d5da2adf5656e8f73e8b985df73258dea9b2a1b8ef36195163fe47a92fda59825deedfed4  memcached.confd
9615769b14175a25b50c9871b48c0635b5397ebe45231b43ee29a603eceb7b16bfc5ac744017b89b19082209c09597b3038a03ed0d5d9b45c60454d5b2717a55  memcached.initd"