diff --git a/net-ftp/opsi-atftp/opsi-atftp.spec b/net-ftp/opsi-atftp/opsi-atftp.spec deleted file mode 100644 index 1651f34..0000000 --- a/net-ftp/opsi-atftp/opsi-atftp.spec +++ /dev/null @@ -1,108 +0,0 @@ -# -# spec file for package opsi-atftp -# -# Copyright (c) 2010 uib GmbH. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. -# - -Name: opsi-atftp -Requires: xinetd -License: GPL v2 or later -Group: Productivity/Networking/Opsi -AutoReqProv: on -Version: 0.7.dfsg -Release: 10.1 -Conflicts: atftp -Provides: tftp-server -Summary: advanced TFTP server - opsi version with pcre, fifo and max-blksize patches -Source: opsi-atftp_0.7.dfsg-2.1.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%define tftpboot /tftpboot -%if 0%{?sles_version} -%define tftpboot /var/lib/tftpboot -%endif - -%define toplevel_dir %{name}-%{version} - -# ===[ description ]================================ -%description -Multi-threaded TFTP server implementing all options (option extension and -multicast) as specified in RFC1350, RFC2090, RFC2347, RFC2348 and RFC2349. -Atftpd also supports multicast protocol known as mtftp, defined in the PXE -specification. The server is started from xinetd(8). -This version of atftpd is patched to support reading from named pipes and -blksize limits. - -%package client -Summary: Advanced Trivial File Transfer Protocol (ATFTP) - TFTP client -Group: Applications/Internet - -%description client -Advanced Trivial File Transfer Protocol client program for requesting -files using the TFTP protocol. - -# ===[ prep ]======================================= -%prep - -# ===[ setup ]====================================== -%setup - -# ===[ build ]====================================== -%build -%configure -make - -# ===[ install ]==================================== -%install -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != '/' ] && rm -rf $RPM_BUILD_ROOT -%makeinstall -mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d -cat <$RPM_BUILD_ROOT/%{_sysconfdir}/xinetd.d/tftp -service tftp -{ - disable = no - socket_type = dgram - protocol = udp - wait = yes - user = root - server = %{_sbindir}/in.tftpd - server_args = %{tftpboot} - per_source = 11 - cps = 100 2 - flags = IPv4 -} -EOF - -# ===[ clean ]====================================== -%clean -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != '/' ] && rm -rf $RPM_BUILD_ROOT - -# ===[ post ]======================================= -%post -#fix for runlevel 4 (not used on rpm-based machines) -if [ -e "/etc/init.di/opsi-atftpd" ]; then - sed -i "s/2 3 4 5/2 3 5/g; s/2345/235/g" /etc/init.di/opsi-atftpd -fi -# ===[ preun ]====================================== -%preun - -# ===[ postun ]===================================== -%postun - -# ===[ files ]====================================== -%files -%defattr(-,root,root) -%doc %{_mandir}/man8/atftpd.8.gz -%doc %{_mandir}/man8/in.tftpd.8.gz -%{_sbindir}/atftpd -%{_sbindir}/in.tftpd -%config(noreplace) %{_sysconfdir}/xinetd.d/tftp - -%files client -%defattr(-,root,root) -%doc %{_mandir}/man1/atftp.1.gz -%{_bindir}/atftp - -# ===[ changelog ]================================== -%changelog