61466ee516
Sun Oct 12 2003 Florian La Roche <Florian.LaRoche@redhat.de> - allow compiling without tcp_wrappers support Mon Sep 15 2003 Bill Nottingham <notting@redhat.com> 1.2.0-4 - fix errant newline (#104443) Fri Aug 08 2003 Bill Nottingham <notting@redhat.com> 1.2.0-3 - tweak man page (#84584, #72798) - buildprereqs for pie (#99336) - free ride through the build system to fix (#101582) Thu Jun 26 2003 Bill Nottingham <notting@redhat.com> 1.2.0-2 - update to 1.2.0 Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> - rebuilt Mon Apr 28 2003 Bill Nottingham <notting@redhat.com> 1.1.3-9 - fix tcp_wrappers usage (#89765, <dale@riyescott.com>)
205 lines
6.0 KiB
RPMSpec
205 lines
6.0 KiB
RPMSpec
%{!?tcp_wrappers:%define tcp_wrappers 1}
|
||
|
||
Summary: vsftpd - Very Secure Ftp Daemon
|
||
Name: vsftpd
|
||
Version: 1.2.0
|
||
Release: 5
|
||
License: GPL
|
||
Group: System Environment/Daemons
|
||
URL: http://vsftpd.beasts.org/
|
||
Source: ftp://vsftpd.beasts.org/users/cevans/%{name}-%{version}.tar.gz
|
||
Source1: vsftpd.xinetd
|
||
Source2: vsftpd.pam
|
||
Source3: vsftpd.ftpusers
|
||
Source4: vsftpd.user_list
|
||
Source5: vsftpd.init
|
||
Patch1: vsftpd-1.1.3-rh.patch
|
||
Patch2: vsftpd-1.0.1-missingok.patch
|
||
Patch3: vsftpd-1.2.0-tcp_wrappers.patch
|
||
Patch4: vsftpd-1.2.0-man.patch
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||
%if %{tcp_wrappers}
|
||
BuildPrereq: tcp_wrappers
|
||
%endif
|
||
# for -fpie
|
||
BuildPrereq: gcc > gcc-3.2.3-13, binutils > binutils-2.14.90.0.4-24, glibc-devel >= 2.3.2-45
|
||
Requires: logrotate
|
||
Prereq: /sbin/chkconfig, /sbin/service, /usr/sbin/usermod
|
||
Obsoletes: anonftp
|
||
Provides: ftpserver
|
||
|
||
%description
|
||
vsftpd is a Very Secure FTP daemon. It was written completely from
|
||
scratch.
|
||
|
||
%prep
|
||
%setup -q -n %{name}-%{version}
|
||
%patch1 -p1 -b .rh
|
||
%patch2 -p1 -b .mok
|
||
%if %{tcp_wrappers}
|
||
%patch3 -p1 -b .tcp_wrappers
|
||
%endif
|
||
%patch4 -p1 -b .manpage
|
||
cp %{SOURCE1} .
|
||
|
||
%build
|
||
%ifarch s390x
|
||
make CFLAGS="$RPM_OPT_FLAGS -fPIE -pipe" \
|
||
%else
|
||
make CFLAGS="$RPM_OPT_FLAGS -fpie -pipe" \
|
||
%endif
|
||
LINK="-pie" \
|
||
%{?_smp_mflags}
|
||
|
||
%install
|
||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
||
mkdir -p $RPM_BUILD_ROOT/etc
|
||
mkdir -p $RPM_BUILD_ROOT/etc/{vsftpd,pam.d,logrotate.d,rc.d/init.d}
|
||
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man{5,8}
|
||
install -m 755 vsftpd $RPM_BUILD_ROOT/usr/sbin/vsftpd
|
||
install -m 600 vsftpd.conf $RPM_BUILD_ROOT/etc/vsftpd/vsftpd.conf
|
||
install -m 644 vsftpd.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
|
||
install -m 644 vsftpd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
|
||
install -m 644 RedHat/vsftpd.log $RPM_BUILD_ROOT/etc/logrotate.d/vsftpd.log
|
||
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/vsftpd
|
||
install -m 600 %{SOURCE3} $RPM_BUILD_ROOT/etc/vsftpd.ftpusers
|
||
install -m 600 %{SOURCE4} $RPM_BUILD_ROOT/etc/vsftpd.user_list
|
||
install -m 755 %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vsftpd
|
||
|
||
mkdir -p $RPM_BUILD_ROOT/var/ftp/pub
|
||
|
||
%clean
|
||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||
|
||
%post
|
||
/sbin/chkconfig --add vsftpd
|
||
/usr/sbin/usermod -d /var/ftp ftp >/dev/null 2>&1 || :
|
||
|
||
%preun
|
||
if [ $1 = 0 ]; then
|
||
/sbin/service vsftpd stop > /dev/null 2>&1
|
||
/sbin/chkconfig --del vsftpd
|
||
fi
|
||
|
||
|
||
%files
|
||
%defattr(-,root,root)
|
||
/usr/sbin/vsftpd
|
||
/etc/rc.d/init.d/vsftpd
|
||
%config(noreplace) /etc/vsftpd.*
|
||
%dir /etc/vsftpd
|
||
%config(noreplace) /etc/vsftpd/*
|
||
%config(noreplace) /etc/pam.d/vsftpd
|
||
%config(noreplace) /etc/logrotate.d/vsftpd.log
|
||
%doc FAQ INSTALL BUGS AUDIT Changelog LICENSE README README.security REWARD SPEED TODO SECURITY/ TUNING SIZE vsftpd.xinetd
|
||
%{_mandir}/man5/vsftpd.conf.*
|
||
%{_mandir}/man8/vsftpd.*
|
||
/var/ftp
|
||
|
||
%changelog
|
||
* Sun Oct 12 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- allow compiling without tcp_wrappers support
|
||
|
||
* Mon Sep 15 2003 Bill Nottingham <notting@redhat.com> 1.2.0-4
|
||
- fix errant newline (#104443)
|
||
|
||
* Fri Aug 8 2003 Bill Nottingham <notting@redhat.com> 1.2.0-3
|
||
- tweak man page (#84584, #72798)
|
||
- buildprereqs for pie (#99336)
|
||
- free ride through the build system to fix (#101582)
|
||
|
||
* Thu Jun 26 2003 Bill Nottingham <notting@redhat.com> 1.2.0-2
|
||
- update to 1.2.0
|
||
|
||
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
||
- rebuilt
|
||
|
||
* Mon Apr 28 2003 Bill Nottingham <notting@redhat.com> 1.1.3-9
|
||
- fix tcp_wrappers usage (#89765, <dale@riyescott.com>)
|
||
|
||
* Fri Feb 28 2003 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-8
|
||
- enable use of tcp_wrappers
|
||
|
||
* Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 1.1.3-7
|
||
- provide /var/ftp & /var/ftp/pub. obsolete anonftp.
|
||
|
||
* Mon Feb 10 2003 Bill Nottingham <notting@redhat.com> 1.1.3-6
|
||
- clean up comments in init script (#83962)
|
||
|
||
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
||
- rebuilt
|
||
|
||
* Mon Dec 30 2002 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- change to /etc/rc.d/init.d for better compatibility
|
||
|
||
* Mon Dec 16 2002 Bill Nottingham <notting@redhat.com> 1.1.3-3
|
||
- fix initscript perms
|
||
- fix typo in initscript (#76587)
|
||
|
||
* Fri Dec 13 2002 Bill Nottingham <notting@redhat.com> 1.1.3-2
|
||
- update to 1.1.3
|
||
- run standalone, don't run by default
|
||
- fix reqs
|
||
|
||
* Fri Nov 22 2002 Joe Orton <jorton@redhat.com> 1.1.0-3
|
||
- fix use with xinetd-ipv6; add flags=IPv4 in xinetd file (#78410)
|
||
|
||
* Tue Nov 12 2002 Nalin Dahyabhai <nalin@redhat.com> 1.0.1-9
|
||
- remove absolute paths from PAM configuration so that the right modules get
|
||
used for whichever arch we're built for on multilib systems
|
||
|
||
* Thu Aug 15 2002 Elliot Lee <sopwith@redhat.com> 1.0.1-8
|
||
- -D_FILE_OFFSET_BITS=64
|
||
- smp make
|
||
- remove forced optflags=-g for lack of supporting documentation
|
||
|
||
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
|
||
- automated rebuild
|
||
|
||
* Thu May 23 2002 Tim Powers <timp@redhat.com>
|
||
- automated rebuild
|
||
|
||
* Wed Apr 10 2002 Bill Nottingham <notting@redhat.com> 1.0.1-5
|
||
- don't spit out ugly errors if anonftp isn't installed (#62987)
|
||
- fix horribly broken userlist setup (#62321)
|
||
|
||
* Thu Feb 28 2002 Trond Eivind Glomsr<73>d <teg@redhat.com> 1.0.1-4
|
||
- s/Copyright/License/
|
||
- add "missingok" to the logrotate script, so we don't get errors
|
||
when nothing has happened
|
||
|
||
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
|
||
- automated rebuild
|
||
|
||
* Wed Nov 28 2001 Bill Nottingham <notting@redhat.com>
|
||
- initial packaging for RHL, munge included specfile
|
||
|
||
* Thu Mar 22 2001 Seth Vidal <skvidal@phy.duke.edu>
|
||
- updated to 0.0.15
|
||
- added entry for vsftpd.8 man page
|
||
- added entry for vsftpd.log logrotate file
|
||
- added TUNING file to docs list
|
||
|
||
* Wed Mar 7 2001 Seth Vidal <skvidal@phy.duke.edu>
|
||
- Updated to 0.0.14
|
||
- made %files entry for man page
|
||
|
||
* Wed Feb 21 2001 Seth Vidal <skvidal@phy.duke.edu>
|
||
- Updated to 0.0.13
|
||
|
||
* Mon Feb 12 2001 Seth Vidal <skvidal@phy.duke.edu>
|
||
- Updated to 0.0.12
|
||
|
||
* Wed Feb 7 2001 Seth Vidal <skvidal@phy.duke.edu>
|
||
- updated to 0.0.11
|
||
|
||
* Fri Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu>
|
||
- Update to 0.0.10
|
||
|
||
* Fri Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu>
|
||
- First RPM packaging
|
||
- Stolen items from wu-ftpd's pam setup
|
||
- Separated rh 7 and rh 6.X's packages
|
||
- Built for Rh6
|