OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 14-Apr-2004 15:05:52
Branch: HEAD Handle: 2004041414055200
Modified files:
openpkg-src/pureftpd pureftpd.spec
Log:
Add a bunch of useful build-time options for allowing
a more flexible build of PureFTPD.
Submitted partly by: <[EMAIL PROTECTED]>
Summary:
Revision Changes Path
1.61 +42 -3 openpkg-src/pureftpd/pureftpd.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/pureftpd/pureftpd.spec
============================================================================
$ cvs diff -u -r1.60 -r1.61 pureftpd.spec
--- openpkg-src/pureftpd/pureftpd.spec 4 Mar 2004 17:38:00 -0000 1.60
+++ openpkg-src/pureftpd/pureftpd.spec 14 Apr 2004 13:05:52 -0000 1.61
@@ -34,11 +34,16 @@
Group: FTP
License: GPL
Version: 1.0.18
-Release: 20040304
+Release: 20040414
# package options
-%option with_fsl yes
-%option with_pam no
+%option with_fsl yes
+%option with_pam no
+%option with_ldap no
+%option with_mysql no
+%option with_pgsql no
+%option with_minimal no
+%option with_everything no
# list of sources
Source0:
ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-%{version}.tar.gz
@@ -58,6 +63,18 @@
BuildPreReq: PAM
PreReq: PAM
%endif
+%if "%{with_ldap}" == "yes"
+BuildPreReq: openldap, openssl
+PreReq: openldap, openssl
+%endif
+%if "%{with_mysql}" == "yes"
+BuildPreReq: mysql
+PreReq: mysql
+%endif
+%if "%{with_pgsql}" == "yes"
+BuildPreReq: postgresql
+PreReq: postgresql
+%endif
AutoReq: no
AutoReqProv: no
@@ -91,6 +108,9 @@
CPPFLAGS="-I`%{l_prefix}/etc/rc --query pam_incdir`" \
LDFLAGS="-L`%{l_prefix}/etc/rc --query pam_libdir` ${LDFLAGS}" \
%endif
+%if "%{with_ldap}" == "yes"
+ LIBS="${LIBS} -lldap -llber -lssl -lcrypto" \
+%endif
./configure \
--prefix=%{l_prefix} \
--sysconfdir=%{l_prefix}/etc/pureftpd \
@@ -101,9 +121,28 @@
%if "%{with_pam}" == "yes"
--with-pam \
%endif
+%if "%{with_ldap}" == "yes"
+ --with-ldap=%{l_prefix} \
+%endif
+%if "%{with_mysql}" == "yes"
+ --with-mysql=%{l_prefix} \
+%endif
+%if "%{with_pgsql}" == "yes"
+ --with-pgsql=%{l_prefix} \
+%endif
+%if "%{with_minimal}" == "yes"
+ --with-minimal \
+%endif
+%if "%{with_everything}" == "yes"
+ --with-everything \
+%endif
--with-ftpwho \
--with-virtualhosts \
--with-language=english
+ # workaround broken configure:
+ # "checking whether realpath likes unreadable directories"
+ # can leave a test directory, which is not removable.
+ test -d x && chmod 755 x || true
%{l_make} %{l_mflags -O}
%install
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]