Signed-off-by: Christian Gagneraud <[email protected]>
---
 rules/wimax-service.in   |    7 ++++
 rules/wimax-service.make |   74 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+), 0 deletions(-)
 create mode 100644 rules/wimax-service.in
 create mode 100644 rules/wimax-service.make

diff --git a/rules/wimax-service.in b/rules/wimax-service.in
new file mode 100644
index 0000000..3f4c0fd
--- /dev/null
+++ b/rules/wimax-service.in
@@ -0,0 +1,7 @@
+config WIMAX_SERVICE
+       bool
+       select WIMAX_TOOLS
+       select WPA_SUPPLICANT
+       prompt "Networks service deamon"
+       help
+         WiMAX Network Service deamon
diff --git a/rules/wimax-service.make b/rules/wimax-service.make
new file mode 100644
index 0000000..4172d36
--- /dev/null
+++ b/rules/wimax-service.make
@@ -0,0 +1,74 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Christian Gagneraud <[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_WIMAX_SERVICE) += wimax-service
+
+#
+# Paths and names
+#
+WIMAX_SERVICE_NAME     := wimax
+WIMAX_SERVICE_VERSION  := 1.5.2
+WIMAX_SERVICE_MD5      := 66ac68d809bcba0771b55af68f4d2227
+WIMAX_SERVICE          := $(WIMAX_SERVICE_NAME)-$(WIMAX_SERVICE_VERSION)
+WIMAX_SERVICE_SUFFIX   := tar.gz
+WIMAX_SERVICE_URL      := 
http://www.linuxwimax.org/Download\?action=AttachFile\&do=get\&target=$(WIMAX_SERVICE).$(WIMAX_SERVICE_SUFFIX)
+WIMAX_SERVICE_SOURCE   := $(SRCDIR)/$(WIMAX_SERVICE).$(WIMAX_SERVICE_SUFFIX)
+WIMAX_SERVICE_DIR      := $(BUILDDIR)/$(WIMAX_SERVICE)
+WIMAX_SERVICE_LICENSE  := BSD
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+WIMAX_SERVICE_MAKEVARS := V=1
+WIMAX_SERVICE_CONF_TOOL        := autoconf
+WIMAX_SERVICE_CONF_OPT +=                              \
+       $(CROSS_AUTOCONF_USR)                   \
+       --with-linux=$(KERNEL_HEADERS_DIR)      \
+       ac_cv_file_$(shell echo $(KERNEL_HEADERS_DIR)/include/linux/wimax.h | 
tr '/.+-' '_')=yes
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/wimax-service.install:
+       @$(call targetinfo)
+       @$(call world/install, WIMAX_SERVICE)
+       @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/wimax-service.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init,  wimax)
+       @$(call install_fixup, wimax,PRIORITY,optional)
+       @$(call install_fixup, wimax,SECTION,base)
+       @$(call install_fixup, wimax,AUTHOR,"Christian Gagneraud 
<[email protected]>")
+       @$(call install_fixup, wimax,DESCRIPTION,WiMAX tools and librairies)
+
+       @$(call install_copy, wimax, 0, 0, 0755, -, /usr/bin/wimaxcu)
+       @$(call install_copy, wimax, 0, 0, 0755, -, /usr/bin/wimaxd)
+       @$(call install_copy, wimax, 0, 0, 0755, -, /usr/bin/wimax_monitor)
+       @$(call install_lib, wimax, 0, 0, 0755, libiWmxSdk)
+       @$(call install_lib, wimax, 0, 0, 0755, libWmxInstrument)
+       @$(call install_copy, wimax, 0, 0, 0644, -, /etc/wimax/config.xml)
+       @$(call install_copy, wimax, 0, 0, 0644, -, 
/etc/udev/rules.d/iwmxsdk.rules)
+       @$(call install_copy, wimax, 0, 0, 0644, -, /etc/modprobe.d/i2400m.conf)
+       @$(call install_tree, wimax, 0, 0, -, /usr/share/wimax)
+       @$(call install_tree, wimax, 0, 0, -, /var/lib/wimax)
+       @$(call install_finish, wimax)
+
+       @$(call touch)
+
-- 
1.7.4.1


-- 
ptxdist mailing list
[email protected]

Reply via email to