diff options
author | clsung <clsung@FreeBSD.org> | 2006-12-20 10:31:17 +0800 |
---|---|---|
committer | clsung <clsung@FreeBSD.org> | 2006-12-20 10:31:17 +0800 |
commit | ddceb9e19353692251a265ac29be04a8e4254be6 (patch) | |
tree | 04c6feac1d1b78b3307593cb41332860872982f6 /net | |
parent | df38deafe5f5228aa37a9c61f8afd414918bda58 (diff) | |
download | freebsd-ports-gnome-ddceb9e19353692251a265ac29be04a8e4254be6.tar.gz freebsd-ports-gnome-ddceb9e19353692251a265ac29be04a8e4254be6.tar.zst freebsd-ports-gnome-ddceb9e19353692251a265ac29be04a8e4254be6.zip |
- In some cases (like sudo), we should check euid not uid, thanks for
jnlin at csie.nctu.edu.tw
- Use MAN5PREFIX
- portlint warns:
1) IGNORE should be lowercase-lead
2) INSTALLS_SHLIB should be replaced by USE_LDCONFIG
3) PLIST_FILES should be used when only two files
- Bump PORTREVISION
PR: ports/104310
Submitted by: Gea-Suan Lin <gslin_AT_gslin dot org>
Approved by: maintainer (timeout)
Diffstat (limited to 'net')
-rw-r--r-- | net/nss_ldap/Makefile | 12 | ||||
-rw-r--r-- | net/nss_ldap/files/patch-ldap-pwd.c | 2 | ||||
-rw-r--r-- | net/nss_ldap/pkg-plist | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/net/nss_ldap/Makefile b/net/nss_ldap/Makefile index eee1bb19a7f6..f84ae111c009 100644 --- a/net/nss_ldap/Makefile +++ b/net/nss_ldap/Makefile @@ -7,6 +7,7 @@ PORTNAME= nss_ldap PORTVERSION= 1.${NSS_LDAP_VERSION} +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.padl.com/download/ \ ${MASTER_SITE_LOCAL} @@ -16,13 +17,14 @@ DISTNAME= ${PORTNAME}-${NSS_LDAP_VERSION} MAINTAINER= kazakov@gmail.com COMMENT= RFC 2307 NSS module -USE_OPENLDAP= yes - NSS_LDAP_VERSION=251 GNU_CONFIGURE= yes USE_GMAKE= yes -INSTALLS_SHLIB= yes +USE_LDCONFIG= yes +USE_OPENLDAP= yes + +PLIST_FILES= etc/nss_ldap.conf.sample lib/nss_ldap.so.1 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib -Wl,-rpath,${LOCALBASE}/lib" @@ -44,13 +46,13 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/ldap.conf ${PREFIX}/etc/nss_ldap.conf.sample @${REINPLACE_CMD} 's,/etc/ldap.,${PREFIX}/etc/nss_ldap.,g' \ ${WRKSRC}/${MAN5} - ${INSTALL_MAN} ${WRKSRC}/${MAN5} ${PREFIX}/man/man5 + ${INSTALL_MAN} ${WRKSRC}/${MAN5} ${MAN5PREFIX}/man/man5 ${SED} -e "s,%%PREFIX%%,${PREFIX},g" ${PKGMESSAGE} .include <bsd.port.pre.mk> .if ${OSVERSION} < 500112 -IGNORE= NSS modules only supported on FreeBSD 5.1 or later +IGNORE= this NSS modules only supported on FreeBSD 5.1 or later .endif .include <bsd.port.post.mk> diff --git a/net/nss_ldap/files/patch-ldap-pwd.c b/net/nss_ldap/files/patch-ldap-pwd.c index e6eb878b4988..43558b6cd4f5 100644 --- a/net/nss_ldap/files/patch-ldap-pwd.c +++ b/net/nss_ldap/files/patch-ldap-pwd.c @@ -21,7 +21,7 @@ + * { + */ /* don't include password for shadowAccount */ -+ if (getuid() != 0) ++ if (geteuid() != 0) + { + /* don't include password for non-root users */ if (buflen < 3) diff --git a/net/nss_ldap/pkg-plist b/net/nss_ldap/pkg-plist deleted file mode 100644 index 4e07a436c7d5..000000000000 --- a/net/nss_ldap/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -etc/nss_ldap.conf.sample -lib/nss_ldap.so.1 |