From 401101f9c8077911929d3f2b60a37098460a5d89 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 24 Mar 2022 23:59:54 +0000 Subject: gentoo resync : 25.03.2022 --- net-irc/anope/Manifest | 2 +- net-irc/anope/anope-2.0.10-r1.ebuild | 150 +++++++++++++++++++++++++++++++++++ net-irc/anope/anope-2.0.10.ebuild | 150 ----------------------------------- 3 files changed, 151 insertions(+), 151 deletions(-) create mode 100644 net-irc/anope/anope-2.0.10-r1.ebuild delete mode 100644 net-irc/anope/anope-2.0.10.ebuild (limited to 'net-irc/anope') diff --git a/net-irc/anope/Manifest b/net-irc/anope/Manifest index 7aa3e422da92..263c0f49bc9f 100644 --- a/net-irc/anope/Manifest +++ b/net-irc/anope/Manifest @@ -3,5 +3,5 @@ AUX anope-2.0.7-example.conf-user.patch 391 BLAKE2B 781e413ef79a7ca601710957b519 AUX anope-conf.d-v2 344 BLAKE2B 8817bba9938aa03abf79e61b86ddde537c6ec68b6584074e1f9bc50fe8334c5d0135ca17551390618f60b26d93f0209789b9337879dbecdcb4fced3d2bb88b3b SHA512 ae1851ccaa128404f3a721c92571ae3c4e0efd18c318485594f87da565b2de505ee9ace580b5d1c4ce4a7b53a4eba8338874195ca3a2cbc415ab6facdb3c9d7a AUX anope-init.d 724 BLAKE2B afe0abfaebf66408ecc1a3c99fdb5795898559551700073078f9352f2ada8ba5bc90fc1a8b5e4779bd132606d9297c19fd418db02d8a26b6629da675f6fc0d8c SHA512 e058ccfb4a44238cd1540704f130207236be71799d0a5f4678638d313d958b10dfc5de9cd515f18ccdd9faf41dc93eaf33b5f4013f534efec00adc401a2cb97c DIST anope-2.0.10.tar.gz 1809378 BLAKE2B d10323ace767aff19194f7cff353aecbced6122ef72d379d050c8dab3c7013adf6b3e649ffd95edc03bc8ca4873f60ad84991ef0f5c9c454b27ec0eda29edc6d SHA512 2a0e4f14a275a6b986fd224449dddd66584de92509770311262076bd659ba0bbd6e2726fc7a22a6edef57ade5268756ac0c56e6f220fb953ed83e72017d1c67b -EBUILD anope-2.0.10.ebuild 4188 BLAKE2B 956333d4914bbed5860cceb2db1336e93fcddd8e49dcd886a9d05ba0f12c2c66a899491d9487a736d983c292833c6794d5adaee798c2b3447a3a3843e7435ef8 SHA512 7bc7ba49301f04eb1a58c964ef652121a128d954a7a3a15d3ce9213c43b53fe22b379e15dccac845717809eb8bd6dd376bfdb7f99ffbba098a4d1687658b5bd8 +EBUILD anope-2.0.10-r1.ebuild 4190 BLAKE2B ebd7f27c1a900f9690f5fea4653af896857ff764118c6e79a3ef16f69ff4617fdcc59ff90ba8d18279806e258837b0697eeb3a66270538bc557e1fb23238f331 SHA512 c858baccb2ea3b753b98bb33a4b73c431d6b86acdb902c94e761c15b8f54661da18f291030bc96b117a3a63175f4799ceda12178fd449bd29673eddc8965c47b MISC metadata.xml 902 BLAKE2B 4208986846c1165a25f7461e3c996107c1d178827f2d5e8d5ab6d4f6970182b42fb130ed976de90027368bd3d845dcadab00df0b430e404333db0f9d538af0f5 SHA512 8be8f6dc110e8943af544916bcae9fb71f74b40d8930c6496a257e386336b18da16c2cf83f2253e0ac925c9884d4e63bf2995ab907d2e8f1b792809f66b3bdd6 diff --git a/net-irc/anope/anope-2.0.10-r1.ebuild b/net-irc/anope/anope-2.0.10-r1.ebuild new file mode 100644 index 000000000000..f85dd8410448 --- /dev/null +++ b/net-irc/anope/anope-2.0.10-r1.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Anope IRC Services" +HOMEPAGE="https://anope.org/ https://github.com/anope/anope/" +SRC_URI="https://github.com/anope/anope/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" +IUSE="gnutls ldap mysql pcre sql sqlite ssl tre" +REQUIRED_USE="sql? ( || ( mysql sqlite ) )" + +DEPEND=" + acct-group/anope + acct-user/anope + mysql? ( dev-db/mysql-connector-c:0= ) + ssl? ( dev-libs/openssl:0= ) + gnutls? ( + net-libs/gnutls:0= + dev-libs/libgcrypt:0= + ) + ldap? ( net-nds/openldap:= ) + pcre? ( dev-libs/libpcre ) + sqlite? ( dev-db/sqlite:3 ) + tre? ( dev-libs/tre ) + virtual/libintl +" +RDEPEND="${DEPEND}" +BDEPEND="sys-devel/gettext" + +PATCHES=( + "${FILESDIR}/${PN}-2.0.6-example.conf-pid-path.patch" + "${FILESDIR}/${PN}-2.0.7-example.conf-user.patch" +) + +src_prepare() { + anope_enable_mod() { + local modulefile=${1} + ln -s "extra/${modulefile}" "modules/" || \ + die "Failed to use ${modulefile}" + } + + # These all require MySQL specifically + if use mysql ; then + anope_enable_mod "m_mysql.cpp" + anope_enable_mod "stats/irc2sql/irc2sql.cpp" + anope_enable_mod "stats/irc2sql/irc2sql.h" + anope_enable_mod "stats/irc2sql/tables.cpp" + anope_enable_mod "stats/irc2sql/utils.cpp" + anope_enable_mod "stats/m_chanstats.cpp" + anope_enable_mod "stats/cs_fantasy_top.cpp" + anope_enable_mod "stats/cs_fantasy_stats.cpp" + anope_enable_mod "m_sql_log.cpp" + anope_enable_mod "m_sql_oper.cpp" + fi + + use sqlite && anope_enable_mod "m_sqlite.cpp" + + # Any SQL implementation + if use sql ; then + anope_enable_mod "m_sql_authentication.cpp" + fi + + if use ldap ; then + anope_enable_mod "m_ldap.cpp" + anope_enable_mod "m_ldap_authentication.cpp" + anope_enable_mod "m_ldap_oper.cpp" + fi + + use gnutls && anope_enable_mod "m_ssl_gnutls.cpp" + use pcre && anope_enable_mod "m_regex_pcre.cpp" + use ssl && anope_enable_mod "m_ssl_openssl.cpp" + use tre && anope_enable_mod "m_regex_tre.cpp" + + # Unconditional modules + anope_enable_mod "m_regex_posix.cpp" + + # Avoid a silly sandbox error - tries to delete /usr/lib/modules + sed -i '/install.*REMOVE_RECURSE.*/d' CMakeLists.txt || die + + # Copy anope.conf for fixup to comply w/ prefix + cp "${FILESDIR}"/anope-conf.d-v2 "${T}" || die + + # Look in the right place for modules + sed -i "s~%LIBDIR%~${EPREFIX}/usr/$(get_libdir)/anope/~" \ + "${T}"/anope-conf.d-v2 || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DBIN_DIR="libexec/anope" + -DDB_DIR="../var/lib/anope" + -DDOC_DIR="share/doc/${PF}" + -DLIB_DIR="$(get_libdir)/anope" + -DLOCALE_DIR="share/locale" + -DCONF_DIR="/etc/anope" + -DLOGS_DIR="../var/log/anope/" + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + newinitd "${FILESDIR}"/anope-init.d ${PN} + newconfd "${T}"/anope-conf.d-v2 ${PN} + + dosym ../libexec/anope/services /usr/bin/services + dosym ../libexec/anope/anopesmtp /usr/bin/anopesmtp + + keepdir /var/log/anope /var/lib/anope/backups + fowners anope:anope /var/{lib,log}/anope /var/lib/anope/backups + + dodoc -r docs/* data/example.conf + + insinto /etc/anope + newins data/example.conf services.conf + + fowners anope:anope /var/log/anope + fowners anope:anope /var/lib/anope/backups/ +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]] ; then + # Only tell them about this on a fresh install. + ewarn "Anope won't run out of the box, you still have to configure it to match your IRCd's configuration." + ewarn "Edit /etc/anope/services.conf to configure Anope." + else + # We're replacing some versions. Find out which. + local ver + for ver in "${REPLACING_VERSIONS}" ; do + if ver_test ${ver} -lt 2.0.7 ; then + # In this version, we introduced correct FHS structure + # We need the users to make some changes to their services.conf + ewarn "Please modify your services.conf to include the following directive:" + ewarn "in options{}, please include user=\"anope\" and group=\"anope\"" + ewarn "This is needed because Anope now starts as root and drops down." + ewarn "Reference: https://wiki.anope.org/index.php/2.0/Configuration#Services_Process_Options" + fi + done + fi +} diff --git a/net-irc/anope/anope-2.0.10.ebuild b/net-irc/anope/anope-2.0.10.ebuild deleted file mode 100644 index cccfac4907f2..000000000000 --- a/net-irc/anope/anope-2.0.10.ebuild +++ /dev/null @@ -1,150 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit cmake - -DESCRIPTION="Anope IRC Services" -HOMEPAGE="https://anope.org/ https://github.com/anope/anope/" -SRC_URI="https://github.com/anope/anope/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 arm arm64 x86" -IUSE="gnutls ldap mysql pcre sql sqlite ssl tre" -REQUIRED_USE="sql? ( || ( mysql sqlite ) )" - -DEPEND=" - acct-group/anope - acct-user/anope - mysql? ( dev-db/mysql-connector-c:0= ) - ssl? ( dev-libs/openssl:0= ) - gnutls? ( - net-libs/gnutls:0= - dev-libs/libgcrypt:0= - ) - ldap? ( net-nds/openldap ) - pcre? ( dev-libs/libpcre ) - sqlite? ( dev-db/sqlite:3 ) - tre? ( dev-libs/tre ) - virtual/libintl -" -RDEPEND="${DEPEND}" -BDEPEND="sys-devel/gettext" - -PATCHES=( - "${FILESDIR}/${PN}-2.0.6-example.conf-pid-path.patch" - "${FILESDIR}/${PN}-2.0.7-example.conf-user.patch" -) - -src_prepare() { - anope_enable_mod() { - local modulefile=${1} - ln -s "extra/${modulefile}" "modules/" || \ - die "Failed to use ${modulefile}" - } - - # These all require MySQL specifically - if use mysql ; then - anope_enable_mod "m_mysql.cpp" - anope_enable_mod "stats/irc2sql/irc2sql.cpp" - anope_enable_mod "stats/irc2sql/irc2sql.h" - anope_enable_mod "stats/irc2sql/tables.cpp" - anope_enable_mod "stats/irc2sql/utils.cpp" - anope_enable_mod "stats/m_chanstats.cpp" - anope_enable_mod "stats/cs_fantasy_top.cpp" - anope_enable_mod "stats/cs_fantasy_stats.cpp" - anope_enable_mod "m_sql_log.cpp" - anope_enable_mod "m_sql_oper.cpp" - fi - - use sqlite && anope_enable_mod "m_sqlite.cpp" - - # Any SQL implementation - if use sql ; then - anope_enable_mod "m_sql_authentication.cpp" - fi - - if use ldap ; then - anope_enable_mod "m_ldap.cpp" - anope_enable_mod "m_ldap_authentication.cpp" - anope_enable_mod "m_ldap_oper.cpp" - fi - - use gnutls && anope_enable_mod "m_ssl_gnutls.cpp" - use pcre && anope_enable_mod "m_regex_pcre.cpp" - use ssl && anope_enable_mod "m_ssl_openssl.cpp" - use tre && anope_enable_mod "m_regex_tre.cpp" - - # Unconditional modules - anope_enable_mod "m_regex_posix.cpp" - - # Avoid a silly sandbox error - tries to delete /usr/lib/modules - sed -i '/install.*REMOVE_RECURSE.*/d' CMakeLists.txt || die - - # Copy anope.conf for fixup to comply w/ prefix - cp "${FILESDIR}"/anope-conf.d-v2 "${T}" || die - - # Look in the right place for modules - sed -i "s~%LIBDIR%~${EPREFIX}/usr/$(get_libdir)/anope/~" \ - "${T}"/anope-conf.d-v2 || die - - cmake_src_prepare -} - -src_configure() { - local mycmakeargs=( - -DBIN_DIR="libexec/anope" - -DDB_DIR="../var/lib/anope" - -DDOC_DIR="share/doc/${PF}" - -DLIB_DIR="$(get_libdir)/anope" - -DLOCALE_DIR="share/locale" - -DCONF_DIR="/etc/anope" - -DLOGS_DIR="../var/log/anope/" - ) - - cmake_src_configure -} - -src_install() { - cmake_src_install - - newinitd "${FILESDIR}"/anope-init.d ${PN} - newconfd "${T}"/anope-conf.d-v2 ${PN} - - dosym ../libexec/anope/services /usr/bin/services - dosym ../libexec/anope/anopesmtp /usr/bin/anopesmtp - - keepdir /var/log/anope /var/lib/anope/backups - fowners anope:anope /var/{lib,log}/anope /var/lib/anope/backups - - dodoc -r docs/* data/example.conf - - insinto /etc/anope - newins data/example.conf services.conf - - fowners anope:anope /var/log/anope - fowners anope:anope /var/lib/anope/backups/ -} - -pkg_postinst() { - if [[ -z "${REPLACING_VERSIONS}" ]] ; then - # Only tell them about this on a fresh install. - ewarn "Anope won't run out of the box, you still have to configure it to match your IRCd's configuration." - ewarn "Edit /etc/anope/services.conf to configure Anope." - else - # We're replacing some versions. Find out which. - local ver - for ver in "${REPLACING_VERSIONS}" ; do - if ver_test ${ver} -lt 2.0.7 ; then - # In this version, we introduced correct FHS structure - # We need the users to make some changes to their services.conf - ewarn "Please modify your services.conf to include the following directive:" - ewarn "in options{}, please include user=\"anope\" and group=\"anope\"" - ewarn "This is needed because Anope now starts as root and drops down." - ewarn "Reference: https://wiki.anope.org/index.php/2.0/Configuration#Services_Process_Options" - fi - done - fi -} -- cgit v1.2.3