Fixed ticket #169 thanks to gps !
[openwrt.git] / package / kismet / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=kismet
6 PKG_VERSION:=2005-08-R1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=17edb7688e04dd28028d5268a77d0ce7
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,kismet,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(eval $(call PKG_template,KISMET_CLIENT,kismet-client,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
21 $(eval $(call PKG_template,KISMET_DRONE,kismet-drone,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22 $(eval $(call PKG_template,KISMET_SERVER,kismet-server,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
26 $(TARGET_CONFIGURE_OPTS) \
27 CFLAGS="$(TARGET_CFLAGS)" \
28 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti -nostdinc++" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(LINUX_DIR)/include" \
30 LDFLAGS="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
31 LIBS="-luClibc++ -lc -lm" \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc/kismet \
50 $(DISABLE_LARGEFILE) \
51 $(DISABLE_NLS) \
52 --enable-syspcap=yes \
53 --disable-setuid \
54 --disable-wsp100 \
55 --disable-gpsmap \
56 );
57 touch $@
58
59 $(PKG_BUILD_DIR)/.built:
60 $(MAKE) -C $(PKG_BUILD_DIR) \
61 LIBS="-luClibc++ -lc -lm" \
62 all
63 touch $@
64
65 $(IPKG_KISMET):
66 install -d -m0755 $(IDIR_KISMET)/usr/bin/
67 install -m0755 $(PKG_BUILD_DIR)/scripts/kismet $(IDIR_KISMET)/usr/bin/kismet
68 $(IPKG_BUILD) $(IDIR_KISMET) $(PACKAGE_DIR)
69
70 $(IPKG_KISMET_CLIENT):
71 install -d -m0755 $(IDIR_KISMET_CLIENT)/etc/kismet/
72 install -m0644 ./files/ap_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
73 install -m0644 ./files/client_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
74 install -m0644 ./files/kismet.conf $(IDIR_KISMET_CLIENT)/etc/kismet/
75 install -m0644 ./files/kismet_ui.conf $(IDIR_KISMET_CLIENT)/etc/kismet/
76 install -d -m0755 $(IDIR_KISMET_CLIENT)/usr/bin
77 cp -fpR $(PKG_BUILD_DIR)/kismet_client $(IDIR_KISMET_CLIENT)/usr/bin/
78 $(RSTRIP) $(IDIR_KISMET_CLIENT)
79 $(IPKG_BUILD) $(IDIR_KISMET_CLIENT) $(PACKAGE_DIR)
80
81 $(IPKG_KISMET_DRONE):
82 install -d -m0755 $(IDIR_KISMET_DRONE)/etc/kismet/
83 install -m0644 ./files/kismet_drone.conf $(IDIR_KISMET_DRONE)/etc/kismet/
84 install -d -m0755 $(IDIR_KISMET_DRONE)/usr/bin
85 cp -fpR $(PKG_BUILD_DIR)/kismet_drone $(IDIR_KISMET_DRONE)/usr/bin/
86 $(RSTRIP) $(IDIR_KISMET_DRONE)
87 $(IPKG_BUILD) $(IDIR_KISMET_DRONE) $(PACKAGE_DIR)
88
89 $(IPKG_KISMET_SERVER):
90 install -d -m0755 $(IDIR_KISMET_SERVER)/etc/kismet/
91 install -m0644 ./files/ap_manuf $(IDIR_KISMET_SERVER)/etc/kismet/
92 install -m0644 ./files/client_manuf $(IDIR_KISMET_SERVER)/etc/kismet/
93 install -m0644 ./files/kismet.conf $(IDIR_KISMET_SERVER)/etc/kismet/
94 mkdir -p $(IDIR_KISMET_SERVER)/usr/bin
95 cp -fpR $(PKG_BUILD_DIR)/kismet_server $(IDIR_KISMET_SERVER)/usr/bin/
96 $(RSTRIP) $(IDIR_KISMET_SERVER)
97 $(IPKG_BUILD) $(IDIR_KISMET_SERVER) $(PACKAGE_DIR)
98
99 mostlyclean:
100 # $(MAKE) -C $(PKG_BUILD_DIR) clean
101 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.045141 seconds and 5 git commands to generate.