Signed-off-by: Markus Pargmann <[email protected]> --- rules/batctl.in | 8 +++++++ rules/batctl.make | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 rules/batctl.in create mode 100644 rules/batctl.make
diff --git a/rules/batctl.in b/rules/batctl.in new file mode 100644 index 0000000..a41af49 --- /dev/null +++ b/rules/batctl.in @@ -0,0 +1,8 @@ +## SECTION=networking + +config BATCTL + tristate + prompt "B.A.T.M.A.N. - batctl" + select LIBNL3 + help + B.A.T.M.A.N batclt program to control/monitor batman interfaces diff --git a/rules/batctl.make b/rules/batctl.make new file mode 100644 index 0000000..e2a4d34 --- /dev/null +++ b/rules/batctl.make @@ -0,0 +1,71 @@ +# -*-makefile-*- +# +# Copyright (C) 2014 by Markus Pargmann <[email protected]> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_BATCTL) += batctl + +# +# Paths and names +# +BATCTL_VERSION := 2014.1.0 +BATCTL_MD5 := 92fd4cb60e38ec952fb5fdda4b2e6933 +BATCTL := batctl-$(BATCTL_VERSION) +BATCTL_SUFFIX := tar.gz +BATCTL_URL := http://downloads.open-mesh.org/batman/stable/sources/batctl/$(BATCTL).$(BATCTL_SUFFIX) +BATCTL_SOURCE := $(SRCDIR)/$(BATCTL).$(BATCTL_SUFFIX) +BATCTL_DIR := $(BUILDDIR)/$(BATCTL) +BATCTL_LICENSE := unknown + + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +#BATCTL_PATH := PATH=$(CROSS_PATH) +BATCTL_CONF_TOOL := NO +BATCTL_MAKE_ENV := $(CROSS_ENV) + +#$(STATEDIR)/batctl.prepare: +# @$(call targetinfo) +# @$(call world/prepare, BATCTL) +# @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/batctl.targetinstall: + @$(call targetinfo) + + @$(call install_init, batctl) + @$(call install_fixup, batctl,PRIORITY,optional) + @$(call install_fixup, batctl,SECTION,base) + @$(call install_fixup, batctl,AUTHOR,"Markus Pargmann <[email protected]>") + @$(call install_fixup, batctl,DESCRIPTION,missing) + + @$(call install_copy, batctl, 0, 0, 0755, $(BATCTL_DIR)/batctl, /usr/bin/batctl) + + @$(call install_finish, batctl) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +$(STATEDIR)/batctl.clean: + @$(call targetinfo) + @-cd $(BATCTL_DIR) && \ + $(BATCTL_ENV) $(BATCTL_PATH) $(MAKE) clean + @$(call clean_pkg, BATCTL) + +# vim: syntax=make -- 1.9.1 -- ptxdist mailing list [email protected]
