From 0a358b1f828d30639d17d29637948b51048900aefc2a62c43d6fa7a01df79f65 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 9 Nov 2007 21:50:00 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pen?expand=0&rev=3 --- init.pen | 21 ++++++++++++++------- pen-0.17.1.tar.bz2 | 3 --- pen-0.17.2.tar.bz2 | 3 +++ pen.changes | 10 ++++++++++ pen.spec | 29 +++++++++++++++-------------- 5 files changed, 42 insertions(+), 24 deletions(-) delete mode 100644 pen-0.17.1.tar.bz2 create mode 100644 pen-0.17.2.tar.bz2 diff --git a/init.pen b/init.pen index 19d2678..f3dfff4 100644 --- a/init.pen +++ b/init.pen @@ -10,10 +10,11 @@ # ### BEGIN INIT INFO # Provides: pen -# Required-Start: $time $named $syslog -# Required-Stop: +# Required-Start: $time $named $syslog $remote_fs +# Required-Stop: $time $named $syslog $remote_fs # Default-Start: 3 5 # Default-Stop: 0 1 2 4 6 +# Short-Description: Load balancer for tcp based protocols # Description: A simple load balancer for tcp based protocols ### END INIT INFO @@ -27,11 +28,11 @@ CF=/etc/$NAME.cfg PIDDIR="/var/run" PIDALL="$PIDDIR/run$NAME.pid" -if [ -f $CF ]; then - . $CF -else - echo "Error: Configuration file $CF not found" && exit 0 -fi +test -r $CF || { echo "$CF not found"; + if [ "$1" = "stop" ]; then exit 0; + else exit 6; fi; } + +. $CF # Determine the base and follow a runlevel link name. base=${0##*/} @@ -88,6 +89,12 @@ case "$1" in done 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}" exit 1 diff --git a/pen-0.17.1.tar.bz2 b/pen-0.17.1.tar.bz2 deleted file mode 100644 index 3734749..0000000 --- a/pen-0.17.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:38d4af7074b6cc2a99a024e0d5db56eec8ccad022e9093decf888a8538748cba -size 99272 diff --git a/pen-0.17.2.tar.bz2 b/pen-0.17.2.tar.bz2 new file mode 100644 index 0000000..fb009af --- /dev/null +++ b/pen-0.17.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05e88170c909ebd30ab829014f788e2e9d1dbf283356295a71fe37f24a9d61d9 +size 112051 diff --git a/pen.changes b/pen.changes index a252cde..0536b5b 100644 --- a/pen.changes +++ b/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 diff --git a/pen.spec b/pen.spec index 0935995..9d4dfdf 100644 --- a/pen.spec +++ b/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. # This file and all modifications and additions to the pristine @@ -11,16 +11,17 @@ # norootforbuild Name: pen -License: GNU General Public License (GPL) +License: GPL v2 or later Group: Productivity/Clustering/HA Summary: A simple load balancer for tcp based protocols -URL: http://siag.nu/pen/ -Version: 0.17.1 -Release: 45 +Url: http://siag.nu/pen/ +Version: 0.17.2 +Release: 1 Source0: %{name}-%{version}.tar.bz2 Source1: %{name}.cfg Source2: init.%{name} Source3: runpen.sh +PreReq: %insserv_prereq %fillup_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -57,17 +58,14 @@ Authors: #%patch %build -export CFLAGS="$RPM_OPT_FLAGS" -export CXXFLAGS="$RPM_OPT_FLAGS" -./configure \ - --prefix=/usr \ - --mandir=%_mandir \ +%configure \ --with-daemon -make +make %{?jobs:-j%jobs} %install -mkdir -p $RPM_BUILD_ROOT/usr/sbin -make DESTDIR="$RPM_BUILD_ROOT" install +mkdir -p $RPM_BUILD_ROOT/%_sbindir +#make DESTDIR="$RPM_BUILD_ROOT" install +%makeinstall # Install pen init script mkdir -p $RPM_BUILD_ROOT/etc/init.d install -m 0744 %SOURCE2 $RPM_BUILD_ROOT/etc/init.d/%{name} @@ -103,8 +101,11 @@ rm -rf ${RPM_BUILD_ROOT} /usr/bin/penlogd /usr/sbin/rc%{name} %config(noreplace) /etc/%{name}.cfg - %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 - fix changelog entry order * Fri Aug 25 2006 - joe@suse.de