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

Contents of /net-misc/memcached/memcached-1.4.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Jan 26 19:58:35 2014 UTC (5 years, 7 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 # Copyright 1999-2014 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.4.1-r1.ebuild,v 1.3 2014/01/08 06:19:21 vapier Exp $
4
5 EAPI=2
6 inherit eutils autotools flag-o-matic user
7
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 KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 ~s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
18 IUSE="test slabs-reassign debug"
19
20 RDEPEND=">=dev-libs/libevent-1.4
21 dev-lang/perl"
22 DEPEND="${RDEPEND}
23 test? ( virtual/perl-Test-Harness >=dev-perl/Cache-Memcached-1.24 )"
24
25 S="${WORKDIR}/${MY_P}"
26
27 src_prepare() {
28 epatch "${FILESDIR}/${PN}-1.2.2-fbsd.patch"
29 epatch "${FILESDIR}/${PN}-1.3.3-gcc4-slab-fixup.patch"
30 epatch "${FILESDIR}/${PN}-1.4.0-fix-as-needed-linking.patch"
31 sed -i -e 's,-Werror,,g' configure.ac || die "sed failed"
32 eautoreconf
33 use slabs-reassign && append-flags -DALLOW_SLABS_REASSIGN
34 }
35
36 src_compile() {
37 # There is a heavy degree of per-object compile flags
38 # Users do NOT know better than upstream. Trying to compile the testapp and
39 # the -debug version with -DNDEBUG _WILL_ fail.
40 append-flags -UNDEBUG
41 emake testapp memcached-debug CFLAGS="${CFLAGS}" || die "emake of testapp and memcached-debug failed."
42 filter-flags -UNDEBUG
43 emake || die "emake failed."
44 }
45
46 src_install() {
47 emake DESTDIR="${D}" install || die "emake install failed."
48 dobin scripts/memcached-tool
49 use debug && dobin memcached-debug
50
51 dodoc AUTHORS ChangeLog NEWS README TODO doc/{CONTRIBUTORS,*.txt}
52
53 newconfd "${FILESDIR}"/1.3.3/conf memcached
54 newinitd "${FILESDIR}"/1.3.3/init memcached
55 }
56
57 pkg_postinst() {
58 enewuser memcached -1 -1 /dev/null daemon
59
60 elog "With this version of Memcached Gentoo now supports multiple instances."
61 elog "To enable this you should create a symlink in /etc/init.d/ for each instance"
62 elog "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
63 elog "Please see Gentoo bug #122246 for more info"
64 }
65
66 src_test() {
67 emake -j1 test || die "Failed testing"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20