aboutsummaryrefslogtreecommitdiffstats
path: root/package/hostapd/Makefile
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-08-14 07:01:13 +0000
committerNicolas Thill <nico@openwrt.org>2005-08-14 07:01:13 +0000
commitf2b45182ed6af27b97237b8426716993799ebcb7 (patch)
tree52a3dc65f777dd81871675ba7dbf85c13ebe179f /package/hostapd/Makefile
parent13e370c2f1885801c0b5f7e1280b3858b43b817b (diff)
downloadupstream-f2b45182ed6af27b97237b8426716993799ebcb7.tar.gz
upstream-f2b45182ed6af27b97237b8426716993799ebcb7.tar.bz2
upstream-f2b45182ed6af27b97237b8426716993799ebcb7.zip
add hostapd package with initial support for madwifi
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1659 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/hostapd/Makefile')
-rw-r--r--package/hostapd/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile
new file mode 100644
index 0000000000..405c1fd7e2
--- /dev/null
+++ b/package/hostapd/Makefile
@@ -0,0 +1,46 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=hostapd
+PKG_VERSION:=0.3.9
+PKG_RELEASE:=1
+PKG_MD5SUM:=c9cab38387594090a36062008b3de59e
+
+PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,HOSTAPD,hostapd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ cp ./files/config $(PKG_BUILD_DIR)/.config
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ OPTFLAGS="$(TARGET_CFLAGS)" \
+ CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/usr/include/madwifi" \
+ LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
+ all
+ touch $@
+
+$(IPKG_HOSTAPD):
+ install -m0755 -d $(IDIR_HOSTAPD)/etc
+ install -m0600 $(PKG_BUILD_DIR)/madwifi.conf $(IDIR_HOSTAPD)/etc/hostapd.conf
+ install -m0755 -d $(IDIR_HOSTAPD)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/hostapd $(IDIR_HOSTAPD)/usr/sbin/
+ install -m0755 $(PKG_BUILD_DIR)/hostapd_cli $(IDIR_HOSTAPD)/usr/sbin/
+ $(RSTRIP) $(IDIR_HOSTAPD)
+ $(IPKG_BUILD) $(IDIR_HOSTAPD) $(PACKAGE_DIR)
+
+mostlyclean:
+ make -C $(PKG_BUILD_DIR) clean
+ rm $(PKG_BUILD_DIR)/.built
+