Репозитории ALT
Группа :: Система/Серверы
Пакет: tftp
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: tftp
Version: 0.48
Release: alt1
Summary: The client for the Trivial File Transfer Protocol (TFTP)
License: BSD
Group: System/Servers
URL: http://www.kernel.org/pub/software/network/tftp/
Source: http://www.kernel.org/pub/software/network/%name/%name-hpa-%version.tar.bz2
Source1: %name.xinetd
Patch1: tftp-0.28-malta.patch
Patch2: tftp-hpa-0.36-bcopy.patch
# Automatically added by buildreq on Fri Apr 23 2004
BuildRequires: libreadline-devel libwrap-devel
%description
The Trivial File Transfer Protocol (TFTP) is normally used only for
booting diskless workstations. The %name package provides the user
interface for TFTP, which allows users to transfer files to and from
a remote machine. This program, and TFTP, provide very little security,
and should not be enabled unless it is expressly needed.
%package server
Summary: The server for the Trivial File Transfer Protocol (TFTP)
Group: System/Servers
PreReq: shadow-utils
Requires: xinetd
%description server
The Trivial File Transfer Protocol (TFTP) is normally used only for
booting diskless workstations. The %name-server package provides the
server for TFTP, which allows users to transfer files to and from a
remote machine. TFTP provides very little security, and should not be
enabled unless it is expressly needed. The TFTP server is run from
/etc/xinetd.d/%name, and is disabled by default on a ALT Linux
systems.
%prep
%setup -q -n tftp-hpa-%version
%patch2 -p1
%build
%configure
perl -pi -e '
s,^CC=.*$,CC=cc,;
s,^BINDIR=.*$,BINDIR=%{_bindir},;
s,^MANDIR=.*$,MANDIR=%{_mandir},;
s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
' MCONFIG
%make_build
%install
mkdir -p $RPM_BUILD_ROOT{%_bindir,%_sbindir,%_mandir/man{1,8}}
%make_install install INSTALLROOT=$RPM_BUILD_ROOT
ln -s in.tftpd $RPM_BUILD_ROOT%_sbindir/tftpd
install -p -m640 -D %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/xinetd.d/%name
mkdir -p $RPM_BUILD_ROOT/var/lib/tftpboot
%post server
/usr/sbin/groupadd -rf %name ||:
/usr/sbin/useradd -r -g %name -d /dev/null -s /dev/null -n %name &>/dev/null ||:
%files
%_bindir/*
%_mandir/man1/*
%files server
%config(noreplace) %_sysconfdir/xinetd.d/%name
%_sbindir/*
%_mandir/man8/*
%dir /var/lib/tftpboot
%changelog
…
Полный changelog можно просмотреть здесь
Version: 0.48
Release: alt1
Summary: The client for the Trivial File Transfer Protocol (TFTP)
License: BSD
Group: System/Servers
URL: http://www.kernel.org/pub/software/network/tftp/
Source: http://www.kernel.org/pub/software/network/%name/%name-hpa-%version.tar.bz2
Source1: %name.xinetd
Patch1: tftp-0.28-malta.patch
Patch2: tftp-hpa-0.36-bcopy.patch
# Automatically added by buildreq on Fri Apr 23 2004
BuildRequires: libreadline-devel libwrap-devel
%description
The Trivial File Transfer Protocol (TFTP) is normally used only for
booting diskless workstations. The %name package provides the user
interface for TFTP, which allows users to transfer files to and from
a remote machine. This program, and TFTP, provide very little security,
and should not be enabled unless it is expressly needed.
%package server
Summary: The server for the Trivial File Transfer Protocol (TFTP)
Group: System/Servers
PreReq: shadow-utils
Requires: xinetd
%description server
The Trivial File Transfer Protocol (TFTP) is normally used only for
booting diskless workstations. The %name-server package provides the
server for TFTP, which allows users to transfer files to and from a
remote machine. TFTP provides very little security, and should not be
enabled unless it is expressly needed. The TFTP server is run from
/etc/xinetd.d/%name, and is disabled by default on a ALT Linux
systems.
%prep
%setup -q -n tftp-hpa-%version
%patch2 -p1
%build
%configure
perl -pi -e '
s,^CC=.*$,CC=cc,;
s,^BINDIR=.*$,BINDIR=%{_bindir},;
s,^MANDIR=.*$,MANDIR=%{_mandir},;
s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
' MCONFIG
%make_build
%install
mkdir -p $RPM_BUILD_ROOT{%_bindir,%_sbindir,%_mandir/man{1,8}}
%make_install install INSTALLROOT=$RPM_BUILD_ROOT
ln -s in.tftpd $RPM_BUILD_ROOT%_sbindir/tftpd
install -p -m640 -D %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/xinetd.d/%name
mkdir -p $RPM_BUILD_ROOT/var/lib/tftpboot
%post server
/usr/sbin/groupadd -rf %name ||:
/usr/sbin/useradd -r -g %name -d /dev/null -s /dev/null -n %name &>/dev/null ||:
%files
%_bindir/*
%_mandir/man1/*
%files server
%config(noreplace) %_sysconfdir/xinetd.d/%name
%_sbindir/*
%_mandir/man8/*
%dir /var/lib/tftpboot
%changelog
…
Полный changelog можно просмотреть здесь