|
@@ -33,17 +33,26 @@ Distribution: OpenPKG [PLUS]
|
|
|
Group: Cryptography
|
|
Group: Cryptography
|
|
|
License: MIT
|
|
License: MIT
|
|
|
Version: 1.2.8
|
|
Version: 1.2.8
|
|
|
-Release: 20030627
|
|
|
|
|
|
|
+Release: 20030703
|
|
|
|
|
+
|
|
|
|
|
+# package options
|
|
|
|
|
+%option with_fsl yes
|
|
|
|
|
|
|
|
# list of sources
|
|
# list of sources
|
|
|
Source0: http://www.mirrors.wiretapped.net/security/cryptography/apps/kerberos/krb5-mit/unix/krb5-%{version}.tar.gz
|
|
Source0: http://www.mirrors.wiretapped.net/security/cryptography/apps/kerberos/krb5-mit/unix/krb5-%{version}.tar.gz
|
|
|
|
|
+Source1: rc.kerberos
|
|
|
|
|
+Source2: fsl.kerberos
|
|
|
Patch0: kerberos.patch
|
|
Patch0: kerberos.patch
|
|
|
|
|
|
|
|
# build information
|
|
# build information
|
|
|
Prefix: %{l_prefix}
|
|
Prefix: %{l_prefix}
|
|
|
BuildRoot: %{l_buildroot}
|
|
BuildRoot: %{l_buildroot}
|
|
|
-BuildPreReq: OpenPKG, openpkg >= 20020206, flex, bison, make
|
|
|
|
|
-PreReq: OpenPKG, openpkg >= 20020206
|
|
|
|
|
|
|
+BuildPreReq: OpenPKG, openpkg >= 20030415, flex, bison, make
|
|
|
|
|
+PreReq: OpenPKG, openpkg >= 20030415
|
|
|
|
|
+%if "%{with_fsl}" == "yes"
|
|
|
|
|
+BuildPreReq: fsl
|
|
|
|
|
+PreReq: fsl
|
|
|
|
|
+%endif
|
|
|
AutoReq: no
|
|
AutoReq: no
|
|
|
AutoReqProv: no
|
|
AutoReqProv: no
|
|
|
|
|
|
|
@@ -63,6 +72,8 @@ AutoReqProv: no
|
|
|
cd src
|
|
cd src
|
|
|
CC="%{l_cc}" \
|
|
CC="%{l_cc}" \
|
|
|
CFLAGS="%{l_cflags -O}" \
|
|
CFLAGS="%{l_cflags -O}" \
|
|
|
|
|
+ LDFLAGS="%{l_fsl_ldflags}" \
|
|
|
|
|
+ LIBS="%{l_fsl_libs}" \
|
|
|
./configure \
|
|
./configure \
|
|
|
--prefix=%{l_prefix} \
|
|
--prefix=%{l_prefix} \
|
|
|
--without-krb4 \
|
|
--without-krb4 \
|
|
@@ -71,6 +82,8 @@ 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}
|
|
|
( cd src
|
|
( cd src
|
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
) || exit 1
|
|
) || exit 1
|
|
@@ -128,7 +141,29 @@ AutoReqProv: no
|
|
|
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gnats
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/gnats
|
|
|
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_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
|
|
|
|
|
|