|
|
@@ -33,12 +33,13 @@ Distribution: OpenPKG [PLUS]
|
|
|
Group: Networtk
|
|
|
License: GPL
|
|
|
Version: 0.33
|
|
|
-Release: 20030204
|
|
|
+Release: 20030411
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.kernel.org/pub/software/network/tftp/tftp-hpa-%{version}.tar.gz
|
|
|
Source1: tftpd.remap
|
|
|
Source2: rc.tftp
|
|
|
+Patch0: tftp.patch
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
@@ -49,14 +50,16 @@ AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
%description
|
|
|
- This is a portable client and server for the Trivial File Transfer Protocol (TFTP).
|
|
|
+ This is a portable client and server for the Trivial File Transfer
|
|
|
+ Protocol (TFTP).
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n tftp-hpa-%{version}
|
|
|
+ %patch -p0
|
|
|
|
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
|
- CFLAGS="%{l_cflags -O}" \
|
|
|
+ CFLAGS="%{l_cflags -O} -DPID_FILE='\"%{l_prefix}/var/tftp/tftpd.pid\"'" \
|
|
|
CPPFLAGS="%{l_cppflags}" \
|
|
|
LDFLAGS="%{l_ldflags}" \
|
|
|
./configure \
|
|
|
@@ -69,24 +72,27 @@ AutoReqProv: no
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/etc/tftp
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/tftp \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/tftp
|
|
|
%{l_make} %{l_mflags} install \
|
|
|
INSTALL="%{l_shtool} install -c" \
|
|
|
INSTALLROOT=$RPM_BUILD_ROOT
|
|
|
- %{l_shtool} install -c -m 644 \
|
|
|
+ %{l_shtool} install -c -m 755 \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
+ -e 's;@l_susr@;%{l_susr};g' \
|
|
|
-e 's;@l_nusr@;%{l_nusr};g' \
|
|
|
%{SOURCE rc.tftp} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
%{l_shtool} install -c -m 644 \
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
%{SOURCE tftpd.remap} $RPM_BUILD_ROOT%{l_prefix}/etc/tftp/
|
|
|
mv $RPM_BUILD_ROOT%{l_prefix}/man/man8/in.tftpd.8 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/man/man8/tftpd.8
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/man/man8/tftpd.8
|
|
|
mv $RPM_BUILD_ROOT%{l_prefix}/sbin/in.tftpd \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/sbin/tftpd
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/sbin/tftpd
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
|
|
|
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
|
|
|
+ '%config %{l_prefix}/etc/tftp/*'
|
|
|
|
|
|
%files -f files
|
|
|
|