2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-24 02:19:53 +00:00

add additional information for conserver&stunnel init.d services to adapt LSB standard; also the defetc 2818375 is fixed

This commit is contained in:
mxi1 2009-10-12 08:38:41 +00:00
parent 4ed5df3afd
commit bdccd5535f
5 changed files with 49 additions and 1 deletions

View File

@ -70,13 +70,20 @@ cp php.ini-recommended %{buildroot}/%{_sysconfdir}
%preun
rm /usr/IBM/HTTPServer/conf/php.ini
cp /usr/IBM/HTTPServer/conf/httpd.conf.bak /usr/IBM/HTTPServer/conf/http.conf
mv /usr/IBM/HTTPServer/conf/httpd.conf.bak /usr/IBM/HTTPServer/conf/http.conf
/usr/IBM/HTTPServer/bin/apachectl stop
%postun
/usr/IBM/HTTPServer/bin/apachectl start
%post
if [ "$1" = 2 ] #update to the newer rpm package
echo "updating to the newer rpm..."
mv /usr/IBM/HTTPServer/conf/httpd.conf.bak /usr/IBM/HTTPServer/conf/httpd.conf
fi
cp %{_sysconfdir}/php.ini-recommended /usr/IBM/HTTPServer/conf/php.ini
cp /usr/IBM/HTTPServer/conf/httpd.conf /usr/IBM/HTTPServer/conf/httpd.conf.bak

View File

@ -23,6 +23,7 @@ URL: http://www.conserver.com/
Source: http://www.conserver.com/%{pkg}-%{ver}.tar.gz
Patch: certificate-auth.patch
Patch1: initscript.patch
Patch2: initscript1.patch
BuildRoot: %{_tmppath}/%{pkg}-buildroot
BuildRequires: openssl-devel
Prefix: %{_prefix}
@ -40,6 +41,7 @@ bells and whistles to accentuate that basic functionality.
%setup -q
%patch -p1
%patch1 -p1
%patch2 -p1
%build

View File

@ -0,0 +1,19 @@
--- conserver-8.1.16/contrib/redhat-rpm/conserver.init 2009-10-12 05:06:44.000000000 -0400
+++ conserver-8.1.16/contrib/redhat-rpm/conserver.init.new 2009-10-12 05:08:29.000000000 -0400
@@ -6,6 +6,16 @@
# description: conserver is a serial-port console daemon
# config: /etc/conserver.cf
#
+### BEGIN INIT INFO
+# Provides: conserver
+# Required-Start:
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-stop:
+# Short-Description: conserver
+# Description: Console server
+### END INIT INFO
+
RHPassed()
{
passed

18
stunnel/initscript.patch Normal file
View File

@ -0,0 +1,18 @@
--- stunnel-4.26/tools/stunnel.init.in 2008-09-17 14:53:46.000000000 -0400
+++ stunnel-4.26/tools/stunnel.init.in.new 2009-10-12 05:25:55.000000000 -0400
@@ -1,6 +1,15 @@
#!/bin/sh
# Sample stunnel SysV startup file
# Copyright by Michal Trojnara 2002,2007,2008
+### BEGIN INIT INFO
+# Provides: stunnel
+# Required-Start:
+# Required-Stop:
+# Default-Start: 3 4 5
+# Default-stop: 0 1 2 6
+# Short-Description: stunnel
+# Description: stunnel deamon
+### END INIT INFO
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=@prefix@/bin/stunnel

View File

@ -8,6 +8,7 @@ Release: 1
License: GPL
Group: Applications/Networking
Source: stunnel-%{version}.tar.gz
Patch: initscript.patch
Packager: neeo <neeo@irc.pl>
Requires: openssl >= 0.9.6g
BuildRequires: openssl-devel >= 0.9.6g
@ -26,6 +27,7 @@ changes to the source code.
%prep
%setup -n stunnel-%{version}
%patch -p1
%build