Patch do speca proftpd - mod_vroot
Paweł Muszynski
pmuch at zamek.szczecin.pl
Thu Mar 3 15:47:41 CET 2011
Załączam diffa do speca proftpd dodający mod_vroot z
http://www.castaglia.org/proftpd/modules/mod_vroot.html
(umożliwia tworzenie linków poza chroot w proftpd).
--
Paweł Muszyński
-------------- next part --------------
--- proftpd.spec 2011-03-03 15:41:40.000000000 +0100
+++ proftpd.spec.pm 2011-03-03 15:43:31.000000000 +0100
@@ -14,8 +14,10 @@
%bcond_without quotaldap # disable quota ldap support
%bcond_without quotamysql # disable quota mysql support
%bcond_without quotapgsql # disable quota pgsql support
+%bcond_without vroot # disable vroot
#
%define mod_clamav_version 0.11rc
+%define mod_vroot_verison 0.9.2
Summary: PROfessional FTP Daemon with apache-like configuration syntax
Summary(es.UTF-8): Servidor FTP profesional, con sintaxis de configuraciĂłn semejante a la del apache
@@ -24,7 +26,7 @@
Summary(zh_CN.UTF-8): ćäşçŽĄçç,ĺŽĺ
¨ç FTP ćĺĄĺ¨
Name: proftpd
Version: 1.3.3c
-Release: 2
+Release: 2.1
Epoch: 2
License: GPL v2+
Group: Networking/Daemons
@@ -43,6 +45,8 @@
Source10: %{name}-mod_tls.conf
Source11: %{name}-anonftp.conf
Source12: %{name}-mod_clamav.conf
+Source13: http://www.castaglia.org/proftpd/modules/proftpd-mod-vroot-%{mod_vroot_version}.tar.gz
+Source14: %{}name}-mod_vroot.conf
Patch0: %{name}-paths.patch
Patch1: %{name}-noautopriv.patch
Patch2: %{name}-wtmp.patch
@@ -390,6 +394,25 @@
%description mod_sql_mysql -l pl.UTF-8
ObsĹuga ĹÄ
czenia siÄ z bazami danych MySQL.
+%description mod_sql_mysql
+Support for connecting to MySQL databases.
+
+%description mod_sql_mysql -l pl.UTF-8
+ObsĹuga ĹÄ
czenia siÄ z bazami danych MySQL.
+
+
+
+%package mod_vroot
+Summary: ProFTPD vroot
+Summary(pl.UTF-8): ModuĹ vroot dla ProFTPD
+Group: Networking/Daemons
+Requires: %{name}-common = %{epoch}:%{version}-%{release}
+Requires: %{name}-mod_sql = %{epoch}:%{version}-%{release}
+
+%description mod_vroot
+Support for vroot
+
+
%package mod_sql_postgres
Summary: ProFTPD sql postgres module
Summary(pl.UTF-8): ModuĹ sql_postgres dla ProFTPD
@@ -443,7 +466,7 @@
dodaje hosty do pliku /etc/hosts.deny.
%prep
-%setup -q -n %{name}-%{version}%{?_rc} -a1
+%setup -q -n %{name}-%{version}%{?_rc} -a1 -a13
%patch0 -p1
%patch1 -p1
%patch2 -p1
@@ -457,6 +480,9 @@
cp -f /usr/share/automake/config.sub .
+# mod_vroot
+ cp -a mod_vroot/mod_vroot.c modules/
+
# cleanup backups after patching
find . '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
@@ -481,6 +507,7 @@
%{?with_quotamysql:mod_quotatab mod_quotatab_sql}
%{?with_quotapgsql:mod_quotatab mod_quotatab_sql}
%{?with_mysql:mod_sql mod_sql_mysql}
+%{?with_vroot:mod_vroot}
%{?with_pgsql:mod_sql mod_sql_postgres}
"
@@ -528,6 +555,7 @@
%{?with_quotaldap:mod_quotatab mod_quotatab_ldap}
%{?with_quotamysql:mod_quotatab mod_quotatab_sql}
%{?with_quotapgsql:mod_quotatab mod_quotatab_sql}
+%{?with_vroot:mod_vroot}
%{?with_mysql:mod_sql mod_sql_mysql}
%{?with_pgsql:mod_sql mod_sql_postgres}
"
@@ -642,6 +670,7 @@
%module_scripts mod_rewrite
%module_scripts mod_sql
%module_scripts mod_sql_mysql
+%module_scripts mod_vroot
%module_scripts mod_sql_postgres
%module_scripts mod_tls
%module_scripts mod_wrap
@@ -777,6 +806,14 @@
%attr(755,root,root) %{_libexecdir}/mod_sql_mysql.so
%endif
+
+%if %{with vroot}
+%files mod_vroot
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libexecdir}/mod_vroot.so
+%endif
+
+
%if %{with pgsql}
%files mod_sql_postgres
%defattr(644,root,root,755)
-------------- next part --------------
LoadModule mod_vroot.c
More information about the pld-devel-pl
mailing list