Browse code

vsftpd : build with ssl support. (bug 2078872)

Change-Id: Ie4d3f073664532833ec3aa1f2bcfcfe27e73cd0a
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4886
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Xiaolin Li authored on 2018/03/16 07:53:03
Showing 1 changed files
... ...
@@ -1,24 +1,25 @@
1 1
 # FIXME: noarch or generate debuginfo
2 2
 %define debug_package %{nil}
3 3
 
4
-Summary:	Very secure and very small FTP daemon.
5
-Name:		vsftpd
6
-Version:	3.0.3
7
-Release:	1%{?dist}
8
-License:	GPLv2 with exceptions
9
-URL:		https://security.appspot.com/vsftpd.html
10
-Group:		System Environment/Daemons
11
-Vendor:		VMware, Inc.
12
-Distribution:	Photon
13
-Source0:	https://security.appspot.com/downloads/%{name}-%{version}.tar.gz
14
-%define sha1 vsftpd=d5f5a180dbecd0fbcdc92bf0ba2fc001c962b55a
15
-BuildRequires:	libcap-devel Linux-PAM openssl-devel
16
-Requires:	libcap Linux-PAM openssl
4
+Summary:        Very secure and very small FTP daemon.
5
+Name:           vsftpd
6
+Version:        3.0.3
7
+Release:        2%{?dist}
8
+License:        GPLv2 with exceptions
9
+URL:            https://security.appspot.com/vsftpd.html
10
+Group:          System Environment/Daemons
11
+Vendor:         VMware, Inc.
12
+Distribution:   Photon
13
+Source0:        https://security.appspot.com/downloads/%{name}-%{version}.tar.gz
14
+%define sha1    vsftpd=d5f5a180dbecd0fbcdc92bf0ba2fc001c962b55a
15
+BuildRequires:  libcap-devel Linux-PAM openssl-devel
16
+Requires:       libcap Linux-PAM openssl
17 17
 %description
18 18
 Very secure and very small FTP daemon.
19 19
 %prep
20 20
 %setup -q
21 21
 %build
22
+sed -i 's/#undef VSF_BUILD_SSL/#define VSF_BUILD_SSL/g' builddefs.h
22 23
 sed -i -e 's|#define VSF_SYSDEP_HAVE_LIBCAP|//&|' sysdeputil.c
23 24
 make %{?_smp_mflags}
24 25
 %install
... ...
@@ -81,11 +82,13 @@ fi
81 81
 %{_datadir}/*
82 82
 %exclude %{_libdir}/debug
83 83
 %changelog
84
-*	Wed Nov 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.0.3-1
85
--	Upgraded to version 3.0.3, fixes CVE-2015-1419
86
-*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.0.2-3
87
--	GA - Bump release of all rpms
88
-*   	Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.0.2-2
89
--   	Fix for upgrade issues
90
-*	Mon Jul 6 2015 Alexey Makhalov <amakhalov@vmware.com> 3.0.2-1
91
--	initial version
84
+*   Thu Mar 15 2018 Xiaolin Li <xiaolinl@vmware.com> 3.0.3-2
85
+-   Enable ssl support.
86
+*   Wed Nov 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.0.3-1
87
+-   Upgraded to version 3.0.3, fixes CVE-2015-1419
88
+*   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.0.2-3
89
+-   GA - Bump release of all rpms
90
+*   Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.0.2-2
91
+-   Fix for upgrade issues
92
+*   Mon Jul 6 2015 Alexey Makhalov <amakhalov@vmware.com> 3.0.2-1
93
+-   initial version