|
|
@@ -37,16 +37,25 @@ Distribution: OpenPKG [BASE]
|
|
|
Group: Communication
|
|
|
License: GPL
|
|
|
Version: %{V_major}.%{V_minor}
|
|
|
-Release: 20030331
|
|
|
+Release: 20030701
|
|
|
+
|
|
|
+# package options
|
|
|
+%option with_fsl yes
|
|
|
|
|
|
# list of sources
|
|
|
Source0: ftp://kermit.columbia.edu/kermit/archives/cku%{V_minor}.tar.gz
|
|
|
+Source1: rc.kermit
|
|
|
+Source2: fsl.kermit
|
|
|
|
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20020206, gcc
|
|
|
-PreReq: OpenPKG, openpkg >= 20020206
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20030415, gcc
|
|
|
+PreReq: OpenPKG, openpkg >= 20030415
|
|
|
+%if "%{with_fsl}" == "yes"
|
|
|
+BuildPreReq: fsl
|
|
|
+PreReq: fsl
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
|
|
|
|
@@ -74,7 +83,9 @@ AutoReqProv: no
|
|
|
esac
|
|
|
%{l_make} %{l_mflags} -f makefile \
|
|
|
CC="%{l_cc}" \
|
|
|
- CFLAGS="%{l_cflags -O}" \
|
|
|
+ KFLAGS="-DSYSLOGLEVEL=6" \
|
|
|
+ LDFLAGS="%{l_fsl_ldflags}" \
|
|
|
+ LIBS="%{l_fsl_libs}" \
|
|
|
BINDIR=%{l_prefix}/bin \
|
|
|
MANDIR=%{l_prefix}/man/man1 MANEXT=1 \
|
|
|
INFODIR=%{l_prefix}/share/kermit \
|
|
|
@@ -85,7 +96,8 @@ AutoReqProv: no
|
|
|
%{l_shtool} mkdir -f -p -m 755 \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/man1 \
|
|
|
- $RPM_BUILD_ROOT%{l_prefix}/share/kermit
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/share/kermit \
|
|
|
+ $RPM_BUILD_ROOT%{l_prefix}/var/%{name}
|
|
|
%{l_make} %{l_mflags} -f makefile \
|
|
|
BINDIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
|
|
|
MANDIR=$RPM_BUILD_ROOT%{l_prefix}/man/man1 MANEXT=1 \
|
|
|
@@ -93,7 +105,29 @@ AutoReqProv: no
|
|
|
install
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ckermit.ini
|
|
|
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/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
|
|
|
|