1 |
commit: 7e59eb971d6c83343ba5c3173ae48bb11acc5aa3 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 25 05:07:29 2018 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 25 05:07:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e59eb97 |
7 |
|
8 |
net-irc/quassel: Remove 0.12.4 (r0) |
9 |
|
10 |
Bug: https://bugs.gentoo.org/603414 |
11 |
Bug: https://bugs.gentoo.org/653834 |
12 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
13 |
|
14 |
net-irc/quassel/files/quasselcore.conf | 21 ---- |
15 |
net-irc/quassel/files/quasselcore.init | 62 ------------ |
16 |
net-irc/quassel/quassel-0.12.4.ebuild | 173 --------------------------------- |
17 |
3 files changed, 256 deletions(-) |
18 |
|
19 |
diff --git a/net-irc/quassel/files/quasselcore.conf b/net-irc/quassel/files/quasselcore.conf |
20 |
deleted file mode 100644 |
21 |
index 960203500fe..00000000000 |
22 |
--- a/net-irc/quassel/files/quasselcore.conf |
23 |
+++ /dev/null |
24 |
@@ -1,21 +0,0 @@ |
25 |
-# Copyright 1999-2015 Gentoo Foundation |
26 |
-# Distributed under the terms of the GNU General Public License v2 |
27 |
- |
28 |
-# Loglevel Debug|Info|Warning|Error. Default is: Info |
29 |
-# The logfile is located at /var/log/quassel.log. |
30 |
-#LOGLEVEL="Info" |
31 |
- |
32 |
-# The address(es) quasselcore will listen on. Default is 0.0.0.0 |
33 |
-#LISTEN="0.0.0.0" |
34 |
- |
35 |
-# The port quasselcore will listen at. Default is: 4242 |
36 |
-#PORT="4242" |
37 |
- |
38 |
-# User we want our daemon to run under. |
39 |
-#QUASSEL_USER="quassel" |
40 |
- |
41 |
-# Directory we store all quasselcore content. |
42 |
-#CONFIGDIR="/var/lib/quassel" |
43 |
- |
44 |
-# File quasselcore will log all its events into. |
45 |
-#LOGFILE="/var/log/quassel.log" |
46 |
|
47 |
diff --git a/net-irc/quassel/files/quasselcore.init b/net-irc/quassel/files/quasselcore.init |
48 |
deleted file mode 100644 |
49 |
index 8e66dff8ca3..00000000000 |
50 |
--- a/net-irc/quassel/files/quasselcore.init |
51 |
+++ /dev/null |
52 |
@@ -1,62 +0,0 @@ |
53 |
-#!/sbin/openrc-run |
54 |
-# Copyright 1999-2018 Gentoo Foundation |
55 |
-# Distributed under the terms of the GNU General Public License v2 |
56 |
- |
57 |
-depend() { |
58 |
- need localmount net |
59 |
- after bootmisc postgresql |
60 |
-} |
61 |
- |
62 |
-CORE="$(which quasselcore)" |
63 |
-PID="/var/run/quassel.pid" |
64 |
-LOGFILE=${LOGFILE:-"/var/log/quassel.log"} |
65 |
-CONFIGDIR=${CONFIGDIR:-"/var/lib/quassel"} |
66 |
-QUASSEL_USER=${QUASSEL_USER:-"quassel"} |
67 |
- |
68 |
-checkconfig() { |
69 |
- # set defaults |
70 |
- LOGLEVEL=${LOGLEVEL:-"Info"} |
71 |
- |
72 |
- # check config folder |
73 |
- if [ ! -d "${CONFIGDIR}" ]; then |
74 |
- mkdir "${CONFIGDIR}" || return 1 |
75 |
- fi |
76 |
- # permissions always changed just to avoid runtime issues |
77 |
- chown -R "${QUASSEL_USER}":"${QUASSEL_USER}" "${CONFIGDIR}" || return 1 |
78 |
- |
79 |
- # check log file |
80 |
- if [ ! -e "${LOGFILE}" ]; then |
81 |
- touch "${LOGFILE}" || return 1 |
82 |
- fi |
83 |
- # permissions always changed just to avoid runtime issues |
84 |
- chown "${QUASSEL_USER}":"${QUASSEL_USER}" "${LOGFILE}" || return 1 |
85 |
-} |
86 |
- |
87 |
-start() { |
88 |
- checkconfig || return 1 |
89 |
- |
90 |
- ebegin "Starting Quassel Core" |
91 |
- |
92 |
- if [ -n "${RC_UNAME}" ]; then |
93 |
- # running on baselayout-2/openrc |
94 |
- start-stop-daemon --start --user "${QUASSEL_USER}" --background --make-pidfile \ |
95 |
- --pidfile "${PID}" \ |
96 |
- --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ |
97 |
- ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ |
98 |
- --configdir="${CONFIGDIR}" |
99 |
- else |
100 |
- # running on baselayout-1 |
101 |
- start-stop-daemon --start --chuid "${QUASSEL_USER}" --background --make-pidfile \ |
102 |
- --pidfile "${PID}" --env HOME="${CONFIGDIR}" \ |
103 |
- --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ |
104 |
- ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ |
105 |
- --configdir="${CONFIGDIR}" |
106 |
- fi |
107 |
- eend $? |
108 |
-} |
109 |
- |
110 |
-stop() { |
111 |
- ebegin "Stopping Quassel Core" |
112 |
- start-stop-daemon --stop --pidfile "${PID}" --exec "${CORE}" |
113 |
- eend $? |
114 |
-} |
115 |
|
116 |
diff --git a/net-irc/quassel/quassel-0.12.4.ebuild b/net-irc/quassel/quassel-0.12.4.ebuild |
117 |
deleted file mode 100644 |
118 |
index fea12b014b0..00000000000 |
119 |
--- a/net-irc/quassel/quassel-0.12.4.ebuild |
120 |
+++ /dev/null |
121 |
@@ -1,173 +0,0 @@ |
122 |
-# Copyright 1999-2017 Gentoo Foundation |
123 |
-# Distributed under the terms of the GNU General Public License v2 |
124 |
- |
125 |
-EAPI=6 |
126 |
- |
127 |
-inherit cmake-utils eutils pax-utils systemd user versionator |
128 |
- |
129 |
-EGIT_REPO_URI=( "https://github.com/${PN}/${PN}" "git://git.${PN}-irc.org/${PN}" ) |
130 |
-[[ "${PV}" == "9999" ]] && inherit git-r3 |
131 |
- |
132 |
-DESCRIPTION="Qt/KDE IRC client supporting a remote daemon for 24/7 connectivity" |
133 |
-HOMEPAGE="http://quassel-irc.org/" |
134 |
-[[ "${PV}" == "9999" ]] || SRC_URI="http://quassel-irc.org/pub/${P}.tar.bz2" |
135 |
- |
136 |
-LICENSE="GPL-3" |
137 |
-KEYWORDS="amd64 ~arm ~ppc x86 ~amd64-linux ~sparc-solaris" |
138 |
-SLOT="0" |
139 |
-IUSE="crypt dbus debug kde monolithic phonon postgres +server |
140 |
-snorenotify +ssl syslog webkit X" |
141 |
- |
142 |
-SERVER_RDEPEND=" |
143 |
- dev-qt/qtscript:5 |
144 |
- crypt? ( app-crypt/qca:2[qt5(+),ssl] ) |
145 |
- postgres? ( dev-qt/qtsql:5[postgres] ) |
146 |
- !postgres? ( dev-qt/qtsql:5[sqlite] dev-db/sqlite:3[threadsafe(+),-secure-delete] ) |
147 |
- syslog? ( virtual/logger ) |
148 |
-" |
149 |
- |
150 |
-GUI_RDEPEND=" |
151 |
- dev-qt/qtgui:5 |
152 |
- dev-qt/qtwidgets:5 |
153 |
- dbus? ( |
154 |
- >=dev-libs/libdbusmenu-qt-0.9.3_pre20140619[qt5(+)] |
155 |
- dev-qt/qtdbus:5 |
156 |
- ) |
157 |
- kde? ( |
158 |
- kde-frameworks/kconfigwidgets:5 |
159 |
- kde-frameworks/kcoreaddons:5 |
160 |
- kde-frameworks/knotifications:5 |
161 |
- kde-frameworks/knotifyconfig:5 |
162 |
- kde-frameworks/ktextwidgets:5 |
163 |
- kde-frameworks/kwidgetsaddons:5 |
164 |
- kde-frameworks/kxmlgui:5 |
165 |
- kde-frameworks/sonnet:5 |
166 |
- ) |
167 |
- phonon? ( media-libs/phonon[qt5(+)] ) |
168 |
- snorenotify? ( >=x11-libs/snorenotify-0.7.0 ) |
169 |
- webkit? ( dev-qt/qtwebkit:5 ) |
170 |
-" |
171 |
- |
172 |
-RDEPEND=" |
173 |
- dev-qt/qtcore:5 |
174 |
- dev-qt/qtnetwork:5[ssl?] |
175 |
- sys-libs/zlib |
176 |
- monolithic? ( |
177 |
- ${SERVER_RDEPEND} |
178 |
- ${GUI_RDEPEND} |
179 |
- ) |
180 |
- !monolithic? ( |
181 |
- server? ( ${SERVER_RDEPEND} ) |
182 |
- X? ( ${GUI_RDEPEND} ) |
183 |
- ) |
184 |
-" |
185 |
-DEPEND="${RDEPEND} |
186 |
- dev-qt/linguist-tools:5 |
187 |
- kde-frameworks/extra-cmake-modules |
188 |
-" |
189 |
- |
190 |
-DOCS=( AUTHORS ChangeLog README ) |
191 |
- |
192 |
-REQUIRED_USE=" |
193 |
- || ( X server monolithic ) |
194 |
- crypt? ( || ( server monolithic ) ) |
195 |
- dbus? ( || ( X monolithic ) ) |
196 |
- kde? ( || ( X monolithic ) phonon ) |
197 |
- phonon? ( || ( X monolithic ) ) |
198 |
- postgres? ( || ( server monolithic ) ) |
199 |
- snorenotify? ( || ( X monolithic ) ) |
200 |
- syslog? ( || ( server monolithic ) ) |
201 |
- webkit? ( || ( X monolithic ) ) |
202 |
-" |
203 |
- |
204 |
-pkg_setup() { |
205 |
- if use server; then |
206 |
- QUASSEL_DIR=/var/lib/${PN} |
207 |
- QUASSEL_USER=${PN} |
208 |
- # create quassel:quassel user |
209 |
- enewgroup "${QUASSEL_USER}" |
210 |
- enewuser "${QUASSEL_USER}" -1 -1 "${QUASSEL_DIR}" "${QUASSEL_USER}" |
211 |
- fi |
212 |
-} |
213 |
- |
214 |
-src_configure() { |
215 |
- local mycmakeargs=( |
216 |
- $(cmake-utils_use_find_package crypt QCA2-QT5) |
217 |
- $(cmake-utils_use_find_package dbus dbusmenu-qt5) |
218 |
- -DWITH_KDE=$(usex kde) |
219 |
- -DWITH_OXYGEN=$(usex !kde) |
220 |
- -DWANT_MONO=$(usex monolithic) |
221 |
- $(cmake-utils_use_find_package phonon Phonon4Qt5) |
222 |
- -DUSE_QT5=ON |
223 |
- -DWANT_CORE=$(usex server) |
224 |
- $(cmake-utils_use_find_package snorenotify LibsnoreQt5) |
225 |
- -DWITH_WEBKIT=$(usex webkit) |
226 |
- -DWANT_QTCLIENT=$(usex X) |
227 |
- -DEMBED_DATA=OFF |
228 |
- -DCMAKE_SKIP_RPATH=ON |
229 |
- ) |
230 |
- |
231 |
- # Something broke upstream detection since Qt 5.5 |
232 |
- if use ssl ; then |
233 |
- mycmakeargs+=("-DHAVE_SSL=TRUE") |
234 |
- fi |
235 |
- |
236 |
- cmake-utils_src_configure |
237 |
-} |
238 |
- |
239 |
-src_install() { |
240 |
- cmake-utils_src_install |
241 |
- |
242 |
- if use server ; then |
243 |
- # needs PAX marking wrt bug#346255 |
244 |
- pax-mark m "${ED}/usr/bin/quasselcore" |
245 |
- |
246 |
- # prepare folders in /var/ |
247 |
- keepdir "${QUASSEL_DIR}" |
248 |
- fowners "${QUASSEL_USER}":"${QUASSEL_USER}" "${QUASSEL_DIR}" |
249 |
- |
250 |
- # init scripts & systemd unit |
251 |
- newinitd "${FILESDIR}"/quasselcore.init quasselcore |
252 |
- newconfd "${FILESDIR}"/quasselcore.conf quasselcore |
253 |
- systemd_dounit "${FILESDIR}"/quasselcore.service |
254 |
- |
255 |
- # logrotate |
256 |
- insinto /etc/logrotate.d |
257 |
- newins "${FILESDIR}/quassel.logrotate" quassel |
258 |
- fi |
259 |
-} |
260 |
- |
261 |
-pkg_postinst() { |
262 |
- if use monolithic && use ssl ; then |
263 |
- elog "Information on how to enable SSL support for client/core connections" |
264 |
- elog "is available at http://bugs.quassel-irc.org/wiki/quassel-irc." |
265 |
- fi |
266 |
- |
267 |
- if use server; then |
268 |
- einfo "If you want to generate SSL certificate remember to run:" |
269 |
- einfo " emerge --config =${CATEGORY}/${PF}" |
270 |
- fi |
271 |
- |
272 |
- if use server || use monolithic ; then |
273 |
- einfo "Quassel can use net-misc/oidentd package if installed on your system." |
274 |
- einfo "Consider installing it if you want to run quassel within identd daemon." |
275 |
- fi |
276 |
-} |
277 |
- |
278 |
-pkg_config() { |
279 |
- if use server && use ssl; then |
280 |
- # generate the pem file only when it does not already exist |
281 |
- if [ ! -f "${QUASSEL_DIR}/quasselCert.pem" ]; then |
282 |
- einfo "Generating QUASSEL SSL certificate to: \"${QUASSEL_DIR}/quasselCert.pem\"" |
283 |
- openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ |
284 |
- -keyout "${QUASSEL_DIR}/quasselCert.pem" \ |
285 |
- -out "${QUASSEL_DIR}/quasselCert.pem" |
286 |
- # permissions for the key |
287 |
- chown ${QUASSEL_USER}:${QUASSEL_USER} "${QUASSEL_DIR}/quasselCert.pem" |
288 |
- chmod 400 "${QUASSEL_DIR}/quasselCert.pem" |
289 |
- else |
290 |
- einfo "Certificate \"${QUASSEL_DIR}/quasselCert.pem\" already exists." |
291 |
- einfo "Remove it if you want to create new one." |
292 |
- fi |
293 |
- fi |
294 |
-} |