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

Contents of /net-misc/memcached/memcached-1.1.13-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri May 15 18:03:51 2015 UTC (4 years, 6 months ago) by prometheanfire
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
bup for bug 549192

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

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

  ViewVC Help
Powered by ViewVC 1.1.20