some fixes/cleanups for the init scripts
[openwrt.git] / package / hostapd / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=hostapd
6 PKG_VERSION:=0.3.9
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c9cab38387594090a36062008b3de59e
9
10 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
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,HOSTAPD,hostapd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 cp ./files/config $(PKG_BUILD_DIR)/.config
23 touch $@
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 $(TARGET_CONFIGURE_OPTS) \
28 OPTFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/madwifi" \
30 LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
31 all
32 touch $@
33
34 $(IPKG_HOSTAPD):
35 install -m0755 -d $(IDIR_HOSTAPD)/etc
36 install -m0600 $(PKG_BUILD_DIR)/madwifi.conf $(IDIR_HOSTAPD)/etc/hostapd.conf
37 install -m0755 -d $(IDIR_HOSTAPD)/usr/sbin
38 install -m0755 $(PKG_BUILD_DIR)/hostapd $(IDIR_HOSTAPD)/usr/sbin/
39 install -m0755 $(PKG_BUILD_DIR)/hostapd_cli $(IDIR_HOSTAPD)/usr/sbin/
40 $(RSTRIP) $(IDIR_HOSTAPD)
41 $(IPKG_BUILD) $(IDIR_HOSTAPD) $(PACKAGE_DIR)
42
43 mostlyclean:
44 make -C $(PKG_BUILD_DIR) clean
45 rm $(PKG_BUILD_DIR)/.built
46
This page took 0.038455 seconds and 5 git commands to generate.