|
|
|
|
@ -33,7 +33,7 @@ Distribution: OpenPKG [PLUS]
|
|
|
|
|
Group: Network |
|
|
|
|
License: BSD-style |
|
|
|
|
Version: 3.17.1 |
|
|
|
|
Release: 20030910 |
|
|
|
|
Release: 20030916 |
|
|
|
|
|
|
|
|
|
# package options |
|
|
|
|
%option with_perl no |
|
|
|
|
@ -45,7 +45,7 @@ Source1: rc.spread
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206, perl, gcc, flex, bison |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20020206, perl, gcc, flex, bison, sed |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20020206 |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
|
@ -59,11 +59,20 @@ AutoReqProv: no
|
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -n spread-src-%{version} |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e "s;.*\(DaemonUser\).*;\1 = %{l_rusr};" \ |
|
|
|
|
-e "s;.*\(DaemonGroup\).*;\1 = %{l_mgrp};" \ |
|
|
|
|
-e "s;.*\(RuntimeDir\).*;\1 = %{l_prefix}/var/spread;" \ |
|
|
|
|
-e "s;^[ \t]*localhost[ \t]*127.0.0.1;\t`%{l_shtool} echo -e %h%d`;" \ |
|
|
|
|
sample.spread.conf |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e "s;/etc\(/spread.access_ip\);%{l_prefix}/etc/spread\1;g" \ |
|
|
|
|
auth-ip.c |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
%{l_shtool} subst -e 's;if test ! -d \$piddir;if false;' configure |
|
|
|
|
%{l_shtool} subst -e "s;if test ! -d \$piddir;if false;" configure |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;/usr/bin/perl;%{l_prefix}/bin/perl;g' \ |
|
|
|
|
-e "s;/usr/bin/perl;%{l_prefix}/bin/perl;g" \ |
|
|
|
|
buildtools/fixpaths \ |
|
|
|
|
buildtools/mdoc2man.pl |
|
|
|
|
CC="%{l_cc}" \ |
|
|
|
|
@ -86,10 +95,15 @@ AutoReqProv: no
|
|
|
|
|
%{l_prefix}/bin/perl-openpkg epilog |
|
|
|
|
) || exit $? |
|
|
|
|
%endif |
|
|
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/var/spread |
|
|
|
|
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
|
|
|
|
rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* >/dev/null 2>&1 || true |
|
|
|
|
|
|
|
|
|
# install the IP address acl |
|
|
|
|
%{l_shtool} install -c -m 644 \ |
|
|
|
|
sample.spread.access_ip \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/spread/spread.access_ip |
|
|
|
|
|
|
|
|
|
# install the run command file |
|
|
|
|
%{l_shtool} mkdir -f -p -m 755 \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d |
|
|
|
|
@ -100,8 +114,9 @@ AutoReqProv: no
|
|
|
|
|
eval `%{l_prefix}/bin/perl -V:installarchlib -V:installprivlib -V:installsitearch -V:installsitelib` |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
|
|
|
|
%{l_files_std} \ |
|
|
|
|
'%not %dir %{l_prefix}/lib/perl' \ |
|
|
|
|
'%not %dir %{l_prefix}/lib/perl/*' \ |
|
|
|
|
"%config %attr(644) %{l_prefix}/etc/spread/*" \ |
|
|
|
|
"%not %dir %{l_prefix}/lib/perl" \ |
|
|
|
|
"%not %dir %{l_prefix}/lib/perl/*" \ |
|
|
|
|
"%not %dir $installarchlib" \ |
|
|
|
|
"%not %dir $installprivlib" \ |
|
|
|
|
"%not %dir $installsitearch" \ |
|
|
|
|
|