logrotate: enable selinux support
[buildroot-gz.git] / package / kismet / kismet.mk
blobf4a28b86dca4bb2b2ee3eaf54cf3f0aabe430129
1 ################################################################################
3 # kismet
5 ################################################################################
7 KISMET_VERSION = Kismet-2014-02-R1
8 KISMET_SITE = http://www.kismetwireless.net/kismet.git
9 KISMET_SITE_METHOD = git
10 KISMET_DEPENDENCIES = host-pkgconf libpcap ncurses libnl
11 KISMET_CONF_OPTS += --with-netlink-version=3
12 KISMET_LICENSE = GPLv2+
13 KISMET_LICENSE_FILES = debian/copyright
15 # We touch configure.in:
16 KISMET_AUTORECONF = YES
18 ifeq ($(BR2_PACKAGE_LIBCAP),y)
19 KISMET_DEPENDENCIES += libcap
20 endif
22 ifeq ($(BR2_PACKAGE_PCRE),y)
23 KISMET_DEPENDENCIES += pcre
24 endif
26 ifeq ($(BR2_PACKAGE_KISMET_CLIENT),y)
27 KISMET_TARGET_BINARIES += kismet_client
28 endif
30 ifeq ($(BR2_PACKAGE_KISMET_SERVER),y)
31 KISMET_TARGET_BINARIES += kismet_server
32 KISMET_TARGET_CONFIGS += kismet.conf
33 endif
35 ifeq ($(BR2_PACKAGE_KISMET_DRONE),y)
36 KISMET_TARGET_BINARIES += kismet_drone
37 KISMET_TARGET_CONFIGS += kismet_drone.conf
38 endif
40 ifdef KISMET_TARGET_BINARIES
41 define KISMET_INSTALL_TARGET_BINARIES
42 $(INSTALL) -m 755 $(addprefix $(KISMET_DIR)/, $(KISMET_TARGET_BINARIES)) $(TARGET_DIR)/usr/bin
43 endef
44 endif
46 ifdef KISMET_TARGET_CONFIGS
47 define KISMET_INSTALL_TARGET_CONFIGS
48 $(INSTALL) -m 644 $(addprefix $(KISMET_DIR)/conf/, $(KISMET_TARGET_CONFIGS)) $(TARGET_DIR)/etc
49 endef
50 endif
52 define KISMET_INSTALL_TARGET_CMDS
53 $(KISMET_INSTALL_TARGET_BINARIES)
54 $(KISMET_INSTALL_TARGET_CONFIGS)
55 endef
57 $(eval $(autotools-package))