This commit is contained in:
parent
a8bb806e95
commit
0a358b1f82
21
init.pen
21
init.pen
@ -10,10 +10,11 @@
|
|||||||
#
|
#
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: pen
|
# Provides: pen
|
||||||
# Required-Start: $time $named $syslog
|
# Required-Start: $time $named $syslog $remote_fs
|
||||||
# Required-Stop:
|
# Required-Stop: $time $named $syslog $remote_fs
|
||||||
# Default-Start: 3 5
|
# Default-Start: 3 5
|
||||||
# Default-Stop: 0 1 2 4 6
|
# Default-Stop: 0 1 2 4 6
|
||||||
|
# Short-Description: Load balancer for tcp based protocols
|
||||||
# Description: A simple load balancer for tcp based protocols
|
# Description: A simple load balancer for tcp based protocols
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
@ -27,11 +28,11 @@ CF=/etc/$NAME.cfg
|
|||||||
PIDDIR="/var/run"
|
PIDDIR="/var/run"
|
||||||
PIDALL="$PIDDIR/run$NAME.pid"
|
PIDALL="$PIDDIR/run$NAME.pid"
|
||||||
|
|
||||||
if [ -f $CF ]; then
|
test -r $CF || { echo "$CF not found";
|
||||||
. $CF
|
if [ "$1" = "stop" ]; then exit 0;
|
||||||
else
|
else exit 6; fi; }
|
||||||
echo "Error: Configuration file $CF not found" && exit 0
|
|
||||||
fi
|
. $CF
|
||||||
|
|
||||||
# Determine the base and follow a runlevel link name.
|
# Determine the base and follow a runlevel link name.
|
||||||
base=${0##*/}
|
base=${0##*/}
|
||||||
@ -88,6 +89,12 @@ case "$1" in
|
|||||||
done
|
done
|
||||||
rc_status -v
|
rc_status -v
|
||||||
;;
|
;;
|
||||||
|
reload)
|
||||||
|
echo "Reload pen load balancer instances"
|
||||||
|
/sbin/killproc -HUP $DAEMON
|
||||||
|
touch $PIDFILE
|
||||||
|
rc_status -v
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 {start|stop|restart}"
|
echo "Usage: $0 {start|stop|restart}"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:38d4af7074b6cc2a99a024e0d5db56eec8ccad022e9093decf888a8538748cba
|
|
||||||
size 99272
|
|
3
pen-0.17.2.tar.bz2
Normal file
3
pen-0.17.2.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:05e88170c909ebd30ab829014f788e2e9d1dbf283356295a71fe37f24a9d61d9
|
||||||
|
size 112051
|
10
pen.changes
10
pen.changes
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 9 14:16:25 CET 2007 - joe@suse.de
|
||||||
|
|
||||||
|
- update to version 0.17.2
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 9 13:18:57 CET 2007 - lrupp@suse.de
|
||||||
|
|
||||||
|
- fix rpmlint warnings
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 21 17:26:30 CEST 2007 - adrian@suse.de
|
Thu Jun 21 17:26:30 CEST 2007 - adrian@suse.de
|
||||||
|
|
||||||
|
29
pen.spec
29
pen.spec
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package pen (Version 0.17.1)
|
# spec file for package pen (Version 0.17.2)
|
||||||
#
|
#
|
||||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
# This file and all modifications and additions to the pristine
|
# This file and all modifications and additions to the pristine
|
||||||
@ -11,16 +11,17 @@
|
|||||||
# norootforbuild
|
# norootforbuild
|
||||||
|
|
||||||
Name: pen
|
Name: pen
|
||||||
License: GNU General Public License (GPL)
|
License: GPL v2 or later
|
||||||
Group: Productivity/Clustering/HA
|
Group: Productivity/Clustering/HA
|
||||||
Summary: A simple load balancer for tcp based protocols
|
Summary: A simple load balancer for tcp based protocols
|
||||||
URL: http://siag.nu/pen/
|
Url: http://siag.nu/pen/
|
||||||
Version: 0.17.1
|
Version: 0.17.2
|
||||||
Release: 45
|
Release: 1
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: %{name}.cfg
|
Source1: %{name}.cfg
|
||||||
Source2: init.%{name}
|
Source2: init.%{name}
|
||||||
Source3: runpen.sh
|
Source3: runpen.sh
|
||||||
|
PreReq: %insserv_prereq %fillup_prereq
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -57,17 +58,14 @@ Authors:
|
|||||||
#%patch
|
#%patch
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS"
|
%configure \
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
||||||
./configure \
|
|
||||||
--prefix=/usr \
|
|
||||||
--mandir=%_mandir \
|
|
||||||
--with-daemon
|
--with-daemon
|
||||||
make
|
make %{?jobs:-j%jobs}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
mkdir -p $RPM_BUILD_ROOT/%_sbindir
|
||||||
make DESTDIR="$RPM_BUILD_ROOT" install
|
#make DESTDIR="$RPM_BUILD_ROOT" install
|
||||||
|
%makeinstall
|
||||||
# Install pen init script
|
# Install pen init script
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||||
install -m 0744 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/%{name}
|
install -m 0744 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/%{name}
|
||||||
@ -103,8 +101,11 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
/usr/bin/penlogd
|
/usr/bin/penlogd
|
||||||
/usr/sbin/rc%{name}
|
/usr/sbin/rc%{name}
|
||||||
%config(noreplace) /etc/%{name}.cfg
|
%config(noreplace) /etc/%{name}.cfg
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 09 2007 - joe@suse.de
|
||||||
|
- update to version 0.17.2
|
||||||
|
* Fri Nov 09 2007 - lrupp@suse.de
|
||||||
|
- fix rpmlint warnings
|
||||||
* Thu Jun 21 2007 - adrian@suse.de
|
* Thu Jun 21 2007 - adrian@suse.de
|
||||||
- fix changelog entry order
|
- fix changelog entry order
|
||||||
* Fri Aug 25 2006 - joe@suse.de
|
* Fri Aug 25 2006 - joe@suse.de
|
||||||
|
Loading…
Reference in New Issue
Block a user