pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/caff Don't try to use "hostname -f" under any...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b95690958b75
branches:  trunk
changeset: 509689:b95690958b75
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Mar 13 15:05:43 2006 +0000

description:
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:

 security/caff/Makefile |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 77af38d4f6d4 -r b95690958b75 security/caff/Makefile
--- a/security/caff/Makefile    Mon Mar 13 13:12:13 2006 +0000
+++ b/security/caff/Makefile    Mon Mar 13 15:05:43 2006 +0000
@@ -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_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



Home | Main Index | Thread Index | Old Index