summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWade Cline <wadecline@hotmail.com>2022-08-28 22:40:42 -0700
committerJoonas Niilola <juippis@gentoo.org>2022-09-12 16:40:02 +0300
commit422bcb88474c9497d21aa02848ed28d760b8d109 (patch)
tree4d79742535fa632da703159d56fefbdbf255d667 /net-irc
parentapp-editors/scite: bump to scite-5.3.0 (diff)
downloadgentoo-422bcb88474c9497d21aa02848ed28d760b8d109.tar.gz
gentoo-422bcb88474c9497d21aa02848ed28d760b8d109.tar.bz2
gentoo-422bcb88474c9497d21aa02848ed28d760b8d109.zip
net-irc/inspircd: Add 3.14.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Wade Cline <wadecline@hotmail.com> Closes: https://github.com/gentoo/gentoo/pull/27051 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-irc')
-rw-r--r--net-irc/inspircd/Manifest2
-rw-r--r--net-irc/inspircd/inspircd-3.14.0.ebuild107
2 files changed, 109 insertions, 0 deletions
diff --git a/net-irc/inspircd/Manifest b/net-irc/inspircd/Manifest
index f68a6ebda90f..59eb8ce6d90f 100644
--- a/net-irc/inspircd/Manifest
+++ b/net-irc/inspircd/Manifest
@@ -2,3 +2,5 @@ DIST inspircd-3.13.0-fix-logrotate-conf.patch.bz2 537 BLAKE2B 81bb056b1dba8bd471
DIST inspircd-3.13.0-fix-path-builds.patch.bz2 4719 BLAKE2B f0a278f2cba6a6c84c60ef34c9f15b2fbd4ecad4a3e16944b4a50437209447c70db2faffcb6f0a18a5b970721ceaea041763e5ca237129211cf8c3bb8d925bb5 SHA512 124ba020382f9efbcc1a6d79f5b6ace61a70c6b86d46ce1067d9a05172ac77db7b06c3b61037f158d2fff3356bf897fae4504212b56a242c27fa42f5ba12a3ad
DIST inspircd-3.13.0-fix-template-files.patch.bz2 785 BLAKE2B ee559a1e92c7ff1b985fffff815e2d12c8ebda5424583fb72cd9f4997806ee0e1571f983b024b6bf1a11077b763cf30a0b05a7ff12c25a51f8020ff3360ef597 SHA512 80a35c94753c1e32c7d58778031ab02ee70afdf9968ca647079d5a8c124c2bd10473a67609c8e9d48bc66ae94ba49dc9dab49a96cdc864a418f1f48d74ba80c9
DIST inspircd-3.13.0.tar.gz 868027 BLAKE2B 9d31917d076329d255f3b29a394a1329f286d3178573063e5af48148c14ba8a4c6b78e90251ec9d8df9dc10726435dd4aff381c65d81c902034ea527aabac51f SHA512 1466e6b4259ea0f1e62342133a6720839e01eea24f67398ab47f9d5d63703cb934b867c705f07c8e0d3a0fa25c20f9b20ce3f5dbc7bbe7c4f2d5d02b7a170cca
+DIST inspircd-3.14.0-fix-build-paths.patch.bz2 4731 BLAKE2B 5d8bdfc2af5ff4e9f0e592cb23dd747f9bcfcaad63a725d03fc78b2b032bc4df59a21dfca2067b3e50c1dcf18257706fb30862a1db919e109b8954aa06712efe SHA512 bfd5bdf58fa0ce8e91da1d74aada01f7cafd33b911f5445fd379728f5e67c8b10cf68cdc74dc0cf3d6bdab87ee9cb2251a52e3ed165970381b19a487ee11b554
+DIST inspircd-3.14.0.tar.gz 869137 BLAKE2B d02d98c6922093e2e04a8f68092a8591ca4b7e5b079676ddc9b33c315725ac4c6739528c3285820683f0daba9926c4be8577e643b4a6cc28d9d3f39151d7da82 SHA512 c19afc20b779a029b9e7a88470806d4a8e45d1fa3e9fd8597c02811d5669e6812c33dc3086557f1cb28335a778c50b78efd863357f500780dbadc61c02c2253c
diff --git a/net-irc/inspircd/inspircd-3.14.0.ebuild b/net-irc/inspircd/inspircd-3.14.0.ebuild
new file mode 100644
index 000000000000..09344ff0054e
--- /dev/null
+++ b/net-irc/inspircd/inspircd-3.14.0.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd toolchain-funcs
+
+DESCRIPTION="Inspire IRCd - The Stable, High-Performance Modular IRCd"
+HOMEPAGE="https://www.inspircd.org/"
+SRC_URI="
+ https://github.com/inspircd/inspircd/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/clinew/gentoo-distfiles/raw/master/inspircd-${PV}-fix-build-paths.patch.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="debug gnutls ldap maxminddb mbedtls mysql pcre postgres re2 regex-posix regex-stdlib sqlite ssl sslrehashsignal tre"
+
+RDEPEND="
+ acct-group/inspircd
+ acct-user/inspircd
+ dev-lang/perl
+ gnutls? ( net-libs/gnutls:= dev-libs/libgcrypt:0 )
+ ldap? ( net-nds/openldap:= )
+ maxminddb? ( dev-libs/libmaxminddb:= )
+ mbedtls? ( net-libs/mbedtls:= )
+ mysql? ( dev-db/mysql-connector-c:= )
+ pcre? ( dev-libs/libpcre )
+ postgres? ( dev-db/postgresql:= )
+ re2? ( dev-libs/re2:= )
+ sqlite? ( >=dev-db/sqlite-3.0 )
+ ssl? ( dev-libs/openssl:= )
+ tre? ( dev-libs/tre )"
+DEPEND="${RDEPEND}"
+
+DOCS=( docs/. .configure/apparmor )
+PATCHES=( "${WORKDIR}"/${P}-fix-build-paths.patch )
+
+src_configure() {
+ local extras=""
+
+ use gnutls && extras+="ssl_gnutls,"
+ use ldap && extras+="ldap,"
+ use maxminddb && extras+="geo_maxmind,"
+ use mbedtls && extras+="ssl_mbedtls,"
+ use mysql && extras+="mysql,"
+ use pcre && extras+="regex_pcre,"
+ use postgres && extras+="pgsql,"
+ use re2 && extras+="regex_re2,"
+ use regex-posix && extras+="regex_posix,"
+ use regex-stdlib && extras+="regex_stdlib,"
+ use sqlite && extras+="sqlite3,"
+ use ssl && extras+="ssl_openssl,"
+ use sslrehashsignal && extras+="sslrehashsignal,"
+ use tre && extras+="regex_tre,"
+
+ # The first configuration run enables certain "extra" InspIRCd
+ # modules, the second run generates the actual makefile.
+ if [[ -n "${extras}" ]]; then
+ ./configure --enable-extras=${extras%,}
+ fi
+
+ local myconf=(
+ --disable-auto-extras
+ --disable-ownership
+ --system
+ --binary-dir="/usr/bin"
+ --data-dir="/var/lib/${PN}/data"
+ --example-dir="/usr/share/doc/${PV}"
+ --manual-dir="/usr/share/man"
+ --module-dir="/usr/$(get_libdir)/${PN}/modules")
+ CXX="$(tc-getCXX)" ./configure "${myconf[@]}"
+}
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}" CXXFLAGS="${CXXFLAGS}" $(usev debug INSPIRCD_DEBUG=2) INSPIRCD_VERBOSE=1
+}
+
+src_install() {
+ default
+
+ insinto "/usr/include/${PN}"
+ doins -r include/.
+
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+ systemd_dounit .configure/inspircd.service
+
+ keepdir "/var/log/${PN}"
+ insinto "/etc/logrotate.d"
+ newins .configure/logrotate "${PN}"
+
+ diropts -o"${PN}" -g"${PN}" -m0700
+ keepdir "/var/lib/${PN}/data"
+
+ rmdir "${ED}"/run{/inspircd,} || die
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+ elog "You will find example configuration files under "
+ elog "/usr/share/doc/${PN}"
+ elog "Read the ${PN}.conf.example file carefully before "
+ elog "starting the service."
+ fi
+}