* Add community package for Freifunk Berlin
authorAndreas Seidler <tetzlav@leipzig.freifunk.net>
Mon, 7 Jul 2008 17:47:32 +0000 (17:47 +0000)
committerAndreas Seidler <tetzlav@leipzig.freifunk.net>
Mon, 7 Jul 2008 17:47:32 +0000 (17:47 +0000)
applications/community-berlin/Makefile [new file with mode: 0644]
applications/community-berlin/ipkg/postinst [new file with mode: 0755]
applications/community-berlin/root/etc/uci-defaults/luci-community-berlin [new file with mode: 0644]
contrib/package/luci/Makefile

diff --git a/applications/community-berlin/Makefile b/applications/community-berlin/Makefile
new file mode 100644 (file)
index 0000000..81a96f6
--- /dev/null
@@ -0,0 +1,2 @@
+include ../../build/config.mk
+include ../../build/module.mk
\ No newline at end of file
diff --git a/applications/community-berlin/ipkg/postinst b/applications/community-berlin/ipkg/postinst
new file mode 100755 (executable)
index 0000000..ad5e96c
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ -n "${IPKG_INSTROOT}" ] || {
+       ( . /etc/uci-defaults/luci-community-berlin ) &&        rm -f /etc/uci-defaults/luci-community-berlin
+}
diff --git a/applications/community-berlin/root/etc/uci-defaults/luci-community-berlin b/applications/community-berlin/root/etc/uci-defaults/luci-community-berlin
new file mode 100644 (file)
index 0000000..348b0c8
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+uci batch <<-EOF
+        set freifunk.community.name='Freifunk Berlin'
+        set freifunk.community.homepage=http://berlin.freifunk.net
+        set freifunk.community.essid=olsr.freifunk.net
+        set freifunk.community.bssid=02:CA:FF:EE:BA:BE
+        set freifunk.community.channel=10
+        set freifunk.community.net=104.0.0.0
+        set freifunk.community.mask=255.0.0.0
+        set freifunk.community.dns='88.198.178.18 141.54.1.1 212.204.49.83 208.67.220.220 208.67.222.222'
+        set luci.main.mediaurlbase=/luci-static/fledermaus
+        set luci.main.lang=de
+        commit freifunk
+        commit luci
+EOF
+       
index 5ca914721558560583ef057ef21d28f38d799fe3..c9bf18cc9ec3544c21510a365fe763f6bf9dc45c 100644 (file)
@@ -253,6 +253,21 @@ define Package/luci-ff-hannover/install
 endef
 
 
+define Package/luci-ff-berlin
+  $(call Package/luci/fftemplate)
+  DEPENDS+= \
+   +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
+   +luci-theme-fledermaus \
+   +luci-i18n-german \
+   +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
+  TITLE:=Freifunk Berlin Community Meta-Package
+endef
+
+define Package/luci-ff-berlin/install
+       $(call Package/luci/install/template,$(1),applications/community-berlin)
+endef
+
+
 ### Modules ###
 
 define Package/luci-mod-admin-core
@@ -478,6 +493,9 @@ endif
 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover),)
        PKG_SELECTED_MODULES+=applications/community-hannover
 endif
+ifneq ($(CONFIG_PACKAGE_luci-ff-berlin),)
+       PKG_SELECTED_MODULES+=applications/community-berlin
+endif
 
 ifneq ($(CONFIG_PACKAGE_luci-mod-admin-core),)
        PKG_SELECTED_MODULES+=modules/admin-core