View | Details | Raw Unified | Return to bug 104310
Collapse All | Expand All

(-)/home/staff/gslin/work/ports/nss_ldap/Makefile (-5 / +7 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	nss_ldap
8
PORTNAME=	nss_ldap
9
PORTVERSION=	1.${NSS_LDAP_VERSION}
9
PORTVERSION=	1.${NSS_LDAP_VERSION}
10
PORTREVISION=	1
10
CATEGORIES=	net
11
CATEGORIES=	net
11
MASTER_SITES=	http://www.padl.com/download/ \
12
MASTER_SITES=	http://www.padl.com/download/ \
12
		${MASTER_SITE_LOCAL}
13
		${MASTER_SITE_LOCAL}
Lines 16-28 Link Here
16
MAINTAINER=	kazakov@gmail.com
17
MAINTAINER=	kazakov@gmail.com
17
COMMENT=	RFC 2307 NSS module
18
COMMENT=	RFC 2307 NSS module
18
19
19
USE_OPENLDAP=	yes
20
21
NSS_LDAP_VERSION=251
20
NSS_LDAP_VERSION=251
22
21
23
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
24
USE_GMAKE=	yes
23
USE_GMAKE=	yes
25
INSTALLS_SHLIB=	yes
24
USE_LDCONFIG=	yes
25
USE_OPENLDAP=	yes
26
27
PLIST_FILES=	etc/nss_ldap.conf.sample lib/nss_ldap.so.1
26
28
27
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
29
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
28
		LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib"
30
		LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib"
Lines 44-56 Link Here
44
	${INSTALL_DATA} ${WRKSRC}/ldap.conf ${PREFIX}/etc/nss_ldap.conf.sample
46
	${INSTALL_DATA} ${WRKSRC}/ldap.conf ${PREFIX}/etc/nss_ldap.conf.sample
45
	@${REINPLACE_CMD} 's,/etc/ldap.,${PREFIX}/etc/nss_ldap.,g' \
47
	@${REINPLACE_CMD} 's,/etc/ldap.,${PREFIX}/etc/nss_ldap.,g' \
46
		${WRKSRC}/${MAN5}
48
		${WRKSRC}/${MAN5}
47
	${INSTALL_MAN} ${WRKSRC}/${MAN5} ${PREFIX}/man/man5
49
	${INSTALL_MAN} ${WRKSRC}/${MAN5} ${MAN5PREFIX}/man/man5
48
	${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
50
	${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE}
49
51
50
.include <bsd.port.pre.mk>
52
.include <bsd.port.pre.mk>
51
53
52
.if ${OSVERSION} < 500112
54
.if ${OSVERSION} < 500112
53
IGNORE=		NSS modules only supported on FreeBSD 5.1 or later
55
IGNORE=		this NSS modules only supported on FreeBSD 5.1 or later
54
.endif
56
.endif
55
57
56
.include <bsd.port.post.mk>
58
.include <bsd.port.post.mk>
(-)/home/staff/gslin/work/ports/nss_ldap/files/patch-ldap-pwd.c (-1 / +1 lines)
Lines 21-27 Link Here
21
+ *   {
21
+ *   {
22
+ */
22
+ */
23
       /* don't include password for shadowAccount */
23
       /* don't include password for shadowAccount */
24
+  if (getuid() != 0) 
24
+  if (geteuid() != 0) 
25
+  {
25
+  {
26
+	  /* don't include password for non-root users */
26
+	  /* don't include password for non-root users */
27
       if (buflen < 3)
27
       if (buflen < 3)
(-)/home/staff/gslin/work/ports/nss_ldap/pkg-plist (-2 lines)
Lines 1-2 Link Here
1
etc/nss_ldap.conf.sample
2
lib/nss_ldap.so.1

Return to bug 104310