forked from opnsense/ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (25 loc) · 829 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PORTNAME= netmap-bridge
SRCVERSION= yes
CATEGORIES= sysutils
DISTFILES=
MAINTAINER= [email protected]
COMMENT= Bridge two network interfaces in netmap mode
LICENSE= BSD
ALL_TARGET= bridge
MANDIRS= ${PREFIX}/man/man8
.include <bsd.port.options.mk>
pre-extract:
.if !exists(${SRC_BASE}/tools/tools/netmap/Makefile)
IGNORE= requires kernel source files in ${SRC_BASE}
.endif
do-extract:
${MKDIR} ${WRKSRC}
${CP} ${SRC_BASE}/tools/tools/netmap/Makefile ${WRKSRC}
${CP} ${SRC_BASE}/tools/tools/netmap/bridge.8 ${WRKSRC}
${CP} ${SRC_BASE}/tools/tools/netmap/bridge.c ${WRKSRC}
pre-install:
${CP} ${WRKSRC}/bridge.8 ${STAGEDIR}${PREFIX}/man/man8/netmap-bridge.8
${MV} ${WRKSRC}/bridge ${WRKSRC}/netmap-bridge
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin/
.include <bsd.port.mk>