diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-irc/atheme-services |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-irc/atheme-services')
6 files changed, 178 insertions, 0 deletions
diff --git a/net-irc/atheme-services/Manifest b/net-irc/atheme-services/Manifest new file mode 100644 index 000000000000..0558cdfe0d6f --- /dev/null +++ b/net-irc/atheme-services/Manifest @@ -0,0 +1,6 @@ +AUX atheme-services-7.2.9-configure-logdir.patch 833 SHA256 78a5b3d0aaf16256e7093cb6d3dbcad0891dd187cf25383c651f03a8cfa7c238 SHA512 43ca2af5aec6a1ea4b08564c62a21ae762fd01f2c177dbf8f7c6ebb238b9302b8310f2fe96ce2b20a7f7014c488a02177d1e583aa438ceff7576e4880ca2f62f WHIRLPOOL 703d2cbdc3153522b75a5c9dc05e5d9e7b849ff8e4c2fd7342a282e89d659cb3e6fa682d2944427c9d6248ca205bca14061a7451652d797deac5530996fcc7ab +AUX atheme-services-7.2.9-fix-docdir.patch 326 SHA256 bd17c88e63fe973a9ce8170daae8285eb6186ada0fba7e41e01c422d286353fe SHA512 62830bc6836406eb780dd60bfd3ac1d013223358aab5fc4fa26906c15c4de71089c4bc2a941776434b086e90722ef611b1d5e21a0599f61ee24b00a60ef502c2 WHIRLPOOL bc3dc26d77cfad4b2be814fa448e2bae5be73d3b56130ca9a644cd6d9dbaaa54d4eef753034461d764486401f3fb0be7649995addb84f5ec438c80750688719e +AUX atheme-services.initd 524 SHA256 7d2bc403e84f852cdb70cd624a893b717d5f0bb638f61b877168cf671f0f366c SHA512 3b90f60677088384c3f69b9dde40d18f4829d3435da0cdfbab003db3b68b6462ef31635b5fe4ed59d56745df9aa95a0690586b56d2f91e621aa2e708cb289cc1 WHIRLPOOL 402058a26650564d08f76de30dad98a21f0c7dac6ba99847946a2582a800c09ad20bc8258e4efa7d3002e88e0244053eb70f9f0284d8f9b5b6bf2d3076aa4ca5 +DIST atheme-services-7.2.9.tar.bz2 1179582 SHA256 a87a046aa73fc4a97a11d41cc08c60b835135ba20bb173ca888b40e0d6b54b27 SHA512 8852bcf4746ad3b8814e2e7ae8b435c538b442f26f6cf8479087d115c0c4d6877ea864f9e19ccaa9ae93ea8a116cfa53d1f22846fffb783f78bfad8e95fd26f7 WHIRLPOOL 2b5ceb38b196567eb64ac11d0866b209b5f0ed00f1ee4c387dde2214bb3ff540996822d9843d7b32c6f0d908b80ca4c5edab7d1ee96e89a0ed59ab9333baf84b +EBUILD atheme-services-7.2.9-r1.ebuild 2184 SHA256 8fe12920cd077a4a66be70a4035bb987139a252d708a2dccb0e09088e8c2b0e9 SHA512 69706eccbd2a9c6d9acf4c307db1de6f91b8ad2b6f408a878451c7d7a8b4fad21107c24d1f16503f5a625a4b25ae803ae2d0a0297ac02c69e9a3c7105cb8bfe4 WHIRLPOOL 31696c8f3405b2b18ad895e97170ade4de7cb66c8886ba14d23279928dcb73d7650bc738ebb61e1396a16690ad06910202ea9d76d24129c5acf807748d6eaaa4 +MISC metadata.xml 721 SHA256 ecd9528e5c904de1e996a6afa536265b1f66f2751e7095e1ad9b76d2630da149 SHA512 bc64eb444e7f6166a81a832c005bd6acb582c9dda7471b057756ede11531290645ef6d9d4c664a87405200190ed4a51678403691e5863cc0af2a408741bd7d15 WHIRLPOOL 36381adf23a3762cb662e3fdedcfe9e71523122f5939da73983d14a01495430e94ec84e452ee33f49fd8aa95dd49f02294fbaa86d8b9226f770173f8fb32a94a diff --git a/net-irc/atheme-services/atheme-services-7.2.9-r1.ebuild b/net-irc/atheme-services/atheme-services-7.2.9-r1.ebuild new file mode 100644 index 000000000000..5fcdc6534d3a --- /dev/null +++ b/net-irc/atheme-services/atheme-services-7.2.9-r1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic perl-functions user + +DESCRIPTION="A portable and secure set of open-source and modular IRC services" +HOMEPAGE="https://github.com/atheme/atheme" +SRC_URI="https://github.com/atheme/atheme/releases/download/v${PV}/atheme-${PV}.tar.bz2 -> ${P}.tar.bz2" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cracklib largenet ldap nls +pcre perl profile ssl" +S="${WORKDIR}/atheme-${PV}" + +RDEPEND=">=dev-libs/libmowgli-2.1.0:2 + cracklib? ( sys-libs/cracklib ) + ldap? ( net-nds/openldap ) + perl? ( dev-lang/perl ) + pcre? ( dev-libs/libpcre ) + ssl? ( dev-libs/openssl:0= )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-fix-docdir.patch + "${FILESDIR}"/${P}-configure-logdir.patch) + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/atheme ${PN} +} + +src_configure() { + # perl scriping module support is also broken in 7.0.0. Yay for QA failures. + econf \ + --sysconfdir="${EPREFIX}"/etc/${PN} \ + --localstatedir="${EPREFIX}"/var \ + --enable-fhs-paths \ + --disable-warnings \ + --enable-contrib \ + $(use_enable largenet large-net) \ + $(use_with cracklib) \ + $(use_with ldap) \ + $(use_enable nls) \ + $(use_enable profile) \ + $(use_with pcre) \ + $(use_with perl) \ + $(use_enable ssl) +} + +src_compile() { + emake V=1 +} + +src_install() { + default + + insinto /etc/${PN} + for conf in dist/*.example; do + # The .cron file isn't meant to live in /etc/${PN}, so only + # install a .example version. + [[ ${conf} == *cron* ]] && continue + + local confdest=${conf##*/} + newins ${conf} ${confdest%.example} + done + + fowners -R 0:${PN} /etc/${PN} + keepdir /var/{lib,log}/atheme + fowners ${PN}:${PN} /var/{lib,log}/atheme + fperms -R go-w,o-rx /etc/${PN} + fperms 750 /etc/${PN} /var/{lib,log}/atheme + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + mv "${ED}"/usr/bin/{,atheme-}dbverify || die + + # contributed scripts and such: + docinto contrib + dodoc contrib/*.{c,pl,php,py,rb} + + use perl && perl_domodule -r contrib/Atheme{,.pm} + + rm "${ED%/}/usr/share/doc/${PF}/WINDOWS" || die + + # Bug #454840 #520490 + rm -rf "${ED%/}/var/run" || die +} diff --git a/net-irc/atheme-services/files/atheme-services-7.2.9-configure-logdir.patch b/net-irc/atheme-services/files/atheme-services-7.2.9-configure-logdir.patch new file mode 100644 index 000000000000..d57af2d9f445 --- /dev/null +++ b/net-irc/atheme-services/files/atheme-services-7.2.9-configure-logdir.patch @@ -0,0 +1,25 @@ +diff --git a/dist/atheme.conf.example b/dist/atheme.conf.example +index ac3ed54dd..be1c2db50 100644 +--- a/dist/atheme.conf.example ++++ b/dist/atheme.conf.example +@@ -1909,17 +1909,17 @@ ldap { + * This block logs all account and channel registrations and drops, + * and account and channel setting changes to var/account.log. + */ +-logfile "var/account.log" { register; set; }; ++logfile "/var/log/atheme/account.log" { register; set; }; + + /* + * This block logs all command use to var/commands.log. + */ +-logfile "var/commands.log" { commands; }; ++logfile "/var/log/atheme/commands.log" { commands; }; + + /* + * This block logs all security auditing information. + */ +-logfile "var/audit.log" { denycmd; }; ++logfile "/var/log/atheme/audit.log" { denycmd; }; + + /* + * You can log to IRC channels, and even split it by category, too. diff --git a/net-irc/atheme-services/files/atheme-services-7.2.9-fix-docdir.patch b/net-irc/atheme-services/files/atheme-services-7.2.9-fix-docdir.patch new file mode 100644 index 000000000000..e7d4bb2695fc --- /dev/null +++ b/net-irc/atheme-services/files/atheme-services-7.2.9-fix-docdir.patch @@ -0,0 +1,13 @@ +diff --git a/extra.mk.in b/extra.mk.in +index 39053e48a..e47b27246 100644 +--- a/extra.mk.in ++++ b/extra.mk.in +@@ -82,7 +82,7 @@ libdir ?= @libdir@ + CFLAGS ?= @CFLAGS@ + INSTALL_LIB ?= @INSTALL_LIB@ + RUNDIR ?= @RUNDIR@ +-DOCDIR ?= @DOCDIR@ ++DOCDIR ?= @docdir@ + localstatedir ?= @localstatedir@ + docdir ?= @docdir@ + GREP ?= @GREP@ diff --git a/net-irc/atheme-services/files/atheme-services.initd b/net-irc/atheme-services/files/atheme-services.initd new file mode 100644 index 000000000000..46a868380aa3 --- /dev/null +++ b/net-irc/atheme-services/files/atheme-services.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_started_commands="reload" + +command="/usr/bin/atheme-services" +command_user="atheme-services" +pidfile="/var/run/atheme/atheme.pid" + +name="Atheme IRC Services" + +depend() { + need net + use ircd + provide irc-services +} + +start_pre() { + checkpath -d "/var/run/atheme" -o atheme-services +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? +} diff --git a/net-irc/atheme-services/metadata.xml b/net-irc/atheme-services/metadata.xml new file mode 100644 index 000000000000..1056f0f4fb25 --- /dev/null +++ b/net-irc/atheme-services/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <use> + <flag name="cracklib">Enable nickserv/cracklib module for enforcing strong account passwords</flag> + <flag name="largenet">Enable support/tweaks for large networks</flag> + <flag name="ldap">Enable ldap-backed authentication module</flag> + <flag name="perl">Install a perl module which wraps around the services' XML-RPC interface</flag> + </use> + <maintainer type="person"> + <email>wadecline@hotmail.com</email> + <name>Wade Cline</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> |