pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/wpa_supplicant If the OPSYS-specific defconfig fil...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d13299a2f37
branches:  trunk
changeset: 397367:7d13299a2f37
user:      dsainty <dsainty%pkgsrc.org@localhost>
date:      Mon Aug 10 23:03:20 2009 +0000

description:
If the OPSYS-specific defconfig file isn't present, don't bomb out the
Makefile by trying to concatenate the non-existent file.  Fixes the build for
Linux, and presumably all other non-NetBSD platforms too.

diffstat:

 net/wpa_supplicant/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 1d1eccd86e8a -r 7d13299a2f37 net/wpa_supplicant/Makefile
--- a/net/wpa_supplicant/Makefile       Mon Aug 10 20:37:15 2009 +0000
+++ b/net/wpa_supplicant/Makefile       Mon Aug 10 23:03:20 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2009/06/29 15:32:34 joerg Exp $
+# $NetBSD: Makefile,v 1.6 2009/08/10 23:03:20 dsainty Exp $
 #
 
 DISTNAME=      wpa_supplicant-0.6.9
@@ -34,7 +34,8 @@
 
 post-extract:
        ${CP} ${FILESDIR}/defconfig ${WRKSRC}/wpa_supplicant/.config
-       ${CAT} ${FILESDIR}/defconfig.${OPSYS} >> ${WRKSRC}/wpa_supplicant/.config
+       [ ! -e ${FILESDIR}/defconfig.${OPSYS} ] || \
+               ${CAT} ${FILESDIR}/defconfig.${OPSYS} >> ${WRKSRC}/wpa_supplicant/.config
 .if !empty(PKG_OPTIONS:Mdbus)
        ${ECHO} CONFIG_CTRL_IFACE_DBUS=y >> ${WRKSRC}/wpa_supplicant/.config
 .endif



Home | Main Index | Thread Index | Old Index