Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/ptlink-opm/, net-irc/ptlink-opm/files/
Date: Thu, 28 May 2020 07:25:45
Message-Id: 1590650730.5085ad33d1c161a31945a369ba8a95c5f9b58d1d.jer@gentoo
1 commit: 5085ad33d1c161a31945a369ba8a95c5f9b58d1d
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 28 07:24:51 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu May 28 07:25:30 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5085ad33
7
8 net-irc/ptlink-opm: Fix building with CFLAGS=-fno-common
9
10 Package-Manager: Portage-2.3.100, Repoman-2.3.22
11 Closes: https://bugs.gentoo.org/show_bug.cgi?id=724922
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 .../files/ptlink-opm-1.3.1-fno-common.patch | 17 ++++++++
15 net-irc/ptlink-opm/ptlink-opm-1.3.1-r2.ebuild | 48 ++++++++++++++++++++++
16 2 files changed, 65 insertions(+)
17
18 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
19 new file mode 100644
20 index 00000000000..6d4aaacb8a3
21 --- /dev/null
22 +++ b/net-irc/ptlink-opm/files/ptlink-opm-1.3.1-fno-common.patch
23 @@ -0,0 +1,17 @@
24 +Three of these are not like the others
25 +
26 +--- a/include/dconf_vars.h
27 ++++ b/include/dconf_vars.h
28 +@@ -42,9 +42,9 @@
29 + E char* DNSBLZoneMsg;
30 +
31 + /* PT */
32 +-char *PT_Nick;
33 +-char *PT_Mask;
34 +-char *PT_Info;
35 ++E char *PT_Nick;
36 ++E char *PT_Mask;
37 ++E char *PT_Info;
38 + #undef E
39 +
40 + #endif /* conf_vars_h_ */
41
42 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
43 new file mode 100644
44 index 00000000000..b23d0aa8942
45 --- /dev/null
46 +++ b/net-irc/ptlink-opm/ptlink-opm-1.3.1-r2.ebuild
47 @@ -0,0 +1,48 @@
48 +# Copyright 1999-2020 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=7
52 +inherit user
53 +
54 +MY_P="PTlink.OPM${PV}"
55 +
56 +DESCRIPTION="PTlink Open Proxy Monitor"
57 +HOMEPAGE="http://www.ptlink.net/"
58 +SRC_URI="ftp://ftp.sunsite.dk/projects/ptlink/ptopm/${MY_P}.tar.gz"
59 +LICENSE="GPL-2"
60 +SLOT="0"
61 +KEYWORDS="~ppc ~x86"
62 +
63 +DEPEND=">=sys-apps/sed-4"
64 +
65 +S=${WORKDIR}/${MY_P}
66 +PATCHES=(
67 + "${FILESDIR}"/${PN}-1.3.1-fno-common.patch
68 +)
69 +
70 +src_configure() {
71 + econf \
72 + --sysconfdir=/etc/ptlink-opm \
73 + --localstatedir=/var/lib/ptlink-opm
74 +}
75 +
76 +src_install() {
77 + newbin src/ptopm ptlink-opm
78 +
79 + insinto /etc/ptlink-opm
80 + newins samples/ptopm.dconf.sample ptopm.dconf
81 + doins samples/scan_rules.dconf
82 +
83 + keepdir /var/{lib,log}/ptlink-opm
84 + dosym ../../log/ptlink-opm /var/lib/ptlink-opm/log
85 +
86 + dodoc CHANGES README
87 +
88 + newinitd "${FILESDIR}"/ptlink-opm.init.d ptlink-opm
89 + newconfd "${FILESDIR}"/ptlink-opm.conf.d ptlink-opm
90 +}
91 +
92 +pkg_postinst() {
93 + enewuser ptlink-opm
94 + chown ptlink-opm "${ROOT}"/var/{log,lib}/ptlink-opm
95 +}