aboutsummaryrefslogblamecommitdiffstats
path: root/main/memcached/APKBUILD
blob: 1e597d6faec67b3852a19eea18bbaf18a33dbb05 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                   
            
        
                                                  
                           
          
             

                                                                                   
                              
                                       
                                                                   

                       
                                   
 
         
                                          
                                                           
                          
                        
                                                       

            
                      
                     

                                   
                               

                                    

                                  
            

 




                      
           
                      


                                                   
                                                   
                                             

 
                                                                                                                                                                    
                                                                                                                                                 
                                                                                                                                                  
# Contributor: Jeff Bilyk <jbilyk@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=memcached
pkgver=1.5.8
pkgrel=0
pkgdesc="Distributed memory object caching system"
url="http://memcached.org/"
arch="all"
license="BSD"
depends_dev="${pkgname}=${pkgver}-r${pkgrel}"
makedepends="$depends_dev 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() {
	# extstore is broken on non-x86_64
	# https://github.com/memcached/memcached/issues/319
	local _extstore=''
	case "$CARCH" in
		x86_64) _extstore='--enable-extstore';;
	esac

	cd "$builddir"
	./configure \
		--build="$CBUILD" \
		--host="$CHOST" \
		--prefix=/usr \
		--enable-sasl \
		--enable-sasl-pwdb \
		--enable-seccomp \
		$_extstore
	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"
}

sha512sums="6f0e3ce9cae3e424c41223597353b9520e7e7f97fb4719a5d520dfd34e1d917d4ee0e42bced0a5799042227b80bc4ed2778715a71b9941239db13cb367bdb088  memcached-1.5.8.tar.gz
31bd788433b8021ed332f86d291e7f03222ae234520e52ba673b581d5da2adf5656e8f73e8b985df73258dea9b2a1b8ef36195163fe47a92fda59825deedfed4  memcached.confd
9615769b14175a25b50c9871b48c0635b5397ebe45231b43ee29a603eceb7b16bfc5ac744017b89b19082209c09597b3038a03ed0d5d9b45c60454d5b2717a55  memcached.initd"