1 # Maintainer: Yanchenko Igor (yanchenko.igor@gmail.com)
5 pkgname=${_pkgname}-${_patchname}
8 pkgver=${_patchver}_${_memcache_pkgver}
10 pkgdesc="A distributed memory object caching system with replication patch (repcached)"
12 url="http://memcached.org/"
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)
22 cd $srcdir/memcached-${_memcache_pkgver}-repcached-${_patchver}
23 ./configure --prefix=/usr --enable-replication
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')