rpms/Pound/devel Pound.spec, NONE, 1.1 pound.cfg, NONE, 1.1 pound.init, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ruben Kerkhof (ruben) fedora-extras-commits at redhat.com
Sun Nov 12 23:45:06 UTC 2006


Author: ruben

Update of /cvs/extras/rpms/Pound/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30180/devel

Modified Files:
	.cvsignore sources 
Added Files:
	Pound.spec pound.cfg pound.init 
Log Message:
auto-import Pound-2.1.6-2 on branch devel from Pound-2.1.6-2.src.rpm


--- NEW FILE Pound.spec ---
%define pound_user	pound
%define pound_group	%{pound_user}
%define pound_home	%{_localstatedir}/lib/pound

Name:		Pound          
Version:	2.1.6       
Release:	2%{?dist}
Summary:	Reverse proxy and load balancer        

Group:		System Environment/Daemons
License:	GPL        
URL:		http://apsis.ch/pound
           
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	openssl-devel, pcre-devel

Requires(pre):    %{_sbindir}/useradd
Requires(post):   /sbin/chkconfig
Requires(preun):  /sbin/chkconfig, /sbin/service
Requires(postun): /sbin/service

Source0:	http://apsis.ch/pound/%{name}-%{version}.tgz       
Source1:	pound.init
Source2:	pound.cfg

%description
The Pound program is a reverse proxy, load balancer and
HTTPS front-end for Web server(s). Pound was developed
to enable distributing the load among several Web-servers
and to allow for a convenient SSL wrapper for those Web
servers that do not offer it natively. Pound is distributed
under the GPL - no warranty, it's free to use, copy and
give away

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
%{__install} -d %{buildroot}%{pound_home}
%{__install} -p -D -m 0755 -s pound %{buildroot}%{_sbindir}/pound
%{__install} -p -D -m 0755 -s poundctl %{buildroot}%{_sbindir}/poundctl
%{__install} -p -D -m 0644 pound.8 %{buildroot}%{_mandir}/man8/pound.8
%{__install} -p -D -m 0644 poundctl.8 %{buildroot}%{_mandir}/man8/poundctl.8
%{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/pound
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pound.cfg 

mkdir -p %{buildroot}%{_sysconfdir}/pki/tls/certs
touch %{buildroot}%{_sysconfdir}/pki/tls/certs/pound.pem

%clean
rm -rf %{buildroot}

%pre
%{_sbindir}/useradd -c "Pound user" -s /bin/false -r -d %{pound_home} \
    %{pound_user} 2>/dev/null || :

%post
/sbin/chkconfig --add pound

# generate dummy certificate
exec > /dev/null 2> /dev/null
if [ ! -f %{_sysconfdir}/pki/tls/certs/pound.pem ] ; then
pushd %{_sysconfdir}/pki/tls/certs
umask 077
cat << EOF | make pound.pem
--
SomeState
SomeCity
Pound Example Certificate
SomeOrganizationalUnit
localhost.localdomain
root at localhost.localdomain
EOF
chown root:pound pound.pem
chmod 640 pound.pem
popd
fi
exit 0

%preun
if [ $1 = 0 ]; then
	/sbin/service pound stop >/dev/null 2>&1
	/sbin/chkconfig --del pound
fi

%postun
if [ $1 -ge 1 ] ; then
        /sbin/service pound condrestart > /dev/null 2>&1 || :
fi

%files
%defattr(-,root,root,-)
%doc CHANGELOG FAQ GPL.html README
%{_mandir}/man8/pound.8*
%{_mandir}/man8/poundctl.8*
%{_sbindir}/pound
%{_sbindir}/poundctl
%{_initrddir}/pound
%config(noreplace) %{_sysconfdir}/pound.cfg
%ghost %config(noreplace) %{_sysconfdir}/pki/tls/certs/pound.pem
%attr(-,%{pound_user},%{pound_group}) %dir %{pound_home}

%changelog
* Wed Nov 08 2006 <ruben at rubenkerkhof.com> 2.1.6-2
- Changed hardcoded paths into rpmmacros
* Mon Nov 06 2006 <ruben at rubenkerkhof.com> 2.1.6-1
- Synced with upstream version
- Changed Summary
- Added an init script
- Added pound.cfg with an example configuration
- Added pound user and group
- A self-signed ssl certificate is created in %%post

* Fri Nov 03 2006 <ruben at rubenkerkhof.com> 2.1.5-1
- initial version



--- NEW FILE pound.cfg ---
#
# Default pound.cfg
#
# Pound listens on port 80 for HTTP and port 443 for HTTPS
# and distributes requests to 2 backends running on localhost.
# see pound(8) for configuration directives.
# You can enable/disable backends with poundctl(8).
#

User "pound"
Group "pound"
Control "/var/lib/pound/pound.cfg"

ListenHTTP
    Address 0.0.0.0
    Port 80
End

ListenHTTPS
    Address 0.0.0.0
    Port    443
    Cert    "/etc/pki/tls/certs/pound.pem"
End

Service
    BackEnd
        Address 127.0.0.1
        Port    8000
    End
    
    BackEnd
        Address 127.0.0.1
        Port    8001
    End
End


--- NEW FILE pound.init ---
#!/bin/bash
#
# pound         This shell script starts the Pound load-balancer
#
# Author:       Ruben Kerkhof <ruben at rubenkerkhof.com>
#
# chkconfig: - 85 15
#
# description:  Pound is a reverse proxy and load-balancer
# processname:  pound
# config: /etc/pound.cfg
# pidfile: /var/run/pound.pid
#

# source function library
. /etc/rc.d/init.d/functions

RETVAL=0

start() {
	echo -n $"Starting Pound: "
	daemon pound
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/pound
}

stop() {
	echo -n $"Stopping Pound: "
	killproc pound
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/pound
}

restart() {
	stop
	start
}

case "$1" in
  start)
	start
	;;
  stop) 
	stop
	;;
  restart|force-reload|reload)
	restart
	;;
  condrestart)
	[ -f /var/lock/subsys/pound ] && restart
	;;
  status)
	status pound
	RETVAL=$?
	;;
  *)
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}"
	exit 1
esac

exit $RETVAL


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/Pound/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	12 Nov 2006 23:43:52 -0000	1.1
+++ .cvsignore	12 Nov 2006 23:44:36 -0000	1.2
@@ -0,0 +1 @@
+Pound-2.1.6.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/Pound/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	12 Nov 2006 23:43:52 -0000	1.1
+++ sources	12 Nov 2006 23:44:36 -0000	1.2
@@ -0,0 +1 @@
+d9cec1718f733e7d79a2e352b10c06d5  Pound-2.1.6.tgz




More information about the fedora-extras-commits mailing list