]> git.pld-linux.org Git - packages/vsftpd.git/blobdiff - vsftpd.spec
- release 5 (by relup.sh)
[packages/vsftpd.git] / vsftpd.spec
index f2a6e4362312984f3d5e1eba624dfd9223fa7ce5..c8b92d0ce24b9eeb1f620a436b8183b5310afb7c 100644 (file)
@@ -9,12 +9,12 @@ Summary:      vsftpd - Very Secure FTP Daemon
 Summary(pl.UTF-8):     Bardzo Bezpieczny Demon FTP
 Summary(pt_BR.UTF-8):  vsftpd - Daemon FTP Muito Seguro
 Name:          vsftpd
-Version:       2.3.4
-Release:       1
+Version:       3.0.2
+Release:       5
 License:       GPL v2
 Group:         Daemons
 Source0:       https://security.appspot.com/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: 2ea5d19978710527bb7444d93b67767a
+# Source0-md5: 8b00c749719089401315bd3c44dddbb2
 Source1:       %{name}.inetd
 Source2:       %{name}.pamd
 Source3:       %{name}-ftpusers
@@ -25,6 +25,7 @@ Patch0:               %{name}-builddefs.patch
 Patch1:                %{name}-amd64-findlibs.patch
 Patch2:                %{name}-clamav.patch
 Patch3:                %{name}-switch_sha256_to_sha1.patch
+Patch4:                %{name}-findlibs-egrep.patch
 URL:           https://security.appspot.com/vsftpd.html
 BuildRequires: libcap-devel
 BuildRequires: libwrap-devel
@@ -41,6 +42,8 @@ Provides:     ftpserver
 Conflicts:     man-pages < 1.51
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define        specflags       -fpie -pipe -Wextra -Werror
+
 %description
 A Very Secure FTP Daemon - written from scratch - by Chris "One Man
 Security Audit Team" Evans.
@@ -98,11 +101,13 @@ Ten pakiet pozwala na wystartowanie vsftpd jako samodzielnego demona.
 %if "%{pld_release}" == "ac"
 %patch3 -p1
 %endif
+%patch4 -p1
 
 %build
 %{__make} \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags}" \
+       LIBS="-lwrap -lpam -lcap -lssl -lcrypto" \
        LINK="%{rpmldflags}"
 
 %install
@@ -152,6 +157,12 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del %{name}
 fi
 
+%triggerin standalone -- glibc
+# restart vsftpd if glibc is upgraded or downgraded
+if [ "$2" != 1 ]; then
+       %service -q vsftpd restart
+fi
+
 %files
 %defattr(644,root,root,755)
 %doc AUDIT BENCHMARKS BUGS Changelog FAQ README README.ssl REWARD SIZE SPEED TODO TUNING EXAMPLE SECURITY
This page took 0.066352 seconds and 4 git commands to generate.