revert last update, upstream version 0.8.1 has been withdrawn
[openwrt.git] / openwrt / package / kismet / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=kismet
6 PKG_VERSION:=2005-04-R1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=19b4f192eb11a418ed3f6bf65c1226af
9
10 PKG_SOURCE_URL:=http://www.kismetwireless.net/code
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,KISMET_CLIENT,kismet-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,KISMET_DRONE,kismet-drone,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(eval $(call PKG_template,KISMET_SERVER,kismet-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured:
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CXXFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -fno-builtin -nostdinc++ -nodefaultlibs" \
28 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
29 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
30 ./configure \
31 --target=$(GNU_TARGET_NAME) \
32 --host=$(GNU_TARGET_NAME) \
33 --build=$(GNU_HOST_NAME) \
34 --program-prefix="" \
35 --program-suffix="" \
36 --prefix=/usr \
37 --exec-prefix=/usr \
38 --bindir=/usr/bin \
39 --datadir=/usr/share \
40 --includedir=/usr/include \
41 --infodir=/usr/share/info \
42 --libdir=/usr/lib \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var \
45 --mandir=/usr/share/man \
46 --sbindir=/usr/sbin \
47 --sysconfdir=/etc \
48 $(DISABLE_LARGEFILE) \
49 $(DISABLE_NLS) \
50 --enable-syspcap=yes \
51 --disable-wsp100 \
52 );
53 touch $@
54
55 $(PKG_BUILD_DIR)/.built:
56 $(MAKE) -C $(PKG_BUILD_DIR) \
57 CC=$(TARGET_CC) \
58 LIBS="-L$(STAGING_DIR)/lib -fno-builtin -nostdinc++ -nodefaultlibs -luClibc++ -lc -lm" \
59 CPPFLAGS="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include"
60 touch $@
61
62 $(IPKG_KISMET_CLIENT):
63 install -d -m0755 $(IDIR_KISMET_CLIENT)/etc
64 install -m0644 ./files/ap_manuf $(IDIR_KISMET_CLIENT)/etc/
65 install -m0644 ./files/client_manuf $(IDIR_KISMET_CLIENT)/etc/
66 install -m0644 ./files/kismet.conf $(IDIR_KISMET_CLIENT)/etc/
67 install -m0644 ./files/kismet_ui.conf $(IDIR_KISMET_CLIENT)/etc/
68 install -d -m0755 $(IDIR_KISMET_CLIENT)/usr/sbin
69 cp -fpR $(PKG_BUILD_DIR)/kismet_client $(IDIR_KISMET_CLIENT)/usr/sbin/
70 $(RSTRIP) $(IDIR_KISMET_CLIENT)
71 $(IPKG_BUILD) $(IDIR_KISMET_CLIENT) $(PACKAGE_DIR)
72
73 $(IPKG_KISMET_DRONE):
74 install -d -m0755 $(IDIR_KISMET_DRONE)/etc
75 install -m0644 ./files/kismet_drone.conf $(IDIR_KISMET_DRONE)/etc/
76 install -d -m0755 $(IDIR_KISMET_DRONE)/usr/sbin
77 cp -fpR $(PKG_BUILD_DIR)/kismet_drone $(IDIR_KISMET_DRONE)/usr/sbin/
78 $(RSTRIP) $(IDIR_KISMET_DRONE)
79 $(IPKG_BUILD) $(IDIR_KISMET_DRONE) $(PACKAGE_DIR)
80
81 $(IPKG_KISMET_SERVER):
82 install -d -m0755 $(IDIR_KISMET_SERVER)/etc
83 install -m0644 ./files/ap_manuf $(IDIR_KISMET_SERVER)/etc/
84 install -m0644 ./files/client_manuf $(IDIR_KISMET_SERVER)/etc/
85 install -m0644 ./files/kismet.conf $(IDIR_KISMET_SERVER)/etc/
86 mkdir -p $(IDIR_KISMET_SERVER)/usr/sbin
87 cp -fpR $(PKG_BUILD_DIR)/kismet_server $(IDIR_KISMET_SERVER)/usr/sbin/
88 $(RSTRIP) $(IDIR_KISMET_SERVER)
89 $(IPKG_BUILD) $(IDIR_KISMET_SERVER) $(PACKAGE_DIR)
90
91 mostlyclean:
92 $(MAKE) -C $(PKG_BUILD_DIR) clean
93 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.062366 seconds and 5 git commands to generate.