1 |
commit: 039cf5e08d341d6dea980a7cefcc1cc62f8e2b9b |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 25 17:34:12 2018 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 25 17:34:12 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=039cf5e0 |
7 |
|
8 |
net-irc/iroffer-dinoex: EAPI bump |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
.../iroffer-dinoex/iroffer-dinoex-3.30-r1.ebuild | 121 +++++++++++++++++++++ |
13 |
1 file changed, 121 insertions(+) |
14 |
|
15 |
diff --git a/net-irc/iroffer-dinoex/iroffer-dinoex-3.30-r1.ebuild b/net-irc/iroffer-dinoex/iroffer-dinoex-3.30-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..1776b3620bb |
18 |
--- /dev/null |
19 |
+++ b/net-irc/iroffer-dinoex/iroffer-dinoex-3.30-r1.ebuild |
20 |
@@ -0,0 +1,121 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PLOCALES="de en fr it" |
27 |
+PLOCALE_BACKUP="en" |
28 |
+ |
29 |
+inherit l10n toolchain-funcs user |
30 |
+ |
31 |
+DESCRIPTION="IRC fileserver using DCC" |
32 |
+HOMEPAGE="http://iroffer.dinoex.net/" |
33 |
+SRC_URI="http://iroffer.dinoex.net/${P}.tar.gz |
34 |
+ http://iroffer.dinoex.net/HISTORY/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-2" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="+admin +blowfish +chroot curl debug geoip gnutls +http kqueue +memsave ruby ssl +telnet upnp" |
40 |
+ |
41 |
+REQUIRED_USE=" |
42 |
+ admin? ( http ) |
43 |
+ gnutls? ( ssl ) |
44 |
+" |
45 |
+ |
46 |
+RDEPEND="chroot? ( dev-libs/nss ) |
47 |
+ curl? ( |
48 |
+ net-misc/curl[ssl?] |
49 |
+ gnutls? ( net-misc/curl[curl_ssl_gnutls] ) |
50 |
+ !gnutls? ( ssl? ( net-misc/curl[curl_ssl_openssl] ) ) |
51 |
+ ) |
52 |
+ geoip? ( dev-libs/geoip ) |
53 |
+ gnutls? ( net-libs/gnutls ) |
54 |
+ ruby? ( dev-lang/ruby:* ) |
55 |
+ ssl? ( !gnutls? ( dev-libs/openssl:0= ) )" |
56 |
+ |
57 |
+DEPEND="${RDEPEND}" |
58 |
+ |
59 |
+pkg_setup() { |
60 |
+ enewgroup iroffer |
61 |
+ enewuser iroffer -1 -1 -1 iroffer |
62 |
+} |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ eapply "${FILESDIR}/${PN}-3.29-config.patch" |
66 |
+ eapply -p0 "${FILESDIR}/${PN}-Werror.patch" |
67 |
+ |
68 |
+ eapply_user |
69 |
+ |
70 |
+ l10n_find_plocales_changes "" 'help-admin-' '.txt' |
71 |
+} |
72 |
+ |
73 |
+do_configure() { |
74 |
+ echo ./Configure $* |
75 |
+ ./Configure $* || die "configure phase failed" |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ do_configure \ |
80 |
+ PREFIX="${EPREFIX}/usr"\ |
81 |
+ $(usex debug '-profiling' '' '' '')\ |
82 |
+ $(usex debug '-debug' '' '' '')\ |
83 |
+ $(usex geoip '-geoip' '' '' '')\ |
84 |
+ $(usex chroot '' '-no-chroot' '' '')\ |
85 |
+ $(usex curl '-curl' '' '' '' )\ |
86 |
+ $(usex gnutls '-tls' '' '' '' '')\ |
87 |
+ $(usex upnp '-upnp' '' '' '')\ |
88 |
+ $(usex ruby '-ruby' '' '' '')\ |
89 |
+ $(usex kqueue '-kqueue' '' '' '')\ |
90 |
+ $(usex blowfish '' '-no-blowfish' '' '')\ |
91 |
+ $(usex ssl '' '-no-openssl' '' '')\ |
92 |
+ $(usex http '' '-no-http' '' '')\ |
93 |
+ $(usex admin '' '-no-admin' '' '')\ |
94 |
+ $(usex telnet '' '-no-telnet' '' '')\ |
95 |
+ $(usex memsave '' '-no-memsave' '' '') |
96 |
+} |
97 |
+ |
98 |
+src_compile() { |
99 |
+ # TODO: default compile targets always include chrooted target, which is not good |
100 |
+ emake CC="$(tc-getCC)" $(l10n_get_locales) |
101 |
+} |
102 |
+ |
103 |
+myloc() { |
104 |
+ emake DESTDIR="${D}" install-${1} |
105 |
+ |
106 |
+ dodoc help-admin-${1}.txt |
107 |
+ use http && dodoc doc/INSTALL-linux-${1}.html |
108 |
+ |
109 |
+ insinto /etc/${PN} |
110 |
+ case ${1} in |
111 |
+ "de") |
112 |
+ doins beispiel.config;; |
113 |
+ "fr") |
114 |
+ doins exemple.config;; |
115 |
+ *) |
116 |
+ doins sample.config;; |
117 |
+ esac |
118 |
+} |
119 |
+ |
120 |
+src_install() { |
121 |
+ l10n_for_each_locale_do myloc |
122 |
+ |
123 |
+ dodoc README* THANKS TODO |
124 |
+ doman iroffer.1 xdcc.7 |
125 |
+ |
126 |
+ newinitd "${FILESDIR}/${PN}.init" ${PN} |
127 |
+ newconfd "${FILESDIR}/${PN}.conf" ${PN} |
128 |
+ |
129 |
+ insinto /etc/logrotate.d |
130 |
+ newins "${FILESDIR}/${PN}.logrotate" ${PN} |
131 |
+ |
132 |
+ if use ruby; then |
133 |
+ insinto /usr/share/${PN} |
134 |
+ doins ruby-sample.rb |
135 |
+ fi |
136 |
+ |
137 |
+ if use http; then |
138 |
+ insinto /usr/share/${PN}/htdocs |
139 |
+ doins htdocs/* |
140 |
+ fi |
141 |
+} |