X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/68f4a7a320968009c0c97ab7d685b09064af7e05..de95ef402febb29c914ce44dc4ad558e04a3dc6d:/package/hostapd/Makefile diff --git a/package/hostapd/Makefile b/package/hostapd/Makefile index 1af252320..352d59766 100644 --- a/package/hostapd/Makefile +++ b/package/hostapd/Makefile @@ -1,3 +1,9 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# # $Id$ include $(TOPDIR)/rules.mk @@ -6,7 +12,7 @@ PKG_NAME:=hostapd PKG_VERSION:=0.5.3 PKG_RELEASE:=1 PKG_MD5SUM:=4e3134e8b0d86e831230f8c620fd81bb -PKG_BUILDDEP:=madwifi openssl +PKG_BUILDDEP:=madwifi PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -14,8 +20,38 @@ PKG_CAT:=zcat PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -include $(TOPDIR)/package/rules.mk +include $(INCLUDE_DIR)/package.mk +define Package/hostapd +SECTION:=net +CATEGORY:=Network +DEPENDS:=+libopenssl +TITLE:=IEEE 802.1x Authenticator +DESCRIPTION:=IEEE 802.1x/WPA/EAP/RADIUS Authenticator +URL:=http://hostap.epitest.fi/ +endef + +define Package/hostapd/conffiles +/etc/hostapd.conf +endef + +define Package/hostapd-mini +$(call Package/hostapd) +TITLE:=IEEE 802.1x Authenticator (WPA-PSK only) +DEPENDS:= +DESCRIPTION:=IEEE 802.1x/WPA/EAP/RADIUS Authenticator (WPA-PSK only) +endef + +define Package/hostapd-mini/conffiles +/etc/hostapd.conf +endef + +define Package/hostapd-utils +$(call Package/hostapd) +DEPENDS:=@PACKAGE_hostapd||PACKAGE_hostapd-mini +TITLE:=IEEE 802.1x Authenticator (utils) +DESCRIPTION:=IEEE 802.1x/WPA/EAP/RADIUS Authenticator (command line utils) +endef define Build/ConfigureTarget $(CP) $(PKG_BUILD_DIR) $(PKG_BUILD_DIR)_$(1) @@ -73,39 +109,14 @@ define Build/Clean rm -rf $(PKG_BUILD_DIR)_mini endef -define Package/hostapd -SECTION:=net -CATEGORY:=Network -DEPENDS:=+libopenssl -TITLE:=IEEE 802.1x Authenticator -DESCRIPTION:=IEEE 802.1x/WPA/EAP/RADIUS Authenticator -URL:=http://hostap.epitest.fi/ -endef - -define Package/hostapd-mini -$(call Package/hostapd) -TITLE:=IEEE 802.1x Authenticator (WPA-PSK only) -DEPENDS:= -DESCRIPTION:=IEEE 802.1x/WPA/EAP/RADIUS Authenticator (WPA-PSK only) -endef - -define Package/hostapd-utils -$(call Package/hostapd) -DEPENDS:=@PACKAGE_hostapd||PACKAGE_hostapd-mini -TITLE:=IEEE 802.1x Authenticator (utils) -DESCRIPTION:=IEEE 802.1x/WPA/EAP/RADIUS Authenticator (command line utils) -endef - define Package/hostapd-utils/install install -m0755 -d $(1)/usr/sbin install -m0755 $(PKG_BUILD_DIR)/hostapd_cli $(1)/usr/sbin/ endef - $(eval $(call Package/Template,hostapd,default)) $(eval $(call Package/Template,hostapd-mini,mini)) $(eval $(call BuildPackage,hostapd)) $(eval $(call BuildPackage,hostapd-mini)) $(eval $(call BuildPackage,hostapd-utils)) -