/[gentoo-x86]/net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild
Gentoo

Contents of /net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jan 8 06:37:57 2014 UTC (3 years, 11 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Inherit the user eclass for enewuser/etc...

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

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-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild,v 1.3 2004/11/25 21:46:53 swegener Exp $
4
5 inherit eutils user
6
7 MY_P="PTlink.OPM${PV}"
8
9 DESCRIPTION="PTlink Open Proxy Monitor"
10 HOMEPAGE="http://www.ptlink.net/"
11 SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ptopm/${MY_P}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~x86 ~ppc"
15 IUSE=""
16
17 RDEPEND=""
18 DEPEND=">=sys-apps/sed-4"
19
20 S=${WORKDIR}/${MY_P}
21
22 src_compile() {
23 econf \
24 --sysconfdir=/etc/ptlink-opm \
25 --localstatedir=/var/lib/ptlink-opm \
26 || die "econf failed"
27 emake || die "emake failed"
28 }
29
30 src_install() {
31 newbin src/ptopm ptlink-opm || die "newbin failed"
32
33 insinto /etc/ptlink-opm
34 newins samples/ptopm.dconf.sample ptopm.dconf || die "newins failed"
35 doins samples/scan_rules.dconf || die "doins failed"
36
37 keepdir /var/{lib,log}/ptlink-opm || die "keepdir failed"
38 dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log || die "dosym failed"
39
40 dodoc CHANGES README || die "dodoc failed"
41
42 newinitd ${FILESDIR}/ptlink-opm.init.d ptlink-opm || die "newinitd failed"
43 newconfd ${FILESDIR}/ptlink-opm.conf.d ptlink-opm || die "newconfd failed"
44 }
45
46 pkg_postinst() {
47 enewuser ptlink-opm
48 chown ptlink-opm ${ROOT}/var/{log,lib}/ptlink-opm
49 }

  ViewVC Help
Powered by ViewVC 1.1.20