|
|
@@ -33,10 +33,12 @@ Distribution: OpenPKG [BASE]
|
|
|
Group: FTP
|
|
|
License: GPL
|
|
|
Version: 1.2.8
|
|
|
-Release: 20030527
|
|
|
+Release: 20030605
|
|
|
|
|
|
# package options
|
|
|
-%option with_pam no
|
|
|
+%option with_mysql no
|
|
|
+%option with_pam no
|
|
|
+%option with_pgsql no
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://ftp.proftpd.net/distrib/source/proftpd-%{version}.tar.bz2
|
|
|
@@ -50,10 +52,16 @@ Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030103, ncurses, make
|
|
|
PreReq: OpenPKG, openpkg >= 20030103, ncurses
|
|
|
+%if "%{with_mysql}" == "yes"
|
|
|
+BuildPreReq: MYSQL
|
|
|
+%endif
|
|
|
%if "%{with_pam}" == "yes"
|
|
|
BuildPreReq: PAM
|
|
|
PreReq: PAM
|
|
|
%endif
|
|
|
+%if "%{with_pgsql}" == "yes"
|
|
|
+BuildPreReq: postgresql
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -88,6 +96,22 @@ AutoReqProv: no
|
|
|
include/default_paths.h
|
|
|
|
|
|
# configure the ProFTPd source tree
|
|
|
+ MOD="mod_ratio:mod_readme"
|
|
|
+ MOD_INC="%{l_prefix}/include"
|
|
|
+ MOD_LIB="%{l_prefix}/lib"
|
|
|
+%if "%{with_mysql}" == "yes" || "%{with_pgsql}" == "yes"
|
|
|
+ MOD="$MOD:mod_sql"
|
|
|
+%if "%{with_mysql}" == "yes"
|
|
|
+ MOD="$MOD:mod_sql_mysql"
|
|
|
+ MOD_LIB="MOD_LIB:%{l_prefix}/lib/mysql"
|
|
|
+%endif
|
|
|
+%if "%{with_pgsql}" == "yes"
|
|
|
+ MOD="$MOD:mod_sql_postgres"
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e 's;^\(#include <\)pgsql/\(libpq-fe.h>.*\)$;\1\2;' \
|
|
|
+ contrib/mod_sql_postgres.c
|
|
|
+%endif
|
|
|
+%endif
|
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
%if "%{with_pam}" == "yes"
|
|
|
@@ -101,9 +125,13 @@ AutoReqProv: no
|
|
|
--prefix=%{l_prefix} \
|
|
|
--sysconfdir=%{l_prefix}/etc/proftpd \
|
|
|
--localstatedir=%{l_prefix}/var/proftpd \
|
|
|
- --with-modules=mod_ratio:mod_readme \
|
|
|
+ --with-modules="$MOD" \
|
|
|
+ --with-includes="$MOD_INC" \
|
|
|
+ --with-libraries="$MOD_LIB" \
|
|
|
%if "%{with_pam}" == "yes"
|
|
|
- --enable-pam
|
|
|
+ --enable-auth-pam
|
|
|
+%else
|
|
|
+ --disable-auth-pam
|
|
|
%endif
|
|
|
|
|
|
# build ProFTPd programs
|