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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Dec 31 20:36:19 2011 UTC (7 years, 8 months ago) by idl0r
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Revbump. Don't use deprecated start-stop-daemon options, bug 377311.

(Portage version: 2.1.10.41/cvs/Linux i686, RepoMan options: --force)

1 # Copyright 1999-2007 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-r1.ebuild,v 1.2 2007/11/18 15:03:03 robbat2 Exp $
4
5 inherit eutils
6
7 DESCRIPTION="memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load."
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