Compare commits
No commits in common. "master" and "f22" have entirely different histories.
179
Perlbal.spec
179
Perlbal.spec
|
@ -1,91 +1,33 @@
|
|||
Name: Perlbal
|
||||
Version: 1.80
|
||||
Release: 36%{?dist}
|
||||
Release: 14%{?dist}
|
||||
Summary: Reverse-proxy load balance and web-server
|
||||
License: GPL+ or Artistic
|
||||
URL: https://metacpan.org/release/Perlbal
|
||||
Group: System Environment/Daemons
|
||||
URL: http://search.cpan.org/dist/Perlbal/
|
||||
Source0: http://www.laqee.unal.edu.co/CPAN/authors/id/D/DO/DORMANDO/Perlbal-1.80.tar.gz
|
||||
Source1: perlbal.service
|
||||
Source1: perlbal.init
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: coreutils
|
||||
BuildRequires: findutils
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: systemd
|
||||
# Run-time:
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(constant)
|
||||
BuildRequires: perl(Danga::Socket) >= 1.59
|
||||
BuildRequires: perl(Digest::MD5)
|
||||
BuildRequires: perl(Errno)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(Fcntl)
|
||||
BuildRequires: perl(fields)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(Getopt::Long)
|
||||
BuildRequires: perl(HTTP::Date)
|
||||
BuildRequires: perl(HTTP::Request)
|
||||
BuildRequires: perl(HTTP::Response)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(IO::Handle)
|
||||
BuildRequires: perl(IO::Select)
|
||||
BuildRequires: perl(IO::Socket)
|
||||
BuildRequires: perl(IO::Socket::INET)
|
||||
# IO::Socket::SSL 0.98 not used at tests
|
||||
# lib not used at tests
|
||||
BuildRequires: perl(List::Util)
|
||||
BuildRequires: perl(LWP::UserAgent)
|
||||
# Net::CIDR::Lite not used at tests
|
||||
BuildRequires: perl(POSIX)
|
||||
BuildRequires: perl(Scalar::Util)
|
||||
BuildRequires: perl(Socket)
|
||||
BuildRequires: perl(strict)
|
||||
# Symbol not used at tests
|
||||
BuildRequires: perl(Sys::Syscall)
|
||||
BuildRequires: perl(Time::HiRes)
|
||||
# URI not used at tests
|
||||
# URI::QueryParam not used at tests
|
||||
BuildRequires: perl(vars)
|
||||
BuildRequires: perl(warnings)
|
||||
# Optional run-time:
|
||||
# Cache::Memcached::Async not used at tests
|
||||
BuildRequires: perl(BSD::Resource)
|
||||
BuildRequires: perl(IO::AIO) >= 1.6
|
||||
# IO::Socket::INET6 not used at tests
|
||||
BuildRequires: perl(Net::Netmask)
|
||||
%if !%{defined perl_bootstrap}
|
||||
BuildRequires: perl(Perlbal::XS::HTTPHeaders) >= 0.20
|
||||
%endif
|
||||
BuildRequires: perl(Sys::Syslog)
|
||||
# Tests:
|
||||
BuildRequires: perl(FindBin)
|
||||
BuildRequires: perl(Hash::Util)
|
||||
BuildRequires: perl(lib)
|
||||
BuildRequires: perl(Test::More) >= 0.94
|
||||
# Optional tests:
|
||||
BuildRequires: perl(Benchmark)
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(HTTP::Date)
|
||||
BuildRequires: perl(HTTP::Response)
|
||||
BuildRequires: perl(BSD::Resource)
|
||||
BuildRequires: perl(Danga::Socket)
|
||||
BuildRequires: perl(IO::AIO)
|
||||
BuildRequires: perl(LWP)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(File::Temp)
|
||||
Requires: perl(IO::Select)
|
||||
Requires: perl(LWP::UserAgent)
|
||||
Requires: perl(Net::CIDR::Lite)
|
||||
# Optional run-time:
|
||||
Requires: perl(BSD::Resource)
|
||||
Requires: perl(IO::AIO) >= 1.6
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(IO::AIO)
|
||||
Requires: perl(BSD::Resource)
|
||||
%if !%{defined perl_bootstrap}
|
||||
Requires: perl(Perlbal::XS::HTTPHeaders) >= 0.20
|
||||
Requires: perl(Perlbal::XS::HTTPHeaders)
|
||||
%endif
|
||||
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
Requires(postun): systemd
|
||||
|
||||
Requires(post): chkconfig
|
||||
Requires(preun): chkconfig, initscripts
|
||||
Requires(postun): chkconfig
|
||||
|
||||
%description
|
||||
Perlbal is a single-threaded event-based server supporting HTTP load
|
||||
|
@ -116,7 +58,7 @@ 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}%{_unitdir}/perlbal.service
|
||||
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_initddir}/perlbal
|
||||
mkdir -p doc/examples
|
||||
mv conf/* doc/examples
|
||||
|
||||
|
@ -124,18 +66,24 @@ mv conf/* doc/examples
|
|||
make test
|
||||
|
||||
%post
|
||||
%systemd_post perlbal.service
|
||||
/sbin/chkconfig --add perlbal
|
||||
|
||||
%preun
|
||||
%systemd_preun perlbal.service
|
||||
if [ $1 -eq 0 ]; then
|
||||
/sbin/chkconfig --del perlbal
|
||||
/sbin/service perlbal stop >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart perlbal.service
|
||||
if [ $1 -ge 1 ] ; then
|
||||
/sbin/service perlbal condrestart > /dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_sysconfdir}/perlbal
|
||||
%config(noreplace) %{_sysconfdir}/perlbal/perlbal.conf
|
||||
%{_unitdir}/perlbal.service
|
||||
%{_initddir}/perlbal
|
||||
%doc CHANGES README doc/*
|
||||
%{perl_vendorlib}/*
|
||||
%{_bindir}/perlbal
|
||||
|
@ -144,73 +92,6 @@ make test
|
|||
|
||||
|
||||
%changelog
|
||||
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-36
|
||||
- Perl 5.30 re-rebuild of bootstrapped packages
|
||||
|
||||
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-35
|
||||
- Perl 5.30 rebuild
|
||||
|
||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.80-34
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.80-33
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-32
|
||||
- Perl 5.28 re-rebuild of bootstrapped packages
|
||||
|
||||
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-31
|
||||
- Perl 5.28 rebuild
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.80-30
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.80-29
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-28
|
||||
- Perl 5.26 re-rebuild of bootstrapped packages
|
||||
|
||||
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-27
|
||||
- Perl 5.26 rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.80-26
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Thu Nov 10 2016 Petr Pisar <ppisar@redhat.com> - 1.80-25
|
||||
- Finish bootstrap on PowerPC
|
||||
|
||||
* Thu Nov 10 2016 Petr Pisar <ppisar@redhat.com> - 1.80-24
|
||||
- Bootstrap on PowerPC
|
||||
|
||||
* Mon Sep 12 2016 Petr Pisar <ppisar@redhat.com> - 1.80-23
|
||||
- Finish bootstrap on aarch64
|
||||
|
||||
* Mon Sep 12 2016 Petr Pisar <ppisar@redhat.com> - 1.80-22
|
||||
- Bootstrap on aarch64
|
||||
|
||||
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-21
|
||||
- Perl 5.24 re-rebuild of bootstrapped packages
|
||||
|
||||
* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-20
|
||||
- Perl 5.24 rebuild
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.80-19
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Fri Oct 30 2015 Petr Pisar <ppisar@redhat.com> - 1.80-18
|
||||
- Migrate from System V init script to systemd
|
||||
- Specify all dependencies
|
||||
|
||||
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.80-17
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-16
|
||||
- Perl 5.22 re-rebuild of bootstrapped packages
|
||||
|
||||
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-15
|
||||
- Perl 5.22 rebuild
|
||||
|
||||
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.80-14
|
||||
- Perl 5.20 re-rebuild of bootstrapped packages
|
||||
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# perlbal This shell script starts the Perlbal load-balancer
|
||||
#
|
||||
# Author: Ruben Kerkhof <ruben@rubenkerkhof.com>
|
||||
#
|
||||
# chkconfig: - 85 15
|
||||
#
|
||||
# description: Perlbal is a reverse proxy and load-balancer
|
||||
# processname: perlbal
|
||||
# config: /etc/perlbal/perlbal.conf
|
||||
# pidfile: /var/run/perlbal.pid
|
||||
#
|
||||
|
||||
# source function library
|
||||
. /etc/rc.d/init.d/functions
|
||||
|
||||
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() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|force-reload|reload)
|
||||
restart
|
||||
;;
|
||||
condrestart)
|
||||
[ -f /var/lock/subsys/perlbal ] && restart
|
||||
;;
|
||||
status)
|
||||
status perlbal
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
|
||||
exit 2
|
||||
esac
|
||||
|
||||
exit $?
|
|
@ -1,10 +0,0 @@
|
|||
[Unit]
|
||||
Description=Perlbal load-balancer
|
||||
Documentation=man:perlbal(1)
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/perlbal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue