Lines 7-15
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= 4 |
10 |
PORTREVISION= 5 |
11 |
CATEGORIES= net |
11 |
CATEGORIES= net |
12 |
MASTER_SITES= http://www.padl.com/download/ |
12 |
MASTER_SITES= http://www.padl.com/download/ \ |
|
|
13 |
LOCAL/martymac |
13 |
DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION} |
14 |
DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION} |
14 |
|
15 |
|
15 |
MAINTAINER= mikeg@bsd-box.net |
16 |
MAINTAINER= mikeg@bsd-box.net |
Lines 27-35
Link Here
|
27 |
|
28 |
|
28 |
OPTIONS= LCLASS "Enable login classes via the loginClass attribute" on |
29 |
OPTIONS= LCLASS "Enable login classes via the loginClass attribute" on |
29 |
|
30 |
|
30 |
PLIST_FILES= etc/nss_ldap.conf.sample \ |
|
|
31 |
lib/nss_ldap.so.1 |
32 |
|
33 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
31 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
34 |
LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib" |
32 |
LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib" |
35 |
|
33 |
|
Lines 54-59
Link Here
|
54 |
post-extract: |
52 |
post-extract: |
55 |
${CP} ${FILESDIR}/bsdnss.c ${WRKSRC} |
53 |
${CP} ${FILESDIR}/bsdnss.c ${WRKSRC} |
56 |
|
54 |
|
|
|
55 |
post-patch: |
56 |
@${REINPLACE_CMD} -e 's,/etc/ldap\.,${PREFIX}/etc/nss_ldap.,g' \ |
57 |
-e 's,/etc/openldap/ldap\.,${PREFIX}/etc/openldap/ldap.,g' \ |
58 |
${WRKSRC}/ldap.conf |
59 |
@${REINPLACE_CMD} 's,/etc/ldap\.,${PREFIX}/etc/nss_ldap.,g' \ |
60 |
${WRKSRC}/${MAN5} |
61 |
|
57 |
# XXX: newer autoconf's rely on the compiler result, not the preprocessor |
62 |
# XXX: newer autoconf's rely on the compiler result, not the preprocessor |
58 |
# for checking headers, so the configure.in needs to be fixed upstream |
63 |
# for checking headers, so the configure.in needs to be fixed upstream |
59 |
# to properly include dependencies |
64 |
# to properly include dependencies |
Lines 65-75
Link Here
|
65 |
do-install: |
70 |
do-install: |
66 |
${INSTALL_PROGRAM} ${WRKSRC}/nss_ldap.so ${PREFIX}/lib/nss_ldap.so.1 |
71 |
${INSTALL_PROGRAM} ${WRKSRC}/nss_ldap.so ${PREFIX}/lib/nss_ldap.so.1 |
67 |
${INSTALL_DATA} ${WRKSRC}/ldap.conf ${PREFIX}/etc/nss_ldap.conf.sample |
72 |
${INSTALL_DATA} ${WRKSRC}/ldap.conf ${PREFIX}/etc/nss_ldap.conf.sample |
68 |
@${REINPLACE_CMD} 's,/etc/ldap.,${PREFIX}/etc/nss_ldap.,g' \ |
|
|
69 |
${WRKSRC}/${MAN5} |
70 |
${INSTALL_MAN} ${WRKSRC}/${MAN5} ${MAN5PREFIX}/man/man5 |
73 |
${INSTALL_MAN} ${WRKSRC}/${MAN5} ${MAN5PREFIX}/man/man5 |
71 |
|
74 |
|
72 |
post-install: |
75 |
post-install: |
|
|
76 |
.if !exists(${PREFIX}/etc/nss_ldap.conf) |
77 |
${CP} -p ${PREFIX}/etc/nss_ldap.conf.sample ${PREFIX}/etc/nss_ldap.conf |
78 |
.endif |
73 |
.if !defined(PACKAGE_BUILDING) |
79 |
.if !defined(PACKAGE_BUILDING) |
74 |
@${CAT} ${PKGMESSAGE} |
80 |
@${CAT} ${PKGMESSAGE} |
75 |
.endif |
81 |
.endif |