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-nds/tac_plus/
Date: Tue, 30 Mar 2021 21:45:59
Message-Id: 1617140743.591699ea45d46e23808c2286cc060c09e0a83c97.sam@gentoo
1 commit: 591699ea45d46e23808c2286cc060c09e0a83c97
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 30 21:28:08 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 30 21:45:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=591699ea
7
8 net-nds/tac_plus: install PAM configuration file
9
10 Thanks-to: Reuben Farrelly <reuben-gentoo-bugzilla <AT> reub.net>
11 Closes: https://bugs.gentoo.org/474860
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 net-nds/tac_plus/tac_plus-4.0.4.27a-r1.ebuild | 67 +++++++++++++++++++++++++++
15 1 file changed, 67 insertions(+)
16
17 diff --git a/net-nds/tac_plus/tac_plus-4.0.4.27a-r1.ebuild b/net-nds/tac_plus/tac_plus-4.0.4.27a-r1.ebuild
18 new file mode 100644
19 index 00000000000..d1efa11dd8b
20 --- /dev/null
21 +++ b/net-nds/tac_plus/tac_plus-4.0.4.27a-r1.ebuild
22 @@ -0,0 +1,67 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +inherit autotools pam
29 +
30 +MY_P="tacacs+-F${PV}"
31 +DESCRIPTION="An updated version of Cisco's TACACS+ server"
32 +HOMEPAGE="http://www.shrubbery.net/tac_plus/"
33 +SRC_URI="ftp://ftp.shrubbery.net/pub/tac_plus/${MY_P}.tar.gz"
34 +S="${WORKDIR}/${MY_P}"
35 +
36 +LICENSE="HPND RSA GPL-2" # GPL-2 only for init script
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~ppc ~x86"
39 +IUSE="debug finger maxsess tcpd skey static-libs"
40 +
41 +DEPEND="
42 + net-libs/libnsl
43 + sys-libs/pam
44 + skey? ( >=sys-auth/skey-1.1.5-r1 )
45 + tcpd? ( sys-apps/tcp-wrappers )
46 +"
47 +RDEPEND="${DEPEND}"
48 +
49 +PATCHES=(
50 + "${FILESDIR}/${P}-parallelmake.patch"
51 + "${FILESDIR}/${P}-deansification.patch"
52 +)
53 +
54 +src_prepare() {
55 + default
56 +
57 + mv configure.in configure.ac || die "Unable to quiet autoconf deprecation warning"
58 + AT_M4DIR="." eautoreconf
59 +
60 +}
61 +
62 +src_configure() {
63 + econf \
64 + $(use_with skey) \
65 + $(use_with tcpd libwrap) \
66 + $(use_enable debug) \
67 + $(use_enable finger) \
68 + $(use_enable maxsess) \
69 + $(use_enable static-libs static)
70 +}
71 +
72 +src_install() {
73 + emake DESTDIR="${D}" install
74 +
75 + if use static-libs ; then
76 + find "${ED}" -name '*.la' -delete || die "Unable to remove spurious libtool archive"
77 + fi
78 +
79 + dodoc CHANGES FAQ
80 +
81 + newinitd "${FILESDIR}/tac_plus.init2" tac_plus
82 + newconfd "${FILESDIR}/tac_plus.confd2" tac_plus
83 +
84 + # bug #474860
85 + pamd_mimic_system tac_plus auth account password session
86 +
87 + insinto /etc/tac_plus
88 + newins "${FILESDIR}/tac_plus.conf2" tac_plus.conf
89 +}