From: Steven Barth Date: Sun, 18 May 2008 21:38:11 +0000 (+0000) Subject: * Add community package for Freifunk Hannover X-Git-Tag: 0.8.0~1028 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=69897e5ad90954c1ba728087de465ba87af43702;p=oweals%2Fluci.git * Add community package for Freifunk Hannover --- diff --git a/applications/community-hannover/Makefile b/applications/community-hannover/Makefile new file mode 100644 index 000000000..81a96f6a8 --- /dev/null +++ b/applications/community-hannover/Makefile @@ -0,0 +1,2 @@ +include ../../build/config.mk +include ../../build/module.mk \ No newline at end of file diff --git a/applications/community-hannover/root/etc/uci-defaults/ffluci-community-hannover b/applications/community-hannover/root/etc/uci-defaults/ffluci-community-hannover new file mode 100644 index 000000000..97b7cefd3 --- /dev/null +++ b/applications/community-hannover/root/etc/uci-defaults/ffluci-community-hannover @@ -0,0 +1,13 @@ +#!/bin/sh +uci batch <<-EOF + set freifunk.community.name='Freifunk Hannover' + set freifunk.community.homepage=http://www.freifunk-hannover.de + set freifunk.community.essid=hannover.freifunk.net + set freifunk.community.bssid=CA:FF:EE:CA:FF:EE + set freifunk.community.realm=db.freifunk-hannover.de + set freifunk.community.channel=1 + set freifunk.community.net=10.2.0.0 + set freifunk.community.mask=255.255.0.0 + commit freifunk +EOF + diff --git a/contrib/package/ffluci/Makefile b/contrib/package/ffluci/Makefile index 2ce1b8fef..ca7540261 100644 --- a/contrib/package/ffluci/Makefile +++ b/contrib/package/ffluci/Makefile @@ -91,6 +91,21 @@ define Package/ffluci-ff-leipzig/install endef +define Package/ffluci-ff-hannover + $(call Package/ffluci/template) + DEPENDS:=ffluci \ + +ffluci-sgi-haserl +ffluci-mod-freifunk +ffluci-app-splash \ + +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice + TITLE:=Freifunk Hannover Community Meta-Package + URL:=http://www.freifunk-hannover.de/ + MAINTAINER:=Mickey Knox +endef + +define Package/ffluci-ff-hannover/install + $(call Package/ffluci/install/template,$(1),applications/community-hannover) + $(CP) -a ./ipkg/ffluci-ff-hannover.postinst $(1)/CONTROL/postinst +endef + ### Modules ### @@ -191,6 +206,7 @@ $(eval $(call BuildPackage,ffluci)) $(eval $(call BuildPackage,ffluci-ff-halle)) $(eval $(call BuildPackage,ffluci-ff-leipzig)) +$(eval $(call BuildPackage,ffluci-ff-hannover)) $(eval $(call BuildPackage,ffluci-mod-admin-core)) $(eval $(call BuildPackage,ffluci-mod-freifunk)) @@ -199,4 +215,4 @@ $(eval $(call BuildPackage,ffluci-app-firewall)) $(eval $(call BuildPackage,ffluci-app-splash)) $(eval $(call BuildPackage,ffluci-sgi-haserl)) -$(eval $(call BuildPackage,ffluci-sgi-webuci)) \ No newline at end of file +$(eval $(call BuildPackage,ffluci-sgi-webuci)) diff --git a/contrib/package/ffluci/ipkg/ffluci-ff-hannover.postinst b/contrib/package/ffluci/ipkg/ffluci-ff-hannover.postinst new file mode 100644 index 000000000..5c213adc4 --- /dev/null +++ b/contrib/package/ffluci/ipkg/ffluci-ff-hannover.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +[ -n "${IPKG_INSTROOT}" ] || { + ( . /etc/uci-defaults/ffluci-community-hannover ) && rm -f /etc/uci-defaults/ffluci-community-hannover +}