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: Fri, 23 Sep 2022 01:35:48
Message-Id: 1663896921.355ff39a64b0be99e016017dec482e5610a3de80.sam@gentoo
1 commit: 355ff39a64b0be99e016017dec482e5610a3de80
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 23 01:34:00 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 23 01:35:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=355ff39a
7
8 net-irc/anope: drop 2.0.10-r1
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.10-r1.ebuild | 150 -----------------------------------
14 2 files changed, 151 deletions(-)
15
16 diff --git a/net-irc/anope/Manifest b/net-irc/anope/Manifest
17 index 5e83254d4c54..db5af0191baa 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.11.tar.gz 1812305 BLAKE2B cb1579f5483df1207482458d63d5293375310f8a54ed528b749f8355f122a1a71a0c17b9ef82477bd429f0c672746f5d5c28d51e12d8695c8c1c8368fd651307 SHA512 120588a815600abb93b77d3e9cb18527a61e955e9dbc947e4e62c97bac871325863f519d20535882f3eff136743454c08af62fd3cd4825e5a956fd1a4ac4d728
23
24 diff --git a/net-irc/anope/anope-2.0.10-r1.ebuild b/net-irc/anope/anope-2.0.10-r1.ebuild
25 deleted file mode 100644
26 index f85dd8410448..000000000000
27 --- a/net-irc/anope/anope-2.0.10-r1.ebuild
28 +++ /dev/null
29 @@ -1,150 +0,0 @@
30 -# Copyright 1999-2022 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 -DEPEND="
48 - acct-group/anope
49 - acct-user/anope
50 - mysql? ( dev-db/mysql-connector-c:0= )
51 - ssl? ( dev-libs/openssl:0= )
52 - gnutls? (
53 - net-libs/gnutls:0=
54 - dev-libs/libgcrypt:0=
55 - )
56 - ldap? ( net-nds/openldap:= )
57 - pcre? ( dev-libs/libpcre )
58 - sqlite? ( dev-db/sqlite:3 )
59 - tre? ( dev-libs/tre )
60 - virtual/libintl
61 -"
62 -RDEPEND="${DEPEND}"
63 -BDEPEND="sys-devel/gettext"
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 - ewarn "Anope won't run out of the box, you still have to configure it to match your IRCd's configuration."
164 - ewarn "Edit /etc/anope/services.conf to configure Anope."
165 - else
166 - # We're replacing some versions. Find out which.
167 - local ver
168 - for ver in "${REPLACING_VERSIONS}" ; do
169 - if ver_test ${ver} -lt 2.0.7 ; then
170 - # In this version, we introduced correct FHS structure
171 - # We need the users to make some changes to their services.conf
172 - ewarn "Please modify your services.conf to include the following directive:"
173 - ewarn "in options{}, please include user=\"anope\" and group=\"anope\""
174 - ewarn "This is needed because Anope now starts as root and drops down."
175 - ewarn "Reference: https://wiki.anope.org/index.php/2.0/Configuration#Services_Process_Options"
176 - fi
177 - done
178 - fi
179 -}