blob: 5e5c5036f33663eda79744170522f66371cfef83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2014 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.4 2014/01/08 06:37:57 vapier Exp $
inherit eutils user
MY_P="PTlink.OPM${PV}"
DESCRIPTION="PTlink Open Proxy Monitor"
HOMEPAGE="http://www.ptlink.net/"
SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ptopm/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
RDEPEND=""
DEPEND=">=sys-apps/sed-4"
S=${WORKDIR}/${MY_P}
src_compile() {
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"
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"
newconfd ${FILESDIR}/ptlink-opm.conf.d ptlink-opm || die "newconfd failed"
}
pkg_postinst() {
enewuser ptlink-opm
chown ptlink-opm ${ROOT}/var/{log,lib}/ptlink-opm
}
|