updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / memcached-repcached / PKGBUILD
blob9b41f7687ff3e77476ef461420cb77f88a43cfc0
1 # Maintainer: Yanchenko Igor (yanchenko.igor@gmail.com)
3 _pkgname=memcached
4 _patchname=repcached
5 pkgname=${_pkgname}-${_patchname}
6 _memcache_pkgver=1.2.8
7 _patchver=2.2
8 pkgver=${_patchver}_${_memcache_pkgver}
9 pkgrel=2
10 pkgdesc="A distributed memory object caching system with replication patch (repcached)"
11 arch=(i686 x86_64)
12 url="http://memcached.org/"
13 license=('GPL')
14 depends=('libevent')
15 optdepends=('perl: for memcached-tool usage')
16 backup=('etc/conf.d/memcached-repcached')
17 source=("http://downloads.sourceforge.net/project/repcached/repcached/${_patchver}-${_memcache_pkgver}/${_pkgname}-${_memcache_pkgver}-${_patchname}-${_patchver}.tar.gz"
18         memcached-repcached.conf
19         memcached-repcached.sh)
21 build() {
22   cd $srcdir/memcached-${_memcache_pkgver}-repcached-${_patchver}
23   ./configure --prefix=/usr --enable-replication
24   make || return 1
27 package() {
28   cd $srcdir/memcached-${_memcache_pkgver}-repcached-${_patchver}
29   make DESTDIR=$pkgdir install || return 1
30   mv $pkgdir/usr/bin/memcached $pkgdir/usr/bin/memcached-repcached
31   mv $pkgdir/usr/bin/memcached-debug $pkgdir/usr/bin/memcached-repcached
32   mv $pkgdir/usr/share/man/man1/memcached.1 $pkgdir/usr/share/man/man1/memcached-repcached.1 
33   install -D -m 755 scripts/memcached-tool $pkgdir/usr/bin/memcached-repcached-tool
34   install -D -m 644 $srcdir/$pkgname.conf $pkgdir/etc/conf.d/$pkgname
35   install -D -m 755 $srcdir/$pkgname.sh $pkgdir/etc/rc.d/$pkgname
38 md5sums=('e2da22ab46c68f56d8ef4014de329347'
39          'bf15619930dadf0c08669566e4aa809c'
40          'ce275a17eea266ab7696fa4515b271fb')