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

Contents of /net-misc/memcached/memcached-1.2.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sat Dec 31 20:36:20 2011 UTC (7 years, 9 months ago) by idl0r
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Revbump. Don't use deprecated start-stop-daemon options, bug 377311.

(Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force)

1 robbat2 1.1 # Copyright 1999-2009 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 idl0r 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/memcached-1.2.8.ebuild,v 1.3 2009/07/26 12:40:22 ranger Exp $
4 robbat2 1.1
5 robbat2 1.2 inherit eutils autotools
6 robbat2 1.1
7     MY_PV="${PV/_rc/-rc}"
8     MY_P="${PN}-${MY_PV}"
9    
10     DESCRIPTION="High-performance, distributed memory object caching system"
11     HOMEPAGE="http://code.google.com/p/memcached/"
12     SRC_URI="http://memcached.googlecode.com/files/${MY_P}.tar.gz"
13    
14     LICENSE="BSD"
15     SLOT="0"
16 ranger 1.3 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
17 robbat2 1.1 IUSE="nptl test"
18    
19     RDEPEND=">=dev-libs/libevent-1.4
20     dev-lang/perl"
21     DEPEND="${RDEPEND}
22     test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )"
23    
24     S="${WORKDIR}/${MY_P}"
25    
26     src_unpack() {
27     unpack ${A}
28     cd "${S}"
29    
30     epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch"
31 robbat2 1.2 sed -i -e 's,-Werror,,g' configure.ac || die "sed failed"
32     eautoreconf
33 robbat2 1.1 }
34    
35     src_compile() {
36     econf $(use_enable nptl threads)
37     emake || die "emake failed."
38     }
39    
40     src_install() {
41     emake DESTDIR="${D}" install || die "emake install failed."
42     dobin scripts/memcached-tool
43    
44     dodoc AUTHORS ChangeLog NEWS README TODO doc/{CONTRIBUTORS,*.txt}
45    
46     newconfd "${FILESDIR}"/1.2.6/conf memcached
47     newinitd "${FILESDIR}"/1.2.6/init memcached
48     }
49    
50     pkg_postinst() {
51     enewuser memcached -1 -1 /dev/null daemon
52    
53     elog "With this version of Memcached Gentoo now supports multiple instances."
54     elog "To enable this you must create a symlink in /etc/init.d/ for each instance"
55     elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
56     elog "Please see Gentoo bug #122246 for more info"
57     }
58    
59     src_test() {
60     emake -j1 test || die "Failed testing"
61     }

  ViewVC Help
Powered by ViewVC 1.1.20