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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Nov 14 15:41:35 2004 UTC (15 years, 2 months ago) by swegener
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Version bump. Removed old ebuild.

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.1.1.ebuild,v 1.4 2004/08/05 23:47:55 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="mirror://sourceforge/ptlinksoft/${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 BPATH \"/usr/bin\"" > include/path.h
35 echo "#define DPATH \"/var/lib/ptlink-opm\"" >> include/path.h
36
37 emake || die "emake failed"
38 }
39
40 src_install() {
41 newbin src/ptopm ptlink-opm
42
43 keepdir /var/{lib,log}/ptlink-opm
44 dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log
45
46 insinto /etc/ptlink-opm
47 newins samples/ptopm.dconf.sample ptopm.dconf
48
49 dodoc CHANGES README
50
51 exeinto /etc/init.d
52 newexe ${FILESDIR}/ptlink-opm.init.d ptlink-opm
53 insinto /etc/conf.d
54 newins ${FILESDIR}/ptlink-opm.conf.d ptlink-opm
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