SPECS: tftp-hpa.spec - rel 2 - split tftpd-hpa package into -common and -in...
baggins
baggins at pld-linux.org
Thu Apr 23 17:03:23 CEST 2009
Author: baggins Date: Thu Apr 23 15:03:23 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- rel 2
- split tftpd-hpa package into -common and -inetd
- added -standalone package
---- Files affected:
SPECS:
tftp-hpa.spec (1.52 -> 1.53)
---- Diffs:
================================================================
Index: SPECS/tftp-hpa.spec
diff -u SPECS/tftp-hpa.spec:1.52 SPECS/tftp-hpa.spec:1.53
--- SPECS/tftp-hpa.spec:1.52 Fri Mar 6 21:08:24 2009
+++ SPECS/tftp-hpa.spec Thu Apr 23 17:03:18 2009
@@ -6,12 +6,14 @@
Summary(tr.UTF-8): İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
Name: tftp-hpa
Version: 5.0
-Release: 1
+Release: 2
License: BSD
Group: Applications/Networking
Source0: ftp://ftp.kernel.org/pub/software/network/tftp/%{name}-%{version}.tar.bz2
# Source0-md5: 28beef704a4ef62bc2dead005198ef4c
Source1: tftpd-hpa.inetd
+Source2: tftpd-hpa.init
+Source3: tftpd-hpa.sysconfig
URL: http://freshmeat.net/projects/tftp-hpa/
BuildRequires: autoconf
BuildRequires: automake
@@ -46,7 +48,7 @@
üzerinden açılmalarında kullanılır. Güvenlik denetimleri çok az
olduğundan zorunlu kalmadıkça çalıştırılmamalıdır.
-%package -n tftpd-hpa
+%package -n tftpd-hpa-common
Summary: Daemon for the trivial file transfer protocol (TFTP)
Summary(de.UTF-8): Dämon für das 'trivial file transfer protocol (TFTP)'
Summary(fr.UTF-8): Démon pour le « trivial file transfer protocol » (TFTP)
@@ -56,41 +58,74 @@
Requires(postun): /usr/sbin/userdel
Requires(pre): /bin/id
Requires(pre): /usr/sbin/useradd
-Requires: inetdaemon
-Requires: rc-inetd >= 0.8.1
Provides: group(tftp)
-Provides: tftpdaemon
Provides: user(tftp)
-Obsoletes: atftpd
-Obsoletes: inetutils-tftpd
-Obsoletes: tftp-server
-Obsoletes: tftpd
-Obsoletes: utftpd
-%description -n tftpd-hpa
+%description -n tftpd-hpa-common
The Trivial File Transfer Protocol (TFTP) is normally used only for
booting diskless workstations. The tftp-hpa package provides the user
interface for TFTP, which allows users to transfer files to and from a
remote machine. It provides very little security, and should not be
enabled unless it is needed.
-%description -n tftpd-hpa -l de.UTF-8
+%description -n tftpd-hpa-common -l de.UTF-8
Das trivial file transfer protocol (TFTP) wird in der Regel nur zum
Booten von disklosen Workstations benutzt. Es bietet nur geringe
Sicherheit und sollte nur im Bedarfsfall aktiviert werden.
-%description -n tftpd-hpa -l fr.UTF-8
+%description -n tftpd-hpa-common -l fr.UTF-8
Le « trivial file transfer protocol » (TFTP) est normalement utilisé
uniquement pour démarrer les stations de travail sans disque. Il offre
très peu de sécurité et ne devrait pas être activé sauf si c'est
nécessaire.
-%description -n tftpd-hpa -l pl.UTF-8
+%description -n tftpd-hpa-common -l pl.UTF-8
TFTP (Trivial File Transfer Protocol) jest używany głównie do
startowania stacji bezdyskowych z sieci. Serwer TFTP powinien być
instalowany tylko wtedy, kiedy zachodzi taka konieczność ponieważ
należy on do aplikacji o niskim poziomie bezpieczeństwa.
+%package -n tftpd-hpa-inetd
+Summary: inetd configs for tftpd-hpa
+Summary(pl.UTF-8): Pliki konfiguracyjne do użycia tftpd-hpa poprzez inetd
+Group: Networking/Daemons/FTP
+Requires: tftpd-hpa-common = %{version}-%{release}
+Requires: rc-inetd >= 0.8.1
+Provides: tftpdaemon
+Obsoletes: atftpd
+Obsoletes: inetutils-tftpd
+Obsoletes: tftp-server
+Obsoletes: tftpd
+Obsoletes: tftpd-hpa
+Obsoletes: utftpd
+
+%description -n tftpd-hpa-inetd
+tftpd-hpa configs for running from inetd.
+
+%description -n tftpd-hpa-inetd -l pl.UTF-8
+Pliki konfiguracyjna tftpd-hpa do startowania demona poprzez inetd.
+
+%package -n tftpd-hpa-standalone
+Summary: Standalone daemon configs for tftpd-hpa
+Summary(pl.UTF-8): Pliki konfiguracyjne do startowania tftpd-hpa w trybie standalone
+Group: Networking/Daemons/FTP
+Requires: tftpd-hpa-common = %{version}-%{release}
+Requires: rc-scripts
+Provides: tftpdaemon
+Obsoletes: atftpd
+Obsoletes: inetutils-tftpd
+Obsoletes: tftp-server
+Obsoletes: tftpd
+Obsoletes: tftpd-hpa
+Obsoletes: utftpd
+
+%description -n tftpd-hpa-standalone
+tftpd-hpa configs for running as a standalone daemon.
+
+%description -n tftpd-hpa-standalone -l pl.UTF-8
+Pliki konfiguracyjne tftpd-hpa do startowania demona w trybie
+standalone.
+
%prep
%setup -q
@@ -115,6 +150,8 @@
MANDIR=%{_mandir}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/tftpd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/tftpd-hpa
+install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/tftpd-hpa
mv -f $RPM_BUILD_ROOT%{_sbindir}/in.tftpd $RPM_BUILD_ROOT%{_sbindir}/tftpd
mv -f $RPM_BUILD_ROOT%{_mandir}/man8/in.tftpd.8 $RPM_BUILD_ROOT%{_mandir}/man8/tftpd.8
@@ -122,18 +159,32 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%pre -n tftpd-hpa
+%pre -n tftpd-hpa-common
%groupadd -P tftpd-hpa -g 59 -r -f tftp
%useradd -P tftpd-hpa -u 15 -r -d /var/lib/tftp -s /bin/false -c "TFTP User" -g tftp tftp
-%post -n tftpd-hpa
+%postun -n tftpd-hpa-common
+if [ "$1" = "0" ]; then
+ %userremove tftp
+ %groupremove tftp
+fi
+
+%post -n tftpd-hpa-inetd
%service -q rc-inetd reload
-%postun -n tftpd-hpa
+%postun -n tftpd-hpa-inetd
if [ "$1" = "0" ]; then
%service -q rc-inetd reload
- %userremove tftp
- %groupremove tftp
+fi
+
+%post -n tftpd-hpa-standalone
+/sbin/chkconfig --add tftpd-hpa
+%service tftpd-hpa restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service tftpd-hpa stop
+ /sbin/chkconfig --del tftpd-hpa
fi
%files
@@ -142,19 +193,32 @@
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*
-%files -n tftpd-hpa
+%files -n tftpd-hpa-common
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/*
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
%attr(750,tftp,root) %dir /var/lib/tftp
%{_mandir}/man8/*
+%files -n tftpd-hpa-inetd
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/tftpd
+
+%files -n tftpd-hpa-standalone
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tftpd-hpa
+%attr(754,root,root) /etc/rc.d/init.d/tftpd-hpa
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.53 2009/04/23 15:03:18 baggins
+- rel 2
+- split tftpd-hpa package into -common and -inetd
+- added -standalone package
+
Revision 1.52 2009/03/06 20:08:24 duddits
- up to 5.0
- URL
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tftp-hpa.spec?r1=1.52&r2=1.53&f=u
More information about the pld-cvs-commit
mailing list