summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin English <wizardedit@gentoo.org>2016-05-02 18:43:51 -0500
committerAustin English <wizardedit@gentoo.org>2016-05-02 18:43:51 -0500
commit1f52baaefd3b5bb995d64f11df12433dfa9c8a5e (patch)
treea4fb53a18cd48fde5db835cee785dafe05a9bf52 /net-irc
parentnet-irc/ptlink-ircd: remove old versions (diff)
downloadgentoo-1f52baaefd3b5bb995d64f11df12433dfa9c8a5e.tar.gz
gentoo-1f52baaefd3b5bb995d64f11df12433dfa9c8a5e.tar.bz2
gentoo-1f52baaefd3b5bb995d64f11df12433dfa9c8a5e.zip
net-irc/ptlink-opm: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/ptlink-opm/files/ptlink-opm.init.d4
-rw-r--r--net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild49
2 files changed, 51 insertions, 2 deletions
diff --git a/net-irc/ptlink-opm/files/ptlink-opm.init.d b/net-irc/ptlink-opm/files/ptlink-opm.init.d
index 0994939065f..8e5046768dc 100644
--- a/net-irc/ptlink-opm/files/ptlink-opm.init.d
+++ b/net-irc/ptlink-opm/files/ptlink-opm.init.d
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2004 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 00000000000..c4f0851f5a3
--- /dev/null
+++ b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}