<?xml version="1.0"?>
<package name="avahi">
	<description>ZeroConf library</description>
	<releases>
		<release version="0.6.22" revision="2" branch="stable">
			<deps>
				<dep name="expat"/>
				<dep name="libdaemon"/>
				<dep name="glib-2.0"/>
				<dep name="dbus-1"/>
				<dep name="doxygen"/>
				<dep name="libcap"/>
				<dep name="expat"/>
				<dep name="gdbm"/>
			</deps>
			<preinst>
				<cmd>groupadd -f -g 32 avahi</cmd>
				<cmd check="no">useradd -u 32 -g avahi -c "Avahi" -s /bin/false avahi</cmd>
			</preinst>
			<build>
				<script>
					<archive name="avahi-$VERSION">
						<!-- disable mono bindings as it requires gtk-sharp-2.0 which is too high-level for avahi core -->
						<cmd>./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --disable-qt3 --disable-qt4 --disable-gtk --disable-python --disable-mono --enable-compat-howl --with-distro=none --disable-static --with-avahi-priv-access-group=network</cmd>
						<cmd>make -j 2</cmd>
						<cmd>make install</cmd>
						<cmd>ln -svf avahi-compat-howl.pc /usr/lib/pkgconfig/howl.pc</cmd>
						
						<install name="init-avahi-daemon-20060105" dest="/etc/init.d/avahi-daemon" mode="0755"/>
						<install name="init-avahi-dnsconfd-20060321" dest="/etc/init.d/avahi-dnsconfd" mode="0755"/>
					</archive>
				</script>
			</build>
		</release>
		<release version="0.6.22" revision="3" tag="ui" branch="stable">
			<deps>
				<dep name="avahi"/>
				<dep name="gtk+-2.0"/>
				<dep name="libglade-2.0"/>
			</deps>
			<build>
				<script>
					<archive name="avahi-$VERSION">
						<cmd>./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --disable-qt3 --disable-qt4 --enable-gtk --disable-python --disable-mono --disable-compat-howl --with-distro=none --disable-static --with-avahi-priv-access-group=network</cmd>
						<cmd>make -j 2</cmd>
						<cmd>make -C avahi-ui install</cmd>
						<cmd>install -v avahi-ui.pc /usr/lib/pkgconfig/</cmd>

						<!-- remove ssh and vnc browser, not useful at the moment -->
						<cmd>rm -vf /usr/bin/{bshell,bssh,bvnc} /usr/share/applications/{bssh,bvnc}.desktop</cmd>
					</archive>
				</script>
			</build>
		</release>
		<release version="0.6.22" revision="1" tag="sharp" branch="stable">
			<deps>
				<dep name="avahi"/>
				<dep name="mono"/>
				<dep name="monodoc"/>
				<dep name="gtk-sharp-2.0"/>
			</deps>
			<build>
				<script>
					<archive name="avahi-$VERSION">
						<cmd>./configure --prefix=/usr --libexecdir=/usr/lib --sysconfdir=/etc --localstatedir=/var --disable-qt3 --disable-qt4 --disable-gtk --disable-python --enable-mono --disable-compat-howl --with-distro=none --disable-static --with-avahi-priv-access-group=network</cmd>
						<cmd>make -j 2</cmd>
						<cmd>make -C avahi-sharp install</cmd>
						<cmd>make -C avahi-ui-sharp install</cmd>
						<cmd>install -v avahi-sharp.pc avahi-ui-sharp.pc /usr/lib/pkgconfig/</cmd>
						
						<!-- notify upkg-watch -->
						<cmd check="no">find /usr/lib/mono/{avahi-sharp,avahi-ui-sharp} -type l | xargs touch</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
