1 |
commit: 73ccf4a6bbacf812ff1d4da6e5e7f30de7d67aa4 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 10 04:41:45 2019 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 10 04:46:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73ccf4a6 |
7 |
|
8 |
net-im/bitlbee: version bump to 3.6 |
9 |
|
10 |
Also, simplify the init script. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/631072 |
13 |
Closes: https://bugs.gentoo.org/640126 |
14 |
|
15 |
Signed-off-by: Tim Harder <radhermit <AT> gentoo.org> |
16 |
|
17 |
net-im/bitlbee/Manifest | 1 + |
18 |
.../{bitlbee-9999.ebuild => bitlbee-3.6.ebuild} | 29 ++++------------------ |
19 |
net-im/bitlbee/bitlbee-9999.ebuild | 29 ++++------------------ |
20 |
net-im/bitlbee/files/bitlbee.confd-r2 | 7 ++++++ |
21 |
net-im/bitlbee/files/bitlbee.initd-r2 | 7 ++++++ |
22 |
5 files changed, 25 insertions(+), 48 deletions(-) |
23 |
|
24 |
diff --git a/net-im/bitlbee/Manifest b/net-im/bitlbee/Manifest |
25 |
index 3176cc89495..89d1716f8e6 100644 |
26 |
--- a/net-im/bitlbee/Manifest |
27 |
+++ b/net-im/bitlbee/Manifest |
28 |
@@ -1 +1,2 @@ |
29 |
DIST bitlbee-3.5.1.tar.gz 680351 BLAKE2B 952a12975d4f95020a5b577603aea791fca754006dc96af3c500d3885b6f2c50cabe51ab698625acb717524a729ef03d18a29aa25bd4815bae2f18fa6298aeea SHA512 4eb3b0d3a92910c8dd789cd23338cc6296bf40212c5244fcb27a88ede10e86424ea59c78e719841863701a7fdd8c61819f2775f7b58833e287d9110e49d036f3 |
30 |
+DIST bitlbee-3.6.tar.gz 534961 BLAKE2B 007681a384fcb2c0736b901dfdc213ba0829ca006ad3204aca1bc4520a3874760867df6165a9218a9deeabb13bc06f118c9e2f804a97e671a348734f6cb7e963 SHA512 ccbf0f23e228de2de147241f36f59744b2256cba958e2fabfba0cfa60935e55bbb7d7e20fffa54da9a345e55ffa9ca82cb62e9b99dc738ba35c6e268c6561a8d |
31 |
|
32 |
diff --git a/net-im/bitlbee/bitlbee-9999.ebuild b/net-im/bitlbee/bitlbee-3.6.ebuild |
33 |
similarity index 80% |
34 |
copy from net-im/bitlbee/bitlbee-9999.ebuild |
35 |
copy to net-im/bitlbee/bitlbee-3.6.ebuild |
36 |
index ba55773394d..703647ae05d 100644 |
37 |
--- a/net-im/bitlbee/bitlbee-9999.ebuild |
38 |
+++ b/net-im/bitlbee/bitlbee-3.6.ebuild |
39 |
@@ -1,7 +1,7 @@ |
40 |
-# Copyright 1999-2017 Gentoo Foundation |
41 |
+# Copyright 1999-2019 Gentoo Authors |
42 |
# Distributed under the terms of the GNU General Public License v2 |
43 |
|
44 |
-EAPI=6 |
45 |
+EAPI=7 |
46 |
|
47 |
inherit user systemd toolchain-funcs |
48 |
|
49 |
@@ -48,7 +48,6 @@ DEPEND="${COMMON_DEPEND} |
50 |
test? ( dev-libs/check )" |
51 |
|
52 |
RDEPEND="${COMMON_DEPEND} |
53 |
- virtual/logger |
54 |
xinetd? ( sys-apps/xinetd )" |
55 |
|
56 |
pkg_setup() { |
57 |
@@ -57,12 +56,7 @@ pkg_setup() { |
58 |
} |
59 |
|
60 |
src_prepare() { |
61 |
- if [[ ${PV} != "9999" ]]; then |
62 |
- eapply \ |
63 |
- "${FILESDIR}"/${P}-systemd-user.patch \ |
64 |
- "${FILESDIR}"/${P}-verbose-build.patch |
65 |
- fi |
66 |
- |
67 |
+ [[ ${PV} != "9999" ]] && eapply "${FILESDIR}"/${PN}-3.5-systemd-user.patch |
68 |
eapply_user |
69 |
} |
70 |
|
71 |
@@ -143,8 +137,8 @@ src_install() { |
72 |
newins doc/bitlbee.xinetd bitlbee |
73 |
fi |
74 |
|
75 |
- newinitd "${FILESDIR}"/bitlbee.initd-r1 bitlbee |
76 |
- newconfd "${FILESDIR}"/bitlbee.confd-r1 bitlbee |
77 |
+ newinitd "${FILESDIR}"/bitlbee.initd-r2 bitlbee |
78 |
+ newconfd "${FILESDIR}"/bitlbee.confd-r2 bitlbee |
79 |
|
80 |
exeinto /usr/share/bitlbee |
81 |
doexe utils/{convert_purple.py,bitlbee-ctl.pl} |
82 |
@@ -152,17 +146,4 @@ src_install() { |
83 |
|
84 |
pkg_postinst() { |
85 |
chown -R bitlbee:bitlbee "${ROOT}"/var/lib/bitlbee |
86 |
- [[ -d "${ROOT}"/var/run/bitlbee ]] && |
87 |
- chown -R bitlbee:bitlbee "${ROOT}"/var/run/bitlbee |
88 |
- |
89 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
90 |
- einfo |
91 |
- elog "The bitlbee init script will now attempt to stop all processes owned by the" |
92 |
- elog "bitlbee user, including per-client forks." |
93 |
- elog |
94 |
- elog "Tell the init script not to touch anything besides the main bitlbee process" |
95 |
- elog "by changing the BITLBEE_STOP_ALL variable in" |
96 |
- elog " /etc/conf.d/bitlbee" |
97 |
- einfo |
98 |
- fi |
99 |
} |
100 |
|
101 |
diff --git a/net-im/bitlbee/bitlbee-9999.ebuild b/net-im/bitlbee/bitlbee-9999.ebuild |
102 |
index ba55773394d..703647ae05d 100644 |
103 |
--- a/net-im/bitlbee/bitlbee-9999.ebuild |
104 |
+++ b/net-im/bitlbee/bitlbee-9999.ebuild |
105 |
@@ -1,7 +1,7 @@ |
106 |
-# Copyright 1999-2017 Gentoo Foundation |
107 |
+# Copyright 1999-2019 Gentoo Authors |
108 |
# Distributed under the terms of the GNU General Public License v2 |
109 |
|
110 |
-EAPI=6 |
111 |
+EAPI=7 |
112 |
|
113 |
inherit user systemd toolchain-funcs |
114 |
|
115 |
@@ -48,7 +48,6 @@ DEPEND="${COMMON_DEPEND} |
116 |
test? ( dev-libs/check )" |
117 |
|
118 |
RDEPEND="${COMMON_DEPEND} |
119 |
- virtual/logger |
120 |
xinetd? ( sys-apps/xinetd )" |
121 |
|
122 |
pkg_setup() { |
123 |
@@ -57,12 +56,7 @@ pkg_setup() { |
124 |
} |
125 |
|
126 |
src_prepare() { |
127 |
- if [[ ${PV} != "9999" ]]; then |
128 |
- eapply \ |
129 |
- "${FILESDIR}"/${P}-systemd-user.patch \ |
130 |
- "${FILESDIR}"/${P}-verbose-build.patch |
131 |
- fi |
132 |
- |
133 |
+ [[ ${PV} != "9999" ]] && eapply "${FILESDIR}"/${PN}-3.5-systemd-user.patch |
134 |
eapply_user |
135 |
} |
136 |
|
137 |
@@ -143,8 +137,8 @@ src_install() { |
138 |
newins doc/bitlbee.xinetd bitlbee |
139 |
fi |
140 |
|
141 |
- newinitd "${FILESDIR}"/bitlbee.initd-r1 bitlbee |
142 |
- newconfd "${FILESDIR}"/bitlbee.confd-r1 bitlbee |
143 |
+ newinitd "${FILESDIR}"/bitlbee.initd-r2 bitlbee |
144 |
+ newconfd "${FILESDIR}"/bitlbee.confd-r2 bitlbee |
145 |
|
146 |
exeinto /usr/share/bitlbee |
147 |
doexe utils/{convert_purple.py,bitlbee-ctl.pl} |
148 |
@@ -152,17 +146,4 @@ src_install() { |
149 |
|
150 |
pkg_postinst() { |
151 |
chown -R bitlbee:bitlbee "${ROOT}"/var/lib/bitlbee |
152 |
- [[ -d "${ROOT}"/var/run/bitlbee ]] && |
153 |
- chown -R bitlbee:bitlbee "${ROOT}"/var/run/bitlbee |
154 |
- |
155 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
156 |
- einfo |
157 |
- elog "The bitlbee init script will now attempt to stop all processes owned by the" |
158 |
- elog "bitlbee user, including per-client forks." |
159 |
- elog |
160 |
- elog "Tell the init script not to touch anything besides the main bitlbee process" |
161 |
- elog "by changing the BITLBEE_STOP_ALL variable in" |
162 |
- elog " /etc/conf.d/bitlbee" |
163 |
- einfo |
164 |
- fi |
165 |
} |
166 |
|
167 |
diff --git a/net-im/bitlbee/files/bitlbee.confd-r2 b/net-im/bitlbee/files/bitlbee.confd-r2 |
168 |
new file mode 100644 |
169 |
index 00000000000..afd24f857f2 |
170 |
--- /dev/null |
171 |
+++ b/net-im/bitlbee/files/bitlbee.confd-r2 |
172 |
@@ -0,0 +1,7 @@ |
173 |
+# Bitlbee options (see /usr/sbin/bitlbee -h) |
174 |
+BITLBEE_OPTS="" |
175 |
+ |
176 |
+# Specify the network services that correspond to "DaemonInterface" and |
177 |
+# "ClientInterface" settings in bitlbee.conf. For example, if bound to 0.0.0.0, |
178 |
+# this should be set to "net.lo" which provides the loopback interface. |
179 |
+rc_need="net.lo" |
180 |
|
181 |
diff --git a/net-im/bitlbee/files/bitlbee.initd-r2 b/net-im/bitlbee/files/bitlbee.initd-r2 |
182 |
new file mode 100644 |
183 |
index 00000000000..0b3b1a4911b |
184 |
--- /dev/null |
185 |
+++ b/net-im/bitlbee/files/bitlbee.initd-r2 |
186 |
@@ -0,0 +1,7 @@ |
187 |
+#!/sbin/openrc-run |
188 |
+# Copyright 1999-2019 Gentoo Foundation |
189 |
+# Distributed under the terms of the GNU General Public License v2 |
190 |
+ |
191 |
+command="/usr/sbin/bitlbee" |
192 |
+pidfile="/run/${RC_SVCNAME}.pid" |
193 |
+command_args="-D -P ${pidfile} -u bitlbee ${BITLBEE_OPTS}" |