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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu Nov 25 21:46:53 2004 UTC (15 years, 2 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
There's no need to override path.h because the configure script has options for it.

1 # Copyright 1999-2004 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.0.ebuild,v 1.3 2004/11/25 20:38:38 swegener Exp $
4
5 inherit eutils
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_unpack() {
23 unpack ${A}
24 sed -i \
25 -e 's:ptopm\.dconf:/etc/ptlink-opm/ptopm.dconf:' \
26 -e 's:ptopm\.log:log/ptopm.log:' \
27 ${S}/src/ptopm.c
28 }
29
30 src_compile() {
31 econf || die "econf failed"
32
33 # Now we're going to override the paths setup by configure
34 echo "#define BINPATH \"/usr/bin\"" > include/path.h
35 echo "#define VARPATH \"/var/lib/ptlink-opm\"" >> include/path.h
36 echo "#define ETCPATH \"/etc\"" >> include/path.h
37
38 emake || die "emake failed"
39 }
40
41 src_install() {
42 newbin src/ptopm ptlink-opm || die "newbin failed"
43
44 keepdir /var/{lib,log}/ptlink-opm || die "keepdir failed"
45 dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log || die "dosym failed"
46
47 insinto /etc/ptlink-opm
48 newins samples/ptopm.dconf.sample ptopm.dconf || die "newins failed"
49 doins samples/scan_rules.dconf || die "doins failed"
50
51 dodoc CHANGES README || die "dodoc failed"
52
53 newinitd ${FILESDIR}/ptlink-opm.init.d ptlink-opm || die "newinitd failed"
54 newconfd ${FILESDIR}/ptlink-opm.conf.d ptlink-opm || die "newconfd failed"
55 }
56
57 pkg_postinst() {
58 enewuser ptlink-opm
59 chown ptlink-opm ${ROOT}/var/{log,lib}/ptlink-opm
60 }

  ViewVC Help
Powered by ViewVC 1.1.20