asterisk -> atftp typo, thx markus becker
[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:=3
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,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) -I$(STAGING_DIR)/usr/include -fno-builtin -nostdinc++ -nodefaultlibs" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include" \
30 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
31 ./configure \
32 --target=$(GNU_TARGET_NAME) \
33 --host=$(GNU_TARGET_NAME) \
34 --build=$(GNU_HOST_NAME) \
35 --program-prefix="" \
36 --program-suffix="" \
37 --prefix=/usr \
38 --exec-prefix=/usr \
39 --bindir=/usr/bin \
40 --datadir=/usr/share \
41 --includedir=/usr/include \
42 --infodir=/usr/share/info \
43 --libdir=/usr/lib \
44 --libexecdir=/usr/lib \
45 --localstatedir=/var \
46 --mandir=/usr/share/man \
47 --sbindir=/usr/sbin \
48 --sysconfdir=/etc/kismet \
49 $(DISABLE_LARGEFILE) \
50 $(DISABLE_NLS) \
51 --enable-syspcap=yes \
52 --disable-wsp100 \
53 );
54 touch $@
55
56 $(PKG_BUILD_DIR)/.built:
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 CC=$(TARGET_CC) \
59 LIBS="-L$(STAGING_DIR)/lib -fno-builtin -nostdinc++ -nodefaultlibs -luClibc++ -lc -lm" \
60 CPPFLAGS="-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include -I$(LINUX_DIR)/include"
61 touch $@
62
63 $(IPKG_KISMET):
64 install -d -m0755 $(IDIR_KISMET)/usr/bin/
65 cp -fpR $(PKG_BUILD_DIR)/scripts/kismet $(IDIR_KISMET)/usr/bin/
66 $(IPKG_BUILD) $(IDIR_KISMET) $(PACKAGE_DIR)
67
68 $(IPKG_KISMET_CLIENT):
69 install -d -m0755 $(IDIR_KISMET_CLIENT)/etc/kismet/
70 install -m0644 ./files/ap_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
71 install -m0644 ./files/client_manuf $(IDIR_KISMET_CLIENT)/etc/kismet/
72 install -m0644 ./files/kismet.conf $(IDIR_KISMET_CLIENT)/etc/kismet/
73 install -m0644 ./files/kismet_ui.conf $(IDIR_KISMET_CLIENT)/etc/kismet/
74 install -d -m0755 $(IDIR_KISMET_CLIENT)/usr/sbin
75 cp -fpR $(PKG_BUILD_DIR)/kismet_client $(IDIR_KISMET_CLIENT)/usr/sbin/
76 $(RSTRIP) $(IDIR_KISMET_CLIENT)
77 $(IPKG_BUILD) $(IDIR_KISMET_CLIENT) $(PACKAGE_DIR)
78
79 $(IPKG_KISMET_DRONE):
80 install -d -m0755 $(IDIR_KISMET_DRONE)/etc/kismet/
81 install -m0644 ./files/kismet_drone.conf $(IDIR_KISMET_DRONE)/etc/kismet/
82 install -d -m0755 $(IDIR_KISMET_DRONE)/usr/sbin
83 cp -fpR $(PKG_BUILD_DIR)/kismet_drone $(IDIR_KISMET_DRONE)/usr/sbin/
84 $(RSTRIP) $(IDIR_KISMET_DRONE)
85 $(IPKG_BUILD) $(IDIR_KISMET_DRONE) $(PACKAGE_DIR)
86
87 $(IPKG_KISMET_SERVER):
88 install -d -m0755 $(IDIR_KISMET_SERVER)/etc/kismet/
89 install -m0644 ./files/ap_manuf $(IDIR_KISMET_SERVER)/etc/kismet/
90 install -m0644 ./files/client_manuf $(IDIR_KISMET_SERVER)/etc/kismet/
91 install -m0644 ./files/kismet.conf $(IDIR_KISMET_SERVER)/etc/kismet/
92 mkdir -p $(IDIR_KISMET_SERVER)/usr/sbin
93 cp -fpR $(PKG_BUILD_DIR)/kismet_server $(IDIR_KISMET_SERVER)/usr/sbin/
94 $(RSTRIP) $(IDIR_KISMET_SERVER)
95 $(IPKG_BUILD) $(IDIR_KISMET_SERVER) $(PACKAGE_DIR)
96
97 mostlyclean:
98 $(MAKE) -C $(PKG_BUILD_DIR) clean
99 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.042599 seconds and 5 git commands to generate.