diff options
author | Matt Thode <prometheanfire@gentoo.org> | 2012-07-24 07:16:14 +0000 |
---|---|---|
committer | Matt Thode <prometheanfire@gentoo.org> | 2012-07-24 07:16:14 +0000 |
commit | d086454ea5c491563f186ae95d8a0015edc8ecb9 (patch) | |
tree | e2a40cb1ed230547f787652f4b8b1d49afb60f9b /sys-auth | |
parent | recovering from cvs mistakes (diff) | |
download | historical-d086454ea5c491563f186ae95d8a0015edc8ecb9.tar.gz historical-d086454ea5c491563f186ae95d8a0015edc8ecb9.tar.bz2 historical-d086454ea5c491563f186ae95d8a0015edc8ecb9.zip |
adding nss-pam-ldapd for reals this time
Package-Manager: portage-2.1.10.65/cvs/Linux x86_64
Diffstat (limited to 'sys-auth')
-rw-r--r-- | sys-auth/nss-ldapd/Manifest | 30 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/ChangeLog | 38 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/Manifest | 28 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/files/nslcd-init | 35 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/files/nslcd.rc | 35 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/metadata.xml | 9 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild | 59 | ||||
-rw-r--r-- | sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.10.ebuild | 84 |
8 files changed, 303 insertions, 15 deletions
diff --git a/sys-auth/nss-ldapd/Manifest b/sys-auth/nss-ldapd/Manifest index 97940a8e6f36..de26dd1d3773 100644 --- a/sys-auth/nss-ldapd/Manifest +++ b/sys-auth/nss-ldapd/Manifest @@ -4,23 +4,23 @@ Hash: SHA1 AUX nslcd-init 811 SHA256 b1fd2b84943083b0558e5712d1872d950b5685c7ad8699527e01657bf709b1c5 SHA512 1114219fef76ddc4a189ce254f0d99914b21d303df08307aad185ccfe88050a837e110ca61675ef5eac43839f9dec6aa20364cc6f7ae00b00b1874e744b485c5 WHIRLPOOL 90b65c58d09a62e6d96ff8b477245fa20995d6b377af666754e2d394703f03176d49e1b97501eab8b14d8563964f5aa1b7c495805d345f2062e8de7bdf1c95c6 AUX nslcd.rc 803 SHA256 badab5c2c2322efa8071ade3b78f3d65a1fa018ee214e4d60c707d568a16d6e1 SHA512 fc4130505bae8276b585248e83051f3290a22b174d8cb1aa00423a846b8831b5ab315fa75011df70e6fd291bd9fe02619ded84e4b7181ae4cd3468621e733e73 WHIRLPOOL 183e5dabe6a50d98d731efdd829b701e916c24beb3e859dbdcb1e1285e922c7ff141242ed9829068322ab9fa57068d0cf56829f5ac1dfd5ec9fed638719ebf88 DIST nss-ldapd-0.6.7.tar.gz 376893 SHA256 322803b7dd29107d3cec961527166c9b3440786f8a0cdb79fc5a23a62fb1c7fe SHA512 c815442b7792c1226a5e9b7be3a2b8d574ee91776cc2104dd95c5ff580a1f68047ef7ec27194bf6d18b919e7af246232133e1dbe6881ce74622ef24d1b23125b WHIRLPOOL 80bec906072bb3929073c196aaba3fb8f986b7594307656ad5e320d6c05ddc4166bfd47e1f37bf6f126b99b7d862e19cefb3275cfb60e592767d39cf5b606164 -EBUILD nss-ldapd-0.6.7-r1.ebuild 1580 SHA256 0dbfccd9ec5bfbe83dbdfbe15256821b604b4d43d31ab726beda93e47a479a98 SHA512 eb4a7351dcaf8aa91c89755bf6c6a9b01e8f4861636452b3a1f4e37b4f8f2a34593f910b0e7f027e30b104b195c777b7fc54658da8acad0d2b83141d55355d69 WHIRLPOOL 28e0623a4f50f2307d76e439b353ffd1a69231e687dd563dd35da8028fa005f6897035c3504d4214d1857c27198bfb218077146709635aaf7010d9c0ced7d879 -MISC ChangeLog 1682 SHA256 86afe3791a8a0b6ed13a6ef0604dbc60804d1af250deb32809026379c1d28dfb SHA512 dd5b8f6ccc05ea9f68b3050e6b08a6c1839c6e13d6d0526d2365be7b57c2ecebf1bace95deb6d5082ec113a73fb70f6f0d8ab5b90eeb630d6d2bc993d8a316d1 WHIRLPOOL 73c72434e9e2fadf2bd012225e088d9890d252bc326242918ef9337bbab10ca1a1e8b54d53174d6f6a597a8be0c2695d5d428655885acf8c7077adbeab378044 +EBUILD nss-ldapd-0.6.7-r1.ebuild 1569 SHA256 0863172749600e15b9555ba9ff7249f6911ff93f69cb42dd0358fe6901b8733a SHA512 c8fce0757e4a7daf1c92d06f92766f26884c1d4af06c2005ad3518cada600ab7c9c5336f1f6aff58915fb5033f3cf9bc4a65adb045ac2025684d8577c439b97d WHIRLPOOL e6c30aae21f3a2925907cb74ca265ddca2840f2ff4d6707df7dd29b550a1c90d3eaa6cbd5b54c982ba16d0254157dc1cec7ea48b21249a8fb2422944339c5748 +MISC ChangeLog 1815 SHA256 2bd76f9f003ba31f1b2b1d290809676ea776bdc1529676e8aa55ff11eb21f358 SHA512 fe0b10257d1c7f7dcc68d2b4319a4cc96f1a83887866b1bfde4234b6fdcaca9d2608090c38f5cc379fee7c14fe1b86b9794abe3a7fc39db1e5ca444d3815df94 WHIRLPOOL 2d4e075bcd0866556048a01f05ff2d50c68c664a909be23ca287494cc0be2216220e785fc5ed46d7fe6d6cbcc2ef5b83a3237a5f249c8b559daefeaf31456a11 MISC metadata.xml 241 SHA256 58c2206a9844c7fbfd2ffb5ae2431a552d3d1207dc96aaa94f16ce2c501be545 SHA512 0b22f6d58064e531024e724baccdeda7dc8b411d69f09037f920e86456d7d0c80c06511532eb2fd8bc79b264bbe64033de0012d763e56e070242f571d31d05d3 WHIRLPOOL 3e40e102aca8949ae9993e872ed0bc4f0070256c400f28e4f1e6e2855e19ea9c22f0c7a3022f24b333a6dcadf659ebf6e0228c7a853c9f33d07dc82a641e946a -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iQIcBAEBAgAGBQJQDkevAAoJECRx6z5ArFrD7+MP/3bB3jZEZrHEYPzqiWdQfwwa -Qr2Y8MQwnqYExqnalw0uC2rt3eHoFXtEcf1WRYO6y7PmppXIkbFdysvHWtlhZEN1 -OzFb4W7IbDLEclsahvBy8iBPf6l00Qu0jpC97y992lOfuzd7jGtyS4wYiQcPatJB -JGhlI1IeBX0Dg7gHimZ34YqY4ti+f/hdX5j68kS6e0VsZZlC72EDqTTUOB+7q1zD -/5e72D1sK6vludxkpXTc670bDvjDQO1TUIBiNL6cxZD+d5MgTZgpQiiTlE+0HtXn -nMC02hqvJ0QtBlwzFKrEJ0a71FT4sA1j5zIu7DdcgW8fSt/qwiCr/+J4hZvb0ac4 -IXJTxvxV02o9lDSywqMY+aIPjSJ9Xd2Io+qVsNYPFH+prHWIhuRdBRsjNQn9YY2t -vo8jmmFFbT2bHj2zdWBk5ZpLEplnKnWRtUsKp6tp7UDHXSORcVOal2wRUtZpn9g+ -XpSB4wPOgG6yzavvst5XtUjiOyqwZGNj4VJAWhzuBcPnMkXlw11bddEenBhDBo9+ -2+QtLUbiH6zniG6o2chjDwveRpVoGyK44KVvtq5ctmY/r3V8tojv0uESgPYDSYgk -G6dv2d25c86C1gfZNyFnvSIO9gHm7q2fb1dVOLspqyCuTwNu13kgtRI1jzEqhhu2 -PUCGXOFa6m9DT3zSUzDP -=52mH +iQIcBAEBAgAGBQJQDkxoAAoJECRx6z5ArFrDgsgP/1VA7nyqC4eoN+wtpsHbjfpg +bH+XFCkCE6/3nk1cUI7PMj9ElorO+VDLWXhtcJaG1aCU+NhFhioD00qtGEjQ9CNz +SwSN6lVt9bC75DxZ/r7/UC4/zFIRmG45XiQbNCMKaU98XyEdo+reW5b9TSY8C6Yp +x3W3EIzZ/utTGnpAMK5o7RMIRYQFoOswSPFMYz2QWf/xoMY7bHVQe4En82rnmMhl +A3wi0we2yyZ5GeiaDs/6sTcxeG3dTW9xu8O1DKoG/80Gzjc6wnsl8qAU5Uusua0o +HmfdMCZV2FusN/hOwM8TkF5pE2lA5L8/Yxhy3KVZnEPcXKaXtNwCn84AGK9bHIgB +ikOZWucKHSkM+0vgjntXGKcY+OE+jTTe/1JodpckKNdrIY1/tZAl0blUuoZuNXM/ +/KjFWF4txF2LKv/3EDwqx+OlG8YcwQROlUaXy3i5zYCQEVhSYgHpDKCR1Vj0LDOL +rL12VrLEm2HuNZKLBI1EFG8e90rxaKLi+jihlKgtsDxawT0tuYI9HDCAOcoXSBe4 +IKC4ZknroL8EkvO4lqL3CzdRZJQI/PmSqZ8nRJuSdCxoPQj021absZ03AXnKkH40 +Q/0gkOxJuJDsm14SQGzdu1uxmHEeGFFc5T3BhYUhB8FpC4c/eP57z6fe1Rd3emGT +XkwGuuT+BrTZlDi155oO +=MZFR -----END PGP SIGNATURE----- diff --git a/sys-auth/nss-pam-ldapd/ChangeLog b/sys-auth/nss-pam-ldapd/ChangeLog new file mode 100644 index 000000000000..0da3c936a9c6 --- /dev/null +++ b/sys-auth/nss-pam-ldapd/ChangeLog @@ -0,0 +1,38 @@ +# ChangeLog for sys-auth/nss-pam-ldapd +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/ChangeLog,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ + +*nss-pam-ldapd-0.8.10 (24 Jul 2012) +*nss-pam-ldapd-0.6.7-r1 (24 Jul 2012) + + 24 Jul 2012; Matthew Thode <prometheanfire@gentoo.org> + +nss-pam-ldapd-0.6.7-r1.ebuild, +nss-pam-ldapd-0.8.10.ebuild, + +files/nslcd-init: + moving to nss-pam-ldapd, also fixes bugs #287727 #234555 + +*nss-ldapd-0.6.7-r1 (02 Apr 2009) + + 02 Apr 2009; Doug Goldstein <cardoe@gentoo.org> -nss-ldapd-0.6.7.ebuild, + +nss-ldapd-0.6.7-r1.ebuild: + Remove world read from config file to fix security issue when using bindpw + field. bug #264574 CVE-2009-1073 + + 08 Dec 2008; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> + metadata.xml: + Added no-herd to metadata. + + 05 Dec 2008; Doug Goldstein <cardoe@gentoo.org> files/nslcd.rc, + nss-ldapd-0.6.7.ebuild: + merge in improvements from Sunrise Overlay by Heath Caldwell + <hncaldwell@gentoo.org> + +*nss-ldapd-0.6.7 (04 Dec 2008) + + 04 Dec 2008; Doug Goldstein <cardoe@gentoo.org> +files/nslcd.rc, + +nss-ldapd-0.6.7.ebuild: + add new nss-ldapd package which is a fork of nss_ldap. It simplifies the + code base and provides a small nss library that speaks to a local daemon + that does all the LDAP communication. Due to the way NSS works, this will + improve interaction with user programs since less code is being loaded + into their process space. + diff --git a/sys-auth/nss-pam-ldapd/Manifest b/sys-auth/nss-pam-ldapd/Manifest new file mode 100644 index 000000000000..374c1c684c02 --- /dev/null +++ b/sys-auth/nss-pam-ldapd/Manifest @@ -0,0 +1,28 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX nslcd-init 815 SHA256 cefb4d36434cfe14f30e3da71383b53c28fb830e8a959abf8b18a93d5b8f7a1c SHA512 bb4ea96f297c54b6ffccbbaa8d70d8ef5ed2e372d17df59c472c4db468392f486205a7fa487b7ffc49dd7ae06dd3132889479cb37aaa1e9592b46c77ca36d08f WHIRLPOOL 02c2b6cced89556948830dabc1fa31cf6d9af52ec4337ea2d235c28cd6e4d0c87851ef54fbb72f333ca9c8f0f779bdbf94b319f113c309c83897b5dd8b0a4252 +AUX nslcd.rc 815 SHA256 7e68c0387282d045016c371c3888946955e7c74281f3d92f677c1f80d39833d9 SHA512 fca3a13f259293adf5fac1f1b574019752103ea83aef261a3a83be81eba59e779399179a82c57e2d504663c455efd2cdd3662ffe12bc2bfdc323f425c58d0906 WHIRLPOOL 2b3ced109aebafff42981b18b142dfed90bc2f1c10f228098f38ab2a1f03402fb79d986cf7a1b309e7649fc91d10c184f3fe5f9caf39933d12bc716de5c6c819 +DIST nss-ldapd-0.6.7.tar.gz 376893 SHA256 322803b7dd29107d3cec961527166c9b3440786f8a0cdb79fc5a23a62fb1c7fe SHA512 c815442b7792c1226a5e9b7be3a2b8d574ee91776cc2104dd95c5ff580a1f68047ef7ec27194bf6d18b919e7af246232133e1dbe6881ce74622ef24d1b23125b WHIRLPOOL 80bec906072bb3929073c196aaba3fb8f986b7594307656ad5e320d6c05ddc4166bfd47e1f37bf6f126b99b7d862e19cefb3275cfb60e592767d39cf5b606164 +DIST nss-pam-ldapd-0.8.10.tar.gz 475884 SHA256 673a5e235a40fd9aac74082bc64d2ac2280fc155fb00b21092650d2c963e79cc SHA512 0e64d123ada3176a7c72e52c6c77c4f6668010a426b32eb3de457cb8c3d8679c1d36b0772d16c042d8e66d02d6cd97a0f437f89b74bbccf08a9b900c323db118 WHIRLPOOL dd2d89abb3fa8d3c9b5b3bb47897dd6b5868cc80b8bbed8a9b923d844da1c3365ff7f1503d132f474e135eca8bbd0e4359283c9d72216d06031d783f3883fb08 +EBUILD nss-pam-ldapd-0.6.7-r1.ebuild 1588 SHA256 bc40f78bb8f7782e86e62bc1507cddd04b870ab189020c2df178589ff26b8976 SHA512 661052012e3161a8aa2ebdf7dbb22e3e85c6bdc848d04a6236ff543b3f8733601ffe962727b9cb04bc013b49976423f9cd708248bea970d95d385ca13aed9d08 WHIRLPOOL dd1a0f5e6bf67db8249c1b41be68d1dc01a8f27e65649e38121f749fdf97037d538e42c23dabbc16a89b91343259709535c2f3edb978e87e1cb4fd24a90f3959 +EBUILD nss-pam-ldapd-0.8.10.ebuild 2022 SHA256 7f32238098cec841bd0926d5a107be998e2a3c41d82efc408ed721e3688ecbab SHA512 069a537f0f2b5b5dfe36f7323421c93b59e231e2bb9eb47d4e306bb7b316357c17eaeb40b2aceef2a61c1fdfebe15ec774f0cd83ce82e71428b09dc8907bd852 WHIRLPOOL 0f5bed0439898fab00f31a001e2311d3994ef64cba89de8e8baeef08540d9e621fb0177d909709cfc1eb6f34d102bb4835ad48e9a55e13e3e5a82409f823fea4 +MISC ChangeLog 1504 SHA256 c6a973fd18a731c383fb7dc394b49d9bfc25e129cb1e323a3eb7e997d6ce7b1d SHA512 ef24273833a0af8200045337d960085e47428cb234a77604a1bb19120e0c06e164c327cf45c8a03f88acbbf14762c965baf7786da2d13fbfbd160209ccc578c9 WHIRLPOOL 9a5b423edd89e0fa5faa17a80e8c27303c0a9c03a565345bf642815c00efd22e4e93227d4da7b3e70ac0e4236f07d34020c9105eb6ccc86b6030bc976f929ef1 +MISC metadata.xml 241 SHA256 58c2206a9844c7fbfd2ffb5ae2431a552d3d1207dc96aaa94f16ce2c501be545 SHA512 0b22f6d58064e531024e724baccdeda7dc8b411d69f09037f920e86456d7d0c80c06511532eb2fd8bc79b264bbe64033de0012d763e56e070242f571d31d05d3 WHIRLPOOL 3e40e102aca8949ae9993e872ed0bc4f0070256c400f28e4f1e6e2855e19ea9c22f0c7a3022f24b333a6dcadf659ebf6e0228c7a853c9f33d07dc82a641e946a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iQIcBAEBAgAGBQJQDkvKAAoJECRx6z5ArFrDE0EP/jpTIaonRVKSkp7dcA77zQxb +X9B9sicrQKRxScvUvM8zStZGFwBVdYkdSDZQ8WZPJz4YM9nEJuBt9TXoQjDofWW9 +LeW5v0qfs42lUKWuXI4qcqSHNtBPwq/+qXzEBxLeyPoW2yVBzgJ3Y+GBpa4rymAg +zvw/mIEPwtJ7gTOIYGqDEq0iSW3q9iPXjaCM/BNiV5ahm+QMj7go9J1DdDOFztfH +ubj3S66xLPhJZHgG1EUZNSch2Yo3U4oKcvu8xan7lZ+Qy4vgq6hTMLzCmp5TJBsF +NgBW0nnFijbRaEx5pcI7Rkm6NAKhGVv4MDuSeOiFqeTcEbKQt+gTC3GgDd3wLcqM +3X1Z6/nlaJMZkfDpLmULRCgVPeow3dMs0FDdlJI7Svx36OArMX8HA1sSflZ7d0+T +uJNnP/4dm8pEPE6/9KiQjTk48A6Wd2uV5HE6HbXVcXxuB7lNfr0H+MYf3ri1TQ0s +hFM/3mLthMJyR+pFovgwncRVv6iqV/CQ33/S+MicACGqgURCsOw5udj2mk14IVOa +acdDOXcrzrLDohr/WFKIF/58Kk6NQXvxdLn82PrIzk3PMi0XBHHwX5Wdw/JAiUlY +tSvVGwOWnv3HqyZwPCtgdIZdtt0Zl54rkbri+Ams5XtK1V5q2DrEVVK3zvHpKa5A +DC0vtDc8nyvkuKcL6wWo +=6DGQ +-----END PGP SIGNATURE----- diff --git a/sys-auth/nss-pam-ldapd/files/nslcd-init b/sys-auth/nss-pam-ldapd/files/nslcd-init new file mode 100644 index 000000000000..208f970890a1 --- /dev/null +++ b/sys-auth/nss-pam-ldapd/files/nslcd-init @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/files/nslcd-init,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ + +extra_commands="checkconfig" + +depend() { + need net + use dns logger +} + +checkconfig() { + if [ ! -f /etc/nslcd.conf ] ; then + eerror "Please create /etc/nslcd.conf" + eerror "Example config: /usr/share/nss-ldapd/nslcd.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting nslcd" + start-stop-daemon --start --pidfile /var/run/nslcd/nslcd.pid \ + --exec /usr/sbin/nslcd + eend $? "Failed to start nslcd" +} + +stop() { + ebegin "Stopping nslcd" + start-stop-daemon --stop --pidfile /var/run/nslcd/nslcd.pid + eend $? "Failed to stop nslcd" +} diff --git a/sys-auth/nss-pam-ldapd/files/nslcd.rc b/sys-auth/nss-pam-ldapd/files/nslcd.rc new file mode 100644 index 000000000000..e02d8c0c95ed --- /dev/null +++ b/sys-auth/nss-pam-ldapd/files/nslcd.rc @@ -0,0 +1,35 @@ +#!/sbin/runscript +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/files/nslcd.rc,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ + +opts="checkconfig" + +depend() { + need net + use dns logger +} + +checkconfig() { + if [ ! -f /etc/nss-ldapd.conf ] ; then + eerror "Please create /etc/nss-ldapd.conf" + eerror "Example config: /usr/share/nss-ldapd/nss-ldapd.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + + ebegin "Starting nslcd" + start-stop-daemon --start --pidfile /var/run/nslcd/nslcd.pid \ + --exec /usr/sbin/nslcd + eend $? "Failed to start nslcd" +} + +stop() { + ebegin "Stopping nslcd" + start-stop-daemon --stop --pidfile /var/run/nslcd/nslcd.pid + eend $? "Failed to stop nslcd" +} diff --git a/sys-auth/nss-pam-ldapd/metadata.xml b/sys-auth/nss-pam-ldapd/metadata.xml new file mode 100644 index 000000000000..de55eff773c9 --- /dev/null +++ b/sys-auth/nss-pam-ldapd/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>prometheanfire@gentoo.org</email> + <name>Matthew Thode</name> + </maintainer> +</pkgmetadata> + diff --git a/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild new file mode 100644 index 000000000000..9861c90d3d50 --- /dev/null +++ b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.6.7-r1.ebuild,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ + +inherit multilib + +DESCRIPTION="NSS module for name lookups using LDAP" +HOMEPAGE="http://ch.tudelft.nl/~arthur/nss-ldapd/" +SRC_URI="http://ch.tudelft.nl/~arthur/nss-ldapd/nss-ldapd-${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="debug kerberos sasl" + +DEPEND="net-nds/openldap + sasl? ( dev-libs/cyrus-sasl ) + kerberos? ( virtual/krb5 ) + !sys-auth/nss_ldap" +RDEPEND="${DEPEND}" + +src_compile() { + # nss libraries always go in /lib on Gentoo + econf --enable-warnings --with-ldap-lib=openldap $(use_enable debug) \ + --libdir=/$(get_libdir) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "make install failed" + + dodoc NEWS ChangeLog AUTHORS README + + # for socket and pid file + keepdir /var/run/nslcd + + # init script + newinitd "${FILESDIR}"/nslcd.rc nslcd + + # make an example copy + insinto /usr/share/nss-ldapd + doins nss-ldapd.conf + + fperms o-r /etc/nss-ldapd.conf +} + +pkg_postinst() { + elog + elog "For this to work you must configure /etc/nss-ldapd.conf" + elog "This configuration is similar to pam_ldap's /etc/ldap.conf" + elog + elog "In order to use nss-ldapd, nslcd needs to be running. You can" + elog "start it like this:" + elog " # /etc/init.d/nslcd start" + elog + elog "You can add it to the default runlevel like so:" + elog " # rc-update add nslcd default" +} diff --git a/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.10.ebuild b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.10.ebuild new file mode 100644 index 000000000000..09f6f51e3f27 --- /dev/null +++ b/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.10.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-auth/nss-pam-ldapd/nss-pam-ldapd-0.8.10.ebuild,v 1.1 2012/07/24 07:16:14 prometheanfire Exp $ + +EAPI=4 + +inherit multilib user + +DESCRIPTION="NSS module for name lookups using LDAP" +HOMEPAGE="http://arthurdejong.org/nss-pam-ldapd/" +SRC_URI="http://arthurdejong.org/nss-pam-ldapd/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="debug kerberos sasl +pam" + +DEPEND="net-nds/openldap + sasl? ( dev-libs/cyrus-sasl ) + kerberos? ( virtual/krb5 ) + pam? ( virtual/pam ) + !sys-auth/nss_ldap" +RDEPEND="${DEPEND}" + +pkg_setup() { + enewgroup nslcd + enewuser nslcd -1 -1 -1 nslcd +} + +src_configure() { + # nss libraries always go in /lib on Gentoo + myconf="--enable-warnings + --with-ldap-lib=openldap + --with-ldap-conf-file=/etc/nslcd.conf + --with-nslcd-pidfile=/var/run/nslcd/nslcd.pid + --with-nslcd-socket=/var/run/nslcd/socket + --libdir=/$(get_libdir) + $(use_enable debug) + $(use_enable kerberos) + $(use_enable pam)" + + if use x86-fbsd; then + myconf+=" --with-nss-flavour=freebsd" + else + myconf+=" --with-nss-flavour=glibc" + fi + + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" install + + dodoc NEWS ChangeLog AUTHORS README + + # for socket and pid file + keepdir /var/run/nslcd + + # init script + newinitd "${FILESDIR}"/nslcd-init nslcd + + # make an example copy + insinto /usr/share/nss-pam-ldapd + doins nslcd.conf + + fperms o-r /etc/nslcd.conf +} + +pkg_postinst() { + elog + elog "For this to work you must configure /etc/nslcd.conf" + elog "This configuration is similar to pam_ldap's /etc/ldap.conf" + elog + elog "In order to use nss-pam-ldapd, nslcd needs to be running. You can" + elog "start it like this:" + elog " # /etc/init.d/nslcd start" + elog + elog "You can add it to the default runlevel like so:" + elog " # rc-update add nslcd default" + elog + elog "If you are upgrading, keep in mind that /etc/nss-ldapd.conf" + elog " is now named /etc/nslcd.conf" + elog +} |