-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcomoonics-bootimage-initscripts-sles11.spec
185 lines (166 loc) · 6.38 KB
/
comoonics-bootimage-initscripts-sles11.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#****h* comoonics-bootimage/comoonics-bootimage.spec
# NAME
# comoonics-bootimage-initscripts.spec
# $id$
# DESCRIPTION
# initscripts for the Comoonics bootimage
# AUTHOR
# Mark Hlawatschek
#
#*******
# @(#)$File:$
#
# Copyright (c) 2001 ATIX GmbH, 2007 ATIX AG.
# Einsteinstrasse 10, 85716 Unterschleissheim, Germany
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# $Id: comoonics-bootimage-initscripts-el4.spec,v 1.8 2008/02/29 09:10:41 mark Exp $
#
##
##
%define _user root
%define CONFIGDIR /%{_sysconfdir}/comoonics
%define APPDIR /opt/atix/%{name}
%define LIBDIR /opt/atix/%{name}
%define ENVDIR /etc/profile.d
%define ENVFILE %{ENVDIR}/%{name}.sh
%define INITDIR /etc/init.d
%define SYSCONFIGDIR /%{_sysconfdir}/sysconfig
%define RELEASENAME Gumpn
%define PRODUCTNAME OpenSharedRoot
%define PRODUCTVERSION 5.0
%define DISTRIBUTIONNAME %{PRODUCTNAME} %{PRODUCTVERSION} (%{RELEASENAME})
%define DISTRIBUTIONBASE %{DISTRIBUTIONNAME} Base
%define DISTRIBUTIONEXTRAS %{DISTRIBUTIONNAME} Extras
%define GROUPPARENT System Environment
%define GROUPCHILDEXTRAS Extras
%define GROUPCHILDBASE Base
%define GROUPCHILDSLES SLES
%define GROUPCHILDSLES10 SLES10
%define GROUPCHILDSLES11 SLES11
%define GROUPCHILDRHEL RHEL
%define GROUPCHILDRHEL4 RHEL4
%define GROUPCHILDRHEL5 RHEL5
%define GROUPCHILDRHEL6 RHEL6
%define GROUPCHILDFEDORA Fedora
Name: comoonics-bootimage-initscripts
Summary: Initscripts used by the OSR cluster environment for Novell SLES10.
Version: 5.0
BuildArch: noarch
Requires: comoonics-bootimage >= 5.0
Requires: comoonics-bootimage-listfiles-sles11
#Conflicts:
Release: 3_sles11
Vendor: ATIX AG
Packager: ATIX AG <http://bugzilla.atix.de>
ExclusiveArch: noarch
URL: http://www.atix.de/
Source: http://www.atix.de/software/downloads/comoonics/comoonics-bootimage-initscripts-%{version}.tar.gz
License: GPL
Group: %{GROUPPARENT}/%{GROUPCHILDBASE}/%{GROUPCHILDSLES11}
Distribution: %{DISTRIBUTIONBASE}
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description
Initscripts used by the OSR cluster environment. These are for Novell SLES11.
%prep
%setup -n comoonics-bootimage-%{version}
%build
%install
install -d -m 755 $RPM_BUILD_ROOT/%{INITDIR}
install -m755 initscripts/bootsr $RPM_BUILD_ROOT/%{INITDIR}/bootsr
install -m755 initscripts/mountcdsls $RPM_BUILD_ROOT/%{INITDIR}/mountcdsls
install -m755 initscripts/halt.local $RPM_BUILD_ROOT/%{INITDIR}/halt.local
%clean
rm -rf %{buildroot}
%postun
%post
echo "Starting postinstall.."
services="bootsr mountcdsls"
echo "Resetting services ($services)"
for service in $services; do
/sbin/chkconfig --del $service &>/dev/null
/sbin/chkconfig --add $service
/sbin/chkconfig $service on
/sbin/chkconfig --list $service
done
services="o2cb"
echo "Disabling services ($services)"
for service in $services; do
/sbin/chkconfig --del $service &> /dev/null
/sbin/chkconfig $service off &> /dev/null
done
/bin/true
%preun
true
%files
%attr(755, root, root) %{INITDIR}/bootsr
%attr(755, root, root) %{INITDIR}/mountcdsls
%attr(755, root, root) %{INITDIR}/halt.local
%changelog
* Tue Feb 14 2012 Marc Grimme <grimme( at )atix.de> 5.0-3
- initscripts/bootsr:
- changed stop order of bootsr to be stopped later
(after clvmd has been stoped).
- removed clean_start (obsolete)
- check_sharedroot now knows of gfs and gfs2
- start: calling clusterfs_init and cc_init independently from root
filesystem and cluster type (different parameters)
- stop: calling clusterfs_init and cc_init independently from
root filesystem and cluster type (different parameters)
* Tue Nov 29 2011 Marc Grimme <grimme ( at )atix.de> - 5.0-2
* initscripts/bootsr: moved inclusion of /etc/init.d/functions and
/etc/rc.status after inclusion of libs. Now all outputs should be seen at
console.
* initscripts/bootsr: - Added call to update the repository from initrd -
Only remount cdsl environment if it is not only in /etc/mtab existant - other
handling fixes with chrootneeded
* Tue Nov 01 2011 Marc Grimme <grimme( at )atix.de> 5.0-1
* Rebase for Release 5.0
* Tue Oct 25 2011 Marc Grimme <grimme( at )atix.de> 1.4-14.sles11
- take bootsr from upstream.
* Fri Aug 05 2011 Marc Grimme <[email protected]> 1.4-13.sles11
- removed dep to SysVInit-comooics (will be found if the filesystem
- comoonics-bootimage-listfiles-<dist>-<filesystem> - rpm).
* Tue Mar 22 2011 Marc Grimme <[email protected]> 1.4-12.sles11
- Rebase
* Tue Feb 22 2011 Marc Grimme <[email protected]> 1.4-11.sles11
- initscripts/rhel4,rhel5,fedora,sles10,sles11/bootsr
- would work without cdsl tools being available
* Tue Feb 09 2011 Marc Grimme <[email protected]> 1.4-10sles11
- initscripts/sles11/halt.local
- moved from link to script calling bash and com-halt.sh.
* Wed Aug 18 2010 Marc Grimme <[email protected]> 1.4-9sles11
- initscripts/rhel4,rhel5,fedora,sles10,sles11/bootsr
- fixed bug #382 where the cdsl.local was not remounted in /etc/mtab on locally installed systems
* Thu Jul 08 2010 Marc Grimme <[email protected]> 1.4-8.sles11
- bootsr uses bash as shell
* Thu Jun 08 2010 Marc Grimme <[email protected]> 1.4-7.sles11
- introduced mountcdsls
* Tue Feb 23 2010 Marc Grimme <[email protected]> 1.4-6.sles11
- more backports with cdsl mounts and enable bootsr
* Tue Feb 23 2010 Marc Grimme <[email protected]> 1.4-5.sles11
- more backports with cdsl mounts and enable bootsr
* Tue Feb 23 2010 Marc Grimme <[email protected]> 1.4-4.sles11
- more backports with cdsl mounts and enable bootsr
* Tue Feb 23 2010 Marc Grimme <[email protected]> 1.4-3.sles11
- Backported bootsr from RHEL5
* Mon Sep 28 2009 Marc Grimme <[email protected]> 1.4-1.sles11
- Finalized new version
- added /etc/init.d/halt.local link instead of using boot.localfs
* Wed Nov 19 2008 Marc Grimme <[email protected]> 1.4-1-sles11
- first revision
# ------
# $Log: comoonics-bootimage-initscripts-el4.spec,v $