Signed-off-by: Alexander Stein <[email protected]> --- rules/rstp.in | 8 +++++ rules/rstp.make | 82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+), 0 deletions(-) create mode 100644 rules/rstp.in create mode 100644 rules/rstp.make
diff --git a/rules/rstp.in b/rules/rstp.in new file mode 100644 index 0000000..31c9f5b --- /dev/null +++ b/rules/rstp.in @@ -0,0 +1,8 @@ +## SECTION=networking + +config RSTP + tristate + prompt "rstp" + help + An implementation of the Rapid Spanning Tree Protocol for Linux. + This includes a daemon and control utility. diff --git a/rules/rstp.make b/rules/rstp.make new file mode 100644 index 0000000..02cf513 --- /dev/null +++ b/rules/rstp.make @@ -0,0 +1,82 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 by Alexander Stein <[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_RSTP) += rstp + +# +# Paths and names +# +RSTP_VERSION := 968d3d40984d0279bce51259ce0e969adc7bda79 +RSTP_MD5 := none +RSTP := rstp-$(RSTP_VERSION) +RSTP_SUFFIX := tar.gz +RSTP_URL := http://git.kernel.org/?p=linux/kernel/git/shemminger/rstp.git&a=snapshot&h=$(RSTP_VERSION)&sf=tgz +RSTP_SOURCE := $(SRCDIR)/rstp.git&a=snapshot&h=$(RSTP_VERSION)&sf=tgz +RSTP_DIR := $(BUILDDIR)/$(RSTP) +RSTP_LICENSE := GPL-2 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +$(STATEDIR)/rstp.prepare: + @$(call targetinfo) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +RSTP_PATH := PATH=$(CROSS_PATH) +RSTP_MAKE_OPT := $(CROSS_ENV_PROGS) + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +RSTP_INSTALL_OPT := $(CROSS_ENV_PROGS) INSTALLPREFIX=$(RSTP_PKGDIR) install + +$(STATEDIR)/rstp.install: + @$(call targetinfo) + @$(call world/install, RSTP) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/rstp.targetinstall: + @$(call targetinfo) + + @$(call install_init, rstp) + @$(call install_fixup, rstp,PRIORITY,optional) + @$(call install_fixup, rstp,SECTION,base) + @$(call install_fixup, rstp,AUTHOR,"Alexander Stein <[email protected]>") + @$(call install_fixup, rstp,DESCRIPTION,missing) + + @$(call install_copy, rstp, 0, 0, 0755, -, /sbin/rstpd) + @$(call install_copy, rstp, 0, 0, 0755, -, /sbin/rstpctl) + + @$(call install_finish, rstp) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/rstp.clean: +# @$(call targetinfo) +# @$(call clean_pkg, RSTP) + +# vim: syntax=make -- 1.7.3.4 -- ptxdist mailing list [email protected]
