Summary: ProFTPD -- Professional FTP Server. Name: proftpd Version: 1.2.4 Release: 1 Copyright: GPL Group: System Environment/Daemons Vendor: The ProFTPD Group URL: http://www.proftpd.org/ Source: ftp://ftp.proftpd.org/distrib/%{name}-%{version}.tar.bz2 Prefix: %{_prefix} BuildRoot: /var/tmp/%{name}-%{version}-root %ifos linux Requires: pam >= 0.72 %endif Provides: ftpserver Prereq: fileutils Conflicts: wu-ftpd Obsoletes: proftpd-core %description ProFTPD is an enhanced FTP server with a focus toward simplicity, security, and ease of configuration. It features a very Apache-like configuration syntax, and a highly customizable server infrastructure, including support for multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory visibility. %ifarch ia64 %define stdlib lib/ia64l32 %define stdlib64 lib/ia64l64 %define liblink ../../.. %define PKG64 %{name}-%{version}-ia64l64 %define DIRS . %{_builddir}/%{PKG64}/%{name}-%{version} %define DEFCCIA cc %define DEFCC %{DEFCCIA} %else %define stdlib lib %define liblink ../.. %define DIRS . %define DEFCC cc %endif %prep %setup -q %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if [[ "$CC" != "gcc" ]] then %ifarch ia64 export CC64="$CC -q64" %endif export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -U__STR__" fi export CFLAGS=$RPM_OPT_FLAGS ./configure \ --prefix=%{prefix} \ --sysconfdir=%{prefix}/etc \ --localstatedir=/var/run \ --disable-pam make %install rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} \ localstatedir=$RPM_BUILD_ROOT/var/run \ rundir=$RPM_BUILD_ROOT/var/run/proftpd \ sysconfdir=$RPM_BUILD_ROOT/etc install mkdir -p $RPM_BUILD_ROOT/home/ftp %ifos linux mkdir -p $RPM_BUILD_ROOT/etc/pam.d install -m 644 contrib/dist/rpm/ftp.pamd $RPM_BUILD_ROOT/etc/pam.d/ftp %endif mkdir -p $RPM_BUILD_ROOT%{prefix}/etc install -m 644 sample-configurations/basic.conf $RPM_BUILD_ROOT%{prefix}/etc/proftpd.conf install -m 644 COPYING CREDITS ChangeLog NEWS %{_docdir} ( cd $RPM_BUILD_ROOT for dir in bin sbin do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done mkdir -p etc cd etc ln -sf ..%{prefix}/etc/* . cd - ) %pre if [ ! -f /etc/ftpusers ]; then touch /etc/ftpusers IFS=":" while { read username nu nu gid nu; }; do if [ $gid -le 100 -a "$username" != "ftp" ]; then echo $username fi done < /etc/passwd > /etc/ftpusers fi %preun if [ "$1" = 0 ]; then if [ -d /var/run/proftpd ]; then rm -rf /var/run/proftpd/* fi fi %clean rm -rf $RPM_BUILD_ROOT %files %{prefix}/sbin/* %{prefix}/bin/* %dir /var/run/proftpd %dir /home/ftp %ifos linux %config(noreplace) /etc/pam.d/ftp %endif /usr/sbin/* /usr/bin/* %config %{prefix}/etc/proftpd.conf /etc/proftpd.conf %doc COPYING CREDITS ChangeLog NEWS %doc README* doc/* %doc contrib/README* contrib/xferstats.holger-preiss %doc sample-configurations %{prefix}/man/*/* %changelog * Fri Oct 19 2001 David Clissold - Update to version 1.2.4 * Thu Oct 18 2001 David Clissold - Update to version 1.2.3 * Tue Oct 02 2001 David Clissold - Update to version 1.2.2 * Tue Jun 27 2001 David Clissold - Initial build for AIX Toolbox. * Mon Mar 05 2001 Daniel Roesen - PAM >= 0.72 is now a requirement. Versions before are broken and Red Hat provides a PAM update for all RH 6.x releases. See: http://www.redhat.com/support/errata/RHSA-2000-120.html Thanks to O.Elliyasa for the suggestion. For details see http://bugs.proftpd.org/show_bug.cgi?id=1048 - release: 1.2.1-2 * Wed Mar 01 2001 Daniel Roesen - Update to 1.2.1 - release: 1.2.1-1 * Wed Feb 27 2001 Daniel Roesen - added "Obsoletes: proftpd-core" to make migration to new RPMs easier. Thanks to Sébastien Prud'homme for the hint. - release: 1.2.0-3 * Wed Feb 26 2001 Daniel Roesen - cleaned up .spec formatting (cosmetics) - fixed CFLAGS (fixes /etc/shadow support) - included COPYING, CREDITS, ChangeLog and NEWS - Renamed main package from "proftpd-core" to just "proftpd" - release: 1.2.0-2 * Wed Feb 14 2001 Daniel Roesen - moved Changelog to bottom - fixed %pre script /etc/ftpusers generator - removed /ftp/ftpusers from package management. Deinstalling ProFTPD should _not_ result in removal of this file. * Thu Oct 03 1999 O.Elliyasa - Multi package creation. Created core, standalone, inetd (&doc) package creations. Added startup script for init.d Need to make the "standalone & inetd" packages being created as "noarch" - Added URL. - Added prefix to make the package relocatable. * Wed Sep 08 1999 O.Elliyasa - Corrected inetd.conf line addition/change logic. * Sat Jul 24 1999 MacGyver - Initial import of spec.