3 include $(TOPDIR
)/rules.mk
6 PKG_VERSION
:=2005-04-R1
8 PKG_MD5SUM
:=19b4f192eb11a418ed3f6bf65c1226af
10 PKG_SOURCE_URL
:=http
://www.kismetwireless.net
/code
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
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
)))
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" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
39 --datadir=/usr
/share \
40 --includedir=/usr
/include \
41 --infodir=/usr
/share
/info \
43 --libexecdir
=/usr
/lib \
44 --localstatedir
=/var \
45 --mandir=/usr
/share
/man \
48 $(DISABLE_LARGEFILE
) \
50 --enable-syspcap
=yes \
55 $(PKG_BUILD_DIR
)/.built
:
56 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
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"
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
)
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
)
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
)
92 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
93 rm -f
$(PKG_BUILD_DIR
)/.built