- Upstream released new version:

http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.76/CHANGES
- Minor spec and initscript cleanup
This commit is contained in:
Ruben Kerkhof 2010-06-22 12:19:45 +00:00
parent 5c9d255dca
commit 59ea10e301
3 changed files with 20 additions and 23 deletions

View File

@ -1,13 +1,12 @@
Name: Perlbal
Version: 1.75
Release: 2%{?dist}
Version: 1.76
Release: 1%{?dist}
Summary: Reverse-proxy load balancer and webserver
License: GPL+ or Artistic
Group: System Environment/Daemons
URL: http://search.cpan.org/dist/Perlbal/
Source0: http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/%{name}-%{version}.tar.gz
Source0: http://search.cpan.org/CPAN/authors/id/D/DO/DORMANDO/%{name}-%{version}.tar.gz
Source1: perlbal.init
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
@ -23,9 +22,9 @@ Requires: perl(IO::AIO)
Requires: perl(BSD::Resource)
Requires: perl(Perlbal::XS::HTTPHeaders)
Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service
Requires(post): chkconfig
Requires(preun): chkconfig, initscripts
Requires(postun): chkconfig
%description
Perlbal is a single-threaded event-based server supporting HTTP load
@ -41,16 +40,13 @@ Perlbal can also be extended by means of per-service (and global) plugins that
can override many parts of request handling and behavior.
%prep
%setup -q -n Perlbal-%{version}
%setup -q
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
@ -59,21 +55,18 @@ find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*
install -D -p -m 0644 conf/webserver.conf %{buildroot}%{_sysconfdir}/perlbal/perlbal.conf
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/perlbal
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_initddir}/perlbal
mkdir -p doc/examples
mv conf/* doc/examples
%check
make test
%clean
rm -rf %{buildroot}
%post
/sbin/chkconfig --add perlbal
%preun
if [ $1 = 0 ]; then
if [ $1 -eq 0 ]; then
/sbin/chkconfig --del perlbal
/sbin/service perlbal stop >/dev/null 2>&1 || :
fi
@ -87,7 +80,7 @@ fi
%defattr(-,root,root,-)
%dir %{_sysconfdir}/perlbal
%config(noreplace) %{_sysconfdir}/perlbal/perlbal.conf
%{_initrddir}/perlbal
%{_initddir}/perlbal
%doc CHANGES doc/*
%{perl_vendorlib}/*
%{_bindir}/perlbal
@ -96,6 +89,10 @@ fi
%changelog
* Tue Jun 22 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> 1.76-1
- Upstream released new version: http://cpansearch.perl.org/src/DORMANDO/Perlbal-1.76/CHANGES
- Minor spec and initscript cleanup
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.75-2
- Mass rebuild with perl-5.12.0

View File

@ -15,21 +15,22 @@
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
start() {
echo -n $"Starting Perlbal: "
daemon perlbal --daemon
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/perlbal
return $RETVAL
}
stop() {
echo -n $"Stopping Perlbal: "
killproc perlbal
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/perlbal
return $RETVAL
}
restart() {
@ -52,11 +53,10 @@ case "$1" in
;;
status)
status perlbal
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
exit 1
exit 2
esac
exit $RETVAL
exit $?

View File

@ -1 +1 @@
38f4af5d6cf6dba4c00916058e80aa94 Perlbal-1.75.tar.gz
48c3f9501d3643c768e67fb75c7e039a Perlbal-1.76.tar.gz