mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-15 00:03:39 +08:00
85 lines
3.2 KiB
Makefile
85 lines
3.2 KiB
Makefile
#############################################################
|
|
#
|
|
# kismet
|
|
#
|
|
#############################################################
|
|
KISMET_VERSION:=2007-10-R1
|
|
KISMET_SOURCE:=kismet-$(KISMET_VERSION).tar.gz
|
|
KISMET_SITE:=http://www.kismetwireless.net/code/
|
|
KISMET_DIR:=$(BUILD_DIR)/kismet-$(KISMET_VERSION)
|
|
KISMET_CAT:=$(ZCAT)
|
|
KISMET_BINARY:=kismet
|
|
KISMET_TARGET_DIRECTORY=usr/bin/
|
|
|
|
$(DL_DIR)/$(KISMET_SOURCE):
|
|
$(call DOWNLOAD,$(KISMET_SITE),$(KISMET_SOURCE))
|
|
|
|
kismet-source: $(DL_DIR)/$(KISMET_SOURCE)
|
|
|
|
$(KISMET_DIR)/.patched: $(DL_DIR)/$(KISMET_SOURCE)
|
|
$(KISMET_CAT) $(DL_DIR)/$(KISMET_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
toolchain/patch-kernel.sh $(KISMET_DIR) package/kismet/ kismet\*.patch
|
|
touch $@
|
|
|
|
$(KISMET_DIR)/.configured: $(KISMET_DIR)/.patched
|
|
(cd $(KISMET_DIR); rm -rf config.cache; \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
$(TARGET_CONFIGURE_ARGS) \
|
|
DBUS_CFLAGS="-I$(STAGING_DIR)/usr/include/dbus-1.0 -I$(STAGING_DIR)/usr/lib/dbus-1.0/include" \
|
|
DBUS_LIBS="$(STAGING_DIR)/usr/lib/libdbus-1.so" \
|
|
DBUS_GLIB_CFLAGS="-I$(STAGING_DIR)/usr/include/glib-2.0 -I$(STAGING_DIR)/usr/lib/glib-2.0/include" \
|
|
DBUS_GLIB_LIBS="$(STAGING_DIR)/lib/libglib-2.0.so $(STAGING_DIR)/lib/libgobject-2.0.so $(STAGING_DIR)/lib/libgmodule-2.0.so $(STAGING_DIR)/lib/libgthread-2.0.so" \
|
|
./configure \
|
|
--target=$(GNU_TARGET_NAME) \
|
|
--host=$(GNU_TARGET_NAME) \
|
|
--build=$(GNU_HOST_NAME) \
|
|
--prefix=/usr \
|
|
--libdir=/lib \
|
|
--libexecdir=/usr/lib \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--mandir=/usr/man \
|
|
--infodir=/usr/info \
|
|
$(DISABLE_NLS) \
|
|
$(DISABLE_LARGEFILE) \
|
|
)
|
|
touch $@
|
|
|
|
$(KISMET_DIR)/$(KISMET_BINARY): $(KISMET_DIR)/.configured
|
|
$(MAKE) CXX="$(TARGET_CXX)" CC="$(TARGET_CC)" \
|
|
-C $(KISMET_DIR)
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(KISMET_DIR)/kismet
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(KISMET_DIR)/kismet_client
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(KISMET_DIR)/kismet_drone
|
|
-$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(KISMET_DIR)/kismet_server
|
|
|
|
$(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/$(KISMET_BINARY): $(KISMET_DIR)/$(KISMET_BINARY)
|
|
install -m 755 $(KISMET_DIR)/kismet $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet
|
|
install -m 755 $(KISMET_DIR)/kismet_client $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_client
|
|
install -m 755 $(KISMET_DIR)/kismet_drone $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_drone
|
|
install -m 755 $(KISMET_DIR)/kismet_server $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_server
|
|
install -m 755 $(KISMET_DIR)/conf/kismet.conf $(TARGET_DIR)/etc/kismet.conf
|
|
|
|
kismet: uclibc ncurses libpcap dbus $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/$(KISMET_BINARY)
|
|
|
|
|
|
kismet-clean:
|
|
rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet
|
|
rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_client
|
|
rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_drone
|
|
rm -f $(TARGET_DIR)/$(KISMET_TARGET_DIRECTORY)/kismet_server
|
|
rm -f $(KISMET_DIR)/conf/kismet.conf $(TARGET_DIR)/etc/kismet.conf
|
|
-$(MAKE) -C $(KISMET_DIR) clean
|
|
|
|
kismet-dirclean:
|
|
rm -rf $(KISMET_DIR)
|
|
|
|
#############################################################
|
|
#
|
|
# Toplevel Makefile options
|
|
#
|
|
#############################################################
|
|
ifeq ($(BR2_PACKAGE_KISMET),y)
|
|
TARGETS+=kismet
|
|
endif
|