summaryrefslogtreecommitdiff
path: root/package/avahi
diff options
context:
space:
mode:
Diffstat (limited to 'package/avahi')
-rw-r--r--package/avahi/Config.in44
-rw-r--r--package/avahi/Config.in.lib18
-rw-r--r--package/avahi/Makefile83
-rw-r--r--package/avahi/files/avahi-daemon.conf29
-rw-r--r--package/avahi/files/avahi-daemon.init25
-rw-r--r--package/avahi/files/service-http10
-rw-r--r--package/avahi/files/service-ssh9
-rw-r--r--package/avahi/ipkg/avahi-daemon.conffiles3
-rw-r--r--package/avahi/ipkg/avahi-daemon.control5
-rw-r--r--package/avahi/ipkg/avahi-daemon.postinst6
-rw-r--r--package/avahi/ipkg/avahi-dnsconfd.control5
-rw-r--r--package/avahi/ipkg/libavahi.control4
12 files changed, 241 insertions, 0 deletions
diff --git a/package/avahi/Config.in b/package/avahi/Config.in
new file mode 100644
index 000000000..b64b0e33d
--- /dev/null
+++ b/package/avahi/Config.in
@@ -0,0 +1,44 @@
+config ADK_COMPILE_AVAHI
+ tristate
+ default n
+ depends ADK_PACKAGE_AVAHI_DAEMON || ADK_PACKAGE_AVAHI_DNSCONFD || ADK_PACKAGE_LIBAVAHI
+
+config ADK_PACKAGE_AVAHI_DAEMON
+ prompt "avahi-daemon...................... An mDNS/DNS-SD (ZeroConf) implementation (daemon)"
+ tristate
+ default n
+ select ADK_COMPILE_AVAHI
+ select ADK_PACKAGE_LIBAVAHI
+ select ADK_PACKAGE_LIBDAEMON
+ help
+ Avahi is a system which facilitates service discovery on a local network --
+ this means that you can plug your laptop or computer into a network and
+ instantly be able to view other people who you can chat with, find printers
+ to print to or find files being shared. This kind of technology is already
+ found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf')
+ and is very convenient.
+
+ http://www.freedesktop.org/Software/Avahi
+
+ This package contains an mDNS/DNS-SD daemon.
+
+config ADK_PACKAGE_AVAHI_DNSCONFD
+ prompt "avahi-dnsconfd.................. Unicast DNS server from mDNS/DNS-SD config daemon"
+ tristate
+ default n
+ select ADK_COMPILE_AVAHI
+ depends ADK_PACKAGE_AVAHI_DAEMON
+ help
+ Avahi is a system which facilitates service discovery on a local network --
+ this means that you can plug your laptop or computer into a network and
+ instantly be able to view other people who you can chat with, find printers
+ to print to or find files being shared. This kind of technology is already
+ found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf')
+ and is very convenient.
+
+ http://www.freedesktop.org/Software/Avahi
+
+ This package contains an Unicast DNS server from mDNS/DNS-SD configuration
+ daemon, which may be used to configure conventional DNS servers using mDNS
+ in a DHCP-like fashion. Especially useful on IPv6.
+
diff --git a/package/avahi/Config.in.lib b/package/avahi/Config.in.lib
new file mode 100644
index 000000000..abfbdc426
--- /dev/null
+++ b/package/avahi/Config.in.lib
@@ -0,0 +1,18 @@
+config ADK_PACKAGE_LIBAVAHI
+ prompt "libavahi.......................... An mDNS/DNS-SD (ZeroConf) implementation (library)"
+ tristate
+ default n
+ select ADK_COMPILE_AVAHI
+ help
+ Avahi is a system which facilitates service discovery on a local network --
+ this means that you can plug your laptop or computer into a network and
+ instantly be able to view other people who you can chat with, find printers
+ to print to or find files being shared. This kind of technology is already
+ found in MacOS X (branded 'Rendezvous', 'Bonjour' and sometimes 'ZeroConf')
+ and is very convenient.
+
+ http://www.freedesktop.org/Software/Avahi
+
+ This package contains the mDNS/DNS-SD shared libraries, used by other programs.
+
+
diff --git a/package/avahi/Makefile b/package/avahi/Makefile
new file mode 100644
index 000000000..f950db29b
--- /dev/null
+++ b/package/avahi/Makefile
@@ -0,0 +1,83 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= avahi
+PKG_VERSION:= 0.6.16
+PKG_RELEASE:= 6
+PKG_MD5SUM:= 3cbc460bbd55bae35f7b57443c063640
+MASTER_SITES:= http://avahi.org/download/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,AVAHI_DAEMON,avahi-daemon,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,AVAHI_DNSCONFD,avahi-dnsconfd,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,LIBAVAHI,libavahi,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+TCFLAGS+= -DNDEBUG
+CONFIGURE_STYLE= gnu
+CONFIGURE_ENV+= ac_cv_func_malloc_0_nonnull=yes \
+ ac_cv_func_realloc_0_nonnull=yes \
+ ac_cv_func_memcmp_working=yes
+CONFIGURE_ARGS+= --disable-glib \
+ --disable-qt3 \
+ --disable-qt4 \
+ --disable-gtk \
+ --disable-dbus \
+ --enable-expat \
+ --enable-libdaemon \
+ --disable-python \
+ --disable-pygtk \
+ --disable-python-dbus \
+ --disable-mono \
+ --disable-monodoc \
+ --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-xmltoman \
+ --with-distro=none \
+ --with-avahi-user=avahi \
+ --with-avahi-group=avahi
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+#XXX maybe unneeded?
+#XAKE_FLAGS+= PKG_CONFIG_PATH=${STAGING_DIR}/usr/lib/pkgconfig
+
+post-install:
+ # avahi daemon
+ ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi
+ ${INSTALL_DATA} ./files/avahi-daemon.conf ${IDIR_AVAHI_DAEMON}/etc/avahi/
+ ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/avahi/services
+ ${INSTALL_DATA} ./files/service-http \
+ ${IDIR_AVAHI_DAEMON}/etc/avahi/services/http.service
+ ${INSTALL_DATA} ./files/service-ssh \
+ ${IDIR_AVAHI_DAEMON}/etc/avahi/services/ssh.service
+ ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/etc/init.d
+ ${INSTALL_BIN} ./files/avahi-daemon.init \
+ ${IDIR_AVAHI_DAEMON}/etc/init.d/avahi-daemon
+ ${INSTALL_DIR} ${IDIR_AVAHI_DAEMON}/usr/sbin
+ ${CP} ${WRKINST}/usr/sbin/avahi-daemon ${IDIR_AVAHI_DAEMON}/usr/sbin/
+ # avahi dnsconfd
+ ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/etc/avahi
+ ${CP} ${WRKINST}/etc/avahi/avahi-dnsconfd.action \
+ ${IDIR_AVAHI_DNSCONFD}/etc/avahi/
+ ${INSTALL_DIR} ${IDIR_AVAHI_DNSCONFD}/usr/sbin
+ ${CP} ${WRKINST}/usr/sbin/avahi-dnsconfd ${IDIR_AVAHI_DNSCONFD}/usr/sbin/
+ # libavahi
+ ${INSTALL_DIR} ${IDIR_LIBAVAHI}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libavahi-common.so.* ${IDIR_LIBAVAHI}/usr/lib/
+ ${CP} ${WRKINST}/usr/lib/libavahi-core.so.* ${IDIR_LIBAVAHI}/usr/lib/
+ ${SED} 's,-I$$(includedir),,g' ${WRKINST}/usr/lib/pkgconfig/avahi-core.pc
+ ${SED} 's,-L$$(libdir),,g' ${WRKINST}/usr/lib/pkgconfig/avahi-core.pc
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/avahi/files/avahi-daemon.conf b/package/avahi/files/avahi-daemon.conf
new file mode 100644
index 000000000..a5ff88619
--- /dev/null
+++ b/package/avahi/files/avahi-daemon.conf
@@ -0,0 +1,29 @@
+[server]
+#host-name=foo
+#domain-name=local
+use-ipv4=yes
+use-ipv6=no
+check-response-ttl=no
+use-iff-running=no
+enable-dbus=no
+
+[publish]
+publish-addresses=yes
+publish-hinfo=yes
+publish-workstation=no
+publish-domain=yes
+#publish-dns-servers=192.168.1.1
+#publish-resolv-conf-dns-servers=yes
+
+[reflector]
+enable-reflector=no
+reflect-ipv=no
+
+[rlimits]
+#rlimit-as=
+rlimit-core=0
+rlimit-data=4194304
+rlimit-fsize=0
+rlimit-nofile=30
+rlimit-stack=4194304
+rlimit-nproc=1
diff --git a/package/avahi/files/avahi-daemon.init b/package/avahi/files/avahi-daemon.init
new file mode 100644
index 000000000..06d0863fc
--- /dev/null
+++ b/package/avahi/files/avahi-daemon.init
@@ -0,0 +1,25 @@
+#!/bin/sh
+#FWINIT 75
+. /etc/rc.conf
+
+case $1 in
+autostop) ;;
+ autostart)
+ test x"${avahi:-NO}" = x"NO" && exit 0
+ exec sh $0 start
+ ;;
+ start)
+ avahi-daemon -D
+ ;;
+ stop)
+ avahi-daemon -k
+ ;;
+ restart)
+ sh $0 stop
+ sh $0 start
+ ;;
+ *)
+ echo "usage: $0 { start | stop | reload }"
+ exit 1
+esac
+exit $?
diff --git a/package/avahi/files/service-http b/package/avahi/files/service-http
new file mode 100644
index 000000000..8e0d3a513
--- /dev/null
+++ b/package/avahi/files/service-http
@@ -0,0 +1,10 @@
+<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
+<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
+<service-group>
+ <name replace-wildcards="yes">Web Server on %h</name>
+ <service>
+ <type>_http._tcp</type>
+ <port>80</port>
+ <txt-record>path=/index.html</txt-record>
+ </service>
+</service-group>
diff --git a/package/avahi/files/service-ssh b/package/avahi/files/service-ssh
new file mode 100644
index 000000000..b41580378
--- /dev/null
+++ b/package/avahi/files/service-ssh
@@ -0,0 +1,9 @@
+<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
+<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
+<service-group>
+ <name replace-wildcards="yes">Secure Shell on %h</name>
+ <service>
+ <type>_ssh._tcp</type>
+ <port>22</port>
+ </service>
+</service-group>
diff --git a/package/avahi/ipkg/avahi-daemon.conffiles b/package/avahi/ipkg/avahi-daemon.conffiles
new file mode 100644
index 000000000..46379ed96
--- /dev/null
+++ b/package/avahi/ipkg/avahi-daemon.conffiles
@@ -0,0 +1,3 @@
+/etc/avahi/avahi-daemon.conf
+/etc/avahi/services/http.service
+/etc/avahi/services/ssh.service
diff --git a/package/avahi/ipkg/avahi-daemon.control b/package/avahi/ipkg/avahi-daemon.control
new file mode 100644
index 000000000..f68a690fe
--- /dev/null
+++ b/package/avahi/ipkg/avahi-daemon.control
@@ -0,0 +1,5 @@
+Package: avahi-daemon
+Priority: optional
+Section: net
+Depends: libavahi, libdaemon, libexpat
+Description: an mDNS/DNS-SD (aka RendezVous/Bonjour/ZeroConf) implementation (daemon)
diff --git a/package/avahi/ipkg/avahi-daemon.postinst b/package/avahi/ipkg/avahi-daemon.postinst
new file mode 100644
index 000000000..0e3e13912
--- /dev/null
+++ b/package/avahi/ipkg/avahi-daemon.postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+. $IPKG_INSTROOT/etc/functions.sh
+gid=$(get_next_gid)
+add_group avahi $gid
+add_user avahi $(get_next_uid) $gid /tmp
+add_rcconf avahi avahi NO
diff --git a/package/avahi/ipkg/avahi-dnsconfd.control b/package/avahi/ipkg/avahi-dnsconfd.control
new file mode 100644
index 000000000..1213a0e7b
--- /dev/null
+++ b/package/avahi/ipkg/avahi-dnsconfd.control
@@ -0,0 +1,5 @@
+Package: avahi-dnsconfd
+Priority: optional
+Section: net
+Depends: libavahi, libdaemon, avahi-daemon
+Description: an Unicast DNS server from mDNS/DNS-SD configuration daemon
diff --git a/package/avahi/ipkg/libavahi.control b/package/avahi/ipkg/libavahi.control
new file mode 100644
index 000000000..4912296bc
--- /dev/null
+++ b/package/avahi/ipkg/libavahi.control
@@ -0,0 +1,4 @@
+Package: libavahi
+Priority: optional
+Section: libs
+Description: an DNS-SD over mDNS (aka RendezVous/Bonjour/ZeroConf) implementation (library)