summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-05-28 09:24:51 +0200
committerJeroen Roovers <jer@gentoo.org>2020-05-28 09:25:30 +0200
commit5085ad33d1c161a31945a369ba8a95c5f9b58d1d (patch)
tree2bd170735be2baaa9eb41f8ab1716022653f3e67 /net-irc
parentdev-python/hypothesis: Bump to 5.16.0 (diff)
downloadgentoo-5085ad33d1c161a31945a369ba8a95c5f9b58d1d.tar.gz
gentoo-5085ad33d1c161a31945a369ba8a95c5f9b58d1d.tar.bz2
gentoo-5085ad33d1c161a31945a369ba8a95c5f9b58d1d.zip
net-irc/ptlink-opm: Fix building with CFLAGS=-fno-common
Package-Manager: Portage-2.3.100, Repoman-2.3.22 Closes: https://bugs.gentoo.org/show_bug.cgi?id=724922 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/ptlink-opm/files/ptlink-opm-1.3.1-fno-common.patch17
-rw-r--r--net-irc/ptlink-opm/ptlink-opm-1.3.1-r2.ebuild48
2 files changed, 65 insertions, 0 deletions
diff --git a/net-irc/ptlink-opm/files/ptlink-opm-1.3.1-fno-common.patch b/net-irc/ptlink-opm/files/ptlink-opm-1.3.1-fno-common.patch
new file mode 100644
index 000000000000..6d4aaacb8a38
--- /dev/null
+++ b/net-irc/ptlink-opm/files/ptlink-opm-1.3.1-fno-common.patch
@@ -0,0 +1,17 @@
+Three of these are not like the others
+
+--- a/include/dconf_vars.h
++++ b/include/dconf_vars.h
+@@ -42,9 +42,9 @@
+ E char* DNSBLZoneMsg;
+
+ /* PT */
+-char *PT_Nick;
+-char *PT_Mask;
+-char *PT_Info;
++E char *PT_Nick;
++E char *PT_Mask;
++E char *PT_Info;
+ #undef E
+
+ #endif /* conf_vars_h_ */
diff --git a/net-irc/ptlink-opm/ptlink-opm-1.3.1-r2.ebuild b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r2.ebuild
new file mode 100644
index 000000000000..b23d0aa8942e
--- /dev/null
+++ b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit 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="~ppc ~x86"
+
+DEPEND=">=sys-apps/sed-4"
+
+S=${WORKDIR}/${MY_P}
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.3.1-fno-common.patch
+)
+
+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 ../../log/ptlink-opm /var/lib/ptlink-opm/log
+
+ dodoc CHANGES README
+
+ 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
+}