diff options
author | novel <novel@FreeBSD.org> | 2006-01-26 05:48:40 +0800 |
---|---|---|
committer | novel <novel@FreeBSD.org> | 2006-01-26 05:48:40 +0800 |
commit | 5ebd7f82ddb70fd21f7c6397a321ed5ae4d926ed (patch) | |
tree | 8b001b0a2896cc02f2438e04c988e061c06525ee | |
parent | c40b15d145c06f222a9ac8a8f10c927fbaaf25e9 (diff) | |
download | freebsd-ports-gnome-5ebd7f82ddb70fd21f7c6397a321ed5ae4d926ed.tar.gz freebsd-ports-gnome-5ebd7f82ddb70fd21f7c6397a321ed5ae4d926ed.tar.zst freebsd-ports-gnome-5ebd7f82ddb70fd21f7c6397a321ed5ae4d926ed.zip |
- Use OPTIONS and add an optional gpsmap support [1]
- Fix build on 4.x [2]
PR: 92204 [1]
Submitted by: Anton Karpov <toxa@toxahost.ru> [1]
novel [2]
Approved by: Peter Thoenen (maintainer)
-rw-r--r-- | net-mgmt/kismet/Makefile | 57 | ||||
-rw-r--r-- | net-mgmt/kismet/pkg-plist | 2 |
2 files changed, 35 insertions, 24 deletions
diff --git a/net-mgmt/kismet/Makefile b/net-mgmt/kismet/Makefile index df21e8a84aa9..634760854456 100644 --- a/net-mgmt/kismet/Makefile +++ b/net-mgmt/kismet/Makefile @@ -16,43 +16,52 @@ COMMENT= 802.11 layer2 wireless network detector, sniffer, and IDS GNU_CONFIGURE= yes USE_GMAKE= yes - +USE_REINPLACE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CONFIGURE_ARGS+= --enable-syspcap -.ifdef DISABLE_CURSES -CONFIGURE_ARGS+= --disable-curses +OPTIONS= CURSES "libcurses interface" on \ + PANEL "libpanels interface" on \ + SETUID "Install kismet with setuid" on \ + GPSMAP "Build gpsmap utility" on + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_CURSES) +CONFIGURE_ARGS+=--disable-curses .endif -.ifdef DISABLE_PANEL -CONFIGURE_ARGS+= --disable-panel +.if defined(WITHOUT_PANEL) +CONFIGURE_ARGS+=--disable-panel .endif -.ifdef DISABLE_SETUID -CONFIGURE_ARGS+= --disable-setuid +.if defined(WITHOUT_SETUID) +CONFIGURE_ARGS+=--disable-setuid .endif -MAN1= kismet.1 kismet_drone.1 -MAN5= kismet.conf.5 kismet_drone.conf.5 kismet_ui.conf.5 +.if defined(WITHOUT_GPSMAP) +CONFIGURE_ARGS+=--disable-gpsmap +PLIST_SUB+= GPS="@comment " +.else +PLIST_SUB+= GPS="" +LIB_DEPENDS+= gmp.6:${PORTSDIR}/math/libgmp4 \ + expat.5:${PORTSDIR}/textproc/expat2 \ + Magick++.9:${PORTSDIR}/graphics/ImageMagick +BUILD_DEPENDS+= wget:${PORTSDIR}/ftp/wget +RUN_DEPENDS+= wget:${PORTSDIR}/ftp/wget +.endif -.include <bsd.port.pre.mk> +MAN1= kismet.1 kismet_drone.1 gpsmap.1 +MAN5= kismet.conf.5 kismet_drone.conf.5 kismet_ui.conf.5 .if ${OSVERSION} < 502000 -BROKEN= "Does not compile on FreeBSD ${OSVERSION}" +CONFIGURE_ARGS+= --disable-pcap .endif -pre-fetch: - @${ECHO_MSG} "" -.ifndef DISABLE_CURSES - @${ECHO_MSG} " define DISABLE_CURSES to build without ncurses interface" -.endif -.ifndef DISABLE_PANEL - @${ECHO_MSG} " define DISABLE_PANEL to build without libpanel interface" -.endif -.ifndef DISABLE_SETUID - @${ECHO_MSG} " define DISABLE_SETUID to disable setuid/privdrop ability (not reccomended)" -.endif - @${ECHO_MSG} "" - @${TRUE} +post-extract: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ + ${WRKSRC}/configure post-install: ${INSTALL_DATA} ${WRKSRC}/conf/kismet.conf ${PREFIX}/etc/kismet.conf.sample diff --git a/net-mgmt/kismet/pkg-plist b/net-mgmt/kismet/pkg-plist index 42a87d895888..78c1a2bac559 100644 --- a/net-mgmt/kismet/pkg-plist +++ b/net-mgmt/kismet/pkg-plist @@ -2,6 +2,8 @@ bin/kismet bin/kismet_client bin/kismet_drone bin/kismet_server +%%GPS%%bin/gpsmap +%%GPS%%bin/gpsmap-helper-earthamaps etc/ap_manuf etc/client_manuf @unexec if cmp -s %D/etc/kismet.conf %D/etc/kismet.conf.sample; then rm -f %D/etc/kismet.conf; fi |