1 |
commit: 116fd7172d5d7d66933c32aac322218181907a00 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Aug 30 05:43:46 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 30 05:43:58 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=116fd717 |
7 |
|
8 |
net-irc/anope: cleanup old |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
net-irc/anope/Manifest | 1 - |
14 |
net-irc/anope/anope-2.0.6.ebuild | 158 --------------------------------------- |
15 |
net-irc/anope/metadata.xml | 12 --- |
16 |
3 files changed, 171 deletions(-) |
17 |
|
18 |
diff --git a/net-irc/anope/Manifest b/net-irc/anope/Manifest |
19 |
index 38d65bf722f..335593c6ec6 100644 |
20 |
--- a/net-irc/anope/Manifest |
21 |
+++ b/net-irc/anope/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST anope-2.0.6-source.tar.gz 1792912 BLAKE2B 00c70723c887821d2dda065f9fdb4c4fc79a1534217dd567c2247c3ae9d0b3c1c07a9e1e9d87bfdf5f7f9be212af5139e29710224e02e80154290dd6d4b5ee7c SHA512 c100758d6159023832bc7a4dceb7d554a9b3cd9120b033efc9a93c7ff28e76a086d0594b66b9cd2946b231421217674990f2a3ebaa8a6598c2a25e2dafd1b65b |
24 |
DIST anope-2.0.7-source.tar.gz 1817484 BLAKE2B 13a4628db8cb885d4636ab1897aab322f7846740e4a3fccd02a417d84a8eb3c942aebf5e0a51f8ca1108f455b44b4e280e7386b42e03f640c9b0e68943252814 SHA512 22a9f3e0d9fe7f68304062829a19b693a3414f94c90f8da601ab98995cbff7310dc22ca40749d50d6722dfb4649817d2f4b1dbe4afa3254b28980f03a491de65 |
25 |
|
26 |
diff --git a/net-irc/anope/anope-2.0.6.ebuild b/net-irc/anope/anope-2.0.6.ebuild |
27 |
deleted file mode 100644 |
28 |
index 1d78f2271b9..00000000000 |
29 |
--- a/net-irc/anope/anope-2.0.6.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,158 +0,0 @@ |
32 |
-# Copyright 1999-2020 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=7 |
36 |
- |
37 |
-inherit cmake user |
38 |
- |
39 |
-DESCRIPTION="Anope IRC Services" |
40 |
-HOMEPAGE="https://anope.org" |
41 |
-SRC_URI="https://github.com/anope/anope/releases/download/${PV}/${P}-source.tar.gz" |
42 |
- |
43 |
-LICENSE="GPL-2" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="~amd64 ~x86" |
46 |
-IUSE="chanstats cs-fantasy-stats cs-fantasy-top gnutls irc2sql ldap |
47 |
- ldap-auth ldap-oper mysql pcre posix sql-auth sql-log sql-oper |
48 |
- sqlite ssl tre" |
49 |
- |
50 |
-REQUIRED_USE=" |
51 |
- chanstats? ( mysql ) |
52 |
- cs-fantasy-stats? ( chanstats mysql ) |
53 |
- cs-fantasy-top? ( chanstats mysql ) |
54 |
- irc2sql? ( mysql ) |
55 |
- ldap-auth? ( ldap ) |
56 |
- ldap-oper? ( ldap ) |
57 |
- sql-auth? ( || ( mysql sqlite ) ) |
58 |
- sql-log? ( mysql ) |
59 |
- sql-oper? ( mysql )" |
60 |
- |
61 |
-BDEPEND="sys-devel/gettext" |
62 |
-DEPEND="${BDEPEND} |
63 |
- mysql? ( dev-db/mysql-connector-c:0= ) |
64 |
- ssl? ( dev-libs/openssl:0= ) |
65 |
- gnutls? ( net-libs/gnutls:0= dev-libs/libgcrypt:0= ) |
66 |
- ldap? ( net-nds/openldap ) |
67 |
- pcre? ( dev-libs/libpcre ) |
68 |
- sqlite? ( dev-db/sqlite:3 ) |
69 |
- tre? ( dev-libs/tre )" |
70 |
-RDEPEND="${DEPEND}" |
71 |
- |
72 |
-PATCHES=( "${FILESDIR}/anope-2.0.6-example.conf-pid-path.patch" ) |
73 |
- |
74 |
-S="${WORKDIR}/${P}-source" |
75 |
- |
76 |
-pkg_pretend() { |
77 |
- local replaced_version |
78 |
- for replaced_version in ${REPLACING_VERSIONS} ; do |
79 |
- if ver_test ${replaced_version} -lt 1.8.7 && [[ -f ${ROOT}/opt/anope/data/nick.db ]]; then |
80 |
- eerror "It looks like you have an older version of Anope installed." |
81 |
- eerror "To upgrade, shut down Anope and copy your databases to" |
82 |
- eerror "${ROOT}/var/lib/anope and your configuration to ${ROOT}/etc/anope" |
83 |
- eerror "You can do this by:" |
84 |
- eerror "# mkdir -p ${ROOT}/var/lib/anope ${ROOT}/etc/anope" |
85 |
- eerror "# chown anope:anope ${ROOT}/var/lib/anope" |
86 |
- eerror "# mv ${ROOT}/opt/anope/data/*.db ${ROOT}/var/lib/anope" |
87 |
- eerror "# mv ${ROOT}/opt/anope/data/services.conf ${ROOT}/etc/anope" |
88 |
- die "Please move your anope database files from /opt/anope/data" |
89 |
- fi |
90 |
- done |
91 |
-} |
92 |
- |
93 |
-pkg_setup() { |
94 |
- enewgroup anope |
95 |
- enewuser anope -1 -1 -1 anope |
96 |
-} |
97 |
- |
98 |
-src_prepare() { |
99 |
- anope_use_extra() { |
100 |
- local useflag=$1 |
101 |
- local modulefile=$2 |
102 |
- if use $useflag; then |
103 |
- ln -s "extra/${modulefile}" "modules/" || \ |
104 |
- die "Failed to use ${modulefile}" |
105 |
- fi |
106 |
- } |
107 |
- |
108 |
- anope_use_extra mysql "m_mysql.cpp" |
109 |
- anope_use_extra sqlite "m_sqlite.cpp" |
110 |
- anope_use_extra ssl "m_ssl_openssl.cpp" |
111 |
- anope_use_extra gnutls "m_ssl_gnutls.cpp" |
112 |
- anope_use_extra posix "m_regex_posix.cpp" |
113 |
- anope_use_extra pcre "m_regex_pcre.cpp" |
114 |
- anope_use_extra tre "m_regex_tre.cpp" |
115 |
- anope_use_extra ldap "m_ldap.cpp" |
116 |
- anope_use_extra sql-auth "m_sql_authentication.cpp" |
117 |
- anope_use_extra sql-log "m_sql_log.cpp" |
118 |
- anope_use_extra sql-oper "m_sql_oper.cpp" |
119 |
- anope_use_extra ldap-auth "m_ldap_authentication.cpp" |
120 |
- anope_use_extra ldap-oper "m_ldap_oper.cpp" |
121 |
- anope_use_extra chanstats "stats/m_chanstats.cpp" |
122 |
- anope_use_extra cs-fantasy-top "stats/cs_fantasy_top.cpp" |
123 |
- anope_use_extra cs-fantasy-stats "stats/cs_fantasy_stats.cpp" |
124 |
- anope_use_extra irc2sql "stats/irc2sql/irc2sql.cpp" |
125 |
- anope_use_extra irc2sql "stats/irc2sql/irc2sql.h" |
126 |
- anope_use_extra irc2sql "stats/irc2sql/tables.cpp" |
127 |
- anope_use_extra irc2sql "stats/irc2sql/utils.cpp" |
128 |
- |
129 |
- # Avoid a silly sandbox error - tries to delete /usr/lib/modules |
130 |
- sed -i '/install.*REMOVE_RECURSE.*/d' CMakeLists.txt || die |
131 |
- |
132 |
- cmake_src_prepare |
133 |
-} |
134 |
- |
135 |
-src_configure() { |
136 |
- local mycmakeargs=( |
137 |
- -DBIN_DIR="libexec/anope" |
138 |
- -DDB_DIR="../var/lib/anope" |
139 |
- -DDOC_DIR="share/doc/${PF}" |
140 |
- -DLIB_DIR="$(get_libdir)/anope" |
141 |
- -DLOCALE_DIR="share/locale" |
142 |
- -DCONF_DIR="/etc/anope" |
143 |
- -DLOGS_DIR="../var/log/anope/" |
144 |
- ) |
145 |
- cmake_src_configure |
146 |
-} |
147 |
- |
148 |
-src_install() { |
149 |
- cmake_src_install |
150 |
- newinitd "${FILESDIR}/anope-init.d" "${PN}" |
151 |
- cp "${FILESDIR}/anope-conf.d-v2" "${T}" || die |
152 |
- sed -i "s~%LIBDIR%~${EPREFIX}/usr/$(get_libdir)/anope/~" \ |
153 |
- "${T}/anope-conf.d-v2" || die |
154 |
- newconfd "${T}/anope-conf.d-v2" "${PN}" |
155 |
- dosym ../libexec/anope/services /usr/bin/services |
156 |
- dosym ../libexec/anope/anopesmtp /usr/bin/anopesmtp |
157 |
- keepdir /var/log/anope /var/lib/anope/backups |
158 |
- fowners anope:anope /var/{lib,log}/anope /var/lib/anope/backups |
159 |
- dodoc -r docs/* data/example.conf |
160 |
- insinto /etc/anope |
161 |
- newins data/example.conf services.conf |
162 |
- fowners -R anope:anope /etc/anope |
163 |
- fperms -R 0700 /etc/anope |
164 |
- fperms 0755 /var/log/anope |
165 |
- fperms -R 0750 /var/lib/anope |
166 |
-} |
167 |
- |
168 |
-pkg_preinst() { |
169 |
- if [[ -n ${REPLACING_VERSIONS} ]] ; then |
170 |
- local directory |
171 |
- directory="${ROOT}"/var/lib/anope/pre-update |
172 |
- elog "Making a backup of your databases to ${directory}" |
173 |
- if [ ! -d "${directory}" ]; then |
174 |
- mkdir -p "${directory}" || die "failed to create backup directory" |
175 |
- chown anope:anope "${directory}"/../ || die "failed to chown data directory" |
176 |
- fi |
177 |
- # don't die otherwise merge will fail if there are no existing databases |
178 |
- cp "${ROOT}"/var/lib/anope/*.db "${directory}" |
179 |
- fi |
180 |
-} |
181 |
- |
182 |
-pkg_postinst() { |
183 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
184 |
- elog |
185 |
- ewarn "Anope won't run out of the box, you still have to configure it to match your IRCD's configuration." |
186 |
- ewarn "Edit /etc/anope/services.conf to configure Anope." |
187 |
- elog |
188 |
- fi |
189 |
-} |
190 |
|
191 |
diff --git a/net-irc/anope/metadata.xml b/net-irc/anope/metadata.xml |
192 |
index 9826ad83c45..01ccc819ffe 100644 |
193 |
--- a/net-irc/anope/metadata.xml |
194 |
+++ b/net-irc/anope/metadata.xml |
195 |
@@ -19,17 +19,5 @@ |
196 |
<flag name="ssl">Provide SSL services using OpenSSL</flag> |
197 |
<flag name="sql">Build modules which require SQL</flag> |
198 |
<flag name="tre">Use <pkg>dev-libs/tre</pkg> for regular expressions</flag> |
199 |
- |
200 |
- <!-- pre 2.0.7 USE flags; deprecated --> |
201 |
- <flag name="chanstats">Channel Statistics</flag> |
202 |
- <flag name="cs-fantasy-stats">Enables the STATS and GSTATS commands</flag> |
203 |
- <flag name="cs-fantasy-top">Enables the (G)TOP and (G)TOP10 commands</flag> |
204 |
- <flag name="irc2sql">Stores channel statistics in a mysql database</flag> |
205 |
- <flag name="ldap-auth">Authorize through LDAP</flag> |
206 |
- <flag name="ldap-oper">Dynamically ties users to Anope opertypes via LDAP</flag> |
207 |
- <flag name="posix">Add support for POSIX Compatible Regular Expressions</flag> |
208 |
- <flag name="sql-auth">Authorize through SQL</flag> |
209 |
- <flag name="sql-log">Additional log target in SQL</flag> |
210 |
- <flag name="sql-oper">Allows granting users services operator privileges from SQL</flag> |
211 |
</use> |
212 |
</pkgmetadata> |