]> git.pld-linux.org Git - packages/proftpd.git/blobdiff - proftpd.spec
- openssl 0.9.7c
[packages/proftpd.git] / proftpd.spec
index 94f59fb65c0222e78fccbee14dcbd7941efb3c25..d9454af51f97f5a3620aacc2462a235e0b12b073 100644 (file)
@@ -1,52 +1,49 @@
 #
-# Conditional builds:
-# _without_pam - disable PAM support
-# _with_ldap - enable LDAP suppoer
-# _with_mysql - enable MySQL suppoer
-# _with_quota - enable quota support
-# _with_linuxprivs - enable libcap support
-# _without_ipv6 - disable IPv6 and TCPD support
-# _without_ssl - disbale TLS/SSL support
-# --without pam --with ldap --with mysql --with quota --with linuxprivs
+# Conditional build:
+# _without_pam         - disable PAM support
+# _with_ldap           - enable LDAP support
+# _with_mysql          - enable MySQL support
+# _with_quota          - enable quota support
+# _with_linuxprivs     - enable libcap support
+# _without_ipv6                - disable IPv6 and TCPD support
+# _without_ssl         - disbale TLS/SSL support
+#
+%define        _rc     rc2
 Summary:       PROfessional FTP Daemon with apache-like configuration syntax
 Summary(es):   Servidor FTP profesional, con sintaxis de configuración semejante a la del apache
 Summary(pl):   PROfesionalny serwer FTP
 Summary(pt_BR):        Servidor FTP profissional, com sintaxe de configuração semelhante à do apache
-Summary(zh_CN):        Ò×ÓÚ¹ÜÀíµÄ,°²È«µÄ FTP ·þÎñÆ÷.
+Summary(zh_CN):        Ò×ÓÚ¹ÜÀíµÄ,°²È«µÄ FTP ·þÎñÆ÷
 Name:          proftpd
-Version:       1.2.5
-Release:       5
+Version:       1.2.9
+Release:       2
 Epoch:         1
-License:       GPL
+License:       GPL v2+
 Group:         Daemons
-Source0:       ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}.tar.bz2
+Source0:       ftp://ftp.proftpd.org/distrib/source/%{name}-%{version}%{_rc}p.tar.bz2
+# Source0-md5: 27e3f62a5615999adbbebcefa92b4510
 Source1:       %{name}.conf
 Source2:       %{name}.logrotate
 Source3:       ftp.pamd
 Source4:       %{name}.inetd
 Source5:       %{name}.sysconfig
 Source6:       %{name}.init
-Source7:       %{name}-mod_tcpd.c
-Source8:       ftpusers.tar.bz2
-Patch0:                %{name}-1.2.5-v6-20020808.patch.gz
-# ftp://ftp.runestig.com/pub/proftpd-tls/
-Patch1:                %{name}-1.2.2rc3+v6-tls.20010505.patch.gz
-Patch2:                %{name}-umode_t.patch
-Patch3:                %{name}-glibc.patch
-Patch4:                %{name}-paths.patch
-Patch5:                %{name}-release.patch
-Patch6:                %{name}-noautopriv.patch
-Patch7:                %{name}-DESTDIR.patch
-Patch8:                %{name}-wtmp.patch
-Patch9:                %{name}-link.patch
-Patch10:       %{name}-port-65535.patch
+Source7:       ftpusers.tar.bz2
+# Source7-md5: 76c80b6ec9f4d079a1e27316edddbe16
+Patch0:                %{name}-umode_t.patch
+Patch1:                %{name}-glibc.patch
+Patch2:                %{name}-paths.patch
+Patch3:                %{name}-noautopriv.patch
+Patch4:                %{name}-wtmp.patch
+Patch5:                %{name}-vmail.patch
+Patch6:                %{name}-IPv6.patch
 URL:           http://www.proftpd.org/
-%{?!_without_pam:BuildRequires:        pam-devel}
-%{?_with_ldap:BuildRequires:           openldap-devel}
-%{?_with_mysql:BuildRequires:  mysql-devel}
-%{?!_without_ssl:BuildRequires:        openssl-devel >= 0.9.6a}
-BuildRequires: libwrap-devel
 BuildRequires: autoconf
+BuildRequires: libwrap-devel
+%{?_with_mysql:BuildRequires:  mysql-devel}
+%{?_with_ldap:BuildRequires:   openldap-devel}
+%{?!_without_ssl:BuildRequires:        openssl-devel >= 0.9.7c}
+%{?!_without_pam:BuildRequires:        pam-devel}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _sysconfdir     /etc/ftpd
@@ -85,13 +82,13 @@ servidor.
 Summary:       PROfessional FTP Daemon with apache-like configuration syntax - common files
 Summary(pl):   PROfesionalny serwer FTP  - wspólne pliki
 Group:         Daemons
-Prereq:                awk
-Prereq:                fileutils
+Requires(post):        awk
+Requires(post):        fileutils
 Requires:      logrotate
-%{?!_without_pam:Requires:     pam >= 0.67}
+%{?!_without_pam:Requires:     pam >= 0.77.3}
 Obsoletes:     proftpd < 0:1.2.2rc1-3
 
-%description  common
+%description common
 ProFTPD is a highly configurable ftp daemon for unix and unix-like
 operating systems. ProFTPD is designed to be somewhat of a "drop-in"
 replacement for wu-ftpd. Full online documentation is available at
@@ -108,10 +105,12 @@ w
 Summary:       inetd configs for proftpd
 Summary(pl):   Pliki konfiguracyjne do u¿ycia proftpd poprzez inetd
 Group:         Daemons
-Prereq:                %{name}-common = %{epoch}:%{version}
-Prereq:                rc-inetd
+PreReq:                %{name}-common = %{epoch}:%{version}
+PreReq:                rc-inetd
+Requires(post):        fileutils
+Requires(post):        grep
+Requires(post):        sed
 Provides:      proftpd = %{epoch}:%{version}-%{release}
-Requires:      inetdaemon
 Provides:      ftpserver
 Obsoletes:     proftpd-standalone
 Obsoletes:     ftpserver
@@ -134,12 +133,15 @@ ProFTPD configs for running from inetd.
 Pliki konfiguracyjna ProFTPD do startowania demona poprzez inetd.
 
 %package standalone
-Summary:       standalone daemon configs for proftpd
+Summary:       Standalone daemon configs for proftpd
 Summary(pl):   Pliki konfiguracyjne do startowania proftpd w trybie standalone
 Group:         Daemons
-Prereq:                %{name}-common = %{version}
-Prereq:                rc-scripts
-Prereq:                /sbin/chkconfig
+PreReq:                %{name}-common = %{epoch}:%{version}
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
+Requires(post):        fileutils
+Requires(post):        grep
+Requires(post):        sed
 Provides:      proftpd = %{epoch}:%{version}-%{release}
 Provides:      ftpserver
 Obsoletes:     proftpd-inetd
@@ -164,26 +166,22 @@ Pliki konfiguracyjne ProFTPD do startowania demona w trybie
 standalone.
 
 %prep
-%setup  -q
+%setup  -q -n %{name}-%{version}%{_rc}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-%patch10 -p0
-install -m644 %{SOURCE7} contrib/mod_tcpd.c
+# IPv6 support needs major update
+#patch6 -p1
 
 %build
 %{__autoconf}
 RUN_DIR=%{_localstatedir} ; export RUN_DIR
 %configure \
        --enable-autoshadow \
-       --with-modules=mod_ratio:mod_readme%{?!_without_ipv6::mod_tcpd}%{?!_without_pam::mod_pam}%{?_with_ldap::mod_ldap}%{?_with_quota::mod_quota}%{?_with_linuxprivs::mod_linuxprivs}%{?_with_mysql::mod_sql:mod_sql_mysql} \
+       --with-modules=mod_ratio:mod_readme%{?!_without_ssl::mod_tls}%{?!_without_ipv6::mod_wrap}%{?!_without_pam::mod_auth_pam}%{?_with_ldap::mod_ldap}%{?_with_quota::mod_quota}%{?_with_linuxprivs::mod_linuxprivs}%{?_with_mysql::mod_sql:mod_sql_mysql} \
        %{?!_without_ipv6:--enable-ipv6} \
        %{?_without_ssl:--disable-tls} \
        --enable-sendfile
@@ -194,7 +192,7 @@ RUN_DIR=%{_localstatedir} ; export RUN_DIR
 rm -rf $RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT/etc/{logrotate.d,pam.d,security,sysconfig/rc-inetd,rc.d/init.d} \
-       $RPM_BUILD_ROOT/{home/ftp/pub/Incoming,var/log}
+       $RPM_BUILD_ROOT/var/{lib/ftp/pub/Incoming,log}
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT \
        INSTALL_USER=`id -u` \
@@ -210,7 +208,7 @@ install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/proftpd
 install %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/proftpd
 install contrib/xferstats.holger-preiss $RPM_BUILD_ROOT%{_bindir}/xferstat
 
-bzip2 -dc %{SOURCE8} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+bzip2 -dc %{SOURCE7} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
 
 mv -f contrib/README contrib/README.modules
 
@@ -226,13 +224,15 @@ ln -sf proftpd $RPM_BUILD_ROOT%{_sbindir}/ftpd
 rm -rf $RPM_BUILD_ROOT
 
 %post common
+umask 027
 touch /var/log/xferlog
 awk 'BEGIN { FS = ":" }; { if(($3 < 500)&&($1 != "ftp")) print $1; }' < /etc/passwd >> %{_sysconfdir}/ftpusers.default
 if [ ! -f %{_sysconfdir}/ftpusers ]; then
-       ( cd %{_sysconfdir}; mv -f ftpusers.default ftpusers )
+       cp -f %{_sysconfdir}/ftpusers.default %{_sysconfdir}/ftpusers
 fi
 
 %post inetd
+umask 027
 if grep -iEqs "^ServerType[[:space:]]+standalone" %{_sysconfdir}/proftpd.conf ; then
        cp -a %{_sysconfdir}/proftpd.conf %{_sysconfdir}/proftpd.conf.rpmorig
        sed -e "s/^ServerType[[:space:]]\+standalone/ServerType                 inetd/g" \
@@ -272,18 +272,18 @@ fi
 
 %files common
 %defattr(644,root,root,755)
-%doc sample-configurations/{virtual,anonymous}.conf ChangeLog README
-%doc README.linux-* contrib/README.modules README.IPv6 README.PAM
-%doc README.TLS README.mod_sql README.LDAP doc/*html
+%doc sample-configurations/*.conf CREDITS ChangeLog NEWS
+%doc README README.LDAP README.PAM README.capabilities README.mod_sql README.modules
+%doc doc/*html contrib/*.html
 
 %attr(750,root,ftp) %dir %{_sysconfdir}
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %ghost %{_sysconfdir}/ftpusers
+%attr(640,root,root) %{_sysconfdir}/ftpusers.default
 %attr(640,root,root) /etc/logrotate.d/*
 %attr(640,root,root) %ghost /var/log/*
 %{?!_without_pam:%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/*}
 
-%attr(640,root,root) %{_sysconfdir}/ftpusers.default
-%attr(640,root,root) %ghost %{_sysconfdir}/ftpusers
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.ftp
 
 %attr(755,root,root) %{_bindir}/*
@@ -291,8 +291,9 @@ fi
 
 %{_mandir}/man[18]/*
 
-%dir /home/ftp/pub
-%attr(711,root,root) %dir /home/ftp/pub/Incoming
+%dir /var/lib/ftp
+%dir /var/lib/ftp/pub
+%attr(711,ftp,ftp) %dir /var/lib/ftp/pub/Incoming
 
 %files inetd
 %defattr(644,root,root,755)
This page took 0.041565 seconds and 4 git commands to generate.