Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1583154
 поиск   регистрация   авторизация 
 
Группа :: Система/Серверы
Пакет: proftpd

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

%define ver 1.3.0
%define minor rc3

Name: proftpd
Version: %ver%minor
Release: alt0.M24.1

Summary: ProFTPd -- Professional FTP Server
License: GPL
Group: System/Servers
Url: http://www.%name.org/

Source: ftp://ftp.%name.org/pub/%name/%name-%version.tar.bz2
Source1: %name.logrotate
Source2: %name.xinetd
Source3: %name.init
Source4: %name.pamd

Patch0: %name-conf.patch
Patch1: %name-man.patch
Patch3: %name-1.3.0rc1-ldap.patch
Patch4: %name-ldap-config.patch
Patch5: %name-1.2.10-iconv.patch
Patch6: %name-1.3.0rc1-mod_sql_mysql.patch
Patch7: %name-1.3.0rc1-mod_sql_postgres.patch
#Patch8: %name-1.3.0rc1-hidenoaccess-in-chroot.patch

Provides: ftpserver
Conflicts: wu-ftpd, ncftpd, beroftpd
PreReq: anonftp
AutoReq: yes, noshell

# Automatically added by buildreq on Thu Aug 18 2005

BuildRequires: gcc-c++ hostinfo libMySQL-devel libacl-devel libldap-devel libncurses-devel libpam-devel libpq3-devel libssl-devel libstdc++-devel libtinfo-devel libwrap-devel postgresql-devel zlib-devel

BuildRequires: chrpath

%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.

This package will setup ProFTPd for both inetd and standalone operations.

%package -n %name-mod_ctrls_admin
Summary: Module implementing admin control handlers
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_ifsession
Summary: Module supporting conditional per-user/group/class configuration contexts
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_ldap
Summary: LDAP password lookup module for ProFTPD
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_quotatab
Summary: Module for managing FTP byte/file quotas via centralized tables
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_quotatab_file
Summary: Sub-module for managing quota data via file-based tables
Group: System/Servers
Requires: %name-mod_quotatab = %version-%release

%package -n %name-mod_quotatab_ldap
Summary: Sub-module for obtaining quota information from an LDAP directory
Group: System/Servers
Requires: %name-mod_quotatab = %version-%release

%package -n %name-mod_quotatab_sql
Summary: Sub-module for managing quota data via SQL-based tables
Group: System/Servers
Requires: %name-mod_quotatab = %version-%release

%package -n %name-mod_radius
Summary: Module for RADIUS authentication and accounting
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_ratio
Summary: Support upload/download ratios
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_rewrite
Summary: Module for rewriting FTP commands
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_site_misc
Summary: Module implementing miscellaneous SITE commands
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_sql
Summary: SQL frontend
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_sql_mysql
Summary: Support for connecting to MySQL databases
Group: System/Servers
Requires: %name-mod_sql = %version-%release

%package -n %name-mod_sql_postgres
Summary: Support for connecting to Postgres databases
Group: System/Servers
Requires: %name-mod_sql = %version-%release

%package -n %name-mod_tls
Summary: An RFC2228 SSL/TLS module for ProFTPD
Group: System/Servers
Requires: %name = %version-%release

%package -n %name-mod_facl
Summary: POSIX ACL checking code (aka POSIX.1e hell)
Group: System/Servers
Requires: %name = %version-%release

%description -n %name-mod_ctrls_admin
This module implements administrative control actions for the ftpdctl program.

%description -n %name-mod_ifsession
Module supporting conditional per-user/group/class configuration contexts

%description -n %name-mod_ldap
LDAP password lookup module for ProFTPD

%description -n %name-mod_quotatab
Module for managing FTP byte/file quotas via centralized tables

%description -n %name-mod_quotatab_file
Sub-module for managing quota data via file-based tables

%description -n %name-mod_quotatab_ldap
Sub-module for obtaining quota information from an LDAP directory

%description -n %name-mod_quotatab_sql
Sub-module for managing quota data via SQL-based tables

%description -n %name-mod_radius
Module for RADIUS authentication and accounting

%description -n %name-mod_ratio
Support upload/download ratios

%description -n %name-mod_rewrite
Module for rewriting FTP commands

%description -n %name-mod_site_misc
Module implementing miscellaneous SITE commands

%description -n %name-mod_sql
SQL frontend

%description -n %name-mod_sql_mysql
Support for connecting to MySQL databases

%description -n %name-mod_sql_postgres
Support for connecting to Postgres databases

%description -n %name-mod_tls
An RFC2228 SSL/TLS module for ProFTPD

%description -n %name-mod_facl
POSIX ACL checking code (aka POSIX.1e hell)

%prep
%setup -q -n %name-%version
%patch0 -p1
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
#patch8 -p1

%build
#%_target_platform --prefix=%prefix \
%configure --sysconfdir=%_sysconfdir \
   --localstatedir=/var/run \
   --enable-auth-pam \
   --enable-ctrls \
   --enable-largefile \
   --libexecdir=%_libexecdir/%name \
   --enable-autoshadow --enable-sendfile --enable-dso \
   --with-modules=mod_auth_pam:mod_readme:mod_wrap:mod_df:mod_codeconv \
   --with-shared=mod_ctrls_admin:mod_ifsession:mod_ldap:mod_quotatab:mod_quotatab_file:mod_quotatab_ldap:mod_quotatab_sql:mod_radius:mod_ratio:mod_rewrite:mod_site_misc:mod_sql:mod_sql_mysql:mod_sql_postgres:mod_tls:mod_facl
%make

%install
myname=`id -un`
mygroup=`id -gn`

%__mkdir_p %buildroot%_libexecdir/%name
%makeinstall localstatedir=%buildroot/var/run rundir=%buildroot/var/run/%name LIBEXECDIR=%buildroot%_libexecdir/%name \
INSTALL_USER=$myname INSTALL_GROUP=$mygroup

%__install -pD -m640 %SOURCE4 %buildroot%_sysconfdir/pam.d/ftp
%__install -p -m644 -D sample-configurations/basic.conf %buildroot%_sysconfdir/%name.conf
%__install -p -m644 -D %SOURCE1 %buildroot%_sysconfdir/logrotate.d/%name
%__install -p -m644 -D %SOURCE2 %buildroot%_sysconfdir/xinetd.d/%name
%__install -p -m755 -D %SOURCE3 %buildroot%_initdir/%name
%__install -m755 contrib/xferstats.holger-preiss %buildroot%_sbindir

%__chmod 711 %buildroot%_sbindir/%name

%__ln_s -f %name %buildroot%_sbindir/in.%name
%__ln_s -f %name %buildroot%_sbindir/in.ftpd

echo >>%buildroot%_sysconfdir/ftpusers <<EOF
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
EOF

%__mkdir_p %buildroot/var/log/%name
%__rm -f %buildroot%_libexecdir/%name/*.a
%__rm -f %buildroot%_libexecdir/%name/*.la

# fix RPATH

if chrpath -l %buildroot%_sbindir/%name | fgrep -qs "RPATH=%buildroot%_sbindir"; then
chrpath -r "%_sbindir" "%buildroot%_sbindir/%name"
fi

%post
%post_service %name

%preun
%preun_service %name

%files
%doc README* ChangeLog INSTALL NEWS CREDITS doc/* contrib/README.* contrib/INSTALL.*
%doc sample-configurations/* contrib/ftpasswd contrib/ftpquota
%attr(600,root,root) %config(noreplace) %_sysconfdir/%name.conf
%config(noreplace) %_sysconfdir/ftpusers
%config(noreplace) %_sysconfdir/pam.d/ftp
%config(noreplace) %_initdir/%name
%config(noreplace) %_sysconfdir/xinetd.d/%name
%config(noreplace) %_sysconfdir/logrotate.d/%name
%_sbindir/*
%_bindir/*
%_man1dir/ftpwho.*
%_man1dir/ftpcount.*
%_man1dir/ftptop.*
%_man5dir/xferlog.*
%_man8dir/%name.*
%_man8dir/ftpshut.*
%_man8dir/ftpdctl.*
%dir /var/run/%name
%dir /var/log/%name
%dir %_libexecdir/%name

%files -n %name-mod_ctrls_admin
%_libexecdir/%name/mod_ctrls_admin.so

%files -n %name-mod_ifsession
%_libexecdir/%name/mod_ifsession.so

%files -n %name-mod_ldap
%_libexecdir/%name/mod_ldap.so

%files -n %name-mod_quotatab
%_libexecdir/%name/mod_quotatab.so

%files -n %name-mod_quotatab_file
%_libexecdir/%name/mod_quotatab_file.so

%files -n %name-mod_quotatab_ldap
%_libexecdir/%name/mod_quotatab_ldap.so

%files -n %name-mod_quotatab_sql
%_libexecdir/%name/mod_quotatab_sql.so

%files -n %name-mod_radius
%_libexecdir/%name/mod_radius.so

%files -n %name-mod_ratio
%_libexecdir/%name/mod_ratio.so

%files -n %name-mod_rewrite
%_libexecdir/%name/mod_rewrite.so

%files -n %name-mod_site_misc
%_libexecdir/%name/mod_site_misc.so

%files -n %name-mod_sql
%_libexecdir/%name/mod_sql.so

%files -n %name-mod_sql_mysql
%_libexecdir/%name/mod_sql_mysql.so

%files -n %name-mod_sql_postgres
%_libexecdir/%name/mod_sql_postgres.so

%files -n %name-mod_tls
%_libexecdir/%name/mod_tls.so

%files -n %name-mod_facl
%_libexecdir/%name/mod_facl.so

%changelog

Полный changelog можно просмотреть здесь

 
design & coding: Vladimir Lettiev aka crux © 2004-2005