Difference between revisions of "Avahi"

From CBLFS
Jump to navigationJump to search
Line 4: Line 4:
 
| http://avahi.org/download/avahi-{{Avahi-Version}}.tar.gz
 
| http://avahi.org/download/avahi-{{Avahi-Version}}.tar.gz
 
|-
 
|-
!Download Patch:
 
| http://lathiat.net/avahi-dbus-changes.diff
 
 
|}
 
|}
  
Line 72: Line 70:
 
Compile the package:
 
Compile the package:
  
patch -Np0 -i avahi-dbus-changes.diff &&
 
 
  ./configure --prefix=/usr --sysconfdir=/etc \
 
  ./configure --prefix=/usr --sysconfdir=/etc \
 
     --localstatedir=/var --with-distro=none &&
 
     --localstatedir=/var --with-distro=none &&
Line 87: Line 84:
 
Compile the package:
 
Compile the package:
  
patch -Np0 -i avahi-dbus-changes.diff &&
 
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
Line 102: Line 98:
 
Compile the package:
 
Compile the package:
  
patch -Np0 -i avahi-dbus-changes.diff &&
 
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
Line 117: Line 112:
  
 
Compile the package:
 
Compile the package:
 
patch -Np0 -i avahi-dbus-changes.diff &&
 
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
 
  PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \

Revision as of 07:29, 8 January 2007

Download Source: http://avahi.org/download/avahi-0.6.25.tar.gz

Dependencies

See http://www.avahi.org/wiki/DownloadAvahi#Requirements for more information.

Required

Reccomended

Optional

Avahi Users/Groups

The avahi user is running the Avahi daemon:

groupadd -g 20 avahi &&
useradd -c "Avahi Daemon User" -d /dev/null \
        -u 20 -g avahi -s /bin/false avahi

The avahi-autoipd user/group is for running the avahi-autoipd daemon:

groupadd -g 21 avahi-autoipd &&
useradd -c "Avahi AutoIP Daemon User" -d /dev/null \
        -u 21 -g avahi-autoipd -s /bin/false avahi-autoipd

The netdev group is a priviliged access group for Avahi clients:

groupadd -g 22 netdev

Configure Options

If you do not have any of following packages installed pass the appropriate options to configure:

--disable-glib
--disable-qt3
--disable-qt4
--disable-gtk
--disable-dbus
--disable-expat
--disable-mono --disable-monodoc

If you want to enable the HOWL compat layer:

--enable-compat-howl

If you want to enable to libdns_sd compat layer:

--enable-compat-libdns_sd

Non-Multilib

Compile the package:

./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --with-distro=none &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH32}" USE_ARCH=32 \
./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --with-distro=none &&
make

Install the package

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
PKG_CONFIG_PATH="${PKG_CONFIG_PATHN32}" USE_ARCH=n32 \
./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --libdir=/usr/lib32 \
    --with-distro=none &&
make

Install the package

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
PKG_CONFIG_PATH="${PKG_CONFIG_PATH64}" USE_ARCH=64 \
./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --libdir=/usr/lib64 \
    --with-distro=none &&
make

Install the package

make install

Configuring

Bootscript

There currently isn't a pre-written bootscript for any of the 3 daemons Avahi provides. avahi-daemon must start after udev.

  • avahi-daemon - The Avahi mDNS/DNS-SD daemon.
  • avahi-audoipd - IPv4LL network address configuration daemon. For use in an ad-hoc network where there is a lack of a DHCP server.
  • avahi-dnsconfd - Unicast DNS server from mDNS/DNS-SD configuration daemon. Connects to a running avahi-daemon and runs the script /etc/avahi/dnsconfd.action for each unicast DNS server that is announced on the local LAN.
Retrieved from "?title=Avahi&oldid=6719"