Gentoo Archives: gentoo-commits

From: "Alex Alexander (wired)" <wired@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-irc/znc: znc-1.0.ebuild ChangeLog metadata.xml
Date: Wed, 21 Nov 2012 18:11:42
Message-Id: 20121121181132.162CF20C9F@flycatcher.gentoo.org
1 wired 12/11/21 18:11:32
2
3 Modified: ChangeLog metadata.xml
4 Added: znc-1.0.ebuild
5 Log:
6 version bump, bug #438430. added system-wide daemon use flag that installs init.d/conf.d files, bug #415389. systemWideConfig patch.
7
8 (Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key EB9B4AFA)
9
10 Revision Changes Path
11 1.60 net-irc/znc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-irc/znc/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 29 May 2012 17:49:40 -0000 1.59
24 +++ ChangeLog 21 Nov 2012 18:11:31 -0000 1.60
25 @@ -1,6 +1,15 @@
26 # ChangeLog for net-irc/znc
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-irc/znc/ChangeLog,v 1.59 2012/05/29 17:49:40 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-irc/znc/ChangeLog,v 1.60 2012/11/21 18:11:31 wired Exp $
30 +
31 +*znc-1.0 (21 Nov 2012)
32 +
33 + 21 Nov 2012; Alex Alexander <wired@g.o> +znc-1.0.ebuild,
34 + +files/znc-1.0-systemwideconfig.patch, +files/znc.confd, +files/znc.initd,
35 + metadata.xml:
36 + version bump, bug #438430. added system-wide daemon use flag that installs
37 + init.d/conf.d files, bug #415389. systemWideConfig patch. Many thanks to
38 + Manuel RĂ¼ger and Uli Schlachter.
39
40 *znc-0.206 (29 May 2012)
41
42
43
44
45 1.9 net-irc/znc/metadata.xml
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/metadata.xml?rev=1.9&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/metadata.xml?rev=1.9&content-type=text/plain
49 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/metadata.xml?r1=1.8&r2=1.9
50
51 Index: metadata.xml
52 ===================================================================
53 RCS file: /var/cvsroot/gentoo-x86/net-irc/znc/metadata.xml,v
54 retrieving revision 1.8
55 retrieving revision 1.9
56 diff -u -r1.8 -r1.9
57 --- metadata.xml 26 Feb 2012 15:16:16 -0000 1.8
58 +++ metadata.xml 21 Nov 2012 18:11:31 -0000 1.9
59 @@ -7,6 +7,7 @@
60 <name>Alex Alexander</name>
61 </maintainer>
62 <use>
63 + <flag name="daemon">Allow znc to run as a system-wide service. Installs an init script and creates a znc user:group.</flag>
64 <flag name="extras">Enable some additional modules</flag>
65 <flag name="ares">Enables support for asynchronous DNS using the c-ares library</flag>
66 <flag name="dns-threads">Use threads for DNS resolving</flag>
67
68
69
70 1.1 net-irc/znc/znc-1.0.ebuild
71
72 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/znc-1.0.ebuild?rev=1.1&view=markup
73 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-irc/znc/znc-1.0.ebuild?rev=1.1&content-type=text/plain
74
75 Index: znc-1.0.ebuild
76 ===================================================================
77 # Copyright 1999-2012 Gentoo Foundation
78 # Distributed under the terms of the GNU General Public License v2
79 # $Header: /var/cvsroot/gentoo-x86/net-irc/znc/znc-1.0.ebuild,v 1.1 2012/11/21 18:11:31 wired Exp $
80
81 EAPI=5
82
83 PYTHON_DEPEND="python? 3"
84 inherit base python user
85
86 MY_PV=${PV/_/-}
87 DESCRIPTION="An advanced IRC Bouncer"
88 HOMEPAGE="http://znc.in"
89 SRC_URI="http://znc.in/releases/${PN}-${MY_PV}.tar.gz"
90
91 LICENSE="GPL-2"
92 SLOT="0"
93 KEYWORDS="~amd64 ~arm ~x86"
94 IUSE="daemon debug ipv6 perl python ssl sasl tcl"
95
96 RDEPEND="
97 perl? ( >=dev-lang/perl-5.10 )
98 sasl? ( >=dev-libs/cyrus-sasl-2 )
99 ssl? ( >=dev-libs/openssl-0.9.7d )
100 tcl? ( dev-lang/tcl )
101 "
102 DEPEND="
103 virtual/pkgconfig
104 perl? ( dev-lang/swig )
105 python? (
106 >=dev-lang/swig-2.0.2
107 >=dev-lang/perl-5.10
108 )
109 ${RDEPEND}
110 "
111
112 S=${WORKDIR}/${PN}-${MY_PV}
113
114 PATCHES=(
115 "${FILESDIR}/${P}-systemwideconfig.patch"
116 )
117
118 pkg_setup() {
119 if use python; then
120 python_set_active_version 3
121 python_pkg_setup
122 fi
123 if use daemon; then
124 enewgroup ${PN}
125 enewuser ${PN} -1 -1 /dev/null ${PN}
126 fi
127 }
128
129 src_configure() {
130 econf \
131 $(use_enable debug) \
132 $(use_enable ipv6) \
133 $(use_enable perl) \
134 $(use python && echo "--enable-python=python-$(python_get_version)") \
135 $(use_enable sasl cyrus) \
136 $(use_enable ssl openssl) \
137 $(use_enable tcl tcl)
138 }
139
140 src_install() {
141 emake install DESTDIR="${D}"
142 dodoc AUTHORS README.md
143 if use daemon; then
144 newinitd "${FILESDIR}"/znc.initd znc
145 newconfd "${FILESDIR}"/znc.confd znc
146 fi
147 }
148
149 pkg_postinst() {
150 if use !daemon; then
151 elog
152 elog "Run 'znc --makeconf' as the user you want to run ZNC as"
153 elog "to make a configuration file"
154 elog "If you are using SSL you should also run 'znc --makepem'"
155 elog
156 else
157 elog
158 elog "An init-script was installed in /etc/init.d"
159 elog "A config file was installed in /etc/conf.d"
160 if [[ ! -d "${EROOT}"/etc/znc ]]; then
161 elog
162 elog "Run 'emerge --config znc' to configure ZNC"
163 elog "as a system-wide daemon."
164 elog
165 elog "If you are using SSL you should also run:"
166 elog " znc --system-wide-config-as znc --makepem -d /etc/znc"
167 elog "as root"
168 elog
169 elog "If migrating from a user-based install"
170 elog "you can use your existing config files:"
171 elog " mkdir /etc/znc"
172 elog " mv /home/\$USER/.znc/* /etc/znc/"
173 elog " rm -rf /home/\$USER/.znc"
174 elog " chown -R znc:znc /etc/znc"
175 elog
176 elog "If you already have znc set up and want take advantage of the"
177 elog "init script but skip of all the above, you can also edit"
178 elog " /etc/conf.d/znc"
179 elog "and adjust the variables to your current znc user and config"
180 elog "location."
181 else
182 elog "Existing config detected in /etc/znc"
183 elog "You're good to go :)"
184 fi
185 elog
186 fi
187 }
188
189 pkg_config() {
190 if use daemon && ! [[ -d "${EROOT}"/etc/znc ]]; then
191 einfo "Press ENTER to interactively create a new configuration file for znc."
192 einfo "To abort, press Control-C"
193 read
194 mkdir -p "${EROOT}"/etc/znc || die
195 chown -R ${PN}:${PN} "${EROOT}"/etc/znc ||
196 die "Setting permissions failed"
197 "${EROOT}"/usr/bin/znc --system-wide-config-as znc -c -r -d "${EROOT}"/etc/znc ||
198 die "Config failed"
199 echo
200 einfo "To start znc, run '/etc/init.d/znc start'"
201 einfo "or add znc to a runlevel:"
202 einfo " rc-update add znc default"
203 else
204 if use daemon; then
205 ewarn "/etc/znc already exists, aborting to avoid damaging"
206 ewarn "any existing configuration. If you are sure you want"
207 ewarn "to generate a new configuration, remove the folder"
208 ewarn "and try again."
209 else
210 ewarn "To configure znc as a system-wide daemon you have to"
211 ewarn "enable the 'daemon' use flag."
212 fi
213 fi
214 }