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

Contents of /net-misc/memcached/memcached-1.4.8-r1.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.8-r1.ebuild,v 1.3 2014/01/08 06:19:21 vapier Exp $
4 idl0r 1.1
5     EAPI=2
6 vapier 1.3 inherit eutils autotools flag-o-matic user
7 idl0r 1.1
8     MY_PV="${PV/_rc/-rc}"
9     MY_P="${PN}-${MY_PV}"
10    
11     DESCRIPTION="High-performance, distributed memory object caching system"
12     HOMEPAGE="http://code.google.com/p/memcached/"
13     SRC_URI="http://memcached.googlecode.com/files/${MY_P}.tar.gz"
14    
15     LICENSE="BSD"
16     SLOT="0"
17 armin76 1.2 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
18 idl0r 1.1 IUSE="test slabs-reassign debug sasl" # hugetlbfs later
19    
20     RDEPEND=">=dev-libs/libevent-1.4
21     dev-lang/perl
22     sasl? ( dev-libs/cyrus-sasl )"
23     DEPEND="${RDEPEND}
24     test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )"
25    
26     S="${WORKDIR}/${MY_P}"
27    
28     src_prepare() {
29     epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch"
30     # Handled different upstream
31     #epatch "${FILESDIR}/${PN}-1.3.3-gcc4-slab-fixup.patch"
32     epatch "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch"
33     epatch "${FILESDIR}/${PN}-1.4.4-as-needed.patch"
34     sed -i -e 's,-Werror,,g' configure.ac || die "sed failed"
35     eautoreconf
36     use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
37     }
38    
39     src_configure() {
40     econf \
41     --disable-docs \
42     $(use_enable sasl)
43     # The xml2rfc tool to build the additional docs requires TCL :-(
44     # `use_enable doc docs`
45     }
46    
47     src_compile() {
48     # There is a heavy degree of per-object compile flags
49     # Users do NOT know better than upstream. Trying to compile the testapp and
50     # the -debug version with -DNDEBUG _WILL_ fail.
51     append-flags -UNDEBUG
52     emake testapp memcached-debug CFLAGS="${CFLAGS}" || die "emake of testapp and memcached-debug failed."
53     filter-flags -UNDEBUG
54     emake || die "emake failed."
55     }
56    
57     src_install() {
58     emake DESTDIR="${D}" install || die "emake install failed."
59     dobin scripts/memcached-tool
60     use debug && dobin memcached-debug
61    
62     dodoc AUTHORS ChangeLog NEWS README doc/{CONTRIBUTORS,*.txt}
63    
64     newconfd "${FILESDIR}"/1.3.3/conf memcached
65     newinitd "${FILESDIR}"/1.3.3/init memcached
66     }
67    
68     pkg_postinst() {
69     enewuser memcached -1 -1 /dev/null daemon
70    
71     elog "With this version of Memcached Gentoo now supports multiple instances."
72     elog "To enable this you should create a symlink in /etc/init.d/ for each instance"
73     elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
74     elog "Please see Gentoo bug #122246 for more info"
75     }
76    
77     src_test() {
78     emake -j1 test || die "Failed testing"
79     }

  ViewVC Help
Powered by ViewVC 1.1.20