[avahi] Patch for gentoo compilation

Steev steev at steev.net
Thu Jun 30 17:07:56 PDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sebastien Estienne wrote:
>>Same thing in avahi-dnsconfd/Makefile.am. AVAHI_SOCKET is the socket
>>of avahi-daemon to connect to. AVAHI_RUNTIME_SCRIPT is the path where
>>to put the PID file. Since avahi-dns-confd puts its PID file directly
>>to /var/run/ (instead of /var/run/avahi/) this should be cleaned up a
>>little anyway.
> 
> I made the modifications for AVAHI_SOCKET and AVAHI_RUNTIME_DIR (using config.h)
> and also modifyed avahai/simple-protocol.c to use AVAHI_SOCKET instead
> of UNIX_SOCKET.
> 
> about gentoo and /var/lib/run, i think that if portage explicitely
> define --localstatedir=/var/lib , there must be a reason (the default
> value is /var)
> I could easily detect that's the distro is gentoo and use /var/run,
> but i'm not sure it's the right thing to do. We should investigate how
> other ebuild do this, dbus or hal ebuild for example.

they use the following in their ebuilds

        --with-system-pid-file=/var/run/dbus.pid \
        --with-system-socket=/var/lib/dbus/system_bus_socket \
        --with-session-socket-dir=/tmp \

- --
Steev Klimaszewski
www.steev.net
steev at steev.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCxIlb1c+EtXTHkJcRAhzYAJ9gnGWAOvwp9tD2uc5KU2o4S2H7OgCfcbLD
7SfMxPtyGVpeoEmgDbtER5I=
=C/hl
-----END PGP SIGNATURE-----


More information about the avahi mailing list