summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorrillig <rillig>2008-01-06 18:58:50 +0000
committerrillig <rillig>2008-01-06 18:58:50 +0000
commitbf12d6aa33bdb62feefe9ee6523615418d693ad6 (patch)
treebde2264e43351b46cfbadea3f1c921af6c7206fd /comms
parentf959711cfe605246234d57551cdc29dce04fc024 (diff)
downloadpkgsrc-bf12d6aa33bdb62feefe9ee6523615418d693ad6.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"