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

Contents of /net-misc/memcached/memcached-1.2.1-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, 11 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.2.1-r2.ebuild,v 1.3 2014/01/08 06:19:21 vapier Exp $
4 idl0r 1.1
5 vapier 1.3 inherit eutils user
6 idl0r 1.1
7     MY_PV="${PV/_pre/-pre}"
8     MY_P="${PN}-${MY_PV}"
9 patrick 1.2 DESCRIPTION="High-performance, distributed memory object caching system"
10 idl0r 1.1 HOMEPAGE="http://www.danga.com/memcached/"
11     SRC_URI="http://www.danga.com/memcached/dist/${MY_P}.tar.gz"
12    
13     LICENSE="BSD"
14     SLOT="0"
15     KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
16     IUSE="static perl doc"
17    
18     DEPEND=">=dev-libs/libevent-0.6
19     perl? ( dev-perl/Cache-Memcached )"
20    
21     S=${WORKDIR}/${MY_P}
22    
23     src_compile() {
24     local myconf=""
25     use static || myconf="--disable-static ${myconf}"
26     econf ${myconf} || die "econf failed"
27     emake || die
28     }
29    
30     src_install() {
31     dobin "${S}"/memcached
32     dodoc "${S}"/{AUTHORS,COPYING,ChangeLog,INSTALL,NEWS,README}
33    
34     newconfd "${FILESDIR}/1.1.13/conf" memcached
35     newinitd "${FILESDIR}/1.1.13/init" memcached
36    
37     doman "${S}"/doc/memcached.1
38    
39     if use doc; then
40     dodoc "${S}"/doc/{memory_management.txt,protocol.txt}
41     fi
42     }
43    
44     pkg_postinst() {
45     enewuser memcached -1 -1 /dev/null daemon
46     einfo "With this version of Memcached Gentoo now supports multiple instances."
47     einfo "To enable this you must create a symlink in /etc/init.d/ for each instance"
48     einfo "to /etc/init.d/memcached and create the matching conf files in /etc/conf.d/"
49     einfo "Please see Gentoo bug #122246 for more info"
50     }

  ViewVC Help
Powered by ViewVC 1.1.20