1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/net/ng_daphne/Makefile
Warner Losh 23c85f5d0b Honor SYSDIR override
Ignore warnings when building the module
Pass portlint by adding () around absolute path like other kernel modules
2005-02-25 04:34:41 +00:00

44 lines
996 B
Makefile

# New ports collection makefile for: ng_daphne
# Date created: 8 November 2003
# Whom: Gerasimos Dimitriadis
#
# $FreeBSD$
#
PORTNAME= ng_daphne
PORTVERSION= 1.0
CATEGORIES= net
MASTER_SITES= http://newton.ee.auth.gr/ng_daphne/
MAINTAINER= gedimitr@auth.gr
COMMENT= A simple netgraph module for multihop ad hoc networks
.include <bsd.port.pre.mk>
SYSDIR?= ${SRC_BASE}/sys
.if !exists(${SYSDIR}/netgraph/netgraph.h)
IGNORE= "Requires kernel source (/usr/src/sys) to build"
.endif
MAKE_ENV+= WERROR=
.if ${OSVERSION} < 500000
IGNORE= "Requires new netgraph architecture ng_item to build"
.endif
.if ${OSVERSION} > 502010
EXTRA_PATCHES= ${FILESDIR}/extra-patch-ng_daphne.c
.endif
PLIST_FILES= lib/ng_daphne.ko %%DOCSDIR%%/README
PLIST_DIRS= %%DOCSDIR%%
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ng_daphne.ko ${PREFIX}/lib
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
post-install:
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE}
.include <bsd.port.post.mk>