[ptxdist] [PATCH] avahi

2009-11-17 Thread Markus Rathgeb
- added Option for libavahi-client
- more useful (the common) default values for AVAHI_DBUS_SYS and 
AVAHI_DBUS_SOCKET
- copy the configuration file of avahi for dbus (if option is set)

Signed-off-by: Markus Rathgeb rathgeb.mar...@googlemail.com
---
 {rules.org = rules}/avahi.in   |   14 --
 {rules.org = rules}/avahi.make |   11 +++
 2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/rules.org/avahi.in b/rules/avahi.in
index cd1d5fb..e59651b 100644
--- a/rules.org/avahi.in
+++ b/rules/avahi.in
@@ -46,6 +46,16 @@ config AVAHI_GTK
help
  --enable-gtk
 
+config AVAHI_LIBAVAHI_CLIENT
+   bool
+   prompt enable avahi-client support
+   select AVAHI_DBUS
+   select AVAHI_DAEMON
+   help
+ A simplifying C wrapper around the D-Bus API.
+ It is recommend using this API in C or C++ progams.
+ The D-Bus internals are hidden completely.
+
 config AVAHI_DBUS
bool
prompt enable dbus support
@@ -56,14 +66,14 @@ if AVAHI_DBUS
 config AVAHI_DBUS_SYS
 string
 prompt Path to D-Bus system.d directory
-default unconfigured
+default /etc/dbus-1/system.d
 help
   Enter the Path to the D-Bus system.d directory
 
 config AVAHI_DBUS_SOCKET
 string
 prompt Path to the D-Bus system socket
-default unconfigured
+default unix:path=/var/run/dbus/system_bus_socket
 help
   Enter the Path to the D-Bus system socket, you probably want
   to put unix:path= at the start. Only needed for very
diff --git a/rules.org/avahi.make b/rules/avahi.make
index f42bfe5..fa5d02f 100644
--- a/rules.org/avahi.make
+++ b/rules/avahi.make
@@ -124,6 +124,7 @@ AVAHI_AUTOCONF +=   \
--enable-dbus   \
--with-dbus-sys=$(PTXCONF_AVAHI_DBUS_SYS)   \
--with-dbus-system-address=$(PTXCONF_AVAHI_DBUS_SOCKET)
+   
 else
 AVAHI_AUTOCONF += --disable-dbus
 endif
@@ -157,12 +158,22 @@ $(STATEDIR)/avahi.targetinstall:
@$(call install_link, avahi, libavahi-common.so.3.5.1, 
/usr/lib/libavahi-common.so.3)
@$(call install_link, avahi, libavahi-common.so.3.5.1, 
/usr/lib/libavahi-common.so)
 
+ifdef PTXCONF_AVAHI_DBUS
+   @$(call install_copy, avahi, 0, 0, 0644, -, 
$(PTXCONF_AVAHI_DBUS_SYS)/avahi-dbus.conf)
+endif
+
 ifdef PTXCONF_AVAHI_QT4
@$(call install_copy, avahi, 0, 0, 0644, -, 
/usr/lib/libavahi-qt4.so.1.0.2)
@$(call install_link, avahi, libavahi-qt4.so.1.0.2, 
/usr/lib/libavahi-qt4.so.1)
@$(call install_link, avahi, libavahi-qt4.so.1.0.2, 
/usr/lib/libavahi-qt4.so)
 endif
 
+ifdef PTXCONF_AVAHI_LIBAVAHI_CLIENT
+   @$(call install_copy, avahi, 0, 0, 0644, -, 
/usr/lib/libavahi-client.so.3.2.5)
+   @$(call install_link, avahi, libavahi-client.so.3.2.5, 
/usr/lib/libavahi-client.so.3)
+   @$(call install_link, avahi, libavahi-client.so.3.2.5, 
/usr/lib/libavahi-client.so)
+endif
+
 ifdef PTXCONF_AVAHI_DAEMON
 #  avahi daemon (avahi mDNS/DNS-SD Implementation)
 #  depends on expat



-- 
Markus Rathgeb
Public Key Server: http://wwwkeys.us.pgp.net/ bzw. hkp://wwwkeys.us.pgp.net/
Public Key Server: http://stinkfoot.org:11371/ bzw. hkp://stinkfoot.org

Erst nachdem wir alles verloren haben, haben wir die Freiheit, alles zu tun.
It's only after we've lost everything, that we're free to do anything! 


signature.asc
Description: This is a digitally signed message part.
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] avahi

2009-11-17 Thread Marc Kleine-Budde
Hey Markus,

Markus Rathgeb wrote:
 - added Option for libavahi-client
 - more useful (the common) default values for AVAHI_DBUS_SYS and 
 AVAHI_DBUS_SOCKET
 - copy the configuration file of avahi for dbus (if option is set)
 
 Signed-off-by: Markus Rathgeb rathgeb.mar...@googlemail.com

thanks for the patch, it has been applied. But that wasn't easy :)

Please rebase your working tree to ptxdist master before creating
patches. Or you might want to cherry pick your patch on top of the
ptxdist master tree.

In the official tree, there isn't a rules.orig dir, but it seems to be
in your git tree. With git there's no need for this kludge.

Please consider to have a patch for a subject, I've splitted your patch
into three patches.

cheers, Marc

-- 
Pengutronix e.K. | Marc Kleine-Budde   |
Linux Solutions for Science and Industry | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax:   +49-5121-206917- |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de   |



signature.asc
Description: OpenPGP digital signature
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [avahi] copy the configuration file of avahi for dbus

2009-11-17 Thread Markus Rathgeb
Good morning!

On Tue, Nov 17, 2009 at 11:20 PM, Marc Kleine-Budde m...@pengutronix.de wrote:
 Markus Rathgeb wrote:
 The default file comes with the avahi sources -- why you do not want
 to use that file and created the one in the generic directory?

 The reason behind this if someone wants to use a modified file.

 The current install_alternative first looks in $workspace/projectroot/
 then it $ptxdist/generic.

Isn't there a problem, that the file will be forgotten while updating
avahi to a more recent version after a undefined time?
Perhaps there could be an install function that will use
$workspace/projectroot if there is a correspondent file and
otherwise it will call a normal install to use the file that come with
the sources.

That is just a perspective I want point to. ;-)

--
ptxdist mailing list
ptxdist@pengutronix.de