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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Sun Jan 26 19:58:35 2014 UTC (5 years, 8 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
removing the old and jankey and vulnerable as well for bug 496506

(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)

1 vapier 1.3 # Copyright 1999-2014 Gentoo Foundation
2 idl0r 1.1 # Distributed under the terms of the GNU General Public License v2
3 prometheanfire 1.4 # $Header: /var/cvsroot/gentoo-x86/net-misc/memcached/memcached-1.4.0-r2.ebuild,v 1.3 2014/01/08 06:19:21 vapier Exp $
4 idl0r 1.1
5 vapier 1.3 inherit eutils autotools flag-o-matic user
6 idl0r 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 armin76 1.2 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
17 idl0r 1.1 IUSE="test slabs-reassign"
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     epatch "${FILESDIR}/${PN}-1.3.3-gcc4-slab-fixup.patch"
32     sed -i -e 's,-Werror,,g' configure.ac || die "sed failed"
33     eautoreconf
34     use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
35     }
36    
37     src_compile() {
38     econf
39     emake || die "emake failed."
40     }
41    
42     src_install() {
43     emake DESTDIR="${D}" install || die "emake install failed."
44     dobin scripts/memcached-tool
45    
46     dodoc AUTHORS ChangeLog NEWS README TODO doc/{CONTRIBUTORS,*.txt}
47    
48     newconfd "${FILESDIR}"/1.3.3/conf memcached
49     newinitd "${FILESDIR}"/1.3.3/init memcached
50     }
51    
52     pkg_postinst() {
53     enewuser memcached -1 -1 /dev/null daemon
54    
55     elog "With this version of Memcached Gentoo now supports multiple instances."
56     elog "To enable this you should create a symlink in /etc/init.d/ for each instance"
57     elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
58     elog "Please see Gentoo bug #122246 for more info"
59     }
60    
61     src_test() {
62     emake -j1 test || die "Failed testing"
63     }

  ViewVC Help
Powered by ViewVC 1.1.20