Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37553667
en ru br
Репозитории ALT
S:5.2-alt3
5.1: 5.0-alt1
4.1: 0.48-alt1
4.0: 0.48-alt1
3.0: 0.40-alt2
www.altlinux.org/Changes

Группа :: Система/Серверы
Пакет: 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 можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin