commit 6a4b56ab7dd8026f22dd7d1923133ce80e4c87a4
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Thu Jul 2 13:00:57 2015 +0200

    - up to 1.0.41; fix trigger; additionalgid option changed from -2 to -3 (to 
avoid conflict with upstream); enable scrypt (libsodium)

 pure-ftpd-additionalgid.patch | 22 +++++++++++-----------
 pure-ftpd-mysql_config.patch  |  2 +-
 pure-ftpd.spec                |  9 +++++----
 3 files changed, 17 insertions(+), 16 deletions(-)
---
diff --git a/pure-ftpd.spec b/pure-ftpd.spec
index 0820293..0b683ee 100644
--- a/pure-ftpd.spec
+++ b/pure-ftpd.spec
@@ -9,17 +9,17 @@
 %bcond_without tls             # disable SSL/TLS support
 %bcond_without cap             # disable capabilities
 
-%define        rel     2
+%define        rel     1
 Summary:       Small, fast and secure FTP server
 Summary(pl.UTF-8):     Mały, szybki i bezpieczny serwer FTP
 Name:          pure-ftpd
-Version:       1.0.40
+Version:       1.0.41
 Release:       %{rel}%{?with_extra:extra}
 Epoch:         0
 License:       BSD-like%{?with_extra:, GLPv2 for pure-config due to libcfg+ 
license}
 Group:         Daemons
 Source0:       
http://download.pureftpd.org/pub/pure-ftpd/releases/%{name}-%{version}.tar.bz2
-# Source0-md5: 33a503343a0f960332156387cc2dde55
+# Source0-md5: 76c2364591418f153ed815034621d058
 Source1:       %{name}.pamd
 Source2:       %{name}.init
 Source3:       %{name}.sysconfig
@@ -42,6 +42,7 @@ URL:          http://www.pureftpd.org/
 %{?with_extra:BuildRequires:   automake}
 %{?with_cap:BuildRequires:     libcap-devel}
 %{?with_extra:BuildRequires:   libcfg+-devel >= 0.6.2}
+BuildRequires: libsodium-devel
 %{?with_mysql:BuildRequires:   mysql-devel}
 %{?with_ldap:BuildRequires:    openldap-devel >= 2.3.0}
 %{?with_tls:BuildRequires:     openssl-devel}
@@ -206,7 +207,7 @@ if [ "$1" = "0" ]; then
        %service -q ldap restart
 fi
 
-%triggerpostun -- %{name}-server < 1.0.40-1
+%triggerpostun -- pure-ftpd < 1.0.40-1
 %{?with_mysql:sed -i -e 's#MYSQLCrypt[\t ]\+all#MYSQLCrypt    any#gi' 
$RPM_BUILD_ROOT%{_sysconfdir}/pureftpd-mysql.conf}
 %{?with_pgsql:sed -i -e 's#PgSQLCrypt[\t ]\+all#PgSQLCrypt    any#gi' 
$RPM_BUILD_ROOT%{_sysconfdir}/pureftpd-pgsql.conf}
 exit 0
diff --git a/pure-ftpd-additionalgid.patch b/pure-ftpd-additionalgid.patch
index a2e5262..0eff2c9 100644
--- a/pure-ftpd-additionalgid.patch
+++ b/pure-ftpd-additionalgid.patch
@@ -36,7 +36,7 @@ diff -ur pure-ftpd-1.0.21/src/ftpd.c 
pure-ftpd-1.0.21.new/src/ftpd.c
              no_truncate = 1;
              break;
          }
-+        case '2': {
++        case '3': {
 +            const char *nptr;
 +            char *endptr;
 +
@@ -46,7 +46,7 @@ diff -ur pure-ftpd-1.0.21/src/ftpd.c 
pure-ftpd-1.0.21.new/src/ftpd.c
 +            if (!nptr || !*nptr || !endptr || *endptr) {
 +                die(421, LOG_ERR, MSG_CONF_ERR ": " MSG_ILLEGAL_TRUSTED_GID " 
(XXX: additional): %s" , optarg);
 +            }
-+          want_additionalgid = 1;
++            want_additionalgid = 1;
 +            break;
 +        }
          case '4': {
@@ -60,18 +60,18 @@ diff -ur pure-ftpd-1.0.21/src/ftpd_p.h 
pure-ftpd-1.0.21.new/src/ftpd_p.h
  
  static const char *GETOPT_OPTIONS =
 -    "0146"
-+    "012:46"
++    "013:46"
  #ifdef WITH_RFC2640
      "8:9:"
  #endif
-@@ -112,6 +112,7 @@
- static struct option long_options[] = {
-     { "notruncate", 0, NULL, '0' },    
-     { "logpid", 0, NULL, '1' },
-+    { "additionalgid", 1, NULL, '2' },
+@@ -115,6 +115,7 @@ static struct option long_options[] = {
+ # ifdef WITH_TLS
+     { "certfile", 1, NULL, '2' },
+ # endif
++    { "additionalgid", 1, NULL, '3' },
      { "ipv4only", 0, NULL, '4' },
-     { "ipv6only", 0, NULL, '6' },    
- #ifdef WITH_RFC2640
+     { "ipv6only", 0, NULL, '6' },
+ # ifdef WITH_RFC2640
 diff -ur pure-ftpd-1.0.21/src/globals.h pure-ftpd-1.0.21.new/src/globals.h
 --- pure-ftpd-1.0.21/src/globals.h     2006-02-15 09:55:00.000000000 +0100
 +++ pure-ftpd-1.0.21.new/src/globals.h 2009-02-03 15:13:13.234021509 +0100
@@ -90,7 +90,7 @@ diff -ur pure-ftpd-1.0.21/src/globals.h 
pure-ftpd-1.0.21.new/src/globals.h
  my %numeric_switch_for = (
          MaxIdleTime             => "-I",
          MaxDiskUsage            => "-k",
-+        AdditionalGID           => "-2",
++        AdditionalGID           => "-3",
          TrustedGID              => "-a",
          MaxClientsNumber        => "-c",
          MaxClientsPerIP         => "-C",
diff --git a/pure-ftpd-mysql_config.patch b/pure-ftpd-mysql_config.patch
index 95920fd..caa361d 100644
--- a/pure-ftpd-mysql_config.patch
+++ b/pure-ftpd-mysql_config.patch
@@ -4,7 +4,7 @@
  
  # Optional : define the location of mysql.sock if the server runs on this 
host.
  
--MYSQLSocket     /tmp/mysql.sock
+-MYSQLSocket     /var/run/mysqld/mysqld.sock
 +MYSQLSocket     /var/lib/mysql/mysql.sock
  
  
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pure-ftpd.git/commitdiff/6a4b56ab7dd8026f22dd7d1923133ce80e4c87a4

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to