1 |
commit: 71aead8e715367317433b7609da09a002d4b0be2 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sat Feb 19 16:12:24 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sun Feb 20 19:01:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=71aead8e |
7 |
|
8 |
net-irc/pounce: initial import |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
net-irc/pounce/Manifest | 1 + |
13 |
net-irc/pounce/files/example.conf | 5 +++ |
14 |
net-irc/pounce/files/pounce.confd | 2 ++ |
15 |
net-irc/pounce/files/pounce.initd | 25 ++++++++++++++ |
16 |
net-irc/pounce/metadata.xml | 18 ++++++++++ |
17 |
net-irc/pounce/pounce-3.0.ebuild | 71 +++++++++++++++++++++++++++++++++++++++ |
18 |
6 files changed, 122 insertions(+) |
19 |
|
20 |
diff --git a/net-irc/pounce/Manifest b/net-irc/pounce/Manifest |
21 |
new file mode 100644 |
22 |
index 000000000..e69a997fa |
23 |
--- /dev/null |
24 |
+++ b/net-irc/pounce/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST pounce-3.0.tar.gz 50497 BLAKE2B 2c86ca02110b5bcfdcfa8d2a1fd75c804a64c382fc428550a5d8cd2489c60ecfffac55fa01cd6a6f9f0347ac64d6fe599c454c77e0247e26d9661ac47a2196ce SHA512 76fce4820c877202720505a96d45394027d88f9755fe9a96fb69e305699022d61f8dba7db524b0bc5058b5f999bcd02b82904525d3284b34a29ffbe64c1c3bc0 |
27 |
|
28 |
diff --git a/net-irc/pounce/files/example.conf b/net-irc/pounce/files/example.conf |
29 |
new file mode 100644 |
30 |
index 000000000..795602276 |
31 |
--- /dev/null |
32 |
+++ b/net-irc/pounce/files/example.conf |
33 |
@@ -0,0 +1,5 @@ |
34 |
+# See pounce(1) for the list of available options. |
35 |
+ |
36 |
+#local-cert = /etc/letsencrypt/live/example.com/fullchain.pem |
37 |
+#local-priv = /etc/letsencrypt/live/example.com/privkey.pem |
38 |
+#host = remote-irc.example.com |
39 |
|
40 |
diff --git a/net-irc/pounce/files/pounce.confd b/net-irc/pounce/files/pounce.confd |
41 |
new file mode 100644 |
42 |
index 000000000..dc0f27c12 |
43 |
--- /dev/null |
44 |
+++ b/net-irc/pounce/files/pounce.confd |
45 |
@@ -0,0 +1,2 @@ |
46 |
+# Configuration file. |
47 |
+POUNCE_CONFIG="/etc/pounce/example.conf" |
48 |
|
49 |
diff --git a/net-irc/pounce/files/pounce.initd b/net-irc/pounce/files/pounce.initd |
50 |
new file mode 100644 |
51 |
index 000000000..84e17d42c |
52 |
--- /dev/null |
53 |
+++ b/net-irc/pounce/files/pounce.initd |
54 |
@@ -0,0 +1,25 @@ |
55 |
+#!/sbin/openrc-run |
56 |
+# Copyright 2022 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+extra_started_commands="reload" |
60 |
+ |
61 |
+description="IRC bouncer" |
62 |
+description_reload="Refresh TLS keys" |
63 |
+ |
64 |
+command="/usr/bin/pounce" |
65 |
+command_args="${POUNCE_CONFIG}" |
66 |
+command_background=yes |
67 |
+pidfile="/run/${RC_SVCNAME}.pid" |
68 |
+output_log="/var/log/${RC_SVCNAME}.log" |
69 |
+error_log="${output_log}" |
70 |
+ |
71 |
+depend() { |
72 |
+ need net |
73 |
+} |
74 |
+ |
75 |
+reload() { |
76 |
+ ebegin "Refreshing ${RC_SVCNAME} keys" |
77 |
+ start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}" |
78 |
+ eend $? "Failed to reload ${RC_SVCNAME}" |
79 |
+} |
80 |
|
81 |
diff --git a/net-irc/pounce/metadata.xml b/net-irc/pounce/metadata.xml |
82 |
new file mode 100644 |
83 |
index 000000000..6dc991bba |
84 |
--- /dev/null |
85 |
+++ b/net-irc/pounce/metadata.xml |
86 |
@@ -0,0 +1,18 @@ |
87 |
+<?xml version="1.0" encoding="UTF-8"?> |
88 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
89 |
+<pkgmetadata> |
90 |
+<maintainer type="person"> |
91 |
+ <email>cyber+gentoo@×××××.in</email> |
92 |
+ <name>Anna</name> |
93 |
+</maintainer> |
94 |
+<upstream> |
95 |
+ <maintainer> |
96 |
+ <email>june@××××××.agency</email> |
97 |
+ <name>June</name> |
98 |
+ </maintainer> |
99 |
+ <bugs-to>mailto:list+pounce@××××××.agency</bugs-to> |
100 |
+</upstream> |
101 |
+<use> |
102 |
+ <flag name="palaver">Provide push notifications for the Palaver IRC app</flag> |
103 |
+</use> |
104 |
+</pkgmetadata> |
105 |
|
106 |
diff --git a/net-irc/pounce/pounce-3.0.ebuild b/net-irc/pounce/pounce-3.0.ebuild |
107 |
new file mode 100644 |
108 |
index 000000000..94675d8f1 |
109 |
--- /dev/null |
110 |
+++ b/net-irc/pounce/pounce-3.0.ebuild |
111 |
@@ -0,0 +1,71 @@ |
112 |
+# Copyright 2022 Gentoo Authors |
113 |
+# Distributed under the terms of the GNU General Public License v2 |
114 |
+ |
115 |
+EAPI=8 |
116 |
+ |
117 |
+inherit toolchain-funcs |
118 |
+ |
119 |
+DESCRIPTION="Multi-client, TLS-only IRC bouncer" |
120 |
+HOMEPAGE="https://git.causal.agency/pounce/about/" |
121 |
+SRC_URI="https://git.causal.agency/${PN}/snapshot/${P}.tar.gz" |
122 |
+ |
123 |
+LICENSE="GPL-3" |
124 |
+SLOT="0" |
125 |
+KEYWORDS="~amd64" |
126 |
+IUSE="palaver" |
127 |
+ |
128 |
+DEPEND=" |
129 |
+ dev-libs/libretls:= |
130 |
+ virtual/libcrypt:= |
131 |
+ palaver? ( |
132 |
+ dev-db/sqlite:3 |
133 |
+ net-misc/curl |
134 |
+ ) |
135 |
+" |
136 |
+RDEPEND="${DEPEND}" |
137 |
+BDEPEND=" |
138 |
+ virtual/pkgconfig |
139 |
+" |
140 |
+ |
141 |
+DOCS=( {QUIRKS,README}.7 ) |
142 |
+ |
143 |
+src_configure() { |
144 |
+ local confargs=( |
145 |
+ --prefix="${EPREFIX}/usr" |
146 |
+ --mandir="${EPREFIX}/usr/share/man" |
147 |
+ ) |
148 |
+ |
149 |
+ # note: not an autoconf configure script |
150 |
+ ./configure "${confargs[@]}" || die |
151 |
+ |
152 |
+ pushd extra/notify >/dev/null || die |
153 |
+ ./configure "${confargs[@]}" || die |
154 |
+ popd >/dev/null || die |
155 |
+ |
156 |
+ if use palaver; then |
157 |
+ pushd extra/palaver >/dev/null || die |
158 |
+ ./configure "${confargs[@]}" || die |
159 |
+ popd >/dev/null || die |
160 |
+ fi |
161 |
+ |
162 |
+ tc-export CC |
163 |
+} |
164 |
+ |
165 |
+src_compile() { |
166 |
+ emake all |
167 |
+ emake -C extra/notify |
168 |
+ use palaver && emake -C extra/palaver |
169 |
+} |
170 |
+ |
171 |
+src_install() { |
172 |
+ emake DESTDIR="${D}" install |
173 |
+ emake -C extra/notify DESTDIR="${D}" install |
174 |
+ use palaver && emake -C extra/palaver DESTDIR="${D}" install |
175 |
+ einstalldocs |
176 |
+ |
177 |
+ newinitd "${FILESDIR}"/pounce.initd pounce |
178 |
+ newconfd "${FILESDIR}"/pounce.confd pounce |
179 |
+ |
180 |
+ insinto /etc/pounce |
181 |
+ doins "${FILESDIR}"/example.conf |
182 |
+} |