summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2004-11-25 21:46:53 +0000
committerSven Wegener <swegener@gentoo.org>2004-11-25 21:46:53 +0000
commit3d73db6e755164a439c4e24c4e6bfce4ac7f9ba7 (patch)
treed5f838c70e7a2f425881d85e3bf00ee04d084a4d /net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild
parentSupports ghc-package.eclass now (bug #69270). Added ~amd64 flag (bug #58590).... (diff)
downloadgentoo-2-3d73db6e755164a439c4e24c4e6bfce4ac7f9ba7.tar.gz
gentoo-2-3d73db6e755164a439c4e24c4e6bfce4ac7f9ba7.tar.bz2
gentoo-2-3d73db6e755164a439c4e24c4e6bfce4ac7f9ba7.zip
There's no need to override path.h because the configure script has options for it.
Diffstat (limited to 'net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild')
-rw-r--r--net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild27
1 files changed, 8 insertions, 19 deletions
diff --git a/net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild b/net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild
index a757e74e1427..7eb6caa0fec1 100644
--- a/net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild
+++ b/net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-irc/ptlink-opm/ptlink-opm-1.3.1.ebuild,v 1.2 2004/11/25 20:38:38 swegener Exp $
+# $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 $
inherit eutils
@@ -19,35 +19,24 @@ DEPEND=">=sys-apps/sed-4"
S=${WORKDIR}/${MY_P}
-src_unpack() {
- unpack ${A}
- sed -i \
- -e 's:ptopm\.dconf:/etc/ptlink-opm/ptopm.dconf:' \
- -e 's:ptopm\.log:log/ptopm.log:' \
- ${S}/src/ptopm.c
-}
-
src_compile() {
- econf || die "econf failed"
-
- # Now we're going to override the paths setup by configure
- echo "#define BINPATH \"/usr/bin\"" > include/path.h
- echo "#define VARPATH \"/var/lib/ptlink-opm\"" >> include/path.h
- echo "#define ETCPATH \"/etc\"" >> include/path.h
-
+ econf \
+ --sysconfdir=/etc/ptlink-opm \
+ --localstatedir=/var/lib/ptlink-opm \
+ || die "econf failed"
emake || die "emake failed"
}
src_install() {
newbin src/ptopm ptlink-opm || die "newbin failed"
- keepdir /var/{lib,log}/ptlink-opm || die "keepdir failed"
- dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log || die "dosym failed"
-
insinto /etc/ptlink-opm
newins samples/ptopm.dconf.sample ptopm.dconf || die "newins failed"
doins samples/scan_rules.dconf || die "doins failed"
+ keepdir /var/{lib,log}/ptlink-opm || die "keepdir failed"
+ dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log || die "dosym failed"
+
dodoc CHANGES README || die "dodoc failed"
newinitd ${FILESDIR}/ptlink-opm.init.d ptlink-opm || die "newinitd failed"