From 8c1d70ba563c012c80c6a86335e836beea653be1 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: May 21 2008 15:05:46 +0000 Subject: - fix troubles caused by added symlink --- diff --git a/tftp.spec b/tftp.spec index d14d261..64db2bc 100644 --- a/tftp.spec +++ b/tftp.spec @@ -3,7 +3,7 @@ Summary: The client for the Trivial File Transfer Protocol (TFTP) Name: tftp Version: %{tftp_hpa_version} -Release: 4%{?dist} +Release: 5%{?dist} License: BSD Group: Applications/Internet Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{tftp_hpa_version}.tar.gz @@ -55,7 +55,6 @@ mkdir -p ${RPM_BUILD_ROOT}%{_bindir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,8} mkdir -p ${RPM_BUILD_ROOT}%{_sbindir} mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot -ln -s %{_localstatedir}/lib/tftpboot ${RPM_BUILD_ROOT}/tftpboot make INSTALLROOT=${RPM_BUILD_ROOT} SBINDIR=%{_sbindir} MANDIR=%{_mandir} INSTALL='install -p' install install -m755 -d -p ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/ ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tftpboot @@ -65,11 +64,17 @@ touch -r tftp-xinetd ${RPM_BUILD_ROOT}%{_sysconfdir}/xinetd.d/tftp %post server /sbin/service xinetd reload > /dev/null 2>&1 || : +if [ ! -e /tftpboot ]; then + ln -s %{_localstatedir}/lib/tftpboot / +fi %postun server if [ $1 = 0 ]; then /sbin/service xinetd reload > /dev/null 2>&1 || : fi +if [ -h /tftpboot ]; then + rm -f /tftpboot +fi %clean rm -rf ${RPM_BUILD_ROOT} @@ -85,15 +90,17 @@ rm -rf ${RPM_BUILD_ROOT} %doc README* CHANGES %config(noreplace) %{_sysconfdir}/xinetd.d/tftp %dir %{_localstatedir}/lib/tftpboot -/tftpboot %{_sbindir}/in.tftpd %{_mandir}/man8/* %changelog -* Tue May 20 2008 Martin Nagy - 0.48-3 +* Wed May 21 2008 Martin Nagy - 0.48-5 +- fix troubles caused by added symlink + +* Tue May 20 2008 Martin Nagy - 0.48-4 - add symlink to /var/lib/tftpboot -* Mon Mar 03 2008 Martin Nagy - 0.48-2 +* Mon Mar 03 2008 Martin Nagy - 0.48-3 - changed description (#234099) * Mon Feb 11 2008 Martin Nagy - 0.48-2