Lines 16-58
Link Here
|
16 |
|
16 |
|
17 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
18 |
USE_GMAKE= yes |
18 |
USE_GMAKE= yes |
|
|
19 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ |
20 |
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" |
19 |
|
21 |
|
20 |
CONFIGURE_ARGS+= --enable-syspcap |
22 |
CONFIGURE_ARGS+= --enable-syspcap |
21 |
|
23 |
|
22 |
.ifdef DISABLE_CURSES |
24 |
OPTIONS= CURSES "libcurses interface" on \ |
23 |
CONFIGURE_ARGS+= --disable-curses |
25 |
PANEL "libpanels interface" on \ |
|
|
26 |
SETUID "Install kismet with setuid" on \ |
27 |
GPSMAP "Build gpsmap utility" on |
28 |
|
29 |
.include <bsd.port.pre.mk> |
30 |
|
31 |
.if defined(WITHOUT_CURSES) |
32 |
CONFIGURE_ARGS+=--disable-curses |
24 |
.endif |
33 |
.endif |
25 |
|
34 |
|
26 |
.ifdef DISABLE_PANEL |
35 |
.if defined(WITHOUT_PANEL) |
27 |
CONFIGURE_ARGS+= --disable-panel |
36 |
CONFIGURE_ARGS+=--disable-panel |
28 |
.endif |
37 |
.endif |
29 |
|
38 |
|
30 |
.ifdef DISABLE_SETUID |
39 |
.if defined(WITHOUT_SETUID) |
31 |
CONFIGURE_ARGS+= --disable-setuid |
40 |
CONFIGURE_ARGS+=--disable-setuid |
32 |
.endif |
41 |
.endif |
33 |
|
42 |
|
34 |
MAN1= kismet.1 kismet_drone.1 |
43 |
.if defined(WITHOUT_GPSMAP) |
35 |
MAN5= kismet.conf.5 kismet_drone.conf.5 kismet_ui.conf.5 |
44 |
CONFIGURE_ARGS+=--disable-gpsmap |
|
|
45 |
PLIST_SUB+= GPS="@comment " |
46 |
.else |
47 |
PLIST_SUB+= GPS="" |
48 |
LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4 |
49 |
LIB_DEPENDS+= expat.5:${PORTSDIR}/textproc/expat2 |
50 |
LIB_DEPENDS+= Magick++.9:${PORTSDIR}/graphics/ImageMagick |
51 |
.endif |
36 |
|
52 |
|
37 |
.include <bsd.port.pre.mk> |
53 |
MAN1= kismet.1 kismet_drone.1 gpsmap.1 |
|
|
54 |
MAN5= kismet.conf.5 kismet_drone.conf.5 kismet_ui.conf.5 |
38 |
|
55 |
|
39 |
.if ${OSVERSION} < 502000 |
56 |
.if ${OSVERSION} < 502000 |
40 |
BROKEN= "Does not compile on FreeBSD ${OSVERSION}" |
57 |
BROKEN= "Does not compile on FreeBSD ${OSVERSION}" |
41 |
.endif |
58 |
.endif |
42 |
|
|
|
43 |
pre-fetch: |
44 |
@${ECHO_MSG} "" |
45 |
.ifndef DISABLE_CURSES |
46 |
@${ECHO_MSG} " define DISABLE_CURSES to build without ncurses interface" |
47 |
.endif |
48 |
.ifndef DISABLE_PANEL |
49 |
@${ECHO_MSG} " define DISABLE_PANEL to build without libpanel interface" |
50 |
.endif |
51 |
.ifndef DISABLE_SETUID |
52 |
@${ECHO_MSG} " define DISABLE_SETUID to disable setuid/privdrop ability (not reccomended)" |
53 |
.endif |
54 |
@${ECHO_MSG} "" |
55 |
@${TRUE} |
56 |
|
59 |
|
57 |
post-install: |
60 |
post-install: |
58 |
${INSTALL_DATA} ${WRKSRC}/conf/kismet.conf ${PREFIX}/etc/kismet.conf.sample |
61 |
${INSTALL_DATA} ${WRKSRC}/conf/kismet.conf ${PREFIX}/etc/kismet.conf.sample |