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
51
52
53
54
55
56
57
58
59
|
# 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:= 2008-05-R1
PKG_RELEASE:= 1
PKG_BUILDDEP+= libpcap ncurses
ifeq (${ADK_COMPILE_KISMET_WITH_UCLIBCXX},y)
PKG_BUILDDEP+= uclibc++
endif
PKG_MD5SUM:= 6ee365d36354b4dee4945e67f8149294
PKG_SITES:= http://www.kismetwireless.net/code/
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},${PKG_SECTION}))
$(eval $(call PKG_template,KISMET_DRONE,kismet-drone,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,KISMET_SERVER,kismet-server,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
ifeq ($(ADK_COMPILE_KISMET_WITH_UCLIBCXX),y)
TCFLAGS+= -fno-builtin -fno-rtti -nostdinc++ -I${STAGING_DIR}/usr/include/uClibc++
TLDFLAGS+= -luClibc++ -lc -lm -lgcc_s -nodefaultlibs
CONFIGURE_ENV+= CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++ \
-I${STAGING_DIR}/usr/include/uClibc++"
else
TLDFLAGS+= -shared
endif
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --sysconfdir=/etc/kismet \
--enable-syspcap=yes \
--disable-setuid \
--disable-gpsmap
BUILD_STYLE= auto
do-install:
${INSTALL_DIR} ${IDIR_KISMET}/usr/bin/
${INSTALL_BIN} ${WRKBUILD}/kismet ${IDIR_KISMET}/usr/bin/kismet
${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/usr/bin
${INSTALL_DIR} ${IDIR_KISMET_CLIENT}/etc/kismet/
${INSTALL_DATA} ./files/ap_manuf ${IDIR_KISMET_CLIENT}/etc/kismet/
${INSTALL_DATA} ./files/client_manuf ${IDIR_KISMET_CLIENT}/etc/kismet/
${INSTALL_DATA} ./files/kismet.conf ${IDIR_KISMET_CLIENT}/etc/kismet/
${INSTALL_DATA} ./files/kismet_ui.conf ${IDIR_KISMET_CLIENT}/etc/kismet/
${CP} ${WRKBUILD}/kismet_client ${IDIR_KISMET_CLIENT}/usr/bin/
${INSTALL_DIR} ${IDIR_KISMET_DRONE}/usr/bin
${INSTALL_DIR} ${IDIR_KISMET_DRONE}/etc/kismet/
${INSTALL_DATA} ./files/kismet_drone.conf ${IDIR_KISMET_DRONE}/etc/kismet/
${CP} ${WRKBUILD}/kismet_drone ${IDIR_KISMET_DRONE}/usr/bin/
${INSTALL_DIR} ${IDIR_KISMET_SERVER}/usr/bin
${INSTALL_DIR} ${IDIR_KISMET_SERVER}/etc/kismet/
${INSTALL_DATA} ./files/ap_manuf ${IDIR_KISMET_SERVER}/etc/kismet/
${INSTALL_DATA} ./files/client_manuf ${IDIR_KISMET_SERVER}/etc/kismet/
${INSTALL_DATA} ./files/kismet.conf ${IDIR_KISMET_SERVER}/etc/kismet/
${CP} ${WRKBUILD}/kismet_server ${IDIR_KISMET_SERVER}/usr/bin/
include ${TOPDIR}/mk/pkg-bottom.mk
|