summaryrefslogtreecommitdiff
path: root/net/wpa_supplicant
diff options
context:
space:
mode:
authordsainty <dsainty@pkgsrc.org>2009-08-10 23:03:20 +0000
committerdsainty <dsainty@pkgsrc.org>2009-08-10 23:03:20 +0000
commit66b1c0a4bb4d8aae7d12ecb98e1d89ffac238bf2 (patch)
treeb1e527d52c05cca5ee407c9fa43aeec9dd795fce /net/wpa_supplicant
parenta0f8cc6f983d41be9a622431498d43f977fb2852 (diff)
downloadpkgsrc-66b1c0a4bb4d8aae7d12ecb98e1d89ffac238bf2.tar.gz
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 (limited to 'net/wpa_supplicant')
-rw-r--r--net/wpa_supplicant/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/wpa_supplicant/Makefile b/net/wpa_supplicant/Makefile
index 951a1eab955..2cd533b5da1 100644
--- a/net/wpa_supplicant/Makefile
+++ b/net/wpa_supplicant/Makefile
@@ -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 @@ CPPFLAGS+= -DNEW_FREEBSD_MLME_ASSOC
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