|
@@ -33,20 +33,26 @@ Distribution: OpenPKG [BASE]
|
|
|
Group: FTP
|
|
Group: FTP
|
|
|
License: GPL
|
|
License: GPL
|
|
|
Version: 1.1.0
|
|
Version: 1.1.0
|
|
|
-Release: 20030103
|
|
|
|
|
|
|
+Release: 20030703
|
|
|
|
|
|
|
|
# package options
|
|
# package options
|
|
|
|
|
+%option with_fsl yes
|
|
|
%option with_pam no
|
|
%option with_pam no
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
Source0: http://osdn.dl.sourceforge.net/sourceforge/pureftpd/pure-ftpd-%{version}.tar.gz
|
|
Source0: http://osdn.dl.sourceforge.net/sourceforge/pureftpd/pure-ftpd-%{version}.tar.gz
|
|
|
Source1: rc.pureftpd
|
|
Source1: rc.pureftpd
|
|
|
|
|
+Source2: fsl.pureftpd
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20030103, make
|
|
|
|
|
-PreReq: OpenPKG, openpkg >= 20030103
|
|
|
|
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20030415, make
|
|
|
|
|
+PreReq: OpenPKG, openpkg >= 20030415
|
|
|
|
|
+%if "%{with_fsl}" == "yes"
|
|
|
|
|
+BuildPreReq: fsl
|
|
|
|
|
+PreReq: fsl
|
|
|
|
|
+%endif
|
|
|
%if "%{with_pam}" == "yes"
|
|
%if "%{with_pam}" == "yes"
|
|
|
BuildPreReq: PAM
|
|
BuildPreReq: PAM
|
|
|
PreReq: PAM
|
|
PreReq: PAM
|
|
@@ -71,9 +77,11 @@ AutoReqProv: no
|
|
|
%build
|
|
%build
|
|
|
CC="%{l_cc}" \
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
|
|
+ LDFLAGS="%{l_fsl_ldflags}" \
|
|
|
|
|
+ LIBS="%{l_fsl_libs}" \
|
|
|
%if "%{with_pam}" == "yes"
|
|
%if "%{with_pam}" == "yes"
|
|
|
CPPFLAGS="-I`%{l_prefix}/etc/rc --query pam_incdir`" \
|
|
CPPFLAGS="-I`%{l_prefix}/etc/rc --query pam_incdir`" \
|
|
|
- LDFLAGS="-L`%{l_prefix}/etc/rc --query pam_libdir`" \
|
|
|
|
|
|
|
+ LDFLAGS="-L`%{l_prefix}/etc/rc --query pam_libdir` ${LDFLAGS}" \
|
|
|
%endif
|
|
%endif
|
|
|
./configure \
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
--prefix=%{l_prefix} \
|
|
@@ -92,13 +100,35 @@ AutoReqProv: no
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/%{name} \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
|
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
%{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
|
|
|
- %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
|
|
|
|
|
- %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
|
|
- %{SOURCE rc.pureftpd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
|
|
|
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
|
|
|
|
|
|
|
+
|
|
|
|
|
+ # Creating run-command script
|
|
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
|
|
|
|
|
+ %{l_shtool} install -c -m 755 \
|
|
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
|
|
+ -e 's;@l_susr@;%{l_susr};g' \
|
|
|
|
|
+ -e 's;@l_rusr@;%{l_rusr};g' \
|
|
|
|
|
+ -e 's;@l_rgrp@;%{l_rgrp};g' \
|
|
|
|
|
+ %{SOURCE rc.%{name}} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
|
|
|
|
|
+
|
|
|
|
|
+ # OSSP fake syslog library
|
|
|
|
|
+ %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl
|
|
|
|
|
+ %{l_shtool} install -c -m 644 \
|
|
|
|
|
+ -e 's;@l_prefix@;%{l_prefix};g' \
|
|
|
|
|
+ %{SOURCE fsl.%{name}} \
|
|
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
|
|
|
|
|
+
|
|
|
|
|
+ # determine installation files
|
|
|
|
|
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
|
|
|
|
|
+ %{l_files_std} \
|
|
|
|
|
+ '%not %dir %{l_prefix}/etc/fsl' \
|
|
|
|
|
+ '%config %{l_prefix}/etc/fsl/fsl.%{name}'
|
|
|
|
|
|
|
|
%files -f files
|
|
%files -f files
|
|
|
|
|
|