[vsftpd] update to latest upstream 3.0.1 fixes #851441 - Introduce new systemd-rpm macros in vsftpd spec file

Jiri Skala jskala at fedoraproject.org
Mon Sep 17 10:43:52 UTC 2012


commit ebf9be68f706950c5b6c968c67bcb1a8b0e48997
Author: Jiri Skala <jskala at redhat.com>
Date:   Mon Sep 17 12:43:45 2012 +0200

    update to latest upstream 3.0.1
    fixes #851441 - Introduce new systemd-rpm macros in vsftpd spec file
    fixes #845980 - vsftpd seccomp filter is too strict

 .gitignore                      |    1 +
 sources                         |    2 +-
 vsftpd-2.1.0-pam_hostname.patch |    2 +-
 vsftpd.spec                     |   30 +++++++++++++-----------------
 4 files changed, 16 insertions(+), 19 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 10b9305..6368609 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@ vsftpd-2.3.2.tar.gz
 /vsftpd-2.3.4.tar.gz
 /vsftpd-2.3.5.tar.gz
 /vsftpd-3.0.0.tar.gz
+/vsftpd-3.0.1.tar.gz
diff --git a/sources b/sources
index bfad59d..ba27380 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ad9fa952558c2c5b0426ccaccff0f972  vsftpd-3.0.0.tar.gz
+6a9c235f60313d2eeb7c46730fd6cd56  vsftpd-3.0.1.tar.gz
diff --git a/vsftpd-2.1.0-pam_hostname.patch b/vsftpd-2.1.0-pam_hostname.patch
index 18f7695..c3d8b1e 100644
--- a/vsftpd-2.1.0-pam_hostname.patch
+++ b/vsftpd-2.1.0-pam_hostname.patch
@@ -15,7 +15,7 @@ diff -up vsftpd-2.2.0/sysdeputil.c.pam_hostname vsftpd-2.2.0/sysdeputil.c
 @@ -325,6 +329,10 @@ vsf_sysdep_check_auth(struct mystr* p_us
                        const struct mystr* p_remote_host)
  {
-   int retval;
+   int retval = -1;
 +#ifdef PAM_RHOST
 +  struct sockaddr_in sin;
 +  struct hostent *host;
diff --git a/vsftpd.spec b/vsftpd.spec
index 9bac8bc..bd5866c 100644
--- a/vsftpd.spec
+++ b/vsftpd.spec
@@ -1,8 +1,8 @@
 %{!?tcp_wrappers:%define tcp_wrappers 1}
 
 Name: vsftpd
-Version: 3.0.0
-Release: 4%{?dist}
+Version: 3.0.1
+Release: 1%{?dist}
 Summary: Very Secure Ftp Daemon
 
 Group: System Environment/Daemons
@@ -28,8 +28,9 @@ BuildRequires: tcp_wrappers-devel
 %endif
 
 Requires: logrotate
-Requires (preun): /sbin/chkconfig
-Requires (post): /sbin/chkconfig
+Requires (post): systemd-units
+Requires (preun): systemd-units
+Requires (postun): systemd-units
 
 # Build patches
 Patch1: vsftpd-2.1.0-libs.patch
@@ -132,23 +133,13 @@ mkdir -p $RPM_BUILD_ROOT/%{_var}/ftp/pub
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+%systemd_post vsftpd.service
 
 %preun
-if [ $1 = 0 ]; then
-	/bin/systemctl disable vsftpd.service > /dev/null 2>&1 || :
-	/bin/systemctl stop vsftpd.service > /dev/null 2>&1 || :
-fi
+%systemd_preun vsftpd.service
 
 %postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-
-%triggerun --  %{name} < 2.3.4-5
-	/sbin/chkconfig --del vsftpd >/dev/null 2>&1 || :
-	/bin/systemctl try-restart vsftpd.service >/dev/null 2>&1 || :
-
-%triggerpostun -n %{name}-sysvinit -- %{name} < 2.3.4-5
-	/sbin/chkconfig --add vsftpd >/dev/null 2>&1 || :
+%systemd_postun_with_restart vsftpd.service 
 
 %files
 %defattr(-,root,root,-)
@@ -171,6 +162,11 @@ fi
 %{_sysconfdir}/rc.d/init.d/vsftpd
 
 %changelog
+* Mon Sep 17 2012 Jiri Skala <jskala at redhat.com> - 3.0.1-1
+- update to latest upstream 3.0.1
+- fixes #851441 - Introduce new systemd-rpm macros in vsftpd spec file
+- fixes #845980 - vsftpd seccomp filter is too strict
+
 * Sun Jul 22 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.0.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list