diff options
author | asau <asau@pkgsrc.org> | 2014-06-01 19:38:10 +0000 |
---|---|---|
committer | asau <asau@pkgsrc.org> | 2014-06-01 19:38:10 +0000 |
commit | c2a3aefb2b0f7f14e12d80df4940a260561f5796 (patch) | |
tree | 0be12e48f55f3ac614d7613a6a62d219c2358833 /databases/nss_ldap/Makefile | |
parent | 3d54e763cc8ed49fdac5720ab3527257dd839df7 (diff) | |
download | pkgsrc-c2a3aefb2b0f7f14e12d80df4940a260561f5796.tar.gz |
FreeBSD uses NetBSD-derived nsdispatch.
Cram FreeBSD support in with some force using some knowledge
picked from FreeBSD ports collection.
Not yet tested in field.
Diffstat (limited to 'databases/nss_ldap/Makefile')
-rw-r--r-- | databases/nss_ldap/Makefile | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/databases/nss_ldap/Makefile b/databases/nss_ldap/Makefile index 6b37938a67e..8d576e32d7c 100644 --- a/databases/nss_ldap/Makefile +++ b/databases/nss_ldap/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2014/02/12 23:17:39 tron Exp $ +# $NetBSD: Makefile,v 1.29 2014/06/01 19:38:10 asau Exp $ DISTNAME= nss_ldap-265 PKGREVISION= 5 @@ -11,7 +11,7 @@ COMMENT= LDAP client for nsswitch LICENSE= gnu-lgpl-v2 # needs nsswitch -ONLY_FOR_PLATFORM= NetBSD-[3-9]*-* +ONLY_FOR_PLATFORM= NetBSD-[3-9]*-* FreeBSD-*-* USE_TOOLS+= gmake GNU_CONFIGURE= yes @@ -21,6 +21,8 @@ CONFIGURE_ARGS+= --with-ldap-lib=openldap CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client} CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/ldap.conf CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/ldap.secret +CFLAGS.FreeBSD+= -DUID_NOBODY=65534 -DGID_NOBODY=65534 # see <sys/conf.h> +CONFIGURE_ENV+= ac_cv_header_nsswitch_h=no MAKE_FLAGS+= INST_UID=${BINOWN} INST_GID=${BINGRP} # shared with security/pam-ldap @@ -29,9 +31,19 @@ CONF_FILES= ${EGDIR}/ldap.conf ${PKG_SYSCONFDIR}/ldap.conf INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} +SUBST_CLASSES+= fix-opsys +SUBST_STAGE.fix-opsys= pre-configure +SUBST_MESSAGE.fix-opsys= Fixing system name. +SUBST_FILES.fix-opsys= Makefile.in +SUBST_SED.fix-opsys= -e 's,@OPSYS@,${OPSYS:tl},g' + +.include "../../mk/bsd.prefs.mk" + pre-build: - ${CP} ${FILESDIR}/netbsd.c ${FILESDIR}/netbsd.h ${WRKSRC} + ${CP} ${FILESDIR}/netbsd.c ${FILESDIR}/netbsd.h ${FILESDIR}/freebsd.c ${WRKSRC} +.if ${OPSYS} == "NetBSD" ${LN} -fs /usr/include/nsswitch.h ${BUILDLINK_DIR}/include/nss.h +.endif .include "options.mk" |