# # spec file for package proftpd (Version 1.2.0rc2) # # Copyright (c) 2000 SuSE GmbH Nuernberg, Germany. # # please send bugfixes or comments to feedback@suse.de. # # neededforbuild automake openldap # usedforbuild aaa_base aaa_dir automake base bash binutils bison bzip compress cpio devs diff egcs ext2fs file fileutil find flex gawk gdbm gpm gppshare groff gzip kbd ldso less libc libz lx_suse make mktemp modules ncurses netcfg net_tool nkita nkitb openldap patch perl pgp ps rcs rpm sendmail shadow shlibs sh_utils strace syslogd sysvinit texinfo textutil timezone unzip util vim xdevel xf86 xshared Vendor: SuSE GmbH, Nuernberg, Germany Distribution: SuSE Linux 6.1 (i386) Name: proftpd Packager: feedback@suse.de %define _mandir /usr/man %define _infodir /usr/info %define _libdir /usr/lib %define _docdir /usr/doc/packages %define _defaultdocdir /usr/doc/packages/%name %define _target_cpu i386 Version: 1.2.0rc2 Release: 37 Copyright: (c) 1997, 1998 Public Flood Software, 1999-2000, MacGyver aka Habeeb J. Dihu Group: unsorted Provides: ftpcount ftpshut ftpwho in.proftpd proftpd Conflicts: wuftpd Autoreqprov: on Summary: Full featured FTP daemon Icon: proftpd.xpm Source: ftp://ftp.tos.net/pub/proftpd/proftpd-1.2.0rc2.tar.gz Source1: proftpd.pamd Patch0: proftpd-1.2.0rc2.dif Patch1: proftpd.conf.dif Patch2: proftpd-1.2.0rc2-pasv-port.patch # BuildRoot: /tmp/proftpd %description Professional FTP Daemon offers features as configuration with a Apache like syntax in a single file and per directory with ".ftpaccess", support of multiple virtual FTP servers and anonymous FTP services, _no_ SITE EXEC command to avoid security problems, hidden directories or files, wu.ftpd compatible logging (extended logging available) and utmp/wtmp support, Shadow password suite support, including support for expired accounts. Documentation in /usr/share/doc/packages/proftpd/ and http://www.proftpd.org/. (with "no PORT command specified" passived mode bug fix) Authors: -------- proftpd@proftpd.org SuSE series: n %prep %setup -n proftpd-1.2.0rc2 %patch0 -p0 %patch1 -p0 %patch2 -p0 %build export CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=$RPM_BUILD_ROOT/usr --sbindir=$RPM_BUILD_ROOT/usr/sbin \ --sysconfdir=$RPM_BUILD_ROOT/etc --localstatedir=$RPM_BUILD_ROOT/var/run \ --with-modules=mod_ratio:mod_readme:mod_linuxprivs:mod_ldap \ --disable-sendfile --mandir=$RPM_BUILD_ROOT/usr/man make clean make cp contrib/README README.contrib chmod 644 contrib/xferstats.holger-preiss contrib/genuser.pl %install export RPM_BUILD_ROOT install -c -m 0644 proftpd.conf $RPM_BUILD_ROOT/etc install -g root -m 755 -o root rc.proftpd /sbin/init.d/proftpd ln -sf /sbin/init.d/proftpd /usr/sbin/rcproftpd ln -sf ../proftpd /sbin/init.d/rc2.d/S20proftpd ln -sf ../proftpd /sbin/init.d/rc2.d/K20proftpd ln -sf ../proftpd /sbin/init.d/rc3.d/S20proftpd ln -sf ../proftpd /sbin/init.d/rc3.d/K20proftpd mkdir -p /var/adm/fillup-templates install -m 644 rc.config.proftpd /var/adm/fillup-templates/rc.config.proftpd make install test -d $RPM_BUILD_ROOT/var/run/proftpd || \ install -d -m 0750 $RPM_BUILD_ROOT/var/run/proftpd install -m 0755 contrib/genuser.pl $RPM_BUILD_ROOT/usr/sbin/ #install -d -m 0755 $RPM_BUILD_ROOT/etc/pam.d #install -m 0644 $RPM_SOURCE_DIR/proftpd.pamd $RPM_BUILD_ROOT/etc/pam.d/proftpd export RPM_BUILD_ROOT ; test -x /usr/sbin/Check -a $UID = 0 && /usr/sbin/Check # use this with SuSE <= 6.2 instead: #test "$UID" = 0 -a -x /usr/sbin/Check && /usr/sbin/Check export RPM_BUILD_ROOT ; test -x /usr/sbin/Check -a $UID = 0 && /usr/sbin/Check %post echo "Updating etc/rc.config..." if [ -x bin/fillup ] ; then bin/fillup -q -d = etc/rc.config var/adm/fillup-templates/rc.config.proftpd else echo "ERROR: fillup not found. This should not happen. Please compare" echo "etc/rc.config and var/adm/fillup-templates/rc.config.proftpd and" echo "update by hand." fi %files #%config(noreplace) /etc/pam.d/proftpd %config(noreplace) /etc/proftpd.conf %config /sbin/init.d/proftpd /sbin/init.d/rc2.d/K20proftpd /sbin/init.d/rc2.d/S20proftpd /sbin/init.d/rc3.d/K20proftpd /sbin/init.d/rc3.d/S20proftpd /var/adm/fillup-templates/rc.config.proftpd %doc COPYING CREDITS INSTALL ChangeLog NEWS README* sample-configurations %doc contrib/README.ratio contrib/xferstats.holger-preiss %doc doc/API doc/Changes-1.2.0pre3 doc/Configuration.html %doc doc/FAQ-config.html doc/Undocumented.txt doc/development.notes %doc doc/license.txt doc/mod_sample.c doc/rfc %dir /var/run/proftpd /usr/bin/ftpwho /usr/bin/ftpcount /usr/sbin/genuser.pl /usr/sbin/ftpshut /usr/sbin/proftpd /usr/sbin/in.proftpd /usr/man/man1/ftpwho.1* /usr/man/man1/ftpcount.1* /usr/man/man5/xferlog.5* /usr/man/man8/ftpshut.8* /usr/man/man8/proftpd.8* %changelog -n proftpd * Wed Aug 30 2000 - mt@suse.de - updated to 1.2.0rc2 (with i.e. AllowChmod-fix) - enhanced logging of aborted sessions with wuftpd compatibility (compile time) flag (default=off) * Thu Jul 13 2000 - mt@suse.de - replaces regexes in /etc/proftpd.conf with better one - enabled DenyFilter "%" and TransferLog as default * Tue Jul 11 2000 - mt@suse.de - updated to 1.2.0rc1 * Tue Apr 04 2000 - schwab@suse.de - Update config.{guess,sub} from automake - Hack to avoid including * Wed Mar 01 2000 - uli@suse.de - moved man pages to /usr/share * Thu Nov 04 1999 - mt@suse.de - enabled LDAP-Auth support * Fri Oct 29 1999 - mt@suse.de - updated to 1.2.0pre9 * Wed Sep 29 1999 - mt@suse.de - added "inet_validate" fix from proftpd mailing list * Tue Sep 28 1999 - mt@suse.de - added a y2k fix from proftpd mailing list * Mon Sep 27 1999 - mt@suse.de - updated to 1.2.0pre7, fixed match_ip * Tue Sep 21 1999 - uli@suse.de - PPC: resolved #include conflict * Wed Sep 15 1999 - mt@suse.de - update to pre6, security fixes * Mon Sep 13 1999 - bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Thu Jul 22 1999 - mt@suse.de - changed to %config(noreplace) /etc/proftpd.conf in spec * Mon Jun 14 1999 - kukuk@suse.de - Compile with PAM enabled, add proftpd.pamd * Thu Jun 03 1999 - ro@suse.de - cap_text.c: don't redeclare strdup, if it's a macro * Wed Jun 02 1999 - mt@suse.de - update to 1.2.0pre3 - added mod_linuxprivs module (capability support) - adapted marc's "paranoia checks" from previous versions * Mon Apr 05 1999 - bs@suse.de - fixed date strings in .changes. * Tue Jan 26 1999 - mt@suse.de - buffer overflows patches from marc - disabled mod_tar module * Wed Dec 02 1998 - mt@suse.de - new version 1.2.0pre1 * Tue Nov 10 1998 - ro@suse.de - include asm/types.h for glibc * Tue Oct 06 1998 - ro@suse.de - for beta: update to 1.1.6pl2 using diff from mt - dont define umode_t for glibc * Fri Jul 24 1998 - tmg@suse.de - fixed proftpd not using NIS user database - fixed timeout problem with IDENTD (Port 113) queries * Thu Jul 09 1998 - mt@suse.de - now using group public * Thu Jul 02 1998 - mt@suse.de - changed /local/ftp to /usr/local/ftp * Tue Jun 30 1998 - mt@suse.de - new version 1.0.3 - added full html-docu (mirror from www.proftpd.org)