1 |
commit: a1927f42d255ff1f3d8e7ffef8711a51b8363bbd |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 22 03:12:24 2022 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 22 03:13:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1927f42 |
7 |
|
8 |
sys-auth/nss-pam-ldapd: 0.9.11 cleanup |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
12 |
|
13 |
sys-auth/nss-pam-ldapd/Manifest | 1 - |
14 |
.../nss-pam-ldapd/nss-pam-ldapd-0.9.11-r3.ebuild | 171 --------------------- |
15 |
2 files changed, 172 deletions(-) |
16 |
|
17 |
diff --git a/sys-auth/nss-pam-ldapd/Manifest b/sys-auth/nss-pam-ldapd/Manifest |
18 |
index 1719a7b91843..7c743cefa992 100644 |
19 |
--- a/sys-auth/nss-pam-ldapd/Manifest |
20 |
+++ b/sys-auth/nss-pam-ldapd/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST nss-pam-ldapd-0.9.11.tar.gz 777878 BLAKE2B c2b442786dd788dcf4373939ed52b4585d1821a7168fdd342ded3c99ef9ac8f3e4af0ac360f842b61885c1f2bc2ef85a0ce9ce0c1027bc974d0ba5242505657f SHA512 2b307805667526b85c724e113fe38899eee397e5c8673e89090d4836ce6d0ffcf18dd022d6c20a5e11d4138e736451b841a0f16ba379d524de4faaaf02906645 |
23 |
DIST nss-pam-ldapd-0.9.12.tar.gz 791983 BLAKE2B af580d400230db709f7ac09720edd6127b3b26c6987d1e8f6d6535ad8e68fd8cb5cf2a3319e4456fb2af28aba6528f7a5cdc28463ccfee747dbbf6abc35eee87 SHA512 5eca4851a9bcb2779548d193a363a143d6106bfc6463b8d3f0c2d5d7d227ec1e680861383d4813f40b44d1be2ce5f7ed019d838f7f6796e15f96f7411d3bb8f6 |
24 |
|
25 |
diff --git a/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.11-r3.ebuild b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.11-r3.ebuild |
26 |
deleted file mode 100644 |
27 |
index ec02a5427df5..000000000000 |
28 |
--- a/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.9.11-r3.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,171 +0,0 @@ |
31 |
-# Copyright 1999-2022 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-PYTHON_COMPAT=( python3_{8..10} ) |
37 |
-inherit prefix python-r1 autotools multilib multilib-minimal systemd s6 tmpfiles |
38 |
- |
39 |
-DESCRIPTION="NSS module for name lookups using LDAP" |
40 |
-HOMEPAGE="https://arthurdejong.org/nss-pam-ldapd/" |
41 |
-SRC_URI="https://arthurdejong.org/${PN}/${P}.tar.gz" |
42 |
- |
43 |
-LICENSE="LGPL-2.1" |
44 |
-SLOT="0" |
45 |
-KEYWORDS="amd64 x86" |
46 |
-IUSE="debug kerberos +pam pynslcd sasl test +utils" |
47 |
-RESTRICT="!test? ( test )" |
48 |
- |
49 |
-COMMON_DEP=" |
50 |
- acct-group/nslcd |
51 |
- acct-user/nslcd |
52 |
- net-nds/openldap[${MULTILIB_USEDEP}] |
53 |
- sasl? ( dev-libs/cyrus-sasl[${MULTILIB_USEDEP}] ) |
54 |
- kerberos? ( virtual/krb5[${MULTILIB_USEDEP}] ) |
55 |
- sys-libs/pam[${MULTILIB_USEDEP}] |
56 |
- utils? ( ${PYTHON_DEPS} ) |
57 |
- pynslcd? ( |
58 |
- dev-python/python-ldap[${PYTHON_USEDEP}] |
59 |
- dev-python/python-daemon[${PYTHON_USEDEP}] |
60 |
- ) |
61 |
- !sys-auth/nss_ldap |
62 |
- !sys-auth/pam_ldap |
63 |
-" |
64 |
-RDEPEND="${COMMON_DEP}" |
65 |
-DEPEND="${COMMON_DEP} |
66 |
- test? ( |
67 |
- ${PYTHON_DEPS} |
68 |
- dev-python/pylint[${PYTHON_USEDEP}] |
69 |
- ) |
70 |
-" |
71 |
-BDEPEND=" |
72 |
- ${PYTHON_DEPS} |
73 |
- sys-devel/automake |
74 |
-" |
75 |
- |
76 |
-REQUIRED_USE=" |
77 |
- utils? ( ${PYTHON_REQUIRED_USE} ) |
78 |
- test? ( ${PYTHON_REQUIRED_USE} pynslcd ) |
79 |
-" |
80 |
- |
81 |
-PATCHES=( |
82 |
- "${FILESDIR}/nss-pam-ldapd-0.9.4-disable-py3-only-linters.patch" |
83 |
- "${FILESDIR}/nss-pam-ldapd-0.9.11-use-mkstemp.patch" |
84 |
- "${FILESDIR}/nss-pam-ldapd-0.9.11-relative-imports.patch" |
85 |
- "${FILESDIR}/nss-pam-ldapd-0.9.11-tests.patch" |
86 |
- "${FILESDIR}/nss-pam-ldapd-0.9.11-tests-py39.patch" |
87 |
-) |
88 |
- |
89 |
-src_prepare() { |
90 |
- default |
91 |
- use utils && python_setup |
92 |
- touch pynslcd/__init__.py || die "Could not create __init__.py for pynslcd" |
93 |
- mv pynslcd/pynslcd.py pynslcd/main.py || die |
94 |
- |
95 |
- eautoreconf |
96 |
-} |
97 |
- |
98 |
-multilib_src_configure() { |
99 |
- local -a myconf=( |
100 |
- --disable-utils |
101 |
- --enable-warnings |
102 |
- --with-ldap-lib=openldap |
103 |
- --with-ldap-conf-file=/etc/nslcd.conf |
104 |
- --with-nslcd-pidfile=/run/nslcd/nslcd.pid |
105 |
- --with-nslcd-socket=/run/nslcd/socket |
106 |
- --with-nss-flavour=glibc |
107 |
- $(use_enable pynslcd) |
108 |
- $(use_enable debug) |
109 |
- $(use_enable kerberos) |
110 |
- $(use_enable pam) |
111 |
- $(use_enable sasl) |
112 |
- ) |
113 |
- |
114 |
- # nss libraries always go in /lib on Gentoo |
115 |
- if multilib_is_native_abi ; then |
116 |
- myconf+=("--with-pam-seclib-dir=${EPREFIX}/$(get_libdir)/security") |
117 |
- myconf+=("--libdir=${EPREFIX}/$(get_libdir)") |
118 |
- else |
119 |
- myconf+=("--with-pam-seclib-dir=/$(get_libdir)/security") |
120 |
- myconf+=("--libdir=/$(get_libdir)") |
121 |
- fi |
122 |
- |
123 |
- ECONF_SOURCE="${S}" econf "${myconf[@]}" |
124 |
-} |
125 |
- |
126 |
-multilib_src_test() { |
127 |
- pushd "${BUILD_DIR}" >/dev/null || die |
128 |
- ln -s ../pynslcd/constants.py utils/constants.py || die |
129 |
- python_foreach_impl python_test |
130 |
- popd >/dev/null || die |
131 |
-} |
132 |
- |
133 |
-python_test() { |
134 |
- cp -l "${S}"/pynslcd/*.py pynslcd/ || die "Could not copy python files for tests" |
135 |
- nonfatal emake check || die "tests failed with ${EPYTHON}" |
136 |
-} |
137 |
- |
138 |
-multilib_src_install_all() { |
139 |
- local script |
140 |
- |
141 |
- newinitd "${FILESDIR}"/nslcd.init nslcd |
142 |
- s6_install_service nslcd "${FILESDIR}"/nslcd.s6 |
143 |
- |
144 |
- insinto /usr/share/nss-pam-ldapd |
145 |
- doins "${WORKDIR}/${P}/nslcd.conf" |
146 |
- |
147 |
- fperms o-r /etc/nslcd.conf |
148 |
- |
149 |
- if use utils; then |
150 |
- python_moduleinto nslcd |
151 |
- python_foreach_impl python_domodule utils/*.py |
152 |
- |
153 |
- for script in chsh getent; do |
154 |
- python_foreach_impl python_newscript utils/${script}.py ${script}.ldap |
155 |
- done |
156 |
- fi |
157 |
- if use pynslcd; then |
158 |
- rm -rf "${D}"/usr/share/pynslcd |
159 |
- python_moduleinto pynslcd |
160 |
- python_foreach_impl python_domodule pynslcd/*.py |
161 |
- python_scriptinto /usr/sbin |
162 |
- python_foreach_impl python_newscript pynslcd/main.py pynslcd |
163 |
- newinitd "${FILESDIR}"/pynslcd.init pynslcd |
164 |
- fi |
165 |
- |
166 |
- newtmpfiles "${FILESDIR}"/nslcd-tmpfiles.conf nslcd.conf |
167 |
- systemd_newunit "${FILESDIR}"/nslcd.service nslcd.service |
168 |
-} |
169 |
- |
170 |
-multilib_src_install() { |
171 |
- emake DESTDIR="${D}" install |
172 |
- |
173 |
- if use pynslcd; then |
174 |
- python_moduleinto pynslcd |
175 |
- python_foreach_impl python_domodule pynslcd/*.py |
176 |
- fi |
177 |
-} |
178 |
- |
179 |
-pkg_postinst() { |
180 |
- tmpfiles_process nslcd.conf |
181 |
- |
182 |
- echo |
183 |
- elog "For this to work you must configure /etc/nslcd.conf" |
184 |
- elog "This configuration is similar to pam_ldap's /etc/ldap.conf" |
185 |
- echo |
186 |
- elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can" |
187 |
- elog "start it like this:" |
188 |
- elog " # /etc/init.d/nslcd start" |
189 |
- echo |
190 |
- elog "You can add it to the default runlevel like so:" |
191 |
- elog " # rc-update add nslcd default" |
192 |
- elog |
193 |
- elog "If you have >=sys-apps/openrc-0.16.3, you can also use s6" |
194 |
- elog "to supervise this service." |
195 |
- elog "To do this, emerge sys-apps/s6 then add nslcd-s6" |
196 |
- elog "default runlevel instead of nslcd." |
197 |
- elog |
198 |
- elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf" |
199 |
- elog " is now named /etc/nslcd.conf" |
200 |
- echo |
201 |
-} |