/[gentoo-x86]/net-misc/memcached/memcached-1.2.2-r2.ebuild
Gentoo

Contents of /net-misc/memcached/memcached-1.2.2-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Mar 31 12:03:52 2008 UTC (11 years, 5 months ago) by caleb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove older ebuilds
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/memcached-1.2.2-r2.ebuild,v 1.1 2007/11/27 00:04:37 robbat2 Exp $
4
5 inherit eutils
6
7 DESCRIPTION="High-performance, distributed memory object caching system"
8 HOMEPAGE="http://www.danga.com/memcached/"
9 SRC_URI="http://www.danga.com/memcached/dist/${P}.tar.gz"
10
11 LICENSE="BSD"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
14 IUSE="nptl"
15
16 RDEPEND=">=dev-libs/libevent-0.6
17 >=dev-perl/Cache-Memcached-1.24"
18 DEPEND="${RDEPEND}"
19
20 src_unpack() {
21 unpack ${A}
22 cd "${S}"
23
24 epatch "${FILESDIR}/${P}-fbsd.patch"
25 epatch "${FILESDIR}/${P}-p-threads.patch"
26 }
27
28 src_compile() {
29 econf $(use_enable nptl threads)
30 emake || die "emake failed."
31 }
32
33 src_install() {
34 emake DESTDIR="${D}" install || die "emake install failed."
35 dobin scripts/memcached-tool
36
37 dodoc AUTHORS ChangeLog NEWS README TODO doc/{CONTRIBUTORS,*.txt}
38
39 newconfd "${FILESDIR}"/1.1.13/conf memcached
40 newinitd "${FILESDIR}"/1.1.13/init memcached
41 }
42
43 pkg_postinst() {
44 enewuser memcached -1 -1 /dev/null daemon
45
46 elog "With this version of Memcached Gentoo now supports multiple instances."
47 elog "To enable this you must create a symlink in /etc/init.d/ for each instance"
48 elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
49 elog "Please see Gentoo bug #122246 for more info"
50 }

  ViewVC Help
Powered by ViewVC 1.1.20