1 |
commit: f2c3c764326f2483b44361b21a5cbf9087d11084 |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 26 15:18:42 2017 +0000 |
4 |
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 26 15:19:12 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2c3c764 |
7 |
|
8 |
sys-auth/nss-pam-ldapd: 0.9.8 bup |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
sys-auth/nss-pam-ldapd/Manifest | 1 + |
13 |
sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.8.ebuild | 128 ++++++++++++++++++++++ |
14 |
2 files changed, 129 insertions(+) |
15 |
|
16 |
diff --git a/sys-auth/nss-pam-ldapd/Manifest b/sys-auth/nss-pam-ldapd/Manifest |
17 |
index 7e9f8ca3e4e..d8824478c28 100644 |
18 |
--- a/sys-auth/nss-pam-ldapd/Manifest |
19 |
+++ b/sys-auth/nss-pam-ldapd/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST nss-pam-ldapd-0.8.14.tar.gz 508949 SHA256 a29ceb9b7eda386ca38f16115ffec61425462cca6b5e560c44c3d51edc03a63f SHA512 70abb1836b5b3304e583fd3b71f11fee7586e181b26f4630779ec1d90b856da6e4fcc76327c51b20a158aa36708dd12ceb5f543a33c826881f2ad3e092f542c9 WHIRLPOOL 5d30088d73e464bf380dd5e7d34f8c5200680712693c97ee1f1df1880b4680236d9168ac7ec08b161ae463236c0feddc2171442a956c872113caa6e2b07a6bb8 |
22 |
DIST nss-pam-ldapd-0.9.7.tar.gz 762743 SHA256 0db88d6518bf7ffb01b44f8f8841ece5162906982ce2c9e45e6afff90d3783eb SHA512 2117262f41c4fc54987f9f663ed71126100420ecff391cc280e98d7864094db201a81a4ebf7e5634436982092be3c751971d8aee53e39c42a8572ab57b561284 WHIRLPOOL be1a3a1a5a2eec6fe1e75f5fd40e741fd5dd013534c05898c0498090983632a17931bcf6d3f9e53f583a584d7e02b74c6844343e05617c61e03c0c92b792e044 |
23 |
+DIST nss-pam-ldapd-0.9.8.tar.gz 771247 SHA256 ef7362e7f2003da8c7beb7bcc03c30494acf712625aaac8badc6e7eb16f3453f SHA512 f0d24afd4cb5cea8155aa719b598448d3d81a896f7bc431f7d73e0617a7b2aa7e0ceb6de0b50163848c5554d96a3c415226e32a92e64ed91772fec4c64ad135b WHIRLPOOL 59452c03795d334210fda4b5fbdc23f02e2dfa39e464b6507a8d5f1b8a9caf4033117446d1416de436445f8dc0272252220b1d3cd6f132cbdbba4e3950727fe1 |
24 |
|
25 |
diff --git a/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.8.ebuild b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.8.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1a5796dd7ea |
28 |
--- /dev/null |
29 |
+++ b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.8.ebuild |
30 |
@@ -0,0 +1,128 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+PYTHON_COMPAT=(python2_7) |
37 |
+inherit eutils prefix user python-r1 multilib multilib-minimal systemd s6 |
38 |
+ |
39 |
+DESCRIPTION="NSS module for name lookups using LDAP" |
40 |
+HOMEPAGE="http://arthurdejong.org/nss-pam-ldapd/" |
41 |
+SRC_URI="http://arthurdejong.org/${PN}/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="LGPL-2.1" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+IUSE="debug kerberos +pam sasl test +utils" |
47 |
+ |
48 |
+COMMON_DEP=" |
49 |
+ net-nds/openldap[${MULTILIB_USEDEP}] |
50 |
+ sasl? ( dev-libs/cyrus-sasl[${MULTILIB_USEDEP}] ) |
51 |
+ kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] ) |
52 |
+ virtual/pam[${MULTILIB_USEDEP}] |
53 |
+ utils? ( ${PYTHON_DEPS} ) |
54 |
+ !sys-auth/nss_ldap |
55 |
+ !sys-auth/pam_ldap" |
56 |
+RDEPEND="${COMMON_DEP}" |
57 |
+DEPEND="${COMMON_DEP} |
58 |
+ test? ( |
59 |
+ ${PYTHON_DEPS} |
60 |
+ dev-python/pylint[${PYTHON_USEDEP}] |
61 |
+ ) |
62 |
+ sys-devel/automake" |
63 |
+ |
64 |
+REQUIRED_USE=" |
65 |
+ utils? ( ${PYTHON_REQUIRED_USE} ) |
66 |
+ test? ( ${PYTHON_REQUIRED_USE} )" |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ enewgroup nslcd |
70 |
+ enewuser nslcd -1 -1 -1 nslcd |
71 |
+} |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ epatch "${FILESDIR}"/${PN}-0.9.4-disable-py3-only-linters.patch |
75 |
+ epatch_user |
76 |
+ use utils && python_setup |
77 |
+} |
78 |
+ |
79 |
+multilib_src_configure() { |
80 |
+ local -a myconf |
81 |
+ |
82 |
+ myconf=( |
83 |
+ --disable-utils |
84 |
+ --enable-warnings |
85 |
+ --with-ldap-lib=openldap |
86 |
+ --with-ldap-conf-file=/etc/nslcd.conf |
87 |
+ --with-nslcd-pidfile=/run/nslcd/nslcd.pid |
88 |
+ --with-nslcd-socket=/run/nslcd/socket |
89 |
+ $(usex x86-fbsd '--with-nss-flavour=' '--with-nss-flavour=' 'freebsd' 'glibc') |
90 |
+ $(use_enable debug) |
91 |
+ $(use_enable kerberos) |
92 |
+ $(use_enable pam) |
93 |
+ $(use_enable sasl) |
94 |
+ ) |
95 |
+ |
96 |
+ # nss libraries always go in /lib on Gentoo |
97 |
+ if multilib_is_native_abi ; then |
98 |
+ myconf+=("--with-pam-seclib-dir=${EPREFIX}/$(get_libdir)/security") |
99 |
+ myconf+=("--libdir=${EPREFIX}/$(get_libdir)") |
100 |
+ else |
101 |
+ myconf+=("--with-pam-seclib-dir=/$(get_libdir)/security") |
102 |
+ myconf+=("--libdir=/$(get_libdir)") |
103 |
+ fi |
104 |
+ |
105 |
+ ECONF_SOURCE="${S}" econf "${myconf[@]}" |
106 |
+} |
107 |
+ |
108 |
+multilib_src_install_all() { |
109 |
+ local script |
110 |
+ |
111 |
+ newinitd "${FILESDIR}"/nslcd-init-r1 nslcd |
112 |
+ newinitd "${FILESDIR}"/nslcd-init-r2 nslcd |
113 |
+ newinitd "${FILESDIR}"/nslcd-init-s6 nslcd-s6 |
114 |
+ s6_install_service nslcd "${FILESDIR}"/nslcd-run-s6 |
115 |
+ |
116 |
+ insinto /usr/share/nss-pam-ldapd |
117 |
+ doins "${WORKDIR}/${P}/nslcd.conf" |
118 |
+ |
119 |
+ fperms o-r /etc/nslcd.conf |
120 |
+ |
121 |
+ if use utils; then |
122 |
+ python_moduleinto nslcd |
123 |
+ python_foreach_impl && python_domodule utils/*.py |
124 |
+ |
125 |
+ for script in chsh getent; do |
126 |
+ python_foreach_impl python_newscript utils/${script}.py ${script}.ldap |
127 |
+ done |
128 |
+ fi |
129 |
+ |
130 |
+ systemd_newtmpfilesd "${FILESDIR}"/nslcd-tmpfiles.conf nslcd.conf |
131 |
+ systemd_dounit "${FILESDIR}"/nslcd.service |
132 |
+} |
133 |
+ |
134 |
+multilib_src_test() { |
135 |
+ python_foreach_impl emake check |
136 |
+} |
137 |
+ |
138 |
+pkg_postinst() { |
139 |
+ echo |
140 |
+ elog "For this to work you must configure /etc/nslcd.conf" |
141 |
+ elog "This configuration is similar to pam_ldap's /etc/ldap.conf" |
142 |
+ echo |
143 |
+ elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can" |
144 |
+ elog "start it like this:" |
145 |
+ elog " # /etc/init.d/nslcd start" |
146 |
+ echo |
147 |
+ elog "You can add it to the default runlevel like so:" |
148 |
+ elog " # rc-update add nslcd default" |
149 |
+ elog |
150 |
+ elog "If you have >=sys-apps/openrc-0.16.3, you can also use s6" |
151 |
+ elog "to supervise this service." |
152 |
+ elog "To do this, emerge sys-apps/s6 then add nslcd-s6" |
153 |
+ elog "default runlevel instead of nslcd." |
154 |
+ elog |
155 |
+ elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf" |
156 |
+ elog " is now named /etc/nslcd.conf" |
157 |
+ echo |
158 |
+} |