summaryrefslogtreecommitdiff
path: root/security/pam-af
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-10-17 09:38:25 +0000
committerobache <obache@pkgsrc.org>2011-10-17 09:38:25 +0000
commit61888303c8724d70128338523c2e212a8425d7b7 (patch)
tree5d2311649b5004d472670564be5c181eb33d0deb /security/pam-af
parent60e38318a78965854ffd3f603197f33530c0784d (diff)
downloadpkgsrc-61888303c8724d70128338523c2e212a8425d7b7.tar.gz
Honor VARBASE and PKG_SYSCONFDIR.
ride on last update.
Diffstat (limited to 'security/pam-af')
-rw-r--r--security/pam-af/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/security/pam-af/Makefile b/security/pam-af/Makefile
index da0c3e168e9..7872ccae74e 100644
--- a/security/pam-af/Makefile
+++ b/security/pam-af/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2011/10/17 08:47:51 obache Exp $
+# $NetBSD: Makefile,v 1.10 2011/10/17 09:38:25 obache Exp $
DISTNAME= pam_af-1.0.2
PKGNAME= ${DISTNAME:S/_/-/}
@@ -13,6 +13,16 @@ LICENSE= 2-clause-bsd
PKG_DESTDIR_SUPPORT= user-destdir
+SUBST_CLASSES+= pkgvar
+SUBST_STAGE.pkgvar= post-configure
+SUBST_MESSAGE.pkgvar= replace hard-coded paths
+SUBST_FILES.pkgvar= common/pam_af.h
+SUBST_SED.pkgvar= -e 's|/var/|${VARBASE}/|g'
+SUBST_SED.pkgvar+= -e 's|/etc/|${PKG_SYSCONFDIR}/|g'
+
+BUILD_DEFS+= VARBASE
+MAKE_DIRS+= ${VARBASE}/db
+
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"