diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild')
-rw-r--r-- | net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild new file mode 100644 index 000000000000..1f705ea294b7 --- /dev/null +++ b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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_configure() { + econf \ + --sysconfdir=/etc/ptlink-opm \ + --localstatedir=/var/lib/ptlink-opm +} + +src_install() { + newbin src/ptopm ptlink-opm + + insinto /etc/ptlink-opm + newins samples/ptopm.dconf.sample ptopm.dconf + doins samples/scan_rules.dconf + + keepdir /var/{lib,log}/ptlink-opm + dosym /var/log/ptlink-opm /var/lib/ptlink-opm/log + + dodoc CHANGES README || die "dodoc failed" + + newinitd "${FILESDIR}"/ptlink-opm.init.d ptlink-opm + newconfd "${FILESDIR}"/ptlink-opm.conf.d ptlink-opm +} + +pkg_postinst() { + enewuser ptlink-opm + chown ptlink-opm "${ROOT}"/var/{log,lib}/ptlink-opm +} |