Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-irc/anope/
Date: Sat, 01 Jan 2022 09:38:59
Message-Id: 1641029899.bca08e9bf1a7ca5e1ae95323a11919966973e171.sam@gentoo
1 commit: bca08e9bf1a7ca5e1ae95323a11919966973e171
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 1 09:28:18 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 1 09:38:19 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bca08e9b
7
8 net-irc/anope: drop 2.0.9
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-irc/anope/Manifest | 1 -
13 net-irc/anope/anope-2.0.9.ebuild | 152 ---------------------------------------
14 2 files changed, 153 deletions(-)
15
16 diff --git a/net-irc/anope/Manifest b/net-irc/anope/Manifest
17 index fe6207869db7..53252edc6751 100644
18 --- a/net-irc/anope/Manifest
19 +++ b/net-irc/anope/Manifest
20 @@ -1,2 +1 @@
21 DIST anope-2.0.10.tar.gz 1809378 BLAKE2B d10323ace767aff19194f7cff353aecbced6122ef72d379d050c8dab3c7013adf6b3e649ffd95edc03bc8ca4873f60ad84991ef0f5c9c454b27ec0eda29edc6d SHA512 2a0e4f14a275a6b986fd224449dddd66584de92509770311262076bd659ba0bbd6e2726fc7a22a6edef57ade5268756ac0c56e6f220fb953ed83e72017d1c67b
22 -DIST anope-2.0.9.tar.gz 1808866 BLAKE2B db5755dbb88edb9fcc2f00c1dc324894f22b9e6bc97c9cf57b40d2296014341fe3ade8a8e1b64879b852aef6637e1bb89947deb7a41e009e25101a0a992515e7 SHA512 0ce2caa5ede2831215781a333d896f1169f90bbb515078912f32beaff1699b7957384974cca7c86f1d584d624cb43c76769299ce245ee1fb6836ce7f14ada3e0
23
24 diff --git a/net-irc/anope/anope-2.0.9.ebuild b/net-irc/anope/anope-2.0.9.ebuild
25 deleted file mode 100644
26 index 1d6c41175cc7..000000000000
27 --- a/net-irc/anope/anope-2.0.9.ebuild
28 +++ /dev/null
29 @@ -1,152 +0,0 @@
30 -# Copyright 1999-2020 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI=7
34 -
35 -inherit cmake
36 -
37 -DESCRIPTION="Anope IRC Services"
38 -HOMEPAGE="https://anope.org/ https://github.com/anope/anope/"
39 -SRC_URI="https://github.com/anope/anope/archive/${PV}.tar.gz -> ${P}.tar.gz"
40 -
41 -LICENSE="GPL-2"
42 -SLOT="0"
43 -KEYWORDS="amd64 ~arm ~arm64 x86"
44 -IUSE="gnutls ldap mysql pcre sql sqlite ssl tre"
45 -REQUIRED_USE="sql? ( || ( mysql sqlite ) )"
46 -
47 -BDEPEND="sys-devel/gettext"
48 -DEPEND="
49 - acct-group/anope
50 - acct-user/anope
51 - mysql? ( dev-db/mysql-connector-c:0= )
52 - ssl? ( dev-libs/openssl:0= )
53 - gnutls? (
54 - net-libs/gnutls:0=
55 - dev-libs/libgcrypt:0=
56 - )
57 - ldap? ( net-nds/openldap )
58 - pcre? ( dev-libs/libpcre )
59 - sqlite? ( dev-db/sqlite:3 )
60 - tre? ( dev-libs/tre )
61 - virtual/libintl
62 -"
63 -RDEPEND="${DEPEND}"
64 -
65 -PATCHES=(
66 - "${FILESDIR}/${PN}-2.0.6-example.conf-pid-path.patch"
67 - "${FILESDIR}/${PN}-2.0.7-example.conf-user.patch"
68 -)
69 -
70 -src_prepare() {
71 - anope_enable_mod() {
72 - local modulefile=${1}
73 - ln -s "extra/${modulefile}" "modules/" || \
74 - die "Failed to use ${modulefile}"
75 - }
76 -
77 - # These all require MySQL specifically
78 - if use mysql ; then
79 - anope_enable_mod "m_mysql.cpp"
80 - anope_enable_mod "stats/irc2sql/irc2sql.cpp"
81 - anope_enable_mod "stats/irc2sql/irc2sql.h"
82 - anope_enable_mod "stats/irc2sql/tables.cpp"
83 - anope_enable_mod "stats/irc2sql/utils.cpp"
84 - anope_enable_mod "stats/m_chanstats.cpp"
85 - anope_enable_mod "stats/cs_fantasy_top.cpp"
86 - anope_enable_mod "stats/cs_fantasy_stats.cpp"
87 - anope_enable_mod "m_sql_log.cpp"
88 - anope_enable_mod "m_sql_oper.cpp"
89 - fi
90 -
91 - use sqlite && anope_enable_mod "m_sqlite.cpp"
92 -
93 - # Any SQL implementation
94 - if use sql ; then
95 - anope_enable_mod "m_sql_authentication.cpp"
96 - fi
97 -
98 - if use ldap ; then
99 - anope_enable_mod "m_ldap.cpp"
100 - anope_enable_mod "m_ldap_authentication.cpp"
101 - anope_enable_mod "m_ldap_oper.cpp"
102 - fi
103 -
104 - use gnutls && anope_enable_mod "m_ssl_gnutls.cpp"
105 - use pcre && anope_enable_mod "m_regex_pcre.cpp"
106 - use ssl && anope_enable_mod "m_ssl_openssl.cpp"
107 - use tre && anope_enable_mod "m_regex_tre.cpp"
108 -
109 - # Unconditional modules
110 - anope_enable_mod "m_regex_posix.cpp"
111 -
112 - # Avoid a silly sandbox error - tries to delete /usr/lib/modules
113 - sed -i '/install.*REMOVE_RECURSE.*/d' CMakeLists.txt || die
114 -
115 - # Copy anope.conf for fixup to comply w/ prefix
116 - cp "${FILESDIR}/anope-conf.d-v2" "${T}" || die
117 -
118 - # Look in the right place for modules
119 - sed -i "s~%LIBDIR%~${EPREFIX}/usr/$(get_libdir)/anope/~" \
120 - "${T}/anope-conf.d-v2" || die
121 -
122 - cmake_src_prepare
123 -}
124 -
125 -src_configure() {
126 - local mycmakeargs=(
127 - -DBIN_DIR="libexec/anope"
128 - -DDB_DIR="../var/lib/anope"
129 - -DDOC_DIR="share/doc/${PF}"
130 - -DLIB_DIR="$(get_libdir)/anope"
131 - -DLOCALE_DIR="share/locale"
132 - -DCONF_DIR="/etc/anope"
133 - -DLOGS_DIR="../var/log/anope/"
134 - )
135 -
136 - cmake_src_configure
137 -}
138 -
139 -src_install() {
140 - cmake_src_install
141 -
142 - newinitd "${FILESDIR}/anope-init.d" "${PN}"
143 - newconfd "${T}/anope-conf.d-v2" "${PN}"
144 -
145 - dosym ../libexec/anope/services /usr/bin/services
146 - dosym ../libexec/anope/anopesmtp /usr/bin/anopesmtp
147 -
148 - keepdir /var/log/anope /var/lib/anope/backups
149 - fowners anope:anope /var/{lib,log}/anope /var/lib/anope/backups
150 -
151 - dodoc -r docs/* data/example.conf
152 -
153 - insinto /etc/anope
154 - newins data/example.conf services.conf
155 -
156 - fowners anope:anope /var/log/anope
157 - fowners anope:anope /var/lib/anope/backups/
158 -}
159 -
160 -pkg_postinst() {
161 - if [[ -z "${REPLACING_VERSIONS}" ]] ; then
162 - # Only tell them about this on a fresh install.
163 - elog
164 - ewarn "Anope won't run out of the box, you still have to configure it to match your IRCd's configuration."
165 - ewarn "Edit /etc/anope/services.conf to configure Anope."
166 - elog
167 - else
168 - # We're replacing some versions. Find out which.
169 - local ver
170 - for ver in "${REPLACING_VERSIONS}" ; do
171 - if ver_test ${ver} -lt 2.0.7 ; then
172 - # In this version, we introduced correct FHS structure
173 - # We need the users to make some changes to their services.conf
174 - ewarn "Please modify your services.conf to include the following directive:"
175 - ewarn "in options{}, please include user=\"anope\" and group=\"anope\""
176 - ewarn "This is needed because Anope now starts as root and drops down."
177 - ewarn "Reference: https://wiki.anope.org/index.php/2.0/Configuration#Services_Process_Options"
178 - fi
179 - done
180 - fi
181 -}