summaryrefslogtreecommitdiff
path: root/net-irc/ptlink-opm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-irc/ptlink-opm
reinit the tree, so we can have metadata
Diffstat (limited to 'net-irc/ptlink-opm')
-rw-r--r--net-irc/ptlink-opm/Manifest7
-rw-r--r--net-irc/ptlink-opm/files/ptlink-opm.conf.d5
-rw-r--r--net-irc/ptlink-opm/files/ptlink-opm.init.d21
-rw-r--r--net-irc/ptlink-opm/metadata.xml5
-rw-r--r--net-irc/ptlink-opm/ptlink-opm-1.3.1-r1.ebuild48
5 files changed, 86 insertions, 0 deletions
diff --git a/net-irc/ptlink-opm/Manifest b/net-irc/ptlink-opm/Manifest
new file mode 100644
index 000000000000..6735b0a35a91
--- /dev/null
+++ b/net-irc/ptlink-opm/Manifest
@@ -0,0 +1,7 @@
+AUX ptlink-opm.conf.d 164 SHA256 22c8a7596fbfd50a955fca1399f8dae278b026b55ec9cb3a13c119f27b78104d SHA512 a0fd7fca178cc1b8416c7f08d0d86e756c84bfed8256b77051a05d3a1aed95406c4eb759438b50a05cf81b4e3755b606265e2fb1cb2d1edf92b442a1aebc2f4a WHIRLPOOL 1dd0f450e711dbf7380e7345753b66c16d6d591e72a300b99e5705442da6be4a868d79a17d3f57ced811a044ce45f3d7c0dae4b838a830ef2e7af22bddd32619
+AUX ptlink-opm.init.d 428 SHA256 807a75bf2e8fd9a0cc3edfa482d7c8aa8732b35d874e4226049759200e974f36 SHA512 411034db9dec378ddfe2692fb85eba1fc6f2124fd9dd4ec79224dcd3cf6219748e6dfd43151a99f86978f8eb577cb304f1fde6b7b835156d9dee7c22ce3ece6d WHIRLPOOL 0a04c926d5718bff10ceee6e3fb0295f789701b9fad67cfd4dc8a603c5a78062e98210688458e1d067a0e0f18b5aad69a91b04a89af5f3c8b42aa9b6d5a373d1
+DIST PTlink.OPM1.3.1.tar.gz 156068 SHA256 0392e9e2a121fd3ae529c49306cfc7450236c6881ff38134f86883c16a26802a SHA512 1a8955486db8c1a318dda1b7bfdaf1be9f55d68a5acafde37a5f15e80e21b8d45c51138efb9d5ca1d1fad9f46d0ccdc4b91cf9128ba2ca7086f1c0925a36a141 WHIRLPOOL 6d814f14a612717f0d3e74e8f050b3b27e20a0adf62ba93a5b9cfd314212ece0e9f3a9567814f967f7eed66816020ec1318529a5f6904914803c49fccf4a331e
+EBUILD ptlink-opm-1.3.1-r1.ebuild 1004 SHA256 b11739309cedbd4b9a16b0abe4a5ed6fc6daf7a7b08eff6213dfe57619265d58 SHA512 59f030ec2c9f5e23b24ca5ac834fac44497fed5e89c85de6a47847671f597a599cc4916619069dc2d882e07e36e1d4cdd973a433d285bf5ad13db01ce8c6c452 WHIRLPOOL 524bb31cd5837cc3590ca749a78733946581fec24a30ecb984e6ce015e1aef1793631ea5e5a39c053deba7fd5f6005735dc6a6fa0a32e99e5126508bebcab8c9
+MISC ChangeLog 2937 SHA256 93bc8733a63c8aa5dd5789e3580c17412e8cafdc9bd8a4f1051f3f4971aefa3e SHA512 342fb6df6040f4c7a8e153428c2b3475d4ad3c2984cc50f0694b5d1198a6e4047ec9e8440b91c16e1e05d290667c32acb67730e371996e39c56ebb10b66cc379 WHIRLPOOL d594c87ca5a1cf1e9c699a7a45694d7095a362701e0e44fb96d1947e1e398ed775918cbf87db5ff20d95a140cfc23f95bbe1c219a39264f316e93047e88ce68c
+MISC ChangeLog-2015 1754 SHA256 8601d1a4b3ac0d8828055603441f1e983115b557a45a20520c9432058e29a7e0 SHA512 16fcc2063b4b4810f79d73b09c97f4ade6faf858f054344bf2539d7ace1be71f56a3ce3128bc5718541dd3d82b7204a571ee3364e34fd37ee4019194d35826da WHIRLPOOL 6611a17ade5d2d7b983be63d37d3cd2363c187c9b4c0f4c37e50f505d633bd0100fccf40f927bcf2d7c7ec0fa4f7c346f641c40587a8259871af0799a0a1e78c
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-irc/ptlink-opm/files/ptlink-opm.conf.d b/net-irc/ptlink-opm/files/ptlink-opm.conf.d
new file mode 100644
index 000000000000..939c3cb518e6
--- /dev/null
+++ b/net-irc/ptlink-opm/files/ptlink-opm.conf.d
@@ -0,0 +1,5 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# User to run ptlink-opm as
+PTLINKOPM_USER="ptlink-opm"
diff --git a/net-irc/ptlink-opm/files/ptlink-opm.init.d b/net-irc/ptlink-opm/files/ptlink-opm.init.d
new file mode 100644
index 000000000000..70e0f0970c14
--- /dev/null
+++ b/net-irc/ptlink-opm/files/ptlink-opm.init.d
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+ use dns ircd
+}
+
+start() {
+ ebegin "Starting ptlink-opm"
+ start-stop-daemon --start --quiet --exec /usr/bin/ptlink-opm \
+ --chuid ${PTLINKOPM_USER} >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Shutting down ptlink-opm"
+ start-stop-daemon --stop --exec /usr/bin/ptlink-opm
+ eend $?
+}
diff --git a/net-irc/ptlink-opm/metadata.xml b/net-irc/ptlink-opm/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-irc/ptlink-opm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
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
+}