1 |
commit: 1435e8b19be12bd06f0ef322a884bd70b9c05f6f |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Mar 26 17:52:45 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 1 12:12:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1435e8b1 |
7 |
|
8 |
net-irc/znc: bump to 1.6.5, add Python 3.6 |
9 |
|
10 |
Gentoo-Bug: 613286 |
11 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
12 |
Closes: https://github.com/gentoo/gentoo/pull/4303 |
13 |
|
14 |
net-irc/znc/Manifest | 1 + |
15 |
net-irc/znc/znc-1.6.5.ebuild | 130 +++++++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 131 insertions(+) |
17 |
|
18 |
diff --git a/net-irc/znc/Manifest b/net-irc/znc/Manifest |
19 |
index b3b62aa6e3e..db13f97d818 100644 |
20 |
--- a/net-irc/znc/Manifest |
21 |
+++ b/net-irc/znc/Manifest |
22 |
@@ -2,3 +2,4 @@ DIST googletest-release-1.7.0.tar.gz 468653 SHA256 f73a6546fdf9fce9ff93a5015e033 |
23 |
DIST znc-1.4.tar.gz 1239648 SHA256 86e98fd0ed182d39828c926809f8075d836ee3b70a6dd43dfbb434822f2a7b52 SHA512 0c33b05e8232084999812cbaa467dc7d37b80cafc1001b82e89c702b4303d8db9a27b948fe653e7090404eb1c66f5492f02f3524bc39efabade4be8bdb476671 WHIRLPOOL 420e665fa193b3f0284a070e021c4c467e3d40a0812eedeef9b2f65a6626a050b7af8bf15a754ac571d12261705832cfa18a0f7a7817cce96d220028a86230cf |
24 |
DIST znc-1.6.3.tar.gz 1464200 SHA256 631c46de76fe601a41ef7676bc974958e9a302b72b25fc92b4a603a25d89b827 SHA512 777279b6c973310b4e78a0472bd1e355c2adf3e4fbe9ebedde3dd4706e5c0b208d4330eb2318a8d9e0d7d7146bee0a4a428cbe5a3f230c8f6aa692a477e86e2b WHIRLPOOL 2a41e0ac90038a8cc8f289d4ffc0494d29eda75450f650b8870c076fb809eb9c5829720bb39eb43d38ee4ac7f9bea6000ad90fcdd8c0eea461bf04f88cc17b52 |
25 |
DIST znc-1.6.4.tar.gz 1468049 SHA256 431097eb17860bfc980f3e68fdd75f98af4bdeecd793c84835c6cb11c3320d1c SHA512 d66069a7db4d85f8f132aed1ee4b0da8a04c61ab0e2df36426eb326e713401e824c9653b7edd0f7b317779b95b56965bc987c7099eb83b4950386462fd96cd8f WHIRLPOOL 42612a47f459f6e4ce5e64d836491366e3f10e50a7d6ee72ef50468e8e4a90a39cd708492b5b77d53ec8d8184164885dd7f3c79635b5d1e297ec8dc7ef313c34 |
26 |
+DIST znc-1.6.5.tar.gz 1470681 SHA256 2f0225d49c53a01f8d94feea4619a6fe92857792bb3401a4eb1edd65f0342aca SHA512 d78603ac86d1fb92cdf591b1eb6d32fa19b0e39414bd69e1300c537051612ae590c43d3b8e4dd598cdff605bf3aa1d3d5d806edd428d15d50f733e1670f3e626 WHIRLPOOL b72585a2f11754bedb667ac078a617195aa718f9864e7e33b962d75387e7bc4c8c6c1465844f27b65a5af2d50cec7006ae325a43eb2ef930fc9c218bbaae60a1 |
27 |
|
28 |
diff --git a/net-irc/znc/znc-1.6.5.ebuild b/net-irc/znc/znc-1.6.5.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..ae97ab976e8 |
31 |
--- /dev/null |
32 |
+++ b/net-irc/znc/znc-1.6.5.ebuild |
33 |
@@ -0,0 +1,130 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{4,5,6} ) |
40 |
+inherit eutils python-single-r1 readme.gentoo-r1 systemd user |
41 |
+ |
42 |
+MY_PV=${PV/_/-} |
43 |
+GTEST_VER="1.7.0" |
44 |
+GTEST_URL="https://github.com/google/googletest/archive/release-${GTEST_VER}.tar.gz -> googletest-release-${GTEST_VER}.tar.gz" |
45 |
+DESCRIPTION="An advanced IRC Bouncer" |
46 |
+ |
47 |
+SRC_URI=" |
48 |
+ http://znc.in/releases/archive/${PN}-${MY_PV}.tar.gz |
49 |
+ test? ( ${GTEST_URL} ) |
50 |
+" |
51 |
+KEYWORDS="~amd64 ~arm ~x86" |
52 |
+ |
53 |
+HOMEPAGE="http://znc.in" |
54 |
+LICENSE="Apache-2.0" |
55 |
+SLOT="0" |
56 |
+IUSE="daemon debug +ipv6 +icu libressl perl python +ssl sasl tcl test +zlib" |
57 |
+ |
58 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ icu? ( dev-libs/icu:= ) |
62 |
+ perl? ( >=dev-lang/perl-5.10:= ) |
63 |
+ python? ( ${PYTHON_DEPS} ) |
64 |
+ sasl? ( >=dev-libs/cyrus-sasl-2 ) |
65 |
+ ssl? ( |
66 |
+ !libressl? ( dev-libs/openssl:0= ) |
67 |
+ libressl? ( dev-libs/libressl:0= ) |
68 |
+ ) |
69 |
+ tcl? ( dev-lang/tcl:0= ) |
70 |
+ zlib? ( sys-libs/zlib ) |
71 |
+" |
72 |
+DEPEND=" |
73 |
+ ${RDEPEND} |
74 |
+ virtual/pkgconfig |
75 |
+" |
76 |
+ |
77 |
+S=${WORKDIR}/${PN}-${MY_PV} |
78 |
+ |
79 |
+PATCHES=( |
80 |
+ "${FILESDIR}"/${PN}-1.6.1-systemwideconfig.patch |
81 |
+ "${FILESDIR}"/${PN}-1.6.1-create-pidfile-per-default.patch |
82 |
+) |
83 |
+ |
84 |
+pkg_setup() { |
85 |
+ if use python; then |
86 |
+ python-single-r1_pkg_setup |
87 |
+ fi |
88 |
+ if use daemon; then |
89 |
+ enewgroup ${PN} |
90 |
+ enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} |
91 |
+ # The home directory was previously set to /dev/null |
92 |
+ # This caused a bug with the systemd unit |
93 |
+ # https://bugs.gentoo.org/521916 |
94 |
+ esethome ${PN} /var/lib/${PN} |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ econf \ |
100 |
+ --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" \ |
101 |
+ $(use_enable debug) \ |
102 |
+ $(use_enable icu charset) \ |
103 |
+ $(use_enable ipv6) \ |
104 |
+ $(use_enable perl) \ |
105 |
+ $(use_enable python) \ |
106 |
+ $(use_enable sasl cyrus) \ |
107 |
+ $(use_enable ssl openssl) \ |
108 |
+ $(use_enable tcl) \ |
109 |
+ $(use_enable zlib) \ |
110 |
+ $(use_with test gtest "${WORKDIR}/googletest-release-${GTEST_VER}") |
111 |
+} |
112 |
+ |
113 |
+src_install() { |
114 |
+ default |
115 |
+ dodoc NOTICE |
116 |
+ if use daemon; then |
117 |
+ newinitd "${FILESDIR}"/znc.initd-r1 znc |
118 |
+ newconfd "${FILESDIR}"/znc.confd-r1 znc |
119 |
+ fi |
120 |
+ DOC_CONTENTS=$(<"${FILESDIR}/README.gentoo") || die |
121 |
+ DISABLE_AUTOFORMATTING=1 |
122 |
+ readme.gentoo_create_doc |
123 |
+} |
124 |
+ |
125 |
+pkg_postinst() { |
126 |
+ readme.gentoo_print_elog |
127 |
+ if [[ -d "${EROOT%/}"/etc/znc ]]; then |
128 |
+ ewarn "/etc/znc exists on your system." |
129 |
+ ewarn "Due to the nature of the contents of that folder," |
130 |
+ ewarn "we have changed the default configuration to use" |
131 |
+ ewarn " /var/lib/znc" |
132 |
+ ewarn "please move /etc/znc to /var/lib/znc" |
133 |
+ ewarn "or adjust /etc/conf.d/znc" |
134 |
+ fi |
135 |
+} |
136 |
+ |
137 |
+pkg_config() { |
138 |
+ if use daemon; then |
139 |
+ if [[ -e "${EROOT%/}/var/lib/znc" ]]; then |
140 |
+ ewarn "${EROOT%/}/var/lib/znc already exists, aborting to avoid damaging" |
141 |
+ ewarn "any existing configuration. If you are sure you want" |
142 |
+ ewarn "to generate a new configuration, remove the folder" |
143 |
+ ewarn "and try again." |
144 |
+ else |
145 |
+ einfo "Press any key to interactively create a new configuration file" |
146 |
+ einfo "for znc." |
147 |
+ einfo "To abort, press Control-C" |
148 |
+ read |
149 |
+ mkdir -p "${EROOT%/}/var/lib/znc" || die |
150 |
+ chown -R ${PN}:${PN} "${EROOT%/}/var/lib/znc" || |
151 |
+ die "Setting permissions failed" |
152 |
+ "${EROOT%/}"/usr/bin/znc --system-wide-config-as ${PN} -c -r -d "${EROOT%/}/var/lib/znc" || |
153 |
+ die "Config failed" |
154 |
+ echo |
155 |
+ einfo "To start znc, run '/etc/init.d/znc start'" |
156 |
+ einfo "or add znc to a runlevel:" |
157 |
+ einfo " rc-update add znc default" |
158 |
+ fi |
159 |
+ else |
160 |
+ ewarn "To configure znc as a system-wide daemon you have to" |
161 |
+ ewarn "enable the 'daemon' use flag." |
162 |
+ fi |
163 |
+} |