summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-01-06 18:58:50 +0000
committerrillig <rillig@pkgsrc.org>2008-01-06 18:58:50 +0000
commitbd46762046875ec3ae225dcf5d6e3f71b1d7f063 (patch)
treebde2264e43351b46cfbadea3f1c921af6c7206fd /comms
parentde70f59a83d7d6b049b8d920eff3fc1bc8d303d1 (diff)
downloadpkgsrc-bd46762046875ec3ae225dcf5d6e3f71b1d7f063.tar.gz
Without kernel sources, this package cannot be built.
Diffstat (limited to 'comms')
-rw-r--r--comms/zaptel-netbsd/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/comms/zaptel-netbsd/Makefile b/comms/zaptel-netbsd/Makefile
index 7dd576ff3b4..7060d9f56e4 100644
--- a/comms/zaptel-netbsd/Makefile
+++ b/comms/zaptel-netbsd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/02/05 23:08:28 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2008/01/06 18:58:50 rillig Exp $
#
DISTNAME= zaptel-netbsd-20060127
@@ -17,10 +17,17 @@ INSTALLATION_DIRS= lkm
ZAPTEL_KERNEL_ENV?= # empty
BUILD_DEFS+= ZAPTEL_KERNEL_ENV
MAKE_ENV+= ZAPTEL_KERNEL_ENV=${ZAPTEL_KERNEL_ENV:Q}
+MAKE_ENV+= BSDSRCDIR=${BSDSRCDIR}
CONF_FILES= ${PREFIX}/share/examples/zaptel/zaptel.conf \
${PKG_SYSCONFDIR}/zaptel.conf
RCD_SCRIPTS= ztcfg
+.include "../../mk/bsd.prefs.mk"
+
+.if !exists(${BSDSRCDIR}/sys)
+PKG_FAIL_REASON+= "${PKGNAME} needs kernel sources in ${BSDSRCDIR}."
+.endif
+
.include "../../devel/newt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"