Name: ladvd Version: 0.6.1 Release: 1%{?dist} Summary: CDP/LLDP sender for unix Group: Applications/Internet License: ISC URL: http://www.blinkenlights.nl/software/ladvd/ Source0: http://www.blinkenlights.nl/software/ladvd/ladvd-%{version}.tar.gz Source1: ladvd.sysconfig Source2: ladvd.init BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service %description ladvd uses cdp / lldp frames to inform switches about connected hosts, which simplifies ethernet switch management. Every 30 seconds it will transmit CDP/ LLDP packets reflecting the current system state. Interfaces (bridge, bonding, wireless), capabilities (bridging, forwarding, wireless) and addresses (IPv4, IPv6) are detected dynamically. %prep %setup -q %build %configure \ --with-user=nobody \ --with-pid-dir=%{_localstatedir}/run make %{?_smp_mflags} %install rm -rf %{buildroot} make install DESTDIR=%{buildroot} rm -rf %{buildroot}%{_docdir}/ladvd install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name} install -D -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/%{name} %clean rm -rf %{buildroot} %post /sbin/chkconfig --add %{name} %preun if [ $1 = 0 ]; then /sbin/service %{name} stop >/dev/null 2>&1 /sbin/chkconfig --del %{name} fi %postun if [ "$1" -ge "1" ]; then /sbin/service %{name} condrestart >/dev/null 2>&1 fi %files %defattr(-,root,root,-) %doc doc/ChangeLog doc/README LICENSE TODO %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %{_initrddir}/%{name} %{_sbindir}/ladvd %{_mandir}/man8/ladvd.8* %changelog * Sat Oct 18 2008 Andreas Thienemann 0.6.1-1 - Initial package