summaryrefslogtreecommitdiff
path: root/package/kismet/Makefile
blob: bca6144143ce863a8891b3add155893e710ef538 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		kismet
PKG_VERSION:=		2010-01-R1
PKG_RELEASE:=		1
PKG_DESCR:=		Kismet
PKG_SECTION:=		wifi
PKG_BUILDDEP+=		libpcap ncurses
PKG_DEPENDS:=		libpcap libncurses
PKG_MD5SUM:=		a6d6edcf65d5bb2cb5de6472bcc16f19
PKG_URL:=		http://www.kismetwireless.net/
PKG_SITES:=		http://www.kismetwireless.net/code/

PKG_DESCR_CLIENT:=	Kismet client
PKG_DESCR_SERVER:=	Kismet server
PKG_DESCR_DRONE:=	Kismet drone

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,KISMET,kismet,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,KISMET_CLIENT,kismet-client,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_CLIENT},${PKG_SECTION}))
$(eval $(call PKG_template,KISMET_DRONE,kismet-drone,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_DRONE},${PKG_SECTION}))
$(eval $(call PKG_template,KISMET_SERVER,kismet-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR_SERVER},${PKG_SECTION}))

CONFIGURE_ARGS+=	--sysconfdir=/etc/kismet \
			--disable-linuxwext

pre-build:
	(cd ${WRKBUILD} && ${MAKE} dep);

post-install:
	${INSTALL_DIR} ${IDIR_KISMET}/usr/bin/
	${INSTALL_BIN} ${WRKINST}/usr/bin/kismet ${IDIR_KISMET}/usr/bin/kismet
	${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/kismet_client \
		${IDIR_KISMET_CLIENT}/usr/bin/
	${INSTALL_DIR} ${IDIR_KISMET_DRONE}/usr/bin
	${INSTALL_BIN} ${WRKINST}/usr/bin/kismet_drone \
		${IDIR_KISMET_DRONE}/usr/bin/
	${INSTALL_DIR} ${IDIR_KISMET_SERVER}/usr/bin
	${INSTALL_DIR} ${IDIR_KISMET_SERVER}/etc/kismet
	${INSTALL_BIN} ${WRKINST}/usr/bin/kismet_server \
		${IDIR_KISMET_SERVER}/usr/bin/
	${INSTALL_DATA} ${WRKINST}/etc/kismet/kismet.conf \
		${IDIR_KISMET_SERVER}/etc/kismet

include ${TOPDIR}/mk/pkg-bottom.mk