mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
This a port of the nss_ldap libraries for linux.
You'll probably need this if your system users in a LDAP directory are complaining their linux programs won't run, and errors on the console say "getpwuid_r(): failed due to unknown user id". PR: ports/164113 Submitted by: rskinner port_maintainer@herveybayaustralia.com.au Minor modifications (no license install, srpm checksum) by: netchild Note: the license framework does not seem to DTRT with linux ports
This commit is contained in:
parent
64bfbd5ee2
commit
1f2f338966
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289547
6 changed files with 100 additions and 0 deletions
|
@ -344,6 +344,7 @@
|
|||
SUBDIR += linneighborhood
|
||||
SUBDIR += linphone
|
||||
SUBDIR += linphone-base
|
||||
SUBDIR += linux-f10-nss_ldap
|
||||
SUBDIR += linux-f10-openldap
|
||||
SUBDIR += linux-nx-client
|
||||
SUBDIR += linuxigd
|
||||
|
|
78
net/linux-f10-nss_ldap/Makefile
Normal file
78
net/linux-f10-nss_ldap/Makefile
Normal file
|
@ -0,0 +1,78 @@
|
|||
# New ports collection makefile for: linux-f10-nss_ldap
|
||||
# Date created: 2012-01-04
|
||||
# Whom: rskinner port_maintainer@herveybayaustralia.com.au
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= nss_ldap
|
||||
PORTVERSION= ${NSS_LDAP_VERSION}
|
||||
CATEGORIES= net linux
|
||||
MASTER_SITES= ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/testing/10/i386/ \
|
||||
http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/testing/10/i386/ \
|
||||
http://herveybayaustralia.com.au/ports/distfiles/
|
||||
PKGNAMEPREFIX= linux-f10-
|
||||
DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION}-${RPMVERSION}
|
||||
|
||||
MAINTAINER= port_maintainer@herveybayaustralia.com.au
|
||||
COMMENT= RFC 2307 NSS Module (Linux Fedora 10)
|
||||
|
||||
LICENSE= GPLv2
|
||||
NO_LICENSES_INSTALL=yes # license framework does not rm the "share" directory
|
||||
|
||||
NSS_LDAP_VERSION=264
|
||||
|
||||
USE_LINUX_RPM= yes
|
||||
USE_LINUX_PREFIX=yes
|
||||
LINUX_DIST_VER= 10
|
||||
RPMVERSION= 6.fc10
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
DOCSDIR= ${PREFIX}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}
|
||||
|
||||
MANPREFIX= ${PREFIX}/usr/share
|
||||
MANCOMPRESSED= no
|
||||
MAN5= nss_ldap.5.gz
|
||||
|
||||
.if defined(WITH_PAM)
|
||||
PLIST_SUB+= PAM=""
|
||||
MAN5+= pam_ldap.5.gz
|
||||
.else
|
||||
PLIST_SUB+= PAM="@comment "
|
||||
.endif
|
||||
|
||||
PORTDOCS=*
|
||||
|
||||
pre-fetch:
|
||||
.if !defined(WITH_PAM)
|
||||
@${ECHO_MSG} "Use WITH_PAM if you require more advanced ldap support in the linuxulator"
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@if [ -f ${WRKDIR}/etc/ldap.conf ]; then \
|
||||
${MV} ${WRKDIR}/etc/ldap.conf ${WRKDIR}/etc/ldap.conf.dist; \
|
||||
fi
|
||||
.if !defined(WITH_PAM)
|
||||
@if [ -f ${WRKDIR}/lib/security/pam_ldap.so ]; then \
|
||||
${RM} -rf ${WRKDIR}/lib/; \
|
||||
fi
|
||||
@if [ -f ${WRKDIR}/usr/share/doc/nss_ldap-264/COPYING.pam_ldap ]; then \
|
||||
${RM} ${WRKDIR}/usr/share/doc/nss_ldap-264/*.pam*; \
|
||||
${RM} -rf ${WRKDIR}/usr/share/doc/nss_ldap-264/pam.d; \
|
||||
fi
|
||||
@if [ -f ${WRKDIR}/usr/share/man/man5/pam_ldap.5.gz ]; then \
|
||||
${RM} ${WRKDIR}/usr/share/man/man5/pam_ldap.5.gz; \
|
||||
fi
|
||||
.else
|
||||
.if defined(NOPORTDOCS)
|
||||
@if [ -d ${WRKDIR}/usr/share/doc/nss_ldap-264/pam.d ]; then \
|
||||
${RM} -rf ${WRKDIR}/usr/share/doc/nss_ldap-264/pam.d/; \
|
||||
fi
|
||||
.endif
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
@${RM} ${PREFIX}/GPLv2 # somehow installed by LICENSE framework
|
||||
@${CAT} ${PKGMESSAGE};
|
||||
|
||||
.include <bsd.port.mk>
|
4
net/linux-f10-nss_ldap/distinfo.i386
Normal file
4
net/linux-f10-nss_ldap/distinfo.i386
Normal file
|
@ -0,0 +1,4 @@
|
|||
SHA256 (rpm/i386/fedora/10/nss_ldap-264-6.fc10.i386.rpm) = 38fa8ac3fd79e15b0dde58f6a105e115ab5ba1166109b60ecd6b7905effaad3b
|
||||
SIZE (rpm/i386/fedora/10/nss_ldap-264-6.fc10.i386.rpm) = 721887
|
||||
SHA256 (rpm/i386/fedora/10/nss_ldap-264-6.fc10.src.rpm) = ea0a99777950996514709abc9a4927a1e470a9e31d171df9ee86fea601376882
|
||||
SIZE (rpm/i386/fedora/10/nss_ldap-264-6.fc10.src.rpm) = 463793
|
6
net/linux-f10-nss_ldap/pkg-descr
Normal file
6
net/linux-f10-nss_ldap/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
This a port of the nss_ldap libraries for linux.
|
||||
|
||||
You'll probably need this if your system users in a LDAP
|
||||
directory are complaining their linux programs won't run,
|
||||
and errors on the console say "getpwuid_r(): failed due
|
||||
to unknown user id".
|
6
net/linux-f10-nss_ldap/pkg-message
Normal file
6
net/linux-f10-nss_ldap/pkg-message
Normal file
|
@ -0,0 +1,6 @@
|
|||
###########################################################################
|
||||
|
||||
At a minimum you need to link your ldap.conf to /compat/linux/etc/ or set
|
||||
/compat/linux/etc/ldap.conf to suit your network environment.
|
||||
|
||||
###########################################################################
|
5
net/linux-f10-nss_ldap/pkg-plist
Normal file
5
net/linux-f10-nss_ldap/pkg-plist
Normal file
|
@ -0,0 +1,5 @@
|
|||
usr/lib/libnss_ldap.so.2
|
||||
usr/lib/libnss_ldap.so
|
||||
usr/lib/libnss_ldap-264.so
|
||||
etc/ldap.conf.dist
|
||||
%%PAM%%lib/security/pam_ldap.so
|
Loading…
Add table
Reference in a new issue