summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortron <tron>2006-03-13 15:05:43 +0000
committertron <tron>2006-03-13 15:05:43 +0000
commit084e7fc417ff906e5ff846d345af7ffd4f2a4a4c (patch)
tree7f5ffa123c6456304ba00ab4b4f4569217ea4a19 /security
parent57f671161ea24a3498b6b9a6f26f031e67126786 (diff)
downloadpkgsrc-084e7fc417ff906e5ff846d345af7ffd4f2a4a4c.tar.gz
Don't try to use "hostname -f" under anything but Linux because that
command line option isn't portable. Bump package revision because of this fix.
Diffstat (limited to 'security')
-rw-r--r--security/caff/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/security/caff/Makefile b/security/caff/Makefile
index 9f95be1e87b..46164d84199 100644
--- a/security/caff/Makefile
+++ b/security/caff/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2006/03/07 14:31:28 tonio Exp $
+# $NetBSD: Makefile,v 1.3 2006/03/13 15:05:43 tron Exp $
DISTNAME= signing-party_0.4.4.orig
PKGNAME= caff-0.4.4
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/s/signing-party/}
@@ -31,6 +31,16 @@ SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= caff/caff keylookup/keylookup keylookup/keylookup.1
SUBST_SED.paths= -e 's,/usr/,${PREFIX}/,g'
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "Linux"
+SUBST_CLASSES+= hostname
+SUBST_MESSAGE.hostname= Fixing unportable use of "hostname" command.
+SUBST_STAGE.hostname= pre-configure
+SUBST_FILES.hostname= caff/caff
+SUBST_SED.hostname= -e 's/hostname -f/hostname/g'
+.endif
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/caff/caff ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/caff/pgp-fixkey ${PREFIX}/bin