]> git.pld-linux.org Git - packages/pure-ftpd.git/blobdiff - pure-ftpd.spec
- removed redundant (size_t)
[packages/pure-ftpd.git] / pure-ftpd.spec
index 80d9f255be647bd5d52f6f3c985cf731461316d6..d6f13ca629248de892f2f45f34c226cf9fd9c488 100644 (file)
@@ -1,5 +1,6 @@
 #
 # Conditional build:
+%bcond_with     extra   # with additional, maybe useful, but unmaintained features
 %bcond_without  ldap   # disable LDAP auth
 %bcond_without  mysql  # disable MySQL auth but disables PAM auth
 %bcond_without  pgsql  # disable PostgreSQL support
@@ -10,7 +11,7 @@ Summary:      Small, fast and secure FTP server
 Summary(pl):   Ma³y, szybki i bezpieczny serwer FTP
 Name:          pure-ftpd
 Version:       1.0.20
-Release:       1
+Release:       2
 Epoch:         0
 License:       BSD-like
 Group:         Daemons
@@ -21,6 +22,7 @@ Source2:      %{name}.init
 Source3:       ftpusers.tar.bz2
 # Source3-md5: 76c80b6ec9f4d079a1e27316edddbe16
 Patch0:                %{name}-config.patch
+# This patch is broken and changes default pureftpd behaviour
 Patch1:                %{name}-path_to_ssl_cert_in_config.patch
 Patch2:                %{name}-pure-pw_passwd.patch
 URL:           http://www.pureftpd.org/
@@ -78,8 +80,8 @@ po
 %prep
 %setup -q
 %patch0 -p0
-%patch1 -p1
-%patch2 -p1
+%{?with_extra:%patch1 -p1}
+%{?with_extra:%patch2 -p1}
 
 %build
 %configure \
@@ -101,7 +103,7 @@ po
        --with-quotas \
        --with-ratios \
        --with-throttling \
-       %{?with_tls:--with-tls} \
+       %{?with_tls:--with-tls --with-certfile=%{_sharedstatedir}/openssl/certs/ftpd.pem} \
        --with-uploadscript \
        --with-virtualchroot \
        --with-virtualhosts 
This page took 0.053541 seconds and 4 git commands to generate.