summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2009-05-28 15:35:35 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2009-05-28 15:35:35 +0000
commitbd1016bf089c01ce419ab0f245c1b39c0a0fde19 (patch)
treeb6f8cef2cfdc44450f72a84bbcb572453fff4407
parent2d8828d77059d7da8d728014e4d1ab0a5a111751 (diff)
downloadptxdist-bd1016bf089c01ce419ab0f245c1b39c0a0fde19.tar.gz
ptxdist-bd1016bf089c01ce419ab0f245c1b39c0a0fde19.tar.xz
* avahi: add local stuff, still BROKEN and untested
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10602 33e552b5-05e3-0310-8538-816dae2090ed
-rw-r--r--rules/avahi.in8
-rw-r--r--rules/avahi.make183
2 files changed, 191 insertions, 0 deletions
diff --git a/rules/avahi.in b/rules/avahi.in
new file mode 100644
index 00000000..ecf6a47a
--- /dev/null
+++ b/rules/avahi.in
@@ -0,0 +1,8 @@
+## SECTION=networking
+
+config AVAHI
+ tristate
+ depends on BROKEN
+ prompt "avahi"
+ help
+ Avahi is a system which facilitates service discovery on a local network.
diff --git a/rules/avahi.make b/rules/avahi.make
new file mode 100644
index 00000000..32ada337
--- /dev/null
+++ b/rules/avahi.make
@@ -0,0 +1,183 @@
+# -*-makefile-*-
+# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $
+#
+# Copyright (C) 2009 by Robert Schwebel <r.schwebel@pengutronix.de>
+#
+# 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_AVAHI) += avahi
+
+#
+# Paths and names
+#
+AVAHI_VERSION := 0.6.25
+AVAHI := avahi-$(AVAHI_VERSION)
+AVAHI_SUFFIX := tar.gz
+AVAHI_URL := http://avahi.org/download/$(AVAHI).$(AVAHI_SUFFIX)
+AVAHI_SOURCE := $(SRCDIR)/$(AVAHI).$(AVAHI_SUFFIX)
+AVAHI_DIR := $(BUILDDIR)/$(AVAHI)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(AVAHI_SOURCE):
+ @$(call targetinfo)
+ @$(call get, AVAHI)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/avahi.extract:
+ @$(call targetinfo)
+ @$(call clean, $(AVAHI_DIR))
+ @$(call extract, AVAHI)
+ @$(call patchin, AVAHI)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+AVAHI_PATH := PATH=$(CROSS_PATH)
+AVAHI_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+AVAHI_AUTOCONF := \
+ $(CROSS_AUTOCONF_USR) \
+ --enable-fast-install \
+ --disable-nls \
+ --disable-dbm \
+ --disable-gdbm \
+ --disable-libdaemon \
+ --disable-python \
+ --disable-pygtk \
+ --disable-python-dbus \
+ --disable-mono \
+ --disable-monodoc \
+ --disable-autoipd \
+ --disable-doxygen-doc \
+ --disable-doxygen-dot \
+ --disable-doxygen-man \
+ --disable-doxygen-rtf \
+ --disable-doxygen-xml \
+ --disable-doxygen-chm \
+ --disable-doxygen-chi \
+ --disable-doxygen-html \
+ --disable-doxygen-ps \
+ --disable-doxygen-pdf \
+ --disable-core-docs \
+ --disable-manpages \
+ --disable-xmltoman \
+ --disable-tests \
+ --disable-compat-libdns_sd \
+ --disable-compat-howl \
+ --with-distro=none \
+ --with-xml=none \
+ --with-avahi-user=avahi \
+ --with-avahi-group=avahi \
+ --with-avahi-priv-access-group=netdev \
+ --with-autoipd-user=avahi-autoipd \
+ --with-autoipd-group=avahi-autoipd
+
+#
+# FIXME: make these configurable
+#
+
+AVAHI_AUTOCONF += \
+ --disable-glib \
+ --disable-gobject \
+ --disable-qt3 \
+ --disable-qt4 \
+ --disable-gtk \
+ --disable-dbus
+
+#
+# FIXME:
+#
+# --with-dbus-sys=<dir> Path to D-Bus system.d directory
+# --with-dbus-system-address=<address>
+# Path to the D-Bus system socket, you probably want
+# to put unix:path= at the start. Only needed for very
+# old D-Bus releases
+
+$(STATEDIR)/avahi.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(AVAHI_DIR)/config.cache)
+ cd $(AVAHI_DIR) && \
+ $(AVAHI_PATH) $(AVAHI_ENV) \
+ ./configure $(AVAHI_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/avahi.compile:
+ @$(call targetinfo)
+ cd $(AVAHI_DIR) && $(AVAHI_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/avahi.install:
+ @$(call targetinfo)
+ @$(call install, AVAHI)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/avahi.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, avahi)
+ @$(call install_fixup, avahi,PACKAGE,avahi)
+ @$(call install_fixup, avahi,PRIORITY,optional)
+ @$(call install_fixup, avahi,VERSION,$(AVAHI_VERSION))
+ @$(call install_fixup, avahi,SECTION,base)
+ @$(call install_fixup, avahi,AUTHOR,"Robert Schwebel <r.schwebel@pengutronix.de>")
+ @$(call install_fixup, avahi,DEPENDS,)
+ @$(call install_fixup, avahi,DESCRIPTION,missing)
+
+ @$(call install_copy, avahi, 0, 0, 0644, -, /usr/share/avahi/service-types)
+
+ @$(call install_copy, avahi, 0, 0, 0644, -, /usr/lib/libavahi-core.so.6.0.1)
+ @$(call install_link, avahi, libavahi-core.so.6.0.1, /usr/lib/libavahi-core.so.6)
+ @$(call install_link, avahi, libavahi-core.so.6.0.1, /usr/lib/libavahi-core.so)
+
+ @$(call install_copy, avahi, 0, 0, 0644, -, /usr/lib/libavahi-common.so.3.5.1)
+ @$(call install_link, avahi, libavahi-common.so.6.0.1, /usr/lib/libavahi-common.so.3)
+ @$(call install_link, avahi, libavahi-common.so.6.0.1, /usr/lib/libavahi-common.so)
+
+ # FIXME: looks like wrong prefix? Untested anyway...
+ #/usr/var/run
+ #/usr/lib/avahi
+
+ @$(call install_finish, avahi)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+avahi_clean:
+ rm -rf $(STATEDIR)/avahi.*
+ rm -rf $(PKGDIR)/avahi_*
+ rm -rf $(AVAHI_DIR)
+
+# vim: syntax=make