summaryrefslogtreecommitdiffstats
path: root/rules/dibbler.make
diff options
context:
space:
mode:
authorRemy Bohmer <linux@bohmer.net>2010-06-01 22:06:39 +0200
committerRemy Bohmer <linux@bohmer.net>2010-06-02 21:09:29 +0200
commit5a6af26a95988d2a9b69e639b35519c3df40f4b9 (patch)
tree7d9aa2b486e53d58c1b82f545ce473b0fc007edc /rules/dibbler.make
parent4e26b4c410060c109199add05fb0fc7cb909da17 (diff)
downloadptxdist-5a6af26a95988d2a9b69e639b35519c3df40f4b9.tar.gz
ptxdist-5a6af26a95988d2a9b69e639b35519c3df40f4b9.tar.xz
[dibbler] add new packet
Dibbler is an IPv6 DHCP package Signed-off-by: Remy Bohmer <linux@bohmer.net> Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com>
Diffstat (limited to 'rules/dibbler.make')
-rw-r--r--rules/dibbler.make117
1 files changed, 117 insertions, 0 deletions
diff --git a/rules/dibbler.make b/rules/dibbler.make
new file mode 100644
index 000000000..be0e6fa41
--- /dev/null
+++ b/rules/dibbler.make
@@ -0,0 +1,117 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2010 by Remy Bohmer <linux@bohmer.net>
+#
+# 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_DIBBLER) += dibbler
+
+#
+# Paths and names
+#
+DIBBLER_VERSION := 0.7.3
+DIBBLER := dibbler-$(DIBBLER_VERSION)
+DIBBLER_SUFFIX := tar.gz
+DIBBLER_URL := http://klub.com.pl/dhcpv6/dibbler/$(DIBBLER)-src.$(DIBBLER_SUFFIX)
+DIBBLER_SOURCE := $(SRCDIR)/$(DIBBLER)-src.$(DIBBLER_SUFFIX)
+DIBBLER_DIR := $(BUILDDIR)/$(DIBBLER)
+DIBBLER_LICENSE := GPLv2
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(DIBBLER_SOURCE):
+ @$(call targetinfo)
+ @$(call get, DIBBLER)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+DIBBLER_MAKE_ENV := $(CROSS_ENV_CC) $(CROSS_ENV_CXX)
+DIBBLER_MAKE_OPT := CHOST=$(PTXCONF_GNU_TARGET)
+DIBBLER_MAKE_PAR := NO
+
+#
+# autoconf
+#
+# Remove the pre-configure of a sub-component, so configure is
+# called in make for correct cross-compilation
+$(STATEDIR)/dibbler.prepare:
+ @$(call targetinfo)
+ @rm -f $(DIBBLER_DIR)/poslib/config.h
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+DIBBLER_INSTALL_OPT := \
+ INST_WORKDIR=$(DIBBLER_PKGDIR)/var/lib/dibbler \
+ INST_MANDIR=$(DIBBLER_PKGDIR)/usr/share/man \
+ INST_DOCDIR=$(DIBBLER_PKGDIR)/usr/share/doc \
+ INST_BINDIR=$(DIBBLER_PKGDIR)/usr/sbin \
+ INST_CONFDIR=$(DIBBLER_PKGDIR)/etc/dibbler \
+ install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/dibbler.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, dibbler)
+ @$(call install_fixup, dibbler,PACKAGE,dibbler)
+ @$(call install_fixup, dibbler,PRIORITY,optional)
+ @$(call install_fixup, dibbler,VERSION,$(DIBBLER_VERSION))
+ @$(call install_fixup, dibbler,SECTION,base)
+ @$(call install_fixup, dibbler,AUTHOR,"Remy Bohmer <linux@bohmer.net>")
+ @$(call install_fixup, dibbler,DEPENDS,)
+ @$(call install_fixup, dibbler,DESCRIPTION,missing)
+
+ @$(call install_copy, dibbler, 0, 0, 0755, /etc/dibbler)
+ @$(call install_copy, dibbler, 0, 0, 0755, /var/lib/dibbler)
+ @$(call install_copy, dibbler, 0, 0, 0755, /var/log/dibbler)
+
+ifdef PTXCONF_DIBBLER_SERVER
+ @$(call install_copy, dibbler, 0, 0, 0755, -, /usr/sbin/dibbler-server)
+ @$(call install_copy, dibbler, 0, 0, 0644, -, /etc/dibbler/server.conf)
+ @$(call install_alternative, dibbler, 0, 0, 0644, /etc/dibbler/server-stateless.conf)
+endif
+
+ifdef PTXCONF_DIBBLER_SERVER_STARTSCRIPT
+ @$(call install_alternative, dibbler, 0, 0, 0755, /etc/init.d/dibbler-server)
+endif
+
+ifdef PTXCONF_DIBBLER_CLIENT
+ @$(call install_copy, dibbler, 0, 0, 0755, -, /usr/sbin/dibbler-client)
+ @$(call install_alternative, dibbler, 0, 0, 0644, /etc/dibbler/client.conf)
+ @$(call install_alternative, dibbler, 0, 0, 0644, /etc/dibbler/client-stateless.conf)
+endif
+
+ifdef PTXCONF_DIBBLER_CLIENT_STARTSCRIPT
+ @$(call install_alternative, dibbler, 0, 0, 0755, /etc/init.d/dibbler-client)
+endif
+
+ifdef PTXCONF_DIBBLER_RELAY
+ @$(call install_copy, dibbler, 0, 0, 0755, -, /usr/sbin/dibbler-relay)
+ @$(call install_alternative, dibbler, 0, 0, 0644, /etc/dibbler/relay.conf)
+endif
+
+ifdef PTXCONF_DIBBLER_RELAY_STARTSCRIPT
+ @$(call install_alternative, dibbler, 0, 0, 0755, /etc/init.d/dibbler-relay)
+endif
+
+ @$(call install_finish, dibbler)
+ @$(call touch)
+
+# vim: syntax=make