X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=net%2Fwifidog%2FMakefile;h=b313aba75d010099343489d50d175ee09dda4389;hb=aab531317d74943a55fadda09c2d53dfa6692172;hp=45e042141d56aa721db9bfbe3c1970964d7f4b90;hpb=1f75d5501cb34f16404df265874bb341e0daba2e;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/net/wifidog/Makefile b/net/wifidog/Makefile index 45e042141d..b313aba75d 100644 --- a/net/wifidog/Makefile +++ b/net/wifidog/Makefile @@ -1,68 +1,60 @@ # -# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2006,2008 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # -# $Id$ include $(TOPDIR)/rules.mk PKG_NAME:=wifidog -PKG_VERSION:=1.1.3_beta2 +PKG_VERSION:=20090925 PKG_RELEASE:=1 -PKG_MD5SUM:=ba1611c7eb959f9c6f93e12b97d70b82 -PKG_SOURCE_URL:= @SF/$(PKG_NAME) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_CAT:=zcat +PKG_SOURCE_URL:= @SF/$(PKG_NAME) +PKG_MD5SUM:=e3ecacba67a91b6ea3c1072ba6c5a0b4 -PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) -PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install +PKG_FIXUP = libtool include $(INCLUDE_DIR)/package.mk define Package/wifidog + SUBMENU:=Captive Portals SECTION:=net CATEGORY:=Network - DEPENDS:=+iptables-mod-extra + DEPENDS:=+iptables-mod-extra +iptables-mod-ipopt +iptables-mod-nat +iptables-mod-nat-extra +libpthread TITLE:=A wireless captive portal solution - DESCRIPTION:=The Wifidog project is a complete and embeddable captive - portal solution for wireless community groups or individuals\\\ - who wish to open a free Hotspot while still preventing abuse\\\ - of their Internet connection.\\\ URL:=http://www.wifidog.org endef -define Package/wifidog/conffiles -/etc/wifidog.conf +define Package/wifidog/description + The Wifidog project is a complete and embeddable captive + portal solution for wireless community groups or individuals + who wish to open a free Hotspot while still preventing abuse + of their Internet connection. endef -define Build/Configure -$(call Build/Configure/Default,,ac_cv_func_malloc_0_nonnull=yes \ - ac_cv_func_memcmp_working=yes \ - ac_cv_func_setvbuf_reversed=no) +define Package/wifidog/conffiles +/etc/wifidog.conf endef -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) - mkdir -p $(PKG_INSTALL_DIR) - $(MAKE) -C $(PKG_BUILD_DIR) \ - DESTDIR="$(PKG_INSTALL_DIR)" \ - install -endef +MAKE_FLAGS += \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install define Package/wifidog/install - install -m0755 -d $(1)/etc/init.d - install -m0755 ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog - install -m0644 ./files/wifidog.conf $(1)/etc/ - install -m0755 -d $(1)/usr/bin - install -m0755 -d $(1)/usr/lib - install -m0755 $(PKG_BUILD_DIR)/scripts/init.d/wifidog $(1)/usr/bin/wifidog-init - $(CP) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/ - $(CP) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/init.d/wifidog $(1)/usr/bin/wifidog-init + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wifidog $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wdctl $(1)/usr/bin/ + $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libhttpd.so* $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/etc + $(INSTALL_DATA) ./files/wifidog.conf $(1)/etc/ + $(INSTALL_DATA) $(PKG_BUILD_DIR)/wifidog-msg.html $(1)/etc/ + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/wifidog endef $(eval $(call BuildPackage,wifidog))