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/atheme-services/
Date: Wed, 09 Feb 2022 11:25:16
Message-Id: 1644405885.b1fb69510539e977602c0303dbca8e2e831932f4.sam@gentoo
1 commit: b1fb69510539e977602c0303dbca8e2e831932f4
2 Author: Wade Cline <wadecline <AT> hotmail <DOT> com>
3 AuthorDate: Mon Feb 7 03:27:40 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 11:24:45 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1fb6951
7
8 net-irc/atheme-services: Rev bump for EAPI 8
9
10 Bump to EAPI 8.
11
12 Package-Manager: Portage-3.0.30, Repoman-3.0.3
13 Signed-off-by: Wade Cline <wadecline <AT> hotmail.com>
14 Closes: https://github.com/gentoo/gentoo/pull/24101
15 Signed-off-by: Sam James <sam <AT> gentoo.org>
16
17 .../atheme-services-7.2.12-r1.ebuild | 91 ++++++++++++++++++++++
18 1 file changed, 91 insertions(+)
19
20 diff --git a/net-irc/atheme-services/atheme-services-7.2.12-r1.ebuild b/net-irc/atheme-services/atheme-services-7.2.12-r1.ebuild
21 new file mode 100644
22 index 000000000000..3604b77d858b
23 --- /dev/null
24 +++ b/net-irc/atheme-services/atheme-services-7.2.12-r1.ebuild
25 @@ -0,0 +1,91 @@
26 +# Copyright 1999-2022 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=8
30 +
31 +inherit perl-functions
32 +
33 +DESCRIPTION="A portable and secure set of open-source and modular IRC services"
34 +HOMEPAGE="https://github.com/atheme/atheme"
35 +SRC_URI="https://github.com/atheme/atheme/releases/download/v${PV}/${PN}-v${PV}.tar.xz -> ${P}.tar.xz"
36 +
37 +LICENSE="BSD"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~arm ~arm64"
40 +IUSE="cracklib largenet ldap nls +pcre perl profile ssl"
41 +S="${WORKDIR}/${PN}-v${PV}"
42 +
43 +RDEPEND="
44 + acct-group/atheme-services
45 + acct-user/atheme-services
46 + >=dev-libs/libmowgli-2.1.0:2
47 + virtual/libcrypt:=
48 + cracklib? ( sys-libs/cracklib )
49 + ldap? ( net-nds/openldap )
50 + perl? ( dev-lang/perl:= )
51 + pcre? ( dev-libs/libpcre )
52 + ssl? ( dev-libs/openssl:0= )"
53 +DEPEND="${RDEPEND}"
54 +# 'dev-vcs/git' required as per bug #665802
55 +BDEPEND="
56 + dev-vcs/git
57 + virtual/pkgconfig"
58 +
59 +PATCHES=(
60 + "${FILESDIR}"/${PN}-7.2.10_p2-configure-logdir.patch)
61 +
62 +src_configure() {
63 + # perl scriping module support is also broken in 7.0.0. Yay for QA failures.
64 + econf \
65 + --sysconfdir="${EPREFIX}"/etc/${PN} \
66 + --localstatedir="${EPREFIX}"/var \
67 + --enable-fhs-paths \
68 + --disable-warnings \
69 + --enable-contrib \
70 + $(use_enable largenet large-net) \
71 + $(use_with cracklib) \
72 + $(use_with ldap) \
73 + $(use_enable nls) \
74 + $(use_enable profile) \
75 + $(use_with pcre) \
76 + $(use_with perl) \
77 + $(use_enable ssl)
78 +}
79 +
80 +src_compile() {
81 + emake V=1
82 +}
83 +
84 +src_install() {
85 + default
86 +
87 + insinto /etc/${PN}
88 + for conf in dist/*.example; do
89 + # The .cron file isn't meant to live in /etc/${PN}, so only
90 + # install a .example version.
91 + [[ ${conf} == *cron* ]] && continue
92 +
93 + local confdest=${conf##*/}
94 + newins ${conf} ${confdest%.example}
95 + done
96 +
97 + fowners -R 0:${PN} /etc/${PN}
98 + keepdir /var/{lib,log}/atheme
99 + fowners ${PN}:${PN} /var/{lib,log}/atheme
100 + fperms -R go-w,o-rx /etc/${PN}
101 + fperms 750 /etc/${PN} /var/{lib,log}/atheme
102 +
103 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
104 + mv "${ED}"/usr/bin/{,atheme-}dbverify || die
105 +
106 + # contributed scripts and such:
107 + docinto contrib
108 + dodoc contrib/*.{c,pl,php,py,rb}
109 +
110 + use perl && perl_domodule -r contrib/Atheme{,.pm}
111 +
112 + rm "${ED}/usr/share/doc/${PF}/WINDOWS" || die
113 +
114 + # Bug #454840 #520490
115 + rm -rf "${ED}/var/run" || die
116 +}