[PATCH 3/9] fff-fastd: new package

Tobias Klaus tk+ff at meskal.net
So Mär 20 23:57:31 CET 2016


Hey Tim,

sollten wir das Paket vielleicht "Freifunk-Franken fastd configuration script" 
nennen? "Freifunk-Franken fastd" hört sich so nach fork an.
 
In den umbenannten Dateien sind noch ein paar whitespaces zu viel. aber das 
ist nicht Problem dieses Patches.

Grüße
Tobias

On Dienstag, 15. März 2016 07:31:27 CET Tim Niemeyer wrote:
> Signed-off-by: Tim Niemeyer <tim at tn-x.org>
> ---
> 
>  .../root_file_system/usr/lib/micron.d/default      |  1 -
>  src/packages/fff/fff-fastd/Makefile                | 45
> ++++++++++++++++++++++ .../files}/etc/hotplug.d/iface/50-fastdstart       |
>  0
>  .../fff/fff-fastd/files/usr/lib/micron.d/fff-fastd |  1 +
>  .../fff/fff-fastd/files/usr/sbin/fastdstart        |  4 +-
>  5 files changed, 49 insertions(+), 2 deletions(-)
>  delete mode 100644 bsp/default/root_file_system/usr/lib/micron.d/default
>  create mode 100644 src/packages/fff/fff-fastd/Makefile
>  rename {bsp/default/root_file_system =>
> src/packages/fff/fff-fastd/files}/etc/hotplug.d/iface/50-fastdstart (100%)
> create mode 100644
> src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd rename
> bsp/default/root_file_system/etc/fastdstart.sh.tpl =>
> src/packages/fff/fff-fastd/files/usr/sbin/fastdstart (98%)
> 
> diff --git a/bsp/default/root_file_system/usr/lib/micron.d/default
> b/bsp/default/root_file_system/usr/lib/micron.d/default deleted file mode
> 100644
> index a5cebb0..0000000
> --- a/bsp/default/root_file_system/usr/lib/micron.d/default
> +++ /dev/null
> @@ -1 +0,0 @@
> -*/5 * * * * sleep $(/usr/bin/random 0 29); sh /etc/fastdstart.sh
> diff --git a/src/packages/fff/fff-fastd/Makefile
> b/src/packages/fff/fff-fastd/Makefile new file mode 100644
> index 0000000..26565e1
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/Makefile
> @@ -0,0 +1,45 @@
> +include $(TOPDIR)/rules.mk
> +
> +PKG_NAME:=fff-fastd
> +PKG_VERSION:=1
> +PKG_RELEASE:=1
> +
> +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-fastd
> +
> +include $(INCLUDE_DIR)/package.mk
> +
> +define Package/fff-fastd
> +    SECTION:=base
> +    CATEGORY:=Freifunk
> +    TITLE:=Freifunk-Franken fastd
> +    URL:=http://www.freifunk-franken.de
> +    DEPENDS:=+ at BUSYBOX_CUSTOM \
> +             + at BUSYBOX_CONFIG_FEATURE_WGET_TIMEOUT \
> +             + at FASTD_ENABLE_METHOD_NULL \
> +             + at FASTD_ENABLE_CIPHER_NULL \
> +             + at FASTD_WITH_STATUS_SOCKET \
> +             +fastd
> +endef
> +
> +define Package/fff-batman-adv-legacy/description
> +    This is the fastd for the Freifunk Franken Firmware
> +    It is used to configure fastd.
> +endef
> +
> +define Build/Prepare
> +	echo "all: " > $(PKG_BUILD_DIR)/Makefile
> +endef
> +
> +define Build/Configure
> +	# nothing
> +endef
> +
> +define Build/Compile
> +	# nothing
> +endef
> +
> +define Package/fff-fastd/install
> +	$(CP) ./files/* $(1)/
> +endef
> +
> +$(eval $(call BuildPackage,fff-fastd))
> diff --git a/bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart
> b/src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
> similarity index 100%
> rename from bsp/default/root_file_system/etc/hotplug.d/iface/50-fastdstart
> rename to src/packages/fff/fff-fastd/files/etc/hotplug.d/iface/50-fastdstart
> diff --git a/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd new file mode
> 100644
> index 0000000..b0022e8
> --- /dev/null
> +++ b/src/packages/fff/fff-fastd/files/usr/lib/micron.d/fff-fastd
> @@ -0,0 +1 @@
> +*/5 * * * * sleep $(/usr/bin/random 0 29); sh /usr/sbin/fastdstart
> diff --git a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
> b/src/packages/fff/fff-fastd/files/usr/sbin/fastdstart similarity index 98%
> rename from bsp/default/root_file_system/etc/fastdstart.sh.tpl
> rename to src/packages/fff/fff-fastd/files/usr/sbin/fastdstart
> index 5bb5165..611a3f8 100755
> --- a/bsp/default/root_file_system/etc/fastdstart.sh.tpl
> +++ b/src/packages/fff/fff-fastd/files/usr/sbin/fastdstart
> @@ -3,7 +3,9 @@
>  SERVER="no"
>  #SERVERNAME="--servername--"
> 
> -project="${VPN_PROJECT}"
> +. /etc/community.cfg
> +
> +project="$VPN_PROJECT"
> 
>  test_ipv4_host1="keyserver.freifunk-franken.de" # Freifunk-Franken
> keyserver test_ipv4_host2="8.8.8.8"        # Google DNS

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 819 bytes
Beschreibung: This is a digitally signed message part.
URL         : <http://lists.freifunk.net/pipermail/franken-dev-freifunk.net/attachments/20160320/995e79f4/attachment-0002.sig>


Mehr Informationen über die Mailingliste franken-dev