[leaf-commits] devel/davidmbrooke/src/bering-uclibc4/source/avahi append-to-sources.local, NONE, 1.1 avahi-0.6.28.tar.gz, NONE, 1.1 avahi-daemon.init, NONE, 1.1 buildtool.cfg, NONE, 1.1 buildtool.mk, NONE, 1.1 leaf.service, NONE, 1.1

david M brooke <[email protected]> Sat, 04 Dec 2010 18:06:18 +0000
Newsgroups gmane.linux.leaf.cvs
Message-ID <[email protected]>
Update of /cvsroot/leaf/devel/davidmbrooke/src/bering-uclibc4/source/avahi
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv24689

Added Files:
	append-to-sources.local avahi-0.6.28.tar.gz avahi-daemon.init 
	buildtool.cfg buildtool.mk leaf.service 
Log Message:
Initial check-in

--- NEW FILE: avahi-0.6.28.tar.gz ---
(This appears to be a binary file; contents omitted.)

--- NEW FILE: append-to-sources.local ---

<Server cvs4-sourceforge-devel-davidmbrooke>
	Type = viewcvs
	Name = leaf.cvs.sourceforge.net
	Serverpath = /leaf/devel/davidmbrooke/src/bering-uclibc4/source
</Server>

<Package avahi>
	Server = cvs4-sourceforge-devel-davidmbrooke
	Directory = avahi
	Revision = HEAD
	Description = mDNS/DNS-SD service discovery system
	<Requires>
		Name = buildenv
		Name = expat
		Name = libdaemon
	</Requires>
</Package>


--- NEW FILE: leaf.service ---
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

<!--
  Sample avahi service file for LEAF router
  See e.g. http://avahi.org/download/avahi.service.5.xml for syntax

  $Header: /cvsroot/leaf/devel/davidmbrooke/src/bering-uclibc4/source/avahi/leaf.service,v 1.1 2010/12/04 18:06:16 davidmbrooke Exp $
-->

<!-- Advertise the local HTTP service -->
<service-group>

  <name replace-wildcards="yes">HTTP Server on %h</name>

  <service>
    <type>_http._tcp</type>
    <port>80</port>
    <txt-record>path=/</txt-record>
  </service>

</service-group>


<!-- Example to Advertise a network printer -->
<!--
<service-group>

  <name>HP LaserJet 2100M</name>

  <service>
    <type>_printer._tcp</type>
    <host-name>lj2100m.private.network.</host-name>
    <port>515</port>
    <txt-record>txtvers=1 qtotal=1</txt-record>
  </service>

  <service>
    <type>_ipp._tcp</type>
    <host-name>lj2100m.private.network.</host-name>
    <port>631</port>
    <txt-record>txtvers=1 qtotal=1</txt-record>
  </service>

</service-group>
-->



--- NEW FILE: buildtool.mk ---
#############################################################
#
# avahi
#
#############################################################

include $(MASTERMAKEFILE)

AVAHI_DIR:=$(shell $(BT_TGZ_GETDIRNAME) $(AVAHI_SOURCE) 2>/dev/null )
ifeq ($(AVAHI_DIR),)
AVAHI_DIR:=$(shell cat DIRNAME)
endif

AVAHI_TARGET_DIR:=$(BT_BUILD_DIR)/avahi

# Option settings for 'configure':
#   Move default install from /usr/local to /usr
#   But keep config files in /etc (rather than /usr/etc)
#   And keep state files in /var (rather than /usr/var)
#   Run as User "lrp" and Group "users" (rather than "avahi", or "root")
#   Disable lots of options not relevant for Bering-uClibc
CONFOPTS:=--prefix=/usr --sysconfdir=/etc --localstatedir=/var \
	--with-avahi-user=lrp --with-avahi-group=users --with-distro=debian \
	--disable-nls --disable-glib --disable-gobject \
	--disable-qt3 --disable-qt4 --disable-gtk --disable-gtk3 \
	--disable-dbus --disable-gdbm --disable-python \
	--disable-mono --disable-monodoc --disable-doxygen-doc \
	--disable-ssp --disable-stack-protector

# Next line is required to locate the .pc file for libdaemon
export PKG_CONFIG_PATH=$(BT_STAGING_DIR)/usr/lib/pkgconfig

$(AVAHI_DIR)/.source:
	zcat $(AVAHI_SOURCE) | tar -xvf - 	
	echo $(AVAHI_DIR) > DIRNAME
	touch $(AVAHI_DIR)/.source

$(AVAHI_DIR)/.configure: $(AVAHI_DIR)/.source
	# Need to hack out a big chunk of "configure" which relates to
	# intltool and .po files which we don't need (and doesn't work).
	# First line to delete is #17850:
	#    case "$am__api_version
	# Last line to delete is #18348:
	#    # Substitute ALL_LINGUAS so we can use it in po/Makefile
	( cd $(AVAHI_DIR); sed -i '17850,18348d' configure )
	# Run edited configure script
	( cd $(AVAHI_DIR); ./configure $(CONFOPTS) );
	touch $(AVAHI_DIR)/.configure
	
source: $(AVAHI_DIR)/.source


$(AVAHI_DIR)/.build: $(AVAHI_DIR)/.configure
	# Need to remove "po/" from list of SUBDIRS to build
	( cd $(AVAHI_DIR) ; perl -i -p -e 's/	po/ /' Makefile )
	mkdir -p $(AVAHI_TARGET_DIR)
	$(MAKE) -C $(AVAHI_DIR)
	$(MAKE) DESTDIR=$(AVAHI_TARGET_DIR) -C $(AVAHI_DIR) install
	$(BT_STRIP) $(BT_STRIP_BINOPTS) $(AVAHI_TARGET_DIR)/usr/sbin/*
	$(BT_STRIP) $(BT_STRIP_LIBOPTS) $(AVAHI_TARGET_DIR)/usr/lib/*.so
	cp -a $(AVAHI_TARGET_DIR)/usr/sbin/* $(BT_STAGING_DIR)/usr/sbin
	cp -ar $(AVAHI_TARGET_DIR)/usr/lib/* $(BT_STAGING_DIR)/usr/lib
	cp -ar $(AVAHI_TARGET_DIR)/usr/include/* $(BT_STAGING_DIR)/usr/include
	cp -ar $(AVAHI_TARGET_DIR)/etc/avahi/ $(BT_STAGING_DIR)/etc
	cp -a leaf.service $(BT_STAGING_DIR)/etc/avahi/services/
	cp -a avahi-daemon.init $(BT_STAGING_DIR)/etc/init.d/avahi-daemon
	touch $(AVAHI_DIR)/.build

build: $(AVAHI_DIR)/.build

clean:
	-rm $(AVAHI_DIR)/.build
	-rm -rf $(AVAHI_TARGET_DIR)
	-$(MAKE) -C $(AVAHI_DIR) clean
	
srcclean:
	-rm -rf $(AVAHI_DIR)
	rm DIRNAME


--- NEW FILE: avahi-daemon.init ---
#!/bin/sh
# Avahi Daemon

RCDLINKS="0,K83 1,K83 2,S17 3,S17 4,S17 5,S17 6,K83"

AVAHI_DAEMON=/usr/sbin/avahi-daemon
ARGS="--file /etc/avahi/avahi-daemon.conf --daemonize"

test -f $AVAHI_DAEMON || exit 0

case "$1" in
start)  echo -n "Starting mDNS/DNS-SD Daemon: avahi-daemon"
        start-stop-daemon --start --quiet --pidfile /var/run/avahi-daemon.pid --startas $AVAHI_DAEMON -- $ARGS
        echo "."
        ;;
stop)   echo -n "Stopping mDNS/DNS-SD Daemon: avahi-daemon"
        start-stop-daemon --stop --quiet --pidfile /var/run/avahi-daemon/miniupnpd.pid
        echo "."
        ;;
restart|reload|force-reload)
        echo -n "Restarting mDNS/DNS-SD Daemon: avahi-daemon..."
        start-stop-daemon --stop --retry 5 --quiet --pidfile /var/run/miniupnpd.pid
        start-stop-daemon --start --quiet --pidfile /var/run/miniupnpd.pid --startas $AVAHI_DAEMON -- $ARGS
        echo "done."
        ;;
*)      echo "Usage: /etc/init.d/avahi-daemon {start|stop|restart|reload|force-reload}"
        exit 1
        ;;
esac
exit 0

--- NEW FILE: buildtool.cfg ---
<File buildtool.mk>
	Server = cvs4-sourceforge-devel-davidmbrooke
	Revision = HEAD
	Directory = avahi
</File>

<File avahi-0.6.28.tar.gz>
	Server = cvs4-sourceforge-devel-davidmbrooke
	Revision = HEAD  
	Directory = avahi
	Envname = AVAHI_SOURCE
</File>

<File avahi-daemon.init>
	Server = cvs4-sourceforge-devel-davidmbrooke
	Revision = HEAD  
	Directory = avahi
</File>

<File leaf.service>
	Server = cvs4-sourceforge-devel-davidmbrooke
	Revision = HEAD  
	Directory = avahi
</File>

<Package>
	<libavahi>
		Version = 0.6.28
		Revision = 1

		Help <<EOF
		Avahi is a system which facilitates service discovery on a
		local network via the mDNS/DNS-SD protocol suite. 
		This package installs the Avahi libraries.
		Homepage: http://www.avahi.org/
		LEAF Package by __PACKAGER__, __BUILDDATE__
		EOF

		<Permissions>
			Files = 644
			Directories = 755
		</Permissions>

		<Owner>
			Files = root:root
			Directories = root:root
		</Owner>

		<Contents>
			<File>
				Source		= usr/lib/libavahi-core.so.7.0.0
				Filename	= usr/lib/libavahi-core.so.7.0.0
				Type		= binary
				Permissions	= 755
			</File>

			<File>
				Filename	= usr/lib/libavahi-core.so
				Target		= usr/lib/libavahi-core.so.7.0.0
				Type		= link
				Permissions	= 755
			</File>

			<File>
				Filename	= usr/lib/libavahi-core.so.7
				Target		= usr/lib/libavahi-core.so.7.0.0
				Type		= link
				Permissions	= 755
			</File>

			<File>
				Source		= usr/lib/libavahi-common.so.3.5.2
				Filename	= usr/lib/libavahi-common.so.3.5.2
				Type		= binary
				Permissions	= 755
			</File>

			<File>
				Filename	= usr/lib/libavahi-common.so
				Target		= usr/lib/libavahi-common.so.3.5.2
				Type		= link
				Permissions	= 755
			</File>

			<File>
				Filename	= usr/lib/libavahi-common.so.3
				Target		= usr/lib/libavahi-common.so.3.5.2
				Type		= link
				Permissions	= 755
			</File>
		</Contents>
	</libavahi>

	<avahid>
		Version = 0.6.28
		Revision = 1

		Help <<EOF
		Avahi is a system which facilitates service discovery on a
		local network via the mDNS/DNS-SD protocol suite. 
		This package installs the Avahi daemon.
		Homepage: http://www.avahi.org/
		Requires: libexpat.lrp, libdaemon.lrp, libpthread.lrp, libavahi.lrp
		LEAF Package by __PACKAGER__, __BUILDDATE__
		EOF

		<Permissions>
			Files = 644
			Directories = 755
		</Permissions>

		<Owner>
			Files = root:root
			Directories = root:root
		</Owner>

		<Contents>
			<File>
				Source		= etc/avahi/avahi-daemon.conf
				Filename	= etc/avahi/avahi-daemon.conf
				Description	= Avahi Daemon Configuration
				Type            = conf
				Type            = local
				Type            = binary
			</File>		

			<File>
				Source		= etc/avahi/services/leaf.service
				Filename	= etc/avahi/services/leaf.service
				Description	= Avahi Static Service Advertisements
				Type            = conf
				Type            = local
				Type            = binary
e
			</File>		

			<File>
				Source		= etc/init.d/avahi-daemon
				Filename	= etc/init.d/avahi-daemon
				Type            = binary
				Permissions	= 755
e
			</File>		

			<File>
				Source		= usr/sbin/avahi-daemon
				Filename	= usr/sbin/avahi-daemon
				Type            = binary
				Permissions	= 755
e
			</File>		
		</Contents>
	</avahid>
</Package>


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d