Merge lp://staging/~jontai/openvista-gtm-integration/bug358242 into lp://staging/openvista-gtm-integration
- bug358242
- Merge into mainline
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~jontai/openvista-gtm-integration/bug358242 |
Merge into: | lp://staging/openvista-gtm-integration |
Diff against target: | None lines |
To merge this branch: | bzr merge lp://staging/~jontai/openvista-gtm-integration/bug358242 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
jeff.apple | Approve | ||
Review via email: mp+9669@code.staging.launchpad.net |
Commit message
Description of the change
Jon Tai (jontai) wrote : | # |
jeff.apple (jeff-apple) wrote : | # |
In scripts/
119 elif function_exists "log_daemon_msg"; then
120 log_progress_msg "$instance"
121 run_hook "$instance" ZSTART || end_msg=1
Shouldn't line 120 be
120 log_progress_msg "Running startup hooks for $instance"
In other places, it appears the messages are different depending on whether log_daemon_msg is available or not. Not a big deal, but it might be nice to have them be the same. In fact, it might be good to make one function for the scripts that does output and do the switching there, if such a thing is possible.
Notes on building debs that seem "off":
1) Had to copy the GTM source to /tmp/ubuntu manually. It's not obvious that it has to be there.
2) Had an old gtm install in /opt/gtm that I had to ln -s /opt/gtm /tmp/gtm. I guess there's no way around that, though.
3) Had to add a group "gtm" just to build. That seems excessive.
Everything eventually did build and install.
Jon Tai (jontai) wrote : | # |
> In scripts/
> 119 elif function_exists "log_daemon_msg"; then
> 120 log_progress_msg "$instance"
> 121 run_hook "$instance" ZSTART || end_msg=1
>
> Shouldn't line 120 be
> 120 log_progress_msg "Running startup hooks for $instance"
No. The way it works on Debian/Ubuntu is that you print the "main" thing first, then you print additional sub-components as you do them.
The example that the Debian Policy Manual gives in Section 9.4 is
echo -n "Starting remote file system services:"
echo -n " nfsd"; start-stop-daemon --start --quiet nfsd
echo -n " mountd"; start-stop-daemon --start --quiet mountd
echo -n " ugidd"; start-stop-daemon --start --quiet ugidd
echo "."
http://
We're not using echo directly, but it's the same idea.
> In other places, it appears the messages are different depending on whether
> log_daemon_msg is available or not. Not a big deal, but it might be nice to
> have them be the same.
Again, this is because it's a little different in each of the distros.
> In fact, it might be good to make one function for the
> scripts that does output and do the switching there, if such a thing is
> possible.
I considered this, but it's not just the textual message that is different, but the structure of when to log is different, too. I don't know how to encapsulate that cleanly in a function.
> Notes on building debs that seem "off":
> 1) Had to copy the GTM source to /tmp/ubuntu manually. It's not obvious that
> it has to be there.
> 2) Had an old gtm install in /opt/gtm that I had to ln -s /opt/gtm /tmp/gtm. I
> guess there's no way around that, though.
> 3) Had to add a group "gtm" just to build. That seems excessive.
Yea, these are known issues. Building the RPMs are just as painful. This is mainly because I haven't yet figured out how to install GT.M in a chroot -- I have to install it to the real, final, destination, otherwise the .o files have the wrong path to the corresponding .m files embedded in them.
The next step is to somehow clean up the package building process. For now, I'm happy enough with getting packages that are built from source that cleanly install and uninstall.
> Everything eventually did build and install.
OK that's good. I'm going to merge this.
Preview Diff
1 | === added file 'debuild.sh' | |||
2 | --- debuild.sh 1970-01-01 00:00:00 +0000 | |||
3 | +++ debuild.sh 2009-07-30 20:45:36 +0000 | |||
4 | @@ -0,0 +1,59 @@ | |||
5 | 1 | #!/bin/sh | ||
6 | 2 | |||
7 | 3 | # build Debian package(s) from the files in this directory | ||
8 | 4 | # | ||
9 | 5 | # specify the name of a package to build as the first argument, or no arguments | ||
10 | 6 | # to build all packages | ||
11 | 7 | |||
12 | 8 | dir1=`pwd` | ||
13 | 9 | dir2=`dirname "$0"` | ||
14 | 10 | dir=`cd "$dir1/$dir2"; pwd` | ||
15 | 11 | |||
16 | 12 | if [ -z "$1" ]; then | ||
17 | 13 | packages="" | ||
18 | 14 | for package in "$dir/packages/deb/"*; do | ||
19 | 15 | package=`basename "$package"` | ||
20 | 16 | packages="$packages $package" | ||
21 | 17 | done | ||
22 | 18 | else | ||
23 | 19 | if [ -d "$dir/packages/deb/$1" ]; then | ||
24 | 20 | packages=$1 | ||
25 | 21 | else | ||
26 | 22 | echo "debuild.sh: $1: No such package in '$dir/packages/deb'" >&2 | ||
27 | 23 | exit 3 | ||
28 | 24 | fi | ||
29 | 25 | fi | ||
30 | 26 | |||
31 | 27 | mkdir -p /tmp/ubuntu | ||
32 | 28 | |||
33 | 29 | for package in $packages; do | ||
34 | 30 | version=`head -n1 "packages/deb/$package/debian/changelog" | awk '{ print $2 }' | sed 's/[()]//g' | sed 's/-[^\-]\+$//'` | ||
35 | 31 | |||
36 | 32 | case $package in | ||
37 | 33 | openvista-utils|openvista-libs*) | ||
38 | 34 | # create source tarabll | ||
39 | 35 | rm -rf "/tmp/ubuntu/${package}-$version" | ||
40 | 36 | cp -Rp "$dir" "/tmp/ubuntu/${package}-$version" | ||
41 | 37 | rm -rf "/tmp/ubuntu/${package}-$version/.bzr" | ||
42 | 38 | rm -f "/tmp/ubuntu/${package}_${version}.orig.tar.gz" | ||
43 | 39 | tar -c --gzip -f "/tmp/ubuntu/${package}_${version}.orig.tar.gz" -C /tmp/ubuntu "${package}-$version" | ||
44 | 40 | cp -Rp "/tmp/ubuntu/${package}-$version/packages/deb/$package/debian" "/tmp/ubuntu/${package}-$version/" | ||
45 | 41 | |||
46 | 42 | ( cd "/tmp/ubuntu/${package}-$version" && debuild ) | ||
47 | 43 | ;; | ||
48 | 44 | fis-gtm*) | ||
49 | 45 | # rename source tarball | ||
50 | 46 | upstream_version=`echo "$version" | sed 's/\.//'` | ||
51 | 47 | cp -f "/tmp/ubuntu/gtm_V${upstream_version}_linux_i686_src.tar.gz" "/tmp/ubuntu/${package}_${version}.orig.tar.gz" | ||
52 | 48 | |||
53 | 49 | # unpack source tarball | ||
54 | 50 | rm -rf "/tmp/ubuntu/${package}-${version}" | ||
55 | 51 | mkdir "/tmp/ubuntu/${package}-${version}" | ||
56 | 52 | ( cd "/tmp/ubuntu/${package}-${version}" && tar -xzf "/tmp/ubuntu/${package}_${version}.orig.tar.gz" ) | ||
57 | 53 | cp -Rp "$dir/packages/deb/${package}/debian" "/tmp/ubuntu/${package}-${version}/" | ||
58 | 54 | |||
59 | 55 | ( cd "/tmp/ubuntu/${package}-$version" && debuild -r sudo ) | ||
60 | 56 | ;; | ||
61 | 57 | esac | ||
62 | 58 | done | ||
63 | 59 | |||
64 | 0 | 60 | ||
65 | === modified file 'docs/man1/ovbackup.1' | |||
66 | --- docs/man1/ovbackup.1 2009-04-21 20:45:44 +0000 | |||
67 | +++ docs/man1/ovbackup.1 2009-07-09 23:48:40 +0000 | |||
68 | @@ -1,4 +1,4 @@ | |||
70 | 1 | .TH ovbackup 1 "18 Apr 2009" Linux "User Manuals" | 1 | .TH ovbackup 1 "9 Jul 2009" Linux "User Manuals" |
71 | 2 | .SH NAME | 2 | .SH NAME |
72 | 3 | ovbackup \- backs up routines and globals of an OpenVista instance | 3 | ovbackup \- backs up routines and globals of an OpenVista instance |
73 | 4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
74 | @@ -63,4 +63,4 @@ | |||
75 | 63 | Jonathan Tai <jon.tai@medsphere.com> | 63 | Jonathan Tai <jon.tai@medsphere.com> |
76 | 64 | .SH "SEE ALSO" | 64 | .SH "SEE ALSO" |
77 | 65 | .BR ovpurgejournals (1) | 65 | .BR ovpurgejournals (1) |
79 | 66 | .BR ovrestore (1) | 66 | .BR ovrestore (8) |
80 | 67 | 67 | ||
81 | === modified file 'docs/man1/ovimport.1' | |||
82 | --- docs/man1/ovimport.1 2009-04-28 01:22:21 +0000 | |||
83 | +++ docs/man1/ovimport.1 2009-07-09 23:48:40 +0000 | |||
84 | @@ -1,4 +1,4 @@ | |||
86 | 1 | .TH ovimport 1 "20 Apr 2009" Linux "User Manuals" | 1 | .TH ovimport 1 "9 Jul 2009" Linux "User Manuals" |
87 | 2 | .SH NAME | 2 | .SH NAME |
88 | 3 | ovimport \- imports routines and globals into a new OpenVista instance | 3 | ovimport \- imports routines and globals into a new OpenVista instance |
89 | 4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
90 | @@ -74,4 +74,4 @@ | |||
91 | 74 | .SH AUTHOR | 74 | .SH AUTHOR |
92 | 75 | Jonathan Tai <jon.tai@medsphere.com> | 75 | Jonathan Tai <jon.tai@medsphere.com> |
93 | 76 | .SH "SEE ALSO" | 76 | .SH "SEE ALSO" |
95 | 77 | .BR ovrestore (1) | 77 | .BR ovrestore (8) |
96 | 78 | 78 | ||
97 | === added directory 'docs/man8' | |||
98 | === added file 'docs/man8/gtmsignal.8' | |||
99 | --- docs/man8/gtmsignal.8 1970-01-01 00:00:00 +0000 | |||
100 | +++ docs/man8/gtmsignal.8 2009-08-03 19:22:13 +0000 | |||
101 | @@ -0,0 +1,50 @@ | |||
102 | 1 | .TH gtmsignal 8 "3 Aug 2009" Linux "User Manuals" | ||
103 | 2 | .SH NAME | ||
104 | 3 | gtmsignal \- send mupip STOP or INTRPT to GT.M processes | ||
105 | 4 | .SH SYNOPSIS | ||
106 | 5 | .B gtmsignal [-a|--all] [-s|--stop] [-h|--help] [-q|--quiet] | ||
107 | 6 | .I \fR[\fIpid\fR...] | ||
108 | 7 | .SH DESCRIPTION | ||
109 | 8 | .B mupip | ||
110 | 9 | can be used to send signals to other GT.M processes if the user calling mupip | ||
111 | 10 | also owns the target process (the one receiving the signal), or if the user | ||
112 | 11 | calling mupip is root. Sending signals as a non-root user to processes owned | ||
113 | 12 | by a different user is prohibited by Linux. | ||
114 | 13 | .PP | ||
115 | 14 | .B gtmsignal | ||
116 | 15 | is a suid wrapper around | ||
117 | 16 | .B mupip | ||
118 | 17 | that allow users in the gtm group to bypass this restriction when sending | ||
119 | 18 | signals to GT.M processes, i.e., any user in the gtm group can call | ||
120 | 19 | .B gtmsignal | ||
121 | 20 | to send a signal to any GT.M process, regardless of the target GT.M process' | ||
122 | 21 | owner. | ||
123 | 22 | .PP | ||
124 | 23 | .B gtmsignal | ||
125 | 24 | relies on mupip to do the actual sending of signals, and will only send signals | ||
126 | 25 | to GT.M processes currently executing the | ||
127 | 26 | .B mumps | ||
128 | 27 | binary installed in the same directory as | ||
129 | 28 | .B gtmsignal\fP. | ||
130 | 29 | .SH OPTIONS | ||
131 | 30 | .TP | ||
132 | 31 | \fB\-a\fR, \fB\-\-all\fR | ||
133 | 32 | send signal to all GT.M processes | ||
134 | 33 | .TP | ||
135 | 34 | \fB\-s\fR, \fB\-\-stop\fR | ||
136 | 35 | send STOP instead of INTRPT | ||
137 | 36 | .TP | ||
138 | 37 | \fB\-h\fR, \fB\-\-help\fR | ||
139 | 38 | display help text and exit | ||
140 | 39 | .TP | ||
141 | 40 | \fB\-q\fR, \fB\-\-quiet\fR | ||
142 | 41 | quiet; do not display warnings | ||
143 | 42 | .SH "REPORTING BUGS" | ||
144 | 43 | Please report any bugs you encounter at | ||
145 | 44 | .PP | ||
146 | 45 | https://bugs.launchpad.net/openvista-gtm-integration | ||
147 | 46 | .SH AUTHOR | ||
148 | 47 | .SS "gtmsignal" | ||
149 | 48 | Jeff Apple <jeff.apple@medsphere.com> | ||
150 | 49 | .SS "This manual page" | ||
151 | 50 | Jonathan Tai <jon.tai@medsphere.com> | ||
152 | 0 | 51 | ||
153 | === added file 'docs/man8/ovauth.8' | |||
154 | --- docs/man8/ovauth.8 1970-01-01 00:00:00 +0000 | |||
155 | +++ docs/man8/ovauth.8 2009-07-10 00:05:19 +0000 | |||
156 | @@ -0,0 +1,48 @@ | |||
157 | 1 | .TH ovauth 8 "9 Jul 2009" Linux "User Manuals" | ||
158 | 2 | .SH NAME | ||
159 | 3 | ovauth \- helper application for OpenVista to verify PAM credentials | ||
160 | 4 | .SH SYNOPSIS | ||
161 | 5 | .B ovauth | ||
162 | 6 | .I user | ||
163 | 7 | .SH DESCRIPTION | ||
164 | 8 | .B ovauth | ||
165 | 9 | can be called by the | ||
166 | 10 | .B openvista | ||
167 | 11 | tied account to verify the PAM credentials of another user in the | ||
168 | 12 | .B openvista | ||
169 | 13 | group. If | ||
170 | 14 | .B ovauth | ||
171 | 15 | is run by a user other than the | ||
172 | 16 | .B openvista | ||
173 | 17 | user, or if | ||
174 | 18 | .B ovauth | ||
175 | 19 | is run with a TTY, | ||
176 | 20 | .B ovauth | ||
177 | 21 | will return an error. Similarly, if the | ||
178 | 22 | .B openvista | ||
179 | 23 | user attempts to verify the credentials of a user who is not in the | ||
180 | 24 | .B openvista | ||
181 | 25 | group, | ||
182 | 26 | .B ovauth | ||
183 | 27 | will return an error. | ||
184 | 28 | .PP | ||
185 | 29 | .B ovauth | ||
186 | 30 | is invoked with a single argument - the username of the user whose credentials | ||
187 | 31 | are being verified. The user's potential password is read from standard input. | ||
188 | 32 | If the supplied password is valid, | ||
189 | 33 | .B ovauth | ||
190 | 34 | prints "OK" and exits 0. Otherwise, | ||
191 | 35 | .B ovauth | ||
192 | 36 | prints "Authentication failure" and exits 1. | ||
193 | 37 | .SH "REPORTING BUGS" | ||
194 | 38 | Please report any bugs you encounter at | ||
195 | 39 | .PP | ||
196 | 40 | https://bugs.launchpad.net/openvista-gtm-integration | ||
197 | 41 | .SH AUTHOR | ||
198 | 42 | .SS "ovauth" | ||
199 | 43 | Jeff Apple <jeff.apple@medsphere.com> | ||
200 | 44 | .SS "This manual page" | ||
201 | 45 | Jonathan Tai <jon.tai@medsphere.com> | ||
202 | 46 | .SH "SEE ALSO" | ||
203 | 47 | .BR ovtied (1) | ||
204 | 48 | .BR pam (3) | ||
205 | 0 | 49 | ||
206 | === renamed file 'docs/man1/ovinstanceadd.1' => 'docs/man8/ovinstanceadd.8' | |||
207 | --- docs/man1/ovinstanceadd.1 2009-04-21 23:38:53 +0000 | |||
208 | +++ docs/man8/ovinstanceadd.8 2009-07-09 23:48:40 +0000 | |||
209 | @@ -1,4 +1,4 @@ | |||
211 | 1 | .TH ovinstanceadd 1 "18 Apr 2009" Linux "User Manuals" | 1 | .TH ovinstanceadd 8 "9 Jul 2009" Linux "User Manuals" |
212 | 2 | .SH NAME | 2 | .SH NAME |
213 | 3 | ovinstanceadd \- create a new OpenVista instance | 3 | ovinstanceadd \- create a new OpenVista instance |
214 | 4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
215 | @@ -25,4 +25,4 @@ | |||
216 | 25 | .SH AUTHOR | 25 | .SH AUTHOR |
217 | 26 | Jonathan Tai <jon.tai@medsphere.com> | 26 | Jonathan Tai <jon.tai@medsphere.com> |
218 | 27 | .SH "SEE ALSO" | 27 | .SH "SEE ALSO" |
220 | 28 | .BR ovinstancedel (1) | 28 | .BR ovinstancedel (8) |
221 | 29 | 29 | ||
222 | === renamed file 'docs/man1/ovinstancedel.1' => 'docs/man8/ovinstancedel.8' | |||
223 | --- docs/man1/ovinstancedel.1 2009-04-21 23:38:53 +0000 | |||
224 | +++ docs/man8/ovinstancedel.8 2009-07-09 23:48:40 +0000 | |||
225 | @@ -1,4 +1,4 @@ | |||
227 | 1 | .TH ovinstancedel 1 "18 Apr 2009" Linux "User Manuals" | 1 | .TH ovinstancedel 8 "9 Jul 2009" Linux "User Manuals" |
228 | 2 | .SH NAME | 2 | .SH NAME |
229 | 3 | ovinstancedel \- delete an OpenVista instance | 3 | ovinstancedel \- delete an OpenVista instance |
230 | 4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
231 | @@ -26,4 +26,4 @@ | |||
232 | 26 | .SH AUTHOR | 26 | .SH AUTHOR |
233 | 27 | Jonathan Tai <jon.tai@medsphere.com> | 27 | Jonathan Tai <jon.tai@medsphere.com> |
234 | 28 | .SH "SEE ALSO" | 28 | .SH "SEE ALSO" |
236 | 29 | .BR ovinstanceadd (1) | 29 | .BR ovinstanceadd (8) |
237 | 30 | 30 | ||
238 | === renamed file 'docs/man1/ovrestore.1' => 'docs/man8/ovrestore.8' | |||
239 | --- docs/man1/ovrestore.1 2009-04-21 20:45:44 +0000 | |||
240 | +++ docs/man8/ovrestore.8 2009-07-09 23:48:40 +0000 | |||
241 | @@ -1,4 +1,4 @@ | |||
243 | 1 | .TH ovrestore 1 "18 Apr 2009" Linux "User Manuals" | 1 | .TH ovrestore 8 "9 Jul 2009" Linux "User Manuals" |
244 | 2 | .SH NAME | 2 | .SH NAME |
245 | 3 | ovrestore \- restores a backup file into an OpenVista instance | 3 | ovrestore \- restores a backup file into an OpenVista instance |
246 | 4 | .SH SYNOPSIS | 4 | .SH SYNOPSIS |
247 | 5 | 5 | ||
248 | === added directory 'packages/deb' | |||
249 | === added directory 'packages/deb/fis-gtm-5.3004' | |||
250 | === added directory 'packages/deb/fis-gtm-5.3004/debian' | |||
251 | === added file 'packages/deb/fis-gtm-5.3004/debian/changelog' | |||
252 | --- packages/deb/fis-gtm-5.3004/debian/changelog 1970-01-01 00:00:00 +0000 | |||
253 | +++ packages/deb/fis-gtm-5.3004/debian/changelog 2009-07-29 12:27:28 +0000 | |||
254 | @@ -0,0 +1,5 @@ | |||
255 | 1 | fis-gtm-5.3004 (5.3004-0ubuntu1) jaunty; urgency=low | ||
256 | 2 | |||
257 | 3 | * Initial Ubuntu package (Closes: #358242) | ||
258 | 4 | |||
259 | 5 | -- Jonathan Tai <jon.tai@medsphere.com> Fri, 24 Jul 2009 00:34:40 -0700 | ||
260 | 0 | 6 | ||
261 | === added file 'packages/deb/fis-gtm-5.3004/debian/compat' | |||
262 | --- packages/deb/fis-gtm-5.3004/debian/compat 1970-01-01 00:00:00 +0000 | |||
263 | +++ packages/deb/fis-gtm-5.3004/debian/compat 2009-07-29 12:27:28 +0000 | |||
264 | @@ -0,0 +1,1 @@ | |||
265 | 1 | 7 | ||
266 | 0 | 2 | ||
267 | === added file 'packages/deb/fis-gtm-5.3004/debian/control' | |||
268 | --- packages/deb/fis-gtm-5.3004/debian/control 1970-01-01 00:00:00 +0000 | |||
269 | +++ packages/deb/fis-gtm-5.3004/debian/control 2009-07-30 22:23:13 +0000 | |||
270 | @@ -0,0 +1,17 @@ | |||
271 | 1 | Source: fis-gtm-5.3004 | ||
272 | 2 | Section: misc | ||
273 | 3 | Priority: optional | ||
274 | 4 | Maintainer: Jonathan Tai <jon.tai@medsphere.com> | ||
275 | 5 | Build-Depends: debhelper (>= 7), dpatch, tcsh, gcc-4.1, libicu-dev (>= 3.8), zlib1g-dev, libncurses5-dev, libgpgme11-dev, libgpg-error-dev, libgcrypt11-dev | ||
276 | 6 | Standards-Version: 3.8.0 | ||
277 | 7 | Homepage: http://www.fidelityinfoservices.com/FNFIS/Markets/NonFinancialIndustries/Healthcare/GTM/ | ||
278 | 8 | |||
279 | 9 | Package: fis-gtm-5.3004 | ||
280 | 10 | Architecture: any | ||
281 | 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, libicu38, zlib1g, libncurses5, libgpgme11, libgpg-error0, libgcrypt11 | ||
282 | 12 | Suggests: ksh | ||
283 | 13 | Description: High end TP schemaless database | ||
284 | 14 | GT.M is a vetted, industrial strength, transaction processing application | ||
285 | 15 | platform consisting of a schema-less database engine optimized for extreme | ||
286 | 16 | transaction processing throughput & business continuity plus a compiler for the | ||
287 | 17 | MUMPS language. | ||
288 | 0 | 18 | ||
289 | === added file 'packages/deb/fis-gtm-5.3004/debian/copyright' | |||
290 | --- packages/deb/fis-gtm-5.3004/debian/copyright 1970-01-01 00:00:00 +0000 | |||
291 | +++ packages/deb/fis-gtm-5.3004/debian/copyright 2009-07-29 12:27:28 +0000 | |||
292 | @@ -0,0 +1,21 @@ | |||
293 | 1 | This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on | ||
294 | 2 | Fri, 24 Jul 2009 00:34:40 -0700. | ||
295 | 3 | |||
296 | 4 | It was downloaded from <http://www.fidelityinfoservices.com/FNFIS/Markets/NonFinancialIndustries/Healthcare/GTM/> | ||
297 | 5 | |||
298 | 6 | Upstream Author: | ||
299 | 7 | |||
300 | 8 | Fidelity Information Services, Inc. | ||
301 | 9 | |||
302 | 10 | Copyright: | ||
303 | 11 | |||
304 | 12 | Copyright (C) 2009 Fidelity Information Services, Inc. | ||
305 | 13 | |||
306 | 14 | License: | ||
307 | 15 | |||
308 | 16 | GT.M for selected platforms, including GNU/Linux on the popular x86 | ||
309 | 17 | architecture, can be downloaded under the terms of the Affero GNU General | ||
310 | 18 | Public License (AGPL) version 3. | ||
311 | 19 | |||
312 | 20 | The Debian packaging is copyright 2009, Medsphere Systems Corporation and | ||
313 | 21 | is licensed under the AGPL. | ||
314 | 0 | 22 | ||
315 | === added file 'packages/deb/fis-gtm-5.3004/debian/dirs' | |||
316 | --- packages/deb/fis-gtm-5.3004/debian/dirs 1970-01-01 00:00:00 +0000 | |||
317 | +++ packages/deb/fis-gtm-5.3004/debian/dirs 2009-07-29 12:27:28 +0000 | |||
318 | @@ -0,0 +1,1 @@ | |||
319 | 1 | opt/lsb-gtm | ||
320 | 0 | 2 | ||
321 | === added file 'packages/deb/fis-gtm-5.3004/debian/docs' | |||
322 | --- packages/deb/fis-gtm-5.3004/debian/docs 1970-01-01 00:00:00 +0000 | |||
323 | +++ packages/deb/fis-gtm-5.3004/debian/docs 2009-07-30 20:45:36 +0000 | |||
324 | @@ -0,0 +1,1 @@ | |||
325 | 1 | COPYING | ||
326 | 0 | 2 | ||
327 | === added directory 'packages/deb/fis-gtm-5.3004/debian/patches' | |||
328 | === added file 'packages/deb/fis-gtm-5.3004/debian/patches/00list' | |||
329 | --- packages/deb/fis-gtm-5.3004/debian/patches/00list 1970-01-01 00:00:00 +0000 | |||
330 | +++ packages/deb/fis-gtm-5.3004/debian/patches/00list 2009-07-29 12:27:28 +0000 | |||
331 | @@ -0,0 +1,2 @@ | |||
332 | 1 | 01-configurable-compiler.dpatch | ||
333 | 2 | 02-configure-fix.dpatch | ||
334 | 0 | 3 | ||
335 | === added file 'packages/deb/fis-gtm-5.3004/debian/patches/01-configurable-compiler.dpatch' | |||
336 | --- packages/deb/fis-gtm-5.3004/debian/patches/01-configurable-compiler.dpatch 1970-01-01 00:00:00 +0000 | |||
337 | +++ packages/deb/fis-gtm-5.3004/debian/patches/01-configurable-compiler.dpatch 2009-07-29 12:27:28 +0000 | |||
338 | @@ -0,0 +1,19 @@ | |||
339 | 1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
340 | 2 | ## 01-configurable-compiler.dpatch by <jon.tai@medsphere.com> | ||
341 | 3 | ## | ||
342 | 4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
343 | 5 | ## DP: No description. | ||
344 | 6 | |||
345 | 7 | @DPATCH@ | ||
346 | 8 | diff -urNad fis-gtm-5.3004-5.3004~/sr_linux/gtm_env_sp.mk fis-gtm-5.3004-5.3004/sr_linux/gtm_env_sp.mk | ||
347 | 9 | --- fis-gtm-5.3004-5.3004~/sr_linux/gtm_env_sp.mk 2009-06-08 05:08:10.000000000 -0400 | ||
348 | 10 | +++ fis-gtm-5.3004-5.3004/sr_linux/gtm_env_sp.mk 2009-07-28 22:22:03.000000000 -0400 | ||
349 | 11 | @@ -57,7 +57,7 @@ | ||
350 | 12 | gt_as_src_suffix=.s | ||
351 | 13 | |||
352 | 14 | # C compiler options | ||
353 | 15 | -gt_cc_compiler=gcc | ||
354 | 16 | +gt_cc_compiler?=gcc | ||
355 | 17 | |||
356 | 18 | # Do not lookup the source directory before include directories specified by -I. | ||
357 | 19 | # gcc complains about -I- being obsolete, but using -iquote cause build errors for gcc and as - ABS 2008.12.09 | ||
358 | 0 | 20 | ||
359 | === added file 'packages/deb/fis-gtm-5.3004/debian/patches/02-configure-fix.dpatch' | |||
360 | --- packages/deb/fis-gtm-5.3004/debian/patches/02-configure-fix.dpatch 1970-01-01 00:00:00 +0000 | |||
361 | +++ packages/deb/fis-gtm-5.3004/debian/patches/02-configure-fix.dpatch 2009-07-29 12:27:28 +0000 | |||
362 | @@ -0,0 +1,31 @@ | |||
363 | 1 | #! /bin/sh /usr/share/dpatch/dpatch-run | ||
364 | 2 | ## 02-configure-fix.dpatch by <jon.tai@medsphere.com> | ||
365 | 3 | ## | ||
366 | 4 | ## All lines beginning with `## DP:' are a description of the patch. | ||
367 | 5 | ## DP: No description. | ||
368 | 6 | |||
369 | 7 | @DPATCH@ | ||
370 | 8 | diff -urNad fis-gtm-5.3004-5.3004~/sr_unix/configure.gtc fis-gtm-5.3004-5.3004/sr_unix/configure.gtc | ||
371 | 9 | --- fis-gtm-5.3004-5.3004~/sr_unix/configure.gtc 2009-07-10 11:31:45.000000000 -0400 | ||
372 | 10 | +++ fis-gtm-5.3004-5.3004/sr_unix/configure.gtc 2009-07-28 22:27:19.000000000 -0400 | ||
373 | 11 | @@ -208,9 +208,9 @@ | ||
374 | 12 | is64bit_gtm=`file mumps | grep "64-bit" | wc -l` | ||
375 | 13 | fi | ||
376 | 14 | if [ $is64bit_gtm -eq 1 ] ; then | ||
377 | 15 | - library_path="/usr/local/lib64 /usr/local/lib /usr/lib /usr/lib32" | ||
378 | 16 | + library_path="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib /lib64 /lib" | ||
379 | 17 | else | ||
380 | 18 | - library_path="/usr/local/lib /usr/lib /usr/lib32" | ||
381 | 19 | + library_path="/usr/local/lib32 /usr/local/lib /usr/lib32 /usr/lib /lib32 /lib" | ||
382 | 20 | fi | ||
383 | 21 | $echo "Should unicode support be installed? (y or n) \c" | ||
384 | 22 | read resp | ||
385 | 23 | @@ -303,7 +303,7 @@ | ||
386 | 24 | fi | ||
387 | 25 | done | ||
388 | 26 | if [ "$found_icu" -eq 0 ] ; then | ||
389 | 27 | - if [ $majmin != "" ] ; then | ||
390 | 28 | + if [ "$majmin" != "" ] ; then | ||
391 | 29 | echo "WARNING: ICU version $gtm_icu_version not found. Not installing Unicode support." | ||
392 | 30 | else | ||
393 | 31 | echo "WARNING: Default ICU version not found. Not installing Unicode support." | ||
394 | 0 | 32 | ||
395 | === added file 'packages/deb/fis-gtm-5.3004/debian/patches/99-noninteractive-configure.patch' | |||
396 | --- packages/deb/fis-gtm-5.3004/debian/patches/99-noninteractive-configure.patch 1970-01-01 00:00:00 +0000 | |||
397 | +++ packages/deb/fis-gtm-5.3004/debian/patches/99-noninteractive-configure.patch 2009-08-01 07:06:06 +0000 | |||
398 | @@ -0,0 +1,78 @@ | |||
399 | 1 | --- configure 2009-07-16 15:26:02.000000000 -0700 | ||
400 | 2 | +++ configure 2009-07-16 15:28:00.000000000 -0700 | ||
401 | 3 | @@ -112,7 +112,7 @@ | ||
402 | 4 | # create temporary file to test for valid user and group names | ||
403 | 5 | touch tmp_owngrp | ||
404 | 6 | $echo "What account should own the files? (bin) \c" | ||
405 | 7 | -read resp | ||
406 | 8 | +resp="" | ||
407 | 9 | if [ "$resp" = "" ] ; then | ||
408 | 10 | owner="bin" | ||
409 | 11 | else | ||
410 | 12 | @@ -126,10 +126,10 @@ | ||
411 | 13 | fi | ||
412 | 14 | |||
413 | 15 | $echo "Should execution of GT.M to be restricted to a group? (y or n) \c" | ||
414 | 16 | -read resp | ||
415 | 17 | +resp="y" | ||
416 | 18 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then | ||
417 | 19 | $echo "Enter group name? \c" | ||
418 | 20 | - read group | ||
419 | 21 | + group="bin" | ||
420 | 22 | if [ "$group" != "" ] ; then | ||
421 | 23 | chgrp $group tmp_owngrp 2> /dev/null | ||
422 | 24 | if [ 1 = "$?" ] ; then | ||
423 | 25 | @@ -145,7 +145,7 @@ | ||
424 | 26 | rm tmp_owngrp | ||
425 | 27 | |||
426 | 28 | $echo "In what directory should GT.M be installed? \c" | ||
427 | 29 | -read gtmdist | ||
428 | 30 | +gtmdist="@GTM_DIST@" | ||
429 | 31 | |||
430 | 32 | # if gtmdist is relative then need to make it absolute | ||
431 | 33 | |||
432 | 34 | @@ -171,7 +171,7 @@ | ||
433 | 35 | $echo "Directory $gtmdist does not exist. Do you wish to create it as part of" | ||
434 | 36 | $echo "this installation? (y or n) \c" | ||
435 | 37 | |||
436 | 38 | - read resp | ||
437 | 39 | + resp="y" | ||
438 | 40 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then | ||
439 | 41 | mkdir -p $gtmdist | ||
440 | 42 | chmod 0755 $gtmdist | ||
441 | 43 | @@ -213,14 +213,14 @@ | ||
442 | 44 | library_path="/usr/local/lib32 /usr/local/lib /usr/lib32 /usr/lib /lib32 /lib" | ||
443 | 45 | fi | ||
444 | 46 | $echo "Should unicode support be installed? (y or n) \c" | ||
445 | 47 | - read resp | ||
446 | 48 | + resp="y" | ||
447 | 49 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then | ||
448 | 50 | would_like_utf8=1 | ||
449 | 51 | $echo "Should an ICU version other than the default be used? (y or n) \c" | ||
450 | 52 | - read resp | ||
451 | 53 | + resp="y" | ||
452 | 54 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then | ||
453 | 55 | $echo "Enter ICU version (at least ICU version 3.6 is required. Enter as <minor-ver>.<major-ver>): \c" | ||
454 | 56 | - read gtm_icu_version | ||
455 | 57 | + gtm_icu_version="@GTM_ICU_VERSION@" | ||
456 | 58 | icu_ver=`$echo $gtm_icu_version | sed 's/\.//'` | ||
457 | 59 | majmin=`$echo $icu_ver | cut -f 1 -d "."` | ||
458 | 60 | if [ "$majmin" -lt "36" ] ; then | ||
459 | 61 | @@ -567,7 +567,7 @@ | ||
460 | 62 | $echo "only the uppercase versions of the files." | ||
461 | 63 | $echo "" | ||
462 | 64 | $echo "Do you want uppercase and lowercase versions of the MUMPS routines? (y or n)\c" | ||
463 | 65 | -read resp | ||
464 | 66 | +resp="n" | ||
465 | 67 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then | ||
466 | 68 | $echo "" | ||
467 | 69 | $echo "Creating lowercase versions of the MUMPS routines." | ||
468 | 70 | @@ -768,7 +768,7 @@ | ||
469 | 71 | $echo "" | ||
470 | 72 | $echo "Installation completed. Would you like all the temporary files" | ||
471 | 73 | $echo "removed from this directory? (y or n) \c" | ||
472 | 74 | -read resp | ||
473 | 75 | +resp="y" | ||
474 | 76 | |||
475 | 77 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then | ||
476 | 78 | \rm -rf $binaries $pathmods $rscripts $nscripts $dirs configure \ | ||
477 | 0 | 79 | ||
478 | === added file 'packages/deb/fis-gtm-5.3004/debian/postinst' | |||
479 | --- packages/deb/fis-gtm-5.3004/debian/postinst 1970-01-01 00:00:00 +0000 | |||
480 | +++ packages/deb/fis-gtm-5.3004/debian/postinst 2009-08-01 19:52:55 +0000 | |||
481 | @@ -0,0 +1,56 @@ | |||
482 | 1 | #!/bin/sh | ||
483 | 2 | # postinst script for fis-gtm-5.3004 | ||
484 | 3 | # | ||
485 | 4 | # see: dh_installdeb(1) | ||
486 | 5 | |||
487 | 6 | set -e | ||
488 | 7 | |||
489 | 8 | # summary of how this script can be called: | ||
490 | 9 | # * <postinst> `configure' <most-recently-configured-version> | ||
491 | 10 | # * <old-postinst> `abort-upgrade' <new version> | ||
492 | 11 | # * <conflictor's-postinst> `abort-remove' `in-favour' <package> | ||
493 | 12 | # <new-version> | ||
494 | 13 | # * <postinst> `abort-remove' | ||
495 | 14 | # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | ||
496 | 15 | # <failed-install-package> <version> `removing' | ||
497 | 16 | # <conflicting-package> <version> | ||
498 | 17 | # for details, see http://www.debian.org/doc/debian-policy/ or | ||
499 | 18 | # the debian-policy package | ||
500 | 19 | |||
501 | 20 | |||
502 | 21 | case "$1" in | ||
503 | 22 | configure) | ||
504 | 23 | if ! getent group gtm >/dev/null; then | ||
505 | 24 | addgroup --quiet gtm | ||
506 | 25 | fi | ||
507 | 26 | |||
508 | 27 | if [ `dpkg --print-architecture` = "amd64" ]; then | ||
509 | 28 | gtm_dist=/opt/lsb-gtm/V5.3-004_x86_64 | ||
510 | 29 | else | ||
511 | 30 | gtm_dist=/opt/lsb-gtm/V5.3-004_i686 | ||
512 | 31 | fi | ||
513 | 32 | |||
514 | 33 | suid_files=`find $gtm_dist -perm /4000` | ||
515 | 34 | |||
516 | 35 | chgrp -R gtm $gtm_dist | ||
517 | 36 | chgrp -R bin $gtm_dist/gtmsecshrdir | ||
518 | 37 | |||
519 | 38 | # the chgrp commands above may cause files to lose the setuid bit; re-add it here just in case | ||
520 | 39 | for file in $suid_files; do chmod u+s $file; done | ||
521 | 40 | ;; | ||
522 | 41 | |||
523 | 42 | abort-upgrade|abort-remove|abort-deconfigure) | ||
524 | 43 | ;; | ||
525 | 44 | |||
526 | 45 | *) | ||
527 | 46 | echo "postinst called with unknown argument \`$1'" >&2 | ||
528 | 47 | exit 1 | ||
529 | 48 | ;; | ||
530 | 49 | esac | ||
531 | 50 | |||
532 | 51 | # dh_installdeb will replace this with shell code automatically | ||
533 | 52 | # generated by other debhelper scripts. | ||
534 | 53 | |||
535 | 54 | #DEBHELPER# | ||
536 | 55 | |||
537 | 56 | exit 0 | ||
538 | 0 | 57 | ||
539 | === added file 'packages/deb/fis-gtm-5.3004/debian/postrm' | |||
540 | --- packages/deb/fis-gtm-5.3004/debian/postrm 1970-01-01 00:00:00 +0000 | |||
541 | +++ packages/deb/fis-gtm-5.3004/debian/postrm 2009-08-01 07:06:06 +0000 | |||
542 | @@ -0,0 +1,44 @@ | |||
543 | 1 | #!/bin/sh | ||
544 | 2 | # postrm script for fis-gtm-5.3004 | ||
545 | 3 | # | ||
546 | 4 | # see: dh_installdeb(1) | ||
547 | 5 | |||
548 | 6 | set -e | ||
549 | 7 | |||
550 | 8 | # summary of how this script can be called: | ||
551 | 9 | # * <postrm> `remove' | ||
552 | 10 | # * <postrm> `purge' | ||
553 | 11 | # * <old-postrm> `upgrade' <new-version> | ||
554 | 12 | # * <new-postrm> `failed-upgrade' <old-version> | ||
555 | 13 | # * <new-postrm> `abort-install' | ||
556 | 14 | # * <new-postrm> `abort-install' <old-version> | ||
557 | 15 | # * <new-postrm> `abort-upgrade' <old-version> | ||
558 | 16 | # * <disappearer's-postrm> `disappear' <overwriter> | ||
559 | 17 | # <overwriter-version> | ||
560 | 18 | # for details, see http://www.debian.org/doc/debian-policy/ or | ||
561 | 19 | # the debian-policy package | ||
562 | 20 | |||
563 | 21 | |||
564 | 22 | case "$1" in | ||
565 | 23 | purge) | ||
566 | 24 | # if we were the last GT.M package on the system, remove the gtm group | ||
567 | 25 | if [ ! -d /opt/lsb-gtm ]; then | ||
568 | 26 | delgroup --quiet gtm || : | ||
569 | 27 | fi | ||
570 | 28 | ;; | ||
571 | 29 | |||
572 | 30 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | ||
573 | 31 | ;; | ||
574 | 32 | |||
575 | 33 | *) | ||
576 | 34 | echo "postrm called with unknown argument \`$1'" >&2 | ||
577 | 35 | exit 1 | ||
578 | 36 | ;; | ||
579 | 37 | esac | ||
580 | 38 | |||
581 | 39 | # dh_installdeb will replace this with shell code automatically | ||
582 | 40 | # generated by other debhelper scripts. | ||
583 | 41 | |||
584 | 42 | #DEBHELPER# | ||
585 | 43 | |||
586 | 44 | exit 0 | ||
587 | 0 | 45 | ||
588 | === added file 'packages/deb/fis-gtm-5.3004/debian/rules' | |||
589 | --- packages/deb/fis-gtm-5.3004/debian/rules 1970-01-01 00:00:00 +0000 | |||
590 | +++ packages/deb/fis-gtm-5.3004/debian/rules 2009-08-01 07:06:06 +0000 | |||
591 | @@ -0,0 +1,205 @@ | |||
592 | 1 | #!/usr/bin/make -f | ||
593 | 2 | # -*- makefile -*- | ||
594 | 3 | # Sample debian/rules that uses debhelper. | ||
595 | 4 | # | ||
596 | 5 | # This file was originally written by Joey Hess and Craig Small. | ||
597 | 6 | # As a special exception, when this file is copied by dh-make into a | ||
598 | 7 | # dh-make output file, you may use that output file without restriction. | ||
599 | 8 | # This special exception was added by Craig Small in version 0.37 of dh-make. | ||
600 | 9 | # | ||
601 | 10 | # Modified to make a template file for a multi-binary package with separated | ||
602 | 11 | # build-arch and build-indep targets by Bill Allombert 2001 | ||
603 | 12 | |||
604 | 13 | # Uncomment this to turn on verbose mode. | ||
605 | 14 | #export DH_VERBOSE=1 | ||
606 | 15 | |||
607 | 16 | # This has to be exported to make some magic below work. | ||
608 | 17 | export DH_OPTIONS | ||
609 | 18 | |||
610 | 19 | #enable dpatch | ||
611 | 20 | include /usr/share/dpatch/dpatch.make | ||
612 | 21 | |||
613 | 22 | GTM_CURPRO = /tmp/gtm | ||
614 | 23 | |||
615 | 24 | DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) | ||
616 | 25 | DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) | ||
617 | 26 | |||
618 | 27 | ifeq ($(DEB_HOST_ARCH),amd64) | ||
619 | 28 | GTM_DIST = /opt/lsb-gtm/V5.3-004_x86_64 | ||
620 | 29 | else | ||
621 | 30 | GTM_DIST = /opt/lsb-gtm/V5.3-004_i686 | ||
622 | 31 | endif | ||
623 | 32 | |||
624 | 33 | ifeq ($(DEB_HOST_ARCH_OS),linux) | ||
625 | 34 | GTM_HOSTOS = Linux | ||
626 | 35 | else | ||
627 | 36 | GTM_HOSTOS = $(DEB_HOST_ARCH_OS) | ||
628 | 37 | endif | ||
629 | 38 | |||
630 | 39 | GT_CC_COMPILER = gcc-4.1 | ||
631 | 40 | |||
632 | 41 | GTM_ICU_VERSION_MAJMIN = $(shell icu-config --version | sed 's/\.//' | cut -f 1 -d '.') | ||
633 | 42 | GTM_ICU_VERSION_MINORVER = $(shell expr $(GTM_ICU_VERSION_MAJMIN) % 10) | ||
634 | 43 | GTM_ICU_VERSION_MAJORVER = $(shell expr $(GTM_ICU_VERSION_MAJMIN) / 10) | ||
635 | 44 | GTM_ICU_VERSION = $(GTM_ICU_VERSION_MAJORVER).$(GTM_ICU_VERSION_MINORVER) | ||
636 | 45 | |||
637 | 46 | |||
638 | 47 | |||
639 | 48 | check-build-env: | ||
640 | 49 | if [ ! -d "$(GTM_CURPRO)" ]; then \ | ||
641 | 50 | echo "existing binary installation of GT.M not found at $(GTM_CURPRO)"; \ | ||
642 | 51 | exit 1; \ | ||
643 | 52 | fi | ||
644 | 53 | |||
645 | 54 | if [ -d "$(GTM_DIST)" ]; then \ | ||
646 | 55 | echo "target GT.M directory $(GTM_DIST) already exists"; \ | ||
647 | 56 | exit 1; \ | ||
648 | 57 | fi | ||
649 | 58 | |||
650 | 59 | if ! getent group gtm >/dev/null; then \ | ||
651 | 60 | echo "gtm group not found in /etc/group"; \ | ||
652 | 61 | exit 1; \ | ||
653 | 62 | fi | ||
654 | 63 | |||
655 | 64 | |||
656 | 65 | configure: | ||
657 | 66 | dh_testdir | ||
658 | 67 | |||
659 | 68 | # GT.M needs to be built with tcsh, and with a bunch of environmental variables | ||
660 | 69 | # set. Since we can't run tcsh interactively, we put all the setenv commands | ||
661 | 70 | # and the build command itself into a temporary script, then execute it with | ||
662 | 71 | # tcsh. | ||
663 | 72 | echo 'setenv gtm_curpro $(GTM_CURPRO)' > build.csh | ||
664 | 73 | echo 'setenv gtm_exe $(GTM_CURPRO)' >> build.csh | ||
665 | 74 | echo 'setenv HOSTOS $(GTM_HOSTOS)' >> build.csh | ||
666 | 75 | echo 'setenv gtm_tools $(CURDIR)/sr_linux' >> build.csh | ||
667 | 76 | echo 'setenv gtm_inc $(CURDIR)/sr_linux' >> build.csh | ||
668 | 77 | if [ "$(DEB_HOST_ARCH)" = "amd64" ]; then \ | ||
669 | 78 | echo 'setenv OBJECT_MODE 64' >> build.csh ; \ | ||
670 | 79 | fi | ||
671 | 80 | echo 'setenv distro ubuntu' >> build.csh | ||
672 | 81 | echo 'setenv gtm_icu_version $(GTM_ICU_VERSION)' >> build.csh | ||
673 | 82 | echo 'setenv gtm_version_change 1' >> build.csh | ||
674 | 83 | cat sr_unix/gtm_env.csh >> build.csh | ||
675 | 84 | |||
676 | 85 | # GT.M 5.3004 requires gcc-4.1, Jaunty's default (gcc 4.3) doesn't work | ||
677 | 86 | echo 'setenv gt_cc_compiler $(GT_CC_COMPILER)' >> build.csh | ||
678 | 87 | |||
679 | 88 | # GT.M's makefiles get confused if this isn't reset back to 0 | ||
680 | 89 | echo 'setenv MAKELEVEL 0' >> build.csh | ||
681 | 90 | |||
682 | 91 | |||
683 | 92 | #Architecture | ||
684 | 93 | build: patch-stamp build-arch build-indep | ||
685 | 94 | |||
686 | 95 | build-arch: build-arch-stamp | ||
687 | 96 | build-arch-stamp: check-build-env configure | ||
688 | 97 | echo '$(MAKE) -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver=$(CURDIR)' >> build.csh | ||
689 | 98 | tcsh -b build.csh | ||
690 | 99 | |||
691 | 100 | touch $@ | ||
692 | 101 | |||
693 | 102 | build-indep: build-indep-stamp | ||
694 | 103 | build-indep-stamp: check-build-env configure | ||
695 | 104 | |||
696 | 105 | # Add here commands to compile the indep part of the package. | ||
697 | 106 | #$(MAKE) doc | ||
698 | 107 | touch $@ | ||
699 | 108 | |||
700 | 109 | clean: unpatch configure | ||
701 | 110 | dh_testdir | ||
702 | 111 | dh_testroot | ||
703 | 112 | rm -f build-arch-stamp build-indep-stamp | ||
704 | 113 | |||
705 | 114 | echo '$(MAKE) -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver=$(CURDIR) clean' >> build.csh | ||
706 | 115 | tcsh -b build.csh | ||
707 | 116 | rm -f build.csh | ||
708 | 117 | |||
709 | 118 | if [ -f install-arch-stamp ]; then \ | ||
710 | 119 | rm -rf $(GTM_DIST); \ | ||
711 | 120 | rm install-arch-stamp; \ | ||
712 | 121 | fi | ||
713 | 122 | |||
714 | 123 | dh_clean | ||
715 | 124 | |||
716 | 125 | install: install-indep install-arch | ||
717 | 126 | install-indep: | ||
718 | 127 | dh_testdir | ||
719 | 128 | dh_testroot | ||
720 | 129 | dh_prep -i | ||
721 | 130 | dh_installdirs -i | ||
722 | 131 | |||
723 | 132 | # Add here commands to install the indep part of the package into | ||
724 | 133 | # debian/<package>-doc. | ||
725 | 134 | #INSTALLDOC# | ||
726 | 135 | |||
727 | 136 | dh_install -i | ||
728 | 137 | |||
729 | 138 | install-arch: | ||
730 | 139 | dh_testdir | ||
731 | 140 | dh_testroot | ||
732 | 141 | dh_prep -s | ||
733 | 142 | dh_installdirs -s | ||
734 | 143 | |||
735 | 144 | mkdir -p `dirname $(GTM_DIST)` | ||
736 | 145 | |||
737 | 146 | # We need to patch the configure script to pre-answer all of the prompts and | ||
738 | 147 | # set the installation directory | ||
739 | 148 | cd pro ; \ | ||
740 | 149 | cat ../debian/patches/99-noninteractive-configure.patch | \ | ||
741 | 150 | sed 's,@GTM_DIST@,$(GTM_DIST),' | \ | ||
742 | 151 | sed 's,@GTM_ICU_VERSION@,$(GTM_ICU_VERSION),' | \ | ||
743 | 152 | patch -p0 -b ; \ | ||
744 | 153 | chmod +x configure ; \ | ||
745 | 154 | ./configure | ||
746 | 155 | |||
747 | 156 | cp -a $(GTM_DIST) debian/fis-gtm-5.3004`dirname $(GTM_DIST)`/ | ||
748 | 157 | |||
749 | 158 | touch install-arch-stamp | ||
750 | 159 | |||
751 | 160 | dh_install -s | ||
752 | 161 | # Must not depend on anything. This is to be called by | ||
753 | 162 | # binary-arch/binary-indep | ||
754 | 163 | # in another 'make' thread. | ||
755 | 164 | binary-common: | ||
756 | 165 | dh_testdir | ||
757 | 166 | dh_testroot | ||
758 | 167 | dh_installchangelogs | ||
759 | 168 | dh_installdocs | ||
760 | 169 | dh_installexamples | ||
761 | 170 | # dh_installmenu | ||
762 | 171 | # dh_installdebconf | ||
763 | 172 | # dh_installlogrotate | ||
764 | 173 | # dh_installemacsen | ||
765 | 174 | # dh_installpam | ||
766 | 175 | # dh_installmime | ||
767 | 176 | # dh_python | ||
768 | 177 | # dh_installinit | ||
769 | 178 | # dh_installcron | ||
770 | 179 | # dh_installinfo | ||
771 | 180 | dh_installman | ||
772 | 181 | dh_link | ||
773 | 182 | dh_strip | ||
774 | 183 | dh_compress | ||
775 | 184 | dh_fixperms | ||
776 | 185 | # re-copy files to ensure permissions are correct. files are owned by | ||
777 | 186 | # group bin for now; will change to group gtm in postinst | ||
778 | 187 | rm -rf debian/fis-gtm-5.3004$(GTM_DIST) | ||
779 | 188 | cp -a $(GTM_DIST) debian/fis-gtm-5.3004`dirname $(GTM_DIST)`/ | ||
780 | 189 | # dh_perl | ||
781 | 190 | dh_makeshlibs | ||
782 | 191 | dh_installdeb | ||
783 | 192 | dh_shlibdeps | ||
784 | 193 | dh_gencontrol | ||
785 | 194 | dh_md5sums | ||
786 | 195 | dh_builddeb | ||
787 | 196 | # Build architecture independant packages using the common target. | ||
788 | 197 | binary-indep: build-indep install-indep | ||
789 | 198 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
790 | 199 | |||
791 | 200 | # Build architecture dependant packages using the common target. | ||
792 | 201 | binary-arch: build-arch install-arch | ||
793 | 202 | $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common | ||
794 | 203 | |||
795 | 204 | binary: binary-arch binary-indep | ||
796 | 205 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure | ||
797 | 0 | 206 | ||
798 | === added directory 'packages/deb/openvista-libs-5.3004' | |||
799 | === added directory 'packages/deb/openvista-libs-5.3004/debian' | |||
800 | === added file 'packages/deb/openvista-libs-5.3004/debian/changelog' | |||
801 | --- packages/deb/openvista-libs-5.3004/debian/changelog 1970-01-01 00:00:00 +0000 | |||
802 | +++ packages/deb/openvista-libs-5.3004/debian/changelog 2009-07-26 07:07:12 +0000 | |||
803 | @@ -0,0 +1,5 @@ | |||
804 | 1 | openvista-libs-5.3004 (0.8.4-0ubuntu1) jaunty; urgency=low | ||
805 | 2 | |||
806 | 3 | * Initial Ubuntu package (Closes: #358242) | ||
807 | 4 | |||
808 | 5 | -- Jonathan Tai <jon.tai@medsphere.com> Sat, 25 Jul 2009 23:44:28 -0700 | ||
809 | 0 | 6 | ||
810 | === added file 'packages/deb/openvista-libs-5.3004/debian/changelogs' | |||
811 | --- packages/deb/openvista-libs-5.3004/debian/changelogs 1970-01-01 00:00:00 +0000 | |||
812 | +++ packages/deb/openvista-libs-5.3004/debian/changelogs 2009-07-26 07:07:12 +0000 | |||
813 | @@ -0,0 +1,1 @@ | |||
814 | 1 | ChangeLog | ||
815 | 0 | 2 | ||
816 | === added file 'packages/deb/openvista-libs-5.3004/debian/compat' | |||
817 | --- packages/deb/openvista-libs-5.3004/debian/compat 1970-01-01 00:00:00 +0000 | |||
818 | +++ packages/deb/openvista-libs-5.3004/debian/compat 2009-07-26 07:07:12 +0000 | |||
819 | @@ -0,0 +1,1 @@ | |||
820 | 1 | 7 | ||
821 | 0 | 2 | ||
822 | === added file 'packages/deb/openvista-libs-5.3004/debian/control' | |||
823 | --- packages/deb/openvista-libs-5.3004/debian/control 1970-01-01 00:00:00 +0000 | |||
824 | +++ packages/deb/openvista-libs-5.3004/debian/control 2009-07-30 21:37:58 +0000 | |||
825 | @@ -0,0 +1,21 @@ | |||
826 | 1 | Source: openvista-libs-5.3004 | ||
827 | 2 | Section: misc | ||
828 | 3 | Priority: optional | ||
829 | 4 | Maintainer: Jonathan Tai <jon.tai@medsphere.com> | ||
830 | 5 | Build-Depends: debhelper (>= 7), fis-gtm-5.3004 | ||
831 | 6 | Standards-Version: 3.8.0 | ||
832 | 7 | Homepage: https://medsphere.org/community/project/gtm | ||
833 | 8 | |||
834 | 9 | Package: openvista-libs-5.3004 | ||
835 | 10 | Architecture: any | ||
836 | 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, fis-gtm-5.3004 | ||
837 | 12 | Provides: openvista-libs | ||
838 | 13 | Description: GT.M External Calls for OpenVista | ||
839 | 14 | OpenVista is a cost-effective, open, trusted and complete EHR which enhances | ||
840 | 15 | patient safety, increases clinical and operational efficiency and provides an | ||
841 | 16 | opportunity to improve quality of care delivery. | ||
842 | 17 | . | ||
843 | 18 | This package provides a shared library that OpenVista code running in GT.M | ||
844 | 19 | calls out to for PAM authentication and duplicating a device onto a spawned | ||
845 | 20 | child's stdin/stdout. This package also provides an suid wrapper around GT.M | ||
846 | 21 | utilities used to send signals to other GT.M processes. | ||
847 | 0 | 22 | ||
848 | === added file 'packages/deb/openvista-libs-5.3004/debian/copyright' | |||
849 | --- packages/deb/openvista-libs-5.3004/debian/copyright 1970-01-01 00:00:00 +0000 | |||
850 | +++ packages/deb/openvista-libs-5.3004/debian/copyright 2009-07-26 07:07:12 +0000 | |||
851 | @@ -0,0 +1,50 @@ | |||
852 | 1 | This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on | ||
853 | 2 | Sat, 25 Jul 2009 23:44:28 -0700 | ||
854 | 3 | |||
855 | 4 | It was downloaded from <https://medsphere.org/community/project/gtm> | ||
856 | 5 | |||
857 | 6 | Upstream Author: | ||
858 | 7 | |||
859 | 8 | Medsphere Systems Corporation | ||
860 | 9 | |||
861 | 10 | Copyright: | ||
862 | 11 | |||
863 | 12 | Copyright (C) 2009 Medsphere Systems Corporation | ||
864 | 13 | |||
865 | 14 | License: | ||
866 | 15 | |||
867 | 16 | The utilities provided by the OpenVista/GT.M Integration Project simplify | ||
868 | 17 | installation, configuration, and operation of OpenVista Server when running on | ||
869 | 18 | GT.M on Linux. | ||
870 | 19 | |||
871 | 20 | Copyright (C) 2009 Medsphere Systems Corporation | ||
872 | 21 | |||
873 | 22 | This program is free software; you can redistribute it and/or modify it solely | ||
874 | 23 | under the terms of the GNU Affero General Public License version 3 as published | ||
875 | 24 | by the Free Software Foundation. | ||
876 | 25 | |||
877 | 26 | This program is distributed in the hope that it will be useful, but WITHOUT | ||
878 | 27 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
879 | 28 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License | ||
880 | 29 | for more details. | ||
881 | 30 | |||
882 | 31 | You should have received a copy of the GNU Affero General Public License along | ||
883 | 32 | with this program; if not, see http://www.gnu.org/licenses or write to the Free | ||
884 | 33 | Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
885 | 34 | 02110-1301 USA. | ||
886 | 35 | |||
887 | 36 | You can contact Medsphere Systems Corporation headquarters at 1917 Palomar Oaks Way, | ||
888 | 37 | Carlsbad, Ca. 92008 or at legal@medsphere.com. | ||
889 | 38 | |||
890 | 39 | The interactive user interfaces in modified source and object code versions | ||
891 | 40 | of this program must display Appropriate Legal Notices, as required under | ||
892 | 41 | Section 5 of the GNU Affero General Public License version 3. | ||
893 | 42 | |||
894 | 43 | In accordance with Section 7(b) of the GNU Affero General Public License | ||
895 | 44 | version 3, these Appropriate Legal Notices must retain the display of the | ||
896 | 45 | "Powered by Medsphere" logo. If the display of the logo is not reasonably | ||
897 | 46 | feasible for technical reasons, the Appropriate Legal Notices must display | ||
898 | 47 | the words "Powered by Medsphere". | ||
899 | 48 | |||
900 | 49 | The Debian packaging is copyright 2009, Medsphere Systems Corporation and | ||
901 | 50 | is licensed under the AGPL. | ||
902 | 0 | 51 | ||
903 | === added file 'packages/deb/openvista-libs-5.3004/debian/dirs' | |||
904 | --- packages/deb/openvista-libs-5.3004/debian/dirs 1970-01-01 00:00:00 +0000 | |||
905 | +++ packages/deb/openvista-libs-5.3004/debian/dirs 2009-07-30 21:56:37 +0000 | |||
906 | @@ -0,0 +1,1 @@ | |||
907 | 1 | usr/share/doc/openvista-libs-5.3004 | ||
908 | 0 | 2 | ||
909 | === added file 'packages/deb/openvista-libs-5.3004/debian/docs' | |||
910 | --- packages/deb/openvista-libs-5.3004/debian/docs 1970-01-01 00:00:00 +0000 | |||
911 | +++ packages/deb/openvista-libs-5.3004/debian/docs 2009-07-26 07:07:12 +0000 | |||
912 | @@ -0,0 +1,2 @@ | |||
913 | 1 | NEWS | ||
914 | 2 | README | ||
915 | 0 | 3 | ||
916 | === added file 'packages/deb/openvista-libs-5.3004/debian/manpages' | |||
917 | --- packages/deb/openvista-libs-5.3004/debian/manpages 1970-01-01 00:00:00 +0000 | |||
918 | +++ packages/deb/openvista-libs-5.3004/debian/manpages 2009-08-03 19:22:13 +0000 | |||
919 | @@ -0,0 +1,1 @@ | |||
920 | 1 | docs/man8/gtmsignal.8 | ||
921 | 0 | 2 | ||
922 | === added file 'packages/deb/openvista-libs-5.3004/debian/postinst' | |||
923 | --- packages/deb/openvista-libs-5.3004/debian/postinst 1970-01-01 00:00:00 +0000 | |||
924 | +++ packages/deb/openvista-libs-5.3004/debian/postinst 2009-08-01 19:52:55 +0000 | |||
925 | @@ -0,0 +1,49 @@ | |||
926 | 1 | #!/bin/sh | ||
927 | 2 | # postinst script for openvista-libs-5.3004 | ||
928 | 3 | # | ||
929 | 4 | # see: dh_installdeb(1) | ||
930 | 5 | |||
931 | 6 | set -e | ||
932 | 7 | |||
933 | 8 | # summary of how this script can be called: | ||
934 | 9 | # * <postinst> `configure' <most-recently-configured-version> | ||
935 | 10 | # * <old-postinst> `abort-upgrade' <new version> | ||
936 | 11 | # * <conflictor's-postinst> `abort-remove' `in-favour' <package> | ||
937 | 12 | # <new-version> | ||
938 | 13 | # * <postinst> `abort-remove' | ||
939 | 14 | # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | ||
940 | 15 | # <failed-install-package> <version> `removing' | ||
941 | 16 | # <conflicting-package> <version> | ||
942 | 17 | # for details, see http://www.debian.org/doc/debian-policy/ or | ||
943 | 18 | # the debian-policy package | ||
944 | 19 | |||
945 | 20 | |||
946 | 21 | case "$1" in | ||
947 | 22 | configure) | ||
948 | 23 | if [ `dpkg --print-architecture` = "amd64" ]; then | ||
949 | 24 | gtm_dist=/opt/lsb-gtm/V5.3-004_x86_64 | ||
950 | 25 | else | ||
951 | 26 | gtm_dist=/opt/lsb-gtm/V5.3-004_i686 | ||
952 | 27 | fi | ||
953 | 28 | |||
954 | 29 | chgrp gtm $gtm_dist/libopenvista.so $gtm_dist/openvista.xc $gtm_dist/gtmsignal | ||
955 | 30 | |||
956 | 31 | # the chgrp command above may cause gtmsignal to lose the setuid bit; re-add it here just in case | ||
957 | 32 | chmod u+s $gtm_dist/gtmsignal | ||
958 | 33 | ;; | ||
959 | 34 | |||
960 | 35 | abort-upgrade|abort-remove|abort-deconfigure) | ||
961 | 36 | ;; | ||
962 | 37 | |||
963 | 38 | *) | ||
964 | 39 | echo "postinst called with unknown argument \`$1'" >&2 | ||
965 | 40 | exit 1 | ||
966 | 41 | ;; | ||
967 | 42 | esac | ||
968 | 43 | |||
969 | 44 | # dh_installdeb will replace this with shell code automatically | ||
970 | 45 | # generated by other debhelper scripts. | ||
971 | 46 | |||
972 | 47 | #DEBHELPER# | ||
973 | 48 | |||
974 | 49 | exit 0 | ||
975 | 0 | 50 | ||
976 | === added file 'packages/deb/openvista-libs-5.3004/debian/rules' | |||
977 | --- packages/deb/openvista-libs-5.3004/debian/rules 1970-01-01 00:00:00 +0000 | |||
978 | +++ packages/deb/openvista-libs-5.3004/debian/rules 2009-08-01 07:06:06 +0000 | |||
979 | @@ -0,0 +1,138 @@ | |||
980 | 1 | #!/usr/bin/make -f | ||
981 | 2 | # -*- makefile -*- | ||
982 | 3 | # Sample debian/rules that uses debhelper. | ||
983 | 4 | # | ||
984 | 5 | # This file was originally written by Joey Hess and Craig Small. | ||
985 | 6 | # As a special exception, when this file is copied by dh-make into a | ||
986 | 7 | # dh-make output file, you may use that output file without restriction. | ||
987 | 8 | # This special exception was added by Craig Small in version 0.37 of dh-make. | ||
988 | 9 | # | ||
989 | 10 | # Modified to make a template file for a multi-binary package with separated | ||
990 | 11 | # build-arch and build-indep targets by Bill Allombert 2001 | ||
991 | 12 | |||
992 | 13 | # Uncomment this to turn on verbose mode. | ||
993 | 14 | #export DH_VERBOSE=1 | ||
994 | 15 | |||
995 | 16 | # This has to be exported to make some magic below work. | ||
996 | 17 | export DH_OPTIONS | ||
997 | 18 | |||
998 | 19 | DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) | ||
999 | 20 | |||
1000 | 21 | ifeq ($(DEB_HOST_ARCH),amd64) | ||
1001 | 22 | GTM_DIST = /opt/lsb-gtm/V5.3-004_x86_64 | ||
1002 | 23 | else | ||
1003 | 24 | GTM_DIST = /opt/lsb-gtm/V5.3-004_i686 | ||
1004 | 25 | endif | ||
1005 | 26 | |||
1006 | 27 | |||
1007 | 28 | |||
1008 | 29 | configure: configure-stamp | ||
1009 | 30 | configure-stamp: | ||
1010 | 31 | dh_testdir | ||
1011 | 32 | # Add here commands to configure the package. | ||
1012 | 33 | |||
1013 | 34 | touch configure-stamp | ||
1014 | 35 | |||
1015 | 36 | |||
1016 | 37 | #Architecture | ||
1017 | 38 | build: build-arch build-indep | ||
1018 | 39 | |||
1019 | 40 | build-arch: build-arch-stamp | ||
1020 | 41 | build-arch-stamp: configure-stamp | ||
1021 | 42 | cd src/libopenvista && gtm_dist="$(GTM_DIST)" ./compile.sh | ||
1022 | 43 | cd src/gtmsignal && ./compile.sh | ||
1023 | 44 | touch $@ | ||
1024 | 45 | |||
1025 | 46 | build-indep: build-indep-stamp | ||
1026 | 47 | build-indep-stamp: configure-stamp | ||
1027 | 48 | |||
1028 | 49 | # Add here commands to compile the indep part of the package. | ||
1029 | 50 | #$(MAKE) doc | ||
1030 | 51 | touch $@ | ||
1031 | 52 | |||
1032 | 53 | clean: | ||
1033 | 54 | dh_testdir | ||
1034 | 55 | dh_testroot | ||
1035 | 56 | rm -f build-arch-stamp build-indep-stamp configure-stamp | ||
1036 | 57 | |||
1037 | 58 | rm -f src/libopenvista/libopenvista.so | ||
1038 | 59 | rm -f src/libopenvista/openvista.xc | ||
1039 | 60 | rm -f src/gtmsignal/gtmsignal | ||
1040 | 61 | |||
1041 | 62 | dh_clean | ||
1042 | 63 | |||
1043 | 64 | install: install-indep install-arch | ||
1044 | 65 | install-indep: | ||
1045 | 66 | dh_testdir | ||
1046 | 67 | dh_testroot | ||
1047 | 68 | dh_prep -i | ||
1048 | 69 | dh_installdirs -i | ||
1049 | 70 | |||
1050 | 71 | # Add here commands to install the indep part of the package into | ||
1051 | 72 | # debian/<package>-doc. | ||
1052 | 73 | #INSTALLDOC# | ||
1053 | 74 | |||
1054 | 75 | dh_install -i | ||
1055 | 76 | |||
1056 | 77 | install-arch: | ||
1057 | 78 | dh_testdir | ||
1058 | 79 | dh_testroot | ||
1059 | 80 | dh_prep -s | ||
1060 | 81 | dh_installdirs -s | ||
1061 | 82 | |||
1062 | 83 | install COPYING.AGPL debian/openvista-libs-5.3004/usr/share/doc/openvista-libs-5.3004/AGPL | ||
1063 | 84 | |||
1064 | 85 | mkdir -p debian/openvista-libs-5.3004$(GTM_DIST) | ||
1065 | 86 | |||
1066 | 87 | install src/libopenvista/libopenvista.so debian/openvista-libs-5.3004$(GTM_DIST) | ||
1067 | 88 | install -m 644 src/libopenvista/openvista.xc debian/openvista-libs-5.3004$(GTM_DIST) | ||
1068 | 89 | |||
1069 | 90 | install src/gtmsignal/gtmsignal debian/openvista-libs-5.3004$(GTM_DIST) | ||
1070 | 91 | |||
1071 | 92 | dh_install -s | ||
1072 | 93 | # Must not depend on anything. This is to be called by | ||
1073 | 94 | # binary-arch/binary-indep | ||
1074 | 95 | # in another 'make' thread. | ||
1075 | 96 | binary-common: | ||
1076 | 97 | dh_testdir | ||
1077 | 98 | dh_testroot | ||
1078 | 99 | dh_installchangelogs | ||
1079 | 100 | dh_installdocs | ||
1080 | 101 | dh_installexamples | ||
1081 | 102 | # dh_installmenu | ||
1082 | 103 | # dh_installdebconf | ||
1083 | 104 | # dh_installlogrotate | ||
1084 | 105 | # dh_installemacsen | ||
1085 | 106 | # dh_installpam | ||
1086 | 107 | # dh_installmime | ||
1087 | 108 | # dh_python | ||
1088 | 109 | # dh_installinit | ||
1089 | 110 | # dh_installcron | ||
1090 | 111 | # dh_installinfo | ||
1091 | 112 | dh_installman | ||
1092 | 113 | dh_link | ||
1093 | 114 | dh_strip | ||
1094 | 115 | dh_compress | ||
1095 | 116 | dh_fixperms | ||
1096 | 117 | # use group bin for now; will change to group gtm in postinst | ||
1097 | 118 | chown bin:bin debian/openvista-libs-5.3004$(GTM_DIST)/* | ||
1098 | 119 | chmod 440 debian/openvista-libs-5.3004$(GTM_DIST)/* | ||
1099 | 120 | chown root debian/openvista-libs-5.3004$(GTM_DIST)/gtmsignal | ||
1100 | 121 | chmod 4550 debian/openvista-libs-5.3004$(GTM_DIST)/gtmsignal | ||
1101 | 122 | # dh_perl | ||
1102 | 123 | dh_makeshlibs | ||
1103 | 124 | dh_installdeb | ||
1104 | 125 | dh_shlibdeps | ||
1105 | 126 | dh_gencontrol | ||
1106 | 127 | dh_md5sums | ||
1107 | 128 | dh_builddeb | ||
1108 | 129 | # Build architecture independant packages using the common target. | ||
1109 | 130 | binary-indep: build-indep install-indep | ||
1110 | 131 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
1111 | 132 | |||
1112 | 133 | # Build architecture dependant packages using the common target. | ||
1113 | 134 | binary-arch: build-arch install-arch | ||
1114 | 135 | $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common | ||
1115 | 136 | |||
1116 | 137 | binary: binary-arch binary-indep | ||
1117 | 138 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure | ||
1118 | 0 | 139 | ||
1119 | === added directory 'packages/deb/openvista-utils' | |||
1120 | === added directory 'packages/deb/openvista-utils/debian' | |||
1121 | === added file 'packages/deb/openvista-utils/debian/changelog' | |||
1122 | --- packages/deb/openvista-utils/debian/changelog 1970-01-01 00:00:00 +0000 | |||
1123 | +++ packages/deb/openvista-utils/debian/changelog 2009-07-20 18:10:21 +0000 | |||
1124 | @@ -0,0 +1,11 @@ | |||
1125 | 1 | openvista-utils (0.8.4-0ubuntu1) jaunty; urgency=low | ||
1126 | 2 | |||
1127 | 3 | * Sync with upstream | ||
1128 | 4 | |||
1129 | 5 | -- Jonathan Tai <jon.tai@medsphere.com> Mon, 20 Jul 2009 11:01:18 -0700 | ||
1130 | 6 | |||
1131 | 7 | openvista-utils (0.8.3-0ubuntu1) jaunty; urgency=low | ||
1132 | 8 | |||
1133 | 9 | * Initial Ubuntu package (Closes: #358242) | ||
1134 | 10 | |||
1135 | 11 | -- Jonathan Tai <jon.tai@medsphere.com> Wed, 08 Jul 2009 21:26:33 -0700 | ||
1136 | 0 | 12 | ||
1137 | === added file 'packages/deb/openvista-utils/debian/changelogs' | |||
1138 | --- packages/deb/openvista-utils/debian/changelogs 1970-01-01 00:00:00 +0000 | |||
1139 | +++ packages/deb/openvista-utils/debian/changelogs 2009-07-09 07:59:00 +0000 | |||
1140 | @@ -0,0 +1,1 @@ | |||
1141 | 1 | ChangeLog | ||
1142 | 0 | 2 | ||
1143 | === added file 'packages/deb/openvista-utils/debian/compat' | |||
1144 | --- packages/deb/openvista-utils/debian/compat 1970-01-01 00:00:00 +0000 | |||
1145 | +++ packages/deb/openvista-utils/debian/compat 2009-07-09 07:59:00 +0000 | |||
1146 | @@ -0,0 +1,1 @@ | |||
1147 | 1 | 7 | ||
1148 | 0 | 2 | ||
1149 | === added file 'packages/deb/openvista-utils/debian/control' | |||
1150 | --- packages/deb/openvista-utils/debian/control 1970-01-01 00:00:00 +0000 | |||
1151 | +++ packages/deb/openvista-utils/debian/control 2009-08-03 22:58:57 +0000 | |||
1152 | @@ -0,0 +1,20 @@ | |||
1153 | 1 | Source: openvista-utils | ||
1154 | 2 | Section: admin | ||
1155 | 3 | Priority: optional | ||
1156 | 4 | Maintainer: Jonathan Tai <jon.tai@medsphere.com> | ||
1157 | 5 | Build-Depends: debhelper (>= 7), libpam0g-dev | ||
1158 | 6 | Standards-Version: 3.8.0 | ||
1159 | 7 | Homepage: https://medsphere.org/community/project/gtm | ||
1160 | 8 | |||
1161 | 9 | Package: openvista-utils | ||
1162 | 10 | Architecture: any | ||
1163 | 11 | Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, rsync, bzip2 | pbzip2 (>= 1.0.5), cron, openssh-client, apache2.2-common, openvista-libs | ||
1164 | 12 | Recommends: openssh-server, apache2 | ||
1165 | 13 | Suggests: putty-tools, bash-completion, pbzip2 (>= 1.0.5) | ||
1166 | 14 | Description: Utilities for configuring and managing OpenVista | ||
1167 | 15 | OpenVista is a cost-effective, open, trusted and complete EHR which enhances | ||
1168 | 16 | patient safety, increases clinical and operational efficiency and provides an | ||
1169 | 17 | opportunity to improve quality of care delivery. | ||
1170 | 18 | . | ||
1171 | 19 | This package provides command-line utilities that aid in configuring and | ||
1172 | 20 | managing OpenVista instances. | ||
1173 | 0 | 21 | ||
1174 | === added file 'packages/deb/openvista-utils/debian/copyright' | |||
1175 | --- packages/deb/openvista-utils/debian/copyright 1970-01-01 00:00:00 +0000 | |||
1176 | +++ packages/deb/openvista-utils/debian/copyright 2009-07-12 04:53:43 +0000 | |||
1177 | @@ -0,0 +1,50 @@ | |||
1178 | 1 | This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on | ||
1179 | 2 | Wed, 08 Jul 2009 21:26:33 -0700. | ||
1180 | 3 | |||
1181 | 4 | It was downloaded from <https://medsphere.org/community/project/gtm> | ||
1182 | 5 | |||
1183 | 6 | Upstream Author: | ||
1184 | 7 | |||
1185 | 8 | Medsphere Systems Corporation | ||
1186 | 9 | |||
1187 | 10 | Copyright: | ||
1188 | 11 | |||
1189 | 12 | Copyright (C) 2009 Medsphere Systems Corporation | ||
1190 | 13 | |||
1191 | 14 | License: | ||
1192 | 15 | |||
1193 | 16 | The utilities provided by the OpenVista/GT.M Integration Project simplify | ||
1194 | 17 | installation, configuration, and operation of OpenVista Server when running on | ||
1195 | 18 | GT.M on Linux. | ||
1196 | 19 | |||
1197 | 20 | Copyright (C) 2009 Medsphere Systems Corporation | ||
1198 | 21 | |||
1199 | 22 | This program is free software; you can redistribute it and/or modify it solely | ||
1200 | 23 | under the terms of the GNU Affero General Public License version 3 as published | ||
1201 | 24 | by the Free Software Foundation. | ||
1202 | 25 | |||
1203 | 26 | This program is distributed in the hope that it will be useful, but WITHOUT | ||
1204 | 27 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
1205 | 28 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License | ||
1206 | 29 | for more details. | ||
1207 | 30 | |||
1208 | 31 | You should have received a copy of the GNU Affero General Public License along | ||
1209 | 32 | with this program; if not, see http://www.gnu.org/licenses or write to the Free | ||
1210 | 33 | Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
1211 | 34 | 02110-1301 USA. | ||
1212 | 35 | |||
1213 | 36 | You can contact Medsphere Systems Corporation headquarters at 1917 Palomar Oaks Way, | ||
1214 | 37 | Carlsbad, Ca. 92008 or at legal@medsphere.com. | ||
1215 | 38 | |||
1216 | 39 | The interactive user interfaces in modified source and object code versions | ||
1217 | 40 | of this program must display Appropriate Legal Notices, as required under | ||
1218 | 41 | Section 5 of the GNU Affero General Public License version 3. | ||
1219 | 42 | |||
1220 | 43 | In accordance with Section 7(b) of the GNU Affero General Public License | ||
1221 | 44 | version 3, these Appropriate Legal Notices must retain the display of the | ||
1222 | 45 | "Powered by Medsphere" logo. If the display of the logo is not reasonably | ||
1223 | 46 | feasible for technical reasons, the Appropriate Legal Notices must display | ||
1224 | 47 | the words "Powered by Medsphere". | ||
1225 | 48 | |||
1226 | 49 | The Debian packaging is copyright 2009, Medsphere Systems Corporation and | ||
1227 | 50 | is licensed under the AGPL. | ||
1228 | 0 | 51 | ||
1229 | === added file 'packages/deb/openvista-utils/debian/dirs' | |||
1230 | --- packages/deb/openvista-utils/debian/dirs 1970-01-01 00:00:00 +0000 | |||
1231 | +++ packages/deb/openvista-utils/debian/dirs 2009-07-12 08:33:40 +0000 | |||
1232 | @@ -0,0 +1,9 @@ | |||
1233 | 1 | etc/apache2/conf.d | ||
1234 | 2 | etc/bash_completion.d | ||
1235 | 3 | opt/openvista | ||
1236 | 4 | sbin | ||
1237 | 5 | usr/bin | ||
1238 | 6 | usr/lib/openvista | ||
1239 | 7 | usr/sbin | ||
1240 | 8 | usr/share/doc/openvista-utils | ||
1241 | 9 | var/www/webdav | ||
1242 | 0 | 10 | ||
1243 | === added file 'packages/deb/openvista-utils/debian/docs' | |||
1244 | --- packages/deb/openvista-utils/debian/docs 1970-01-01 00:00:00 +0000 | |||
1245 | +++ packages/deb/openvista-utils/debian/docs 2009-07-12 08:33:40 +0000 | |||
1246 | @@ -0,0 +1,2 @@ | |||
1247 | 1 | NEWS | ||
1248 | 2 | README | ||
1249 | 0 | 3 | ||
1250 | === added file 'packages/deb/openvista-utils/debian/manpages' | |||
1251 | --- packages/deb/openvista-utils/debian/manpages 1970-01-01 00:00:00 +0000 | |||
1252 | +++ packages/deb/openvista-utils/debian/manpages 2009-07-10 00:05:19 +0000 | |||
1253 | @@ -0,0 +1,11 @@ | |||
1254 | 1 | docs/man8/ovinstanceadd.8 | ||
1255 | 2 | docs/man8/ovinstancedel.8 | ||
1256 | 3 | docs/man8/ovrestore.8 | ||
1257 | 4 | docs/man8/ovauth.8 | ||
1258 | 5 | docs/man1/openvista.1 | ||
1259 | 6 | docs/man1/ovtied.1 | ||
1260 | 7 | docs/man1/ovcc.1 | ||
1261 | 8 | docs/man1/ovbackup.1 | ||
1262 | 9 | docs/man1/ovpurgejournals.1 | ||
1263 | 10 | docs/man1/ovswitchjournals.1 | ||
1264 | 11 | docs/man1/ovimport.1 | ||
1265 | 0 | 12 | ||
1266 | === added file 'packages/deb/openvista-utils/debian/openvista-utils.openvista.pam' | |||
1267 | --- packages/deb/openvista-utils/debian/openvista-utils.openvista.pam 1970-01-01 00:00:00 +0000 | |||
1268 | +++ packages/deb/openvista-utils/debian/openvista-utils.openvista.pam 2009-07-09 08:28:58 +0000 | |||
1269 | @@ -0,0 +1,4 @@ | |||
1270 | 1 | @include common-auth | ||
1271 | 2 | @include common-account | ||
1272 | 3 | @include common-password | ||
1273 | 4 | @include common-session | ||
1274 | 0 | 5 | ||
1275 | === added file 'packages/deb/openvista-utils/debian/postinst' | |||
1276 | --- packages/deb/openvista-utils/debian/postinst 1970-01-01 00:00:00 +0000 | |||
1277 | +++ packages/deb/openvista-utils/debian/postinst 2009-08-03 20:13:57 +0000 | |||
1278 | @@ -0,0 +1,74 @@ | |||
1279 | 1 | #!/bin/sh | ||
1280 | 2 | # postinst script for openvista-utils | ||
1281 | 3 | # | ||
1282 | 4 | # see: dh_installdeb(1) | ||
1283 | 5 | |||
1284 | 6 | set -e | ||
1285 | 7 | |||
1286 | 8 | # summary of how this script can be called: | ||
1287 | 9 | # * <postinst> `configure' <most-recently-configured-version> | ||
1288 | 10 | # * <old-postinst> `abort-upgrade' <new version> | ||
1289 | 11 | # * <conflictor's-postinst> `abort-remove' `in-favour' <package> | ||
1290 | 12 | # <new-version> | ||
1291 | 13 | # * <postinst> `abort-remove' | ||
1292 | 14 | # * <deconfigured's-postinst> `abort-deconfigure' `in-favour' | ||
1293 | 15 | # <failed-install-package> <version> `removing' | ||
1294 | 16 | # <conflicting-package> <version> | ||
1295 | 17 | # for details, see http://www.debian.org/doc/debian-policy/ or | ||
1296 | 18 | # the debian-policy package | ||
1297 | 19 | |||
1298 | 20 | |||
1299 | 21 | case "$1" in | ||
1300 | 22 | configure) | ||
1301 | 23 | if ! getent group openvista >/dev/null; then | ||
1302 | 24 | addgroup --quiet openvista | ||
1303 | 25 | fi | ||
1304 | 26 | |||
1305 | 27 | if ! getent passwd openvista >/dev/null; then | ||
1306 | 28 | adduser --quiet --disabled-password --ingroup openvista --gecos "OpenVista tied account" openvista | ||
1307 | 29 | fi | ||
1308 | 30 | |||
1309 | 31 | if ! groups openvista | grep gtm >/dev/null; then | ||
1310 | 32 | adduser --quiet openvista gtm > /dev/null | ||
1311 | 33 | fi | ||
1312 | 34 | |||
1313 | 35 | chgrp openvista /opt/openvista /sbin/ovauth | ||
1314 | 36 | |||
1315 | 37 | # the chgrp command above may cause ovauth to lose the setuid bit; re-add it here just in case | ||
1316 | 38 | chmod u+s /sbin/ovauth | ||
1317 | 39 | |||
1318 | 40 | if [ -x /usr/sbin/a2enmod ]; then | ||
1319 | 41 | a2enmod dav_fs > /dev/null | ||
1320 | 42 | a2enmod ssl > /dev/null | ||
1321 | 43 | fi | ||
1322 | 44 | |||
1323 | 45 | if [ -x /usr/sbin/a2ensite ]; then | ||
1324 | 46 | a2ensite default-ssl > /dev/null | ||
1325 | 47 | fi | ||
1326 | 48 | |||
1327 | 49 | # FIXME: disable access to the webdav directory via regular HTTP | ||
1328 | 50 | |||
1329 | 51 | if [ -x /etc/init.d/apache2 ]; then | ||
1330 | 52 | if [ -x /usr/sbin/invoke-rc.d ]; then | ||
1331 | 53 | invoke-rc.d apache2 restart | ||
1332 | 54 | else | ||
1333 | 55 | /etc/init.d/apache2 restart | ||
1334 | 56 | fi | ||
1335 | 57 | fi | ||
1336 | 58 | ;; | ||
1337 | 59 | |||
1338 | 60 | abort-upgrade|abort-remove|abort-deconfigure) | ||
1339 | 61 | ;; | ||
1340 | 62 | |||
1341 | 63 | *) | ||
1342 | 64 | echo "postinst called with unknown argument \`$1'" >&2 | ||
1343 | 65 | exit 1 | ||
1344 | 66 | ;; | ||
1345 | 67 | esac | ||
1346 | 68 | |||
1347 | 69 | # dh_installdeb will replace this with shell code automatically | ||
1348 | 70 | # generated by other debhelper scripts. | ||
1349 | 71 | |||
1350 | 72 | #DEBHELPER# | ||
1351 | 73 | |||
1352 | 74 | exit 0 | ||
1353 | 0 | 75 | ||
1354 | === added file 'packages/deb/openvista-utils/debian/postrm' | |||
1355 | --- packages/deb/openvista-utils/debian/postrm 1970-01-01 00:00:00 +0000 | |||
1356 | +++ packages/deb/openvista-utils/debian/postrm 2009-08-01 07:06:06 +0000 | |||
1357 | @@ -0,0 +1,55 @@ | |||
1358 | 1 | #!/bin/sh | ||
1359 | 2 | # postrm script for openvista-utils | ||
1360 | 3 | # | ||
1361 | 4 | # see: dh_installdeb(1) | ||
1362 | 5 | |||
1363 | 6 | set -e | ||
1364 | 7 | |||
1365 | 8 | # summary of how this script can be called: | ||
1366 | 9 | # * <postrm> `remove' | ||
1367 | 10 | # * <postrm> `purge' | ||
1368 | 11 | # * <old-postrm> `upgrade' <new-version> | ||
1369 | 12 | # * <new-postrm> `failed-upgrade' <old-version> | ||
1370 | 13 | # * <new-postrm> `abort-install' | ||
1371 | 14 | # * <new-postrm> `abort-install' <old-version> | ||
1372 | 15 | # * <new-postrm> `abort-upgrade' <old-version> | ||
1373 | 16 | # * <disappearer's-postrm> `disappear' <overwriter> | ||
1374 | 17 | # <overwriter-version> | ||
1375 | 18 | # for details, see http://www.debian.org/doc/debian-policy/ or | ||
1376 | 19 | # the debian-policy package | ||
1377 | 20 | |||
1378 | 21 | |||
1379 | 22 | case "$1" in | ||
1380 | 23 | purge) | ||
1381 | 24 | deluser --quiet openvista || : | ||
1382 | 25 | |||
1383 | 26 | # if there are no users in the openvista group (other than the openvista | ||
1384 | 27 | # user), deluser will delete the group, but if there *are* other users, we | ||
1385 | 28 | # need to explicitly call delgroup | ||
1386 | 29 | delgroup --quiet openvista || : | ||
1387 | 30 | |||
1388 | 31 | # FIXME: does this need to happen even on remove? | ||
1389 | 32 | if [ -x /etc/init.d/apache2 ]; then | ||
1390 | 33 | if [ -x /usr/sbin/invoke-rc.d ]; then | ||
1391 | 34 | invoke-rc.d apache2 reload | ||
1392 | 35 | else | ||
1393 | 36 | /etc/init.d/apache2 reload | ||
1394 | 37 | fi | ||
1395 | 38 | fi | ||
1396 | 39 | ;; | ||
1397 | 40 | |||
1398 | 41 | remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) | ||
1399 | 42 | ;; | ||
1400 | 43 | |||
1401 | 44 | *) | ||
1402 | 45 | echo "postrm called with unknown argument \`$1'" >&2 | ||
1403 | 46 | exit 1 | ||
1404 | 47 | ;; | ||
1405 | 48 | esac | ||
1406 | 49 | |||
1407 | 50 | # dh_installdeb will replace this with shell code automatically | ||
1408 | 51 | # generated by other debhelper scripts. | ||
1409 | 52 | |||
1410 | 53 | #DEBHELPER# | ||
1411 | 54 | |||
1412 | 55 | exit 0 | ||
1413 | 0 | 56 | ||
1414 | === added file 'packages/deb/openvista-utils/debian/rules' | |||
1415 | --- packages/deb/openvista-utils/debian/rules 1970-01-01 00:00:00 +0000 | |||
1416 | +++ packages/deb/openvista-utils/debian/rules 2009-08-03 21:07:36 +0000 | |||
1417 | @@ -0,0 +1,154 @@ | |||
1418 | 1 | #!/usr/bin/make -f | ||
1419 | 2 | # -*- makefile -*- | ||
1420 | 3 | # Sample debian/rules that uses debhelper. | ||
1421 | 4 | # | ||
1422 | 5 | # This file was originally written by Joey Hess and Craig Small. | ||
1423 | 6 | # As a special exception, when this file is copied by dh-make into a | ||
1424 | 7 | # dh-make output file, you may use that output file without restriction. | ||
1425 | 8 | # This special exception was added by Craig Small in version 0.37 of dh-make. | ||
1426 | 9 | # | ||
1427 | 10 | # Modified to make a template file for a multi-binary package with separated | ||
1428 | 11 | # build-arch and build-indep targets by Bill Allombert 2001 | ||
1429 | 12 | |||
1430 | 13 | # Uncomment this to turn on verbose mode. | ||
1431 | 14 | #export DH_VERBOSE=1 | ||
1432 | 15 | |||
1433 | 16 | # This has to be exported to make some magic below work. | ||
1434 | 17 | export DH_OPTIONS | ||
1435 | 18 | |||
1436 | 19 | |||
1437 | 20 | |||
1438 | 21 | |||
1439 | 22 | |||
1440 | 23 | |||
1441 | 24 | configure: configure-stamp | ||
1442 | 25 | configure-stamp: | ||
1443 | 26 | dh_testdir | ||
1444 | 27 | # Add here commands to configure the package. | ||
1445 | 28 | |||
1446 | 29 | touch configure-stamp | ||
1447 | 30 | |||
1448 | 31 | |||
1449 | 32 | #Architecture | ||
1450 | 33 | build: build-arch build-indep | ||
1451 | 34 | |||
1452 | 35 | build-arch: build-arch-stamp | ||
1453 | 36 | build-arch-stamp: configure-stamp | ||
1454 | 37 | cd src/ovauth && ./compile.sh | ||
1455 | 38 | touch $@ | ||
1456 | 39 | |||
1457 | 40 | build-indep: build-indep-stamp | ||
1458 | 41 | build-indep-stamp: configure-stamp | ||
1459 | 42 | |||
1460 | 43 | # Add here commands to compile the indep part of the package. | ||
1461 | 44 | #$(MAKE) doc | ||
1462 | 45 | touch $@ | ||
1463 | 46 | |||
1464 | 47 | clean: | ||
1465 | 48 | dh_testdir | ||
1466 | 49 | dh_testroot | ||
1467 | 50 | rm -f build-arch-stamp build-indep-stamp configure-stamp | ||
1468 | 51 | |||
1469 | 52 | rm -f debian/openvista-utils.openvista-databases.init | ||
1470 | 53 | rm -f debian/openvista-utils.openvista.init | ||
1471 | 54 | rm -f debian/openvista-utils.openvista.cron.d | ||
1472 | 55 | rm -f debian/openvista-utils.openvista.cron.daily | ||
1473 | 56 | rm -f src/ovauth/ovauth | ||
1474 | 57 | |||
1475 | 58 | dh_clean | ||
1476 | 59 | |||
1477 | 60 | install: install-indep install-arch | ||
1478 | 61 | install-indep: | ||
1479 | 62 | dh_testdir | ||
1480 | 63 | dh_testroot | ||
1481 | 64 | dh_prep -i | ||
1482 | 65 | dh_installdirs -i | ||
1483 | 66 | |||
1484 | 67 | # Add here commands to install the indep part of the package into | ||
1485 | 68 | # debian/<package>-doc. | ||
1486 | 69 | #INSTALLDOC# | ||
1487 | 70 | |||
1488 | 71 | dh_install -i | ||
1489 | 72 | |||
1490 | 73 | install-arch: | ||
1491 | 74 | dh_testdir | ||
1492 | 75 | dh_testroot | ||
1493 | 76 | dh_prep -s | ||
1494 | 77 | dh_installdirs -s | ||
1495 | 78 | |||
1496 | 79 | install COPYING.AGPL debian/openvista-utils/usr/share/doc/openvista-utils/AGPL | ||
1497 | 80 | |||
1498 | 81 | install -m 644 scripts/usr/lib/openvista/functions debian/openvista-utils/usr/lib/openvista/ | ||
1499 | 82 | |||
1500 | 83 | install scripts/usr/sbin/ovinstanceadd debian/openvista-utils/usr/sbin/ | ||
1501 | 84 | install scripts/usr/sbin/ovinstancedel debian/openvista-utils/usr/sbin/ | ||
1502 | 85 | install scripts/usr/sbin/ovrestore debian/openvista-utils/usr/sbin/ | ||
1503 | 86 | |||
1504 | 87 | install scripts/usr/bin/openvista debian/openvista-utils/usr/bin/ | ||
1505 | 88 | install scripts/usr/bin/ovtied debian/openvista-utils/usr/bin/ | ||
1506 | 89 | install scripts/usr/bin/ovcc debian/openvista-utils/usr/bin/ | ||
1507 | 90 | install scripts/usr/bin/ovbackup debian/openvista-utils/usr/bin/ | ||
1508 | 91 | install scripts/usr/bin/ovpurgejournals debian/openvista-utils/usr/bin/ | ||
1509 | 92 | install scripts/usr/bin/ovswitchjournals debian/openvista-utils/usr/bin/ | ||
1510 | 93 | install scripts/usr/bin/ovimport debian/openvista-utils/usr/bin/ | ||
1511 | 94 | |||
1512 | 95 | install scripts/etc/init.d/openvista-databases debian/openvista-utils.openvista-databases.init | ||
1513 | 96 | install scripts/etc/init.d/openvista debian/openvista-utils.openvista.init | ||
1514 | 97 | |||
1515 | 98 | install -m 644 scripts/etc/bash_completion.d/openvista debian/openvista-utils/etc/bash_completion.d/ | ||
1516 | 99 | |||
1517 | 100 | install scripts/etc/cron.d/openvista debian/openvista-utils.openvista.cron.d | ||
1518 | 101 | install scripts/etc/cron.daily/openvista debian/openvista-utils.openvista.cron.daily | ||
1519 | 102 | |||
1520 | 103 | install -m 644 debian/webdav.conf debian/openvista-utils/etc/apache2/conf.d/ | ||
1521 | 104 | |||
1522 | 105 | touch debian/openvista-utils/etc/apache2/webdav.htpasswd | ||
1523 | 106 | |||
1524 | 107 | install src/ovauth/ovauth debian/openvista-utils/sbin/ | ||
1525 | 108 | |||
1526 | 109 | dh_install -s | ||
1527 | 110 | # Must not depend on anything. This is to be called by | ||
1528 | 111 | # binary-arch/binary-indep | ||
1529 | 112 | # in another 'make' thread. | ||
1530 | 113 | binary-common: | ||
1531 | 114 | dh_testdir | ||
1532 | 115 | dh_testroot | ||
1533 | 116 | dh_installchangelogs | ||
1534 | 117 | dh_installdocs | ||
1535 | 118 | dh_installexamples | ||
1536 | 119 | # dh_installmenu | ||
1537 | 120 | # dh_installdebconf | ||
1538 | 121 | # dh_installlogrotate | ||
1539 | 122 | # dh_installemacsen | ||
1540 | 123 | dh_installpam --name=openvista | ||
1541 | 124 | # dh_installmime | ||
1542 | 125 | # dh_python | ||
1543 | 126 | dh_installinit -r --no-start --name=openvista-databases -- defaults 28 10 | ||
1544 | 127 | dh_installinit -r --no-start --name=openvista -- defaults 98 01 | ||
1545 | 128 | dh_installcron --name=openvista | ||
1546 | 129 | # dh_installinfo | ||
1547 | 130 | dh_installman | ||
1548 | 131 | dh_link | ||
1549 | 132 | dh_strip | ||
1550 | 133 | dh_compress | ||
1551 | 134 | dh_fixperms | ||
1552 | 135 | # use group root for now; will change to group openvista in postinst | ||
1553 | 136 | chmod 2750 debian/openvista-utils/opt/openvista | ||
1554 | 137 | chmod 4754 debian/openvista-utils/sbin/ovauth | ||
1555 | 138 | # dh_perl | ||
1556 | 139 | dh_makeshlibs | ||
1557 | 140 | dh_installdeb | ||
1558 | 141 | dh_shlibdeps | ||
1559 | 142 | dh_gencontrol | ||
1560 | 143 | dh_md5sums | ||
1561 | 144 | dh_builddeb | ||
1562 | 145 | # Build architecture independant packages using the common target. | ||
1563 | 146 | binary-indep: build-indep install-indep | ||
1564 | 147 | $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common | ||
1565 | 148 | |||
1566 | 149 | # Build architecture dependant packages using the common target. | ||
1567 | 150 | binary-arch: build-arch install-arch | ||
1568 | 151 | $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common | ||
1569 | 152 | |||
1570 | 153 | binary: binary-arch binary-indep | ||
1571 | 154 | .PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure | ||
1572 | 0 | 155 | ||
1573 | === added file 'packages/deb/openvista-utils/debian/webdav.conf' | |||
1574 | --- packages/deb/openvista-utils/debian/webdav.conf 1970-01-01 00:00:00 +0000 | |||
1575 | +++ packages/deb/openvista-utils/debian/webdav.conf 2009-08-03 22:58:57 +0000 | |||
1576 | @@ -0,0 +1,14 @@ | |||
1577 | 1 | # OpenVista document imaging repository | ||
1578 | 2 | <IfModule mod_dav_fs.c> | ||
1579 | 3 | <Directory "/var/www/webdav"> | ||
1580 | 4 | Dav On | ||
1581 | 5 | |||
1582 | 6 | AllowOverride None | ||
1583 | 7 | Options Indexes FollowSymLinks | ||
1584 | 8 | |||
1585 | 9 | AuthType Basic | ||
1586 | 10 | AuthName "OpenVista document imaging repository" | ||
1587 | 11 | AuthUserFile "/etc/apache2/webdav.htpasswd" | ||
1588 | 12 | Require valid-user | ||
1589 | 13 | </Directory> | ||
1590 | 14 | </IfModule> | ||
1591 | 0 | 15 | ||
1592 | === modified file 'packages/rpm/fis-gtm-5.3003.spec' | |||
1593 | --- packages/rpm/fis-gtm-5.3003.spec 2009-07-18 00:45:57 +0000 | |||
1594 | +++ packages/rpm/fis-gtm-5.3003.spec 2009-08-04 04:31:03 +0000 | |||
1595 | @@ -1,8 +1,8 @@ | |||
1596 | 1 | # FIXME: this is a pretty bad RPM: | 1 | # FIXME: this is a pretty bad RPM: |
1597 | 2 | # - It requires that gtm_curpro already exists on the build box | 2 | # - It requires that gtm_curpro already exists on the build box |
1598 | 3 | # - It requires that gtm_dist does not already exist on the build box | 3 | # - It requires that gtm_dist does not already exist on the build box |
1599 | 4 | # - It requires that the gtm group already exist on the build box | ||
1600 | 4 | # - It requires the RPM be built as root | 5 | # - It requires the RPM be built as root |
1601 | 5 | # - The arch is wrong (?) - GT.M requires i686 but this package is marked i386 | ||
1602 | 6 | 6 | ||
1603 | 7 | # This must point to an existing binary installation of GT.M because GT.M | 7 | # This must point to an existing binary installation of GT.M because GT.M |
1604 | 8 | # requires GT.M to build | 8 | # requires GT.M to build |
1605 | @@ -16,7 +16,7 @@ | |||
1606 | 16 | 16 | ||
1607 | 17 | Name: fis-gtm-5.3003 | 17 | Name: fis-gtm-5.3003 |
1608 | 18 | Version: 5.3003 | 18 | Version: 5.3003 |
1610 | 19 | Release: 3 | 19 | Release: 4 |
1611 | 20 | Summary: High end TP schemaless database | 20 | Summary: High end TP schemaless database |
1612 | 21 | License: AGPL | 21 | License: AGPL |
1613 | 22 | Vendor: Fidelity Information Services | 22 | Vendor: Fidelity Information Services |
1614 | @@ -67,7 +67,7 @@ | |||
1615 | 67 | exit 1 | 67 | exit 1 |
1616 | 68 | fi | 68 | fi |
1617 | 69 | 69 | ||
1619 | 70 | if ! grep '^gtm:' /etc/group > /dev/null; then | 70 | if ! getent group gtm >/dev/null; then |
1620 | 71 | echo "gtm group not found in /etc/group" | 71 | echo "gtm group not found in /etc/group" |
1621 | 72 | exit 1 | 72 | exit 1 |
1622 | 73 | fi | 73 | fi |
1623 | @@ -106,10 +106,10 @@ | |||
1624 | 106 | 106 | ||
1625 | 107 | mkdir -p $(dirname %{gtm_dist}) | 107 | mkdir -p $(dirname %{gtm_dist}) |
1626 | 108 | 108 | ||
1627 | 109 | cd pro | ||
1628 | 110 | # We need to patch the configure script to pre-answer all of the prompts and | 109 | # We need to patch the configure script to pre-answer all of the prompts and |
1629 | 111 | # set the installation directory | 110 | # set the installation directory |
1631 | 112 | sed 's,@GTMDIST@,%{gtm_dist},' < %{PATCH1} | patch -p0 -b | 111 | cd pro |
1632 | 112 | cat %{PATCH1} | sed 's,@GTM_DIST@,%{gtm_dist},' | patch -p0 -b | ||
1633 | 113 | chmod +x configure | 113 | chmod +x configure |
1634 | 114 | ./configure | 114 | ./configure |
1635 | 115 | 115 | ||
1636 | 116 | 116 | ||
1637 | === modified file 'packages/rpm/fis-gtm-5.3003_noninteractive-configure.patch' | |||
1638 | --- packages/rpm/fis-gtm-5.3003_noninteractive-configure.patch 2009-02-22 08:42:50 +0000 | |||
1639 | +++ packages/rpm/fis-gtm-5.3003_noninteractive-configure.patch 2009-08-04 04:31:03 +0000 | |||
1640 | @@ -27,7 +27,7 @@ | |||
1641 | 27 | 27 | ||
1642 | 28 | $echo "In what directory should GT.M be installed? \c" | 28 | $echo "In what directory should GT.M be installed? \c" |
1643 | 29 | -read gtmdist | 29 | -read gtmdist |
1645 | 30 | +gtmdist="@GTMDIST@" | 30 | +gtmdist="@GTM_DIST@" |
1646 | 31 | 31 | ||
1647 | 32 | $echo "" | 32 | $echo "" |
1648 | 33 | 33 | ||
1649 | 34 | 34 | ||
1650 | === modified file 'packages/rpm/fis-gtm-5.3004.spec' | |||
1651 | --- packages/rpm/fis-gtm-5.3004.spec 2009-07-20 07:47:58 +0000 | |||
1652 | +++ packages/rpm/fis-gtm-5.3004.spec 2009-08-04 04:17:19 +0000 | |||
1653 | @@ -1,8 +1,8 @@ | |||
1654 | 1 | # FIXME: this is a pretty bad RPM: | 1 | # FIXME: this is a pretty bad RPM: |
1655 | 2 | # - It requires that gtm_curpro already exists on the build box | 2 | # - It requires that gtm_curpro already exists on the build box |
1656 | 3 | # - It requires that gtm_dist does not already exist on the build box | 3 | # - It requires that gtm_dist does not already exist on the build box |
1657 | 4 | # - It requires that the gtm group already exist on the build box | ||
1658 | 4 | # - It requires the RPM be built as root | 5 | # - It requires the RPM be built as root |
1659 | 5 | # - The arch is wrong (?) - GT.M requires i686 but this package is marked i386 | ||
1660 | 6 | 6 | ||
1661 | 7 | # This must point to an existing binary installation of GT.M because GT.M | 7 | # This must point to an existing binary installation of GT.M because GT.M |
1662 | 8 | # requires GT.M to build | 8 | # requires GT.M to build |
1663 | @@ -16,7 +16,7 @@ | |||
1664 | 16 | 16 | ||
1665 | 17 | Name: fis-gtm-5.3004 | 17 | Name: fis-gtm-5.3004 |
1666 | 18 | Version: 5.3004 | 18 | Version: 5.3004 |
1668 | 19 | Release: 4 | 19 | Release: 5 |
1669 | 20 | Summary: High end TP schemaless database | 20 | Summary: High end TP schemaless database |
1670 | 21 | License: AGPL | 21 | License: AGPL |
1671 | 22 | Vendor: Fidelity Information Services | 22 | Vendor: Fidelity Information Services |
1672 | @@ -66,7 +66,7 @@ | |||
1673 | 66 | exit 1 | 66 | exit 1 |
1674 | 67 | fi | 67 | fi |
1675 | 68 | 68 | ||
1677 | 69 | if ! grep '^gtm:' /etc/group > /dev/null; then | 69 | if ! getent group gtm >/dev/null; then |
1678 | 70 | echo "gtm group not found in /etc/group" | 70 | echo "gtm group not found in /etc/group" |
1679 | 71 | exit 1 | 71 | exit 1 |
1680 | 72 | fi | 72 | fi |
1681 | @@ -85,13 +85,13 @@ | |||
1682 | 85 | # tcsh. | 85 | # tcsh. |
1683 | 86 | echo 'setenv gtm_curpro %{gtm_curpro}' > build.csh | 86 | echo 'setenv gtm_curpro %{gtm_curpro}' > build.csh |
1684 | 87 | echo 'setenv gtm_exe %{gtm_curpro}' >> build.csh | 87 | echo 'setenv gtm_exe %{gtm_curpro}' >> build.csh |
1686 | 88 | echo 'setenv HOSTOS `uname -s`' >> build.csh | 88 | echo 'setenv HOSTOS '$(uname -s) >> build.csh |
1687 | 89 | echo 'setenv gtm_tools '$(pwd)'/sr_linux' >> build.csh | 89 | echo 'setenv gtm_tools '$(pwd)'/sr_linux' >> build.csh |
1688 | 90 | echo 'setenv gtm_inc '$(pwd)'/sr_linux' >> build.csh | 90 | echo 'setenv gtm_inc '$(pwd)'/sr_linux' >> build.csh |
1689 | 91 | %ifarch x86_64 | 91 | %ifarch x86_64 |
1690 | 92 | echo 'setenv OBJECT_MODE 64' >> build.csh | 92 | echo 'setenv OBJECT_MODE 64' >> build.csh |
1691 | 93 | %endif | 93 | %endif |
1693 | 94 | echo 'setenv gtm_icu_version `icu-config --version`' >> build.csh | 94 | echo 'setenv gtm_icu_version '$(icu-config --version) >> build.csh |
1694 | 95 | echo 'setenv gtm_version_change 1' >> build.csh | 95 | echo 'setenv gtm_version_change 1' >> build.csh |
1695 | 96 | cat sr_unix/gtm_env.csh >> build.csh | 96 | cat sr_unix/gtm_env.csh >> build.csh |
1696 | 97 | echo 'make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver='$(pwd) >> build.csh | 97 | echo 'make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver='$(pwd) >> build.csh |
1697 | @@ -107,10 +107,10 @@ | |||
1698 | 107 | 107 | ||
1699 | 108 | mkdir -p $(dirname %{gtm_dist}) | 108 | mkdir -p $(dirname %{gtm_dist}) |
1700 | 109 | 109 | ||
1701 | 110 | cd pro | ||
1702 | 111 | # We need to patch the configure script to pre-answer all of the prompts and | 110 | # We need to patch the configure script to pre-answer all of the prompts and |
1703 | 112 | # set the installation directory | 111 | # set the installation directory |
1705 | 113 | sed 's,@GTMDIST@,%{gtm_dist},' < %{PATCH1} | patch -p0 -b | 112 | cd pro |
1706 | 113 | cat %{PATCH1} | sed 's,@GTM_DIST@,%{gtm_dist},' | sed 's,@GTM_ICU_VERSION@,'$(icu-config --version)',' | patch -p0 -b | ||
1707 | 114 | chmod +x configure | 114 | chmod +x configure |
1708 | 115 | ./configure | 115 | ./configure |
1709 | 116 | 116 | ||
1710 | 117 | 117 | ||
1711 | === modified file 'packages/rpm/fis-gtm-5.3004_noninteractive-configure.patch' | |||
1712 | --- packages/rpm/fis-gtm-5.3004_noninteractive-configure.patch 2009-07-16 23:02:21 +0000 | |||
1713 | +++ packages/rpm/fis-gtm-5.3004_noninteractive-configure.patch 2009-07-30 21:06:57 +0000 | |||
1714 | @@ -27,7 +27,7 @@ | |||
1715 | 27 | 27 | ||
1716 | 28 | $echo "In what directory should GT.M be installed? \c" | 28 | $echo "In what directory should GT.M be installed? \c" |
1717 | 29 | -read gtmdist | 29 | -read gtmdist |
1719 | 30 | +gtmdist="@GTMDIST@" | 30 | +gtmdist="@GTM_DIST@" |
1720 | 31 | 31 | ||
1721 | 32 | # if gtmdist is relative then need to make it absolute | 32 | # if gtmdist is relative then need to make it absolute |
1722 | 33 | 33 | ||
1723 | @@ -54,7 +54,7 @@ | |||
1724 | 54 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then | 54 | if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
1725 | 55 | $echo "Enter ICU version (at least ICU version 3.6 is required. Enter as <minor-ver>.<major-ver>): \c" | 55 | $echo "Enter ICU version (at least ICU version 3.6 is required. Enter as <minor-ver>.<major-ver>): \c" |
1726 | 56 | - read gtm_icu_version | 56 | - read gtm_icu_version |
1728 | 57 | + gtm_icu_version="3.6" | 57 | + gtm_icu_version="@GTM_ICU_VERSION@" |
1729 | 58 | icu_ver=`$echo $gtm_icu_version | sed 's/\.//'` | 58 | icu_ver=`$echo $gtm_icu_version | sed 's/\.//'` |
1730 | 59 | majmin=`$echo $icu_ver | cut -f 1 -d "."` | 59 | majmin=`$echo $icu_ver | cut -f 1 -d "."` |
1731 | 60 | if [ "$majmin" -lt "36" ] ; then | 60 | if [ "$majmin" -lt "36" ] ; then |
1732 | 61 | 61 | ||
1733 | === modified file 'packages/rpm/openvista-libs-5.3003.spec' | |||
1734 | --- packages/rpm/openvista-libs-5.3003.spec 2009-07-17 08:17:11 +0000 | |||
1735 | +++ packages/rpm/openvista-libs-5.3003.spec 2009-08-04 04:27:16 +0000 | |||
1736 | @@ -6,7 +6,7 @@ | |||
1737 | 6 | 6 | ||
1738 | 7 | Name: openvista-libs-5.3003 | 7 | Name: openvista-libs-5.3003 |
1739 | 8 | Version: 0.8.4 | 8 | Version: 0.8.4 |
1741 | 9 | Release: 1 | 9 | Release: 2 |
1742 | 10 | Summary: GT.M External Calls for OpenVista | 10 | Summary: GT.M External Calls for OpenVista |
1743 | 11 | License: AGPL | 11 | License: AGPL |
1744 | 12 | Vendor: Medsphere Systems Corporation | 12 | Vendor: Medsphere Systems Corporation |
1745 | @@ -54,6 +54,10 @@ | |||
1746 | 54 | %install | 54 | %install |
1747 | 55 | rm -rf %{buildroot} | 55 | rm -rf %{buildroot} |
1748 | 56 | 56 | ||
1749 | 57 | install -d %{buildroot}%{_mandir}/man8/ | ||
1750 | 58 | install -m 644 docs/man8/gtmsignal.8 %{buildroot}%{_mandir}/man8/ | ||
1751 | 59 | gzip %{buildroot}%{_mandir}/man8/gtmsignal.8 | ||
1752 | 60 | |||
1753 | 57 | install -d %{buildroot}%{gtm_dist} | 61 | install -d %{buildroot}%{gtm_dist} |
1754 | 58 | install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist} | 62 | install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist} |
1755 | 59 | install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist} | 63 | install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist} |
1756 | @@ -68,6 +72,7 @@ | |||
1757 | 68 | %doc COPYING | 72 | %doc COPYING |
1758 | 69 | %doc COPYING.AGPL | 73 | %doc COPYING.AGPL |
1759 | 70 | %doc NEWS | 74 | %doc NEWS |
1760 | 75 | %{_mandir}/man8/gtmsignal.8* | ||
1761 | 71 | %defattr(-,bin,gtm) | 76 | %defattr(-,bin,gtm) |
1762 | 72 | %{gtm_dist}/libopenvista.so | 77 | %{gtm_dist}/libopenvista.so |
1763 | 73 | %{gtm_dist}/openvista.xc | 78 | %{gtm_dist}/openvista.xc |
1764 | 74 | 79 | ||
1765 | === modified file 'packages/rpm/openvista-libs-5.3004.spec' | |||
1766 | --- packages/rpm/openvista-libs-5.3004.spec 2009-07-18 03:03:33 +0000 | |||
1767 | +++ packages/rpm/openvista-libs-5.3004.spec 2009-08-04 04:27:16 +0000 | |||
1768 | @@ -6,7 +6,7 @@ | |||
1769 | 6 | 6 | ||
1770 | 7 | Name: openvista-libs-5.3004 | 7 | Name: openvista-libs-5.3004 |
1771 | 8 | Version: 0.8.4 | 8 | Version: 0.8.4 |
1773 | 9 | Release: 1 | 9 | Release: 2 |
1774 | 10 | Summary: GT.M External Calls for OpenVista | 10 | Summary: GT.M External Calls for OpenVista |
1775 | 11 | License: AGPL | 11 | License: AGPL |
1776 | 12 | Vendor: Medsphere Systems Corporation | 12 | Vendor: Medsphere Systems Corporation |
1777 | @@ -54,6 +54,10 @@ | |||
1778 | 54 | %install | 54 | %install |
1779 | 55 | rm -rf %{buildroot} | 55 | rm -rf %{buildroot} |
1780 | 56 | 56 | ||
1781 | 57 | install -d %{buildroot}%{_mandir}/man8/ | ||
1782 | 58 | install -m 644 docs/man8/gtmsignal.8 %{buildroot}%{_mandir}/man8/ | ||
1783 | 59 | gzip %{buildroot}%{_mandir}/man8/gtmsignal.8 | ||
1784 | 60 | |||
1785 | 57 | install -d %{buildroot}%{gtm_dist} | 61 | install -d %{buildroot}%{gtm_dist} |
1786 | 58 | install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist} | 62 | install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist} |
1787 | 59 | install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist} | 63 | install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist} |
1788 | @@ -68,6 +72,7 @@ | |||
1789 | 68 | %doc COPYING | 72 | %doc COPYING |
1790 | 69 | %doc COPYING.AGPL | 73 | %doc COPYING.AGPL |
1791 | 70 | %doc NEWS | 74 | %doc NEWS |
1792 | 75 | %{_mandir}/man8/gtmsignal.8* | ||
1793 | 71 | %defattr(-,bin,gtm) | 76 | %defattr(-,bin,gtm) |
1794 | 72 | %{gtm_dist}/libopenvista.so | 77 | %{gtm_dist}/libopenvista.so |
1795 | 73 | %{gtm_dist}/openvista.xc | 78 | %{gtm_dist}/openvista.xc |
1796 | 74 | 79 | ||
1797 | === modified file 'packages/rpm/openvista-utils.spec' | |||
1798 | --- packages/rpm/openvista-utils.spec 2009-07-20 17:23:59 +0000 | |||
1799 | +++ packages/rpm/openvista-utils.spec 2009-08-03 19:26:46 +0000 | |||
1800 | @@ -1,6 +1,6 @@ | |||
1801 | 1 | Name: openvista-utils | 1 | Name: openvista-utils |
1802 | 2 | Version: 0.8.4 | 2 | Version: 0.8.4 |
1804 | 3 | Release: 3 | 3 | Release: 4 |
1805 | 4 | Summary: Utilities for configuring and managing OpenVista | 4 | Summary: Utilities for configuring and managing OpenVista |
1806 | 5 | License: AGPL | 5 | License: AGPL |
1807 | 6 | Vendor: Medsphere Systems Corporation | 6 | Vendor: Medsphere Systems Corporation |
1808 | @@ -14,7 +14,7 @@ | |||
1809 | 14 | Requires(postun): /usr/sbin/userdel, /sbin/service | 14 | Requires(postun): /usr/sbin/userdel, /sbin/service |
1810 | 15 | 15 | ||
1811 | 16 | Requires: /bin/bash, coreutils, openssh, /usr/bin/logger, /usr/bin/rsync, /bin/tar, /usr/bin/bzip2, /usr/bin/find, vixie-cron | 16 | Requires: /bin/bash, coreutils, openssh, /usr/bin/logger, /usr/bin/rsync, /bin/tar, /usr/bin/bzip2, /usr/bin/find, vixie-cron |
1813 | 17 | Requires: fis-gtm, openvista-libs | 17 | Requires: openvista-libs |
1814 | 18 | Requires: httpd, mod_ssl, pam | 18 | Requires: httpd, mod_ssl, pam |
1815 | 19 | BuildRequires: pam-devel | 19 | BuildRequires: pam-devel |
1816 | 20 | 20 | ||
1817 | @@ -63,10 +63,12 @@ | |||
1818 | 63 | install scripts/usr/bin/ovswitchjournals %{buildroot}%{_bindir}/ | 63 | install scripts/usr/bin/ovswitchjournals %{buildroot}%{_bindir}/ |
1819 | 64 | install scripts/usr/bin/ovimport %{buildroot}%{_bindir}/ | 64 | install scripts/usr/bin/ovimport %{buildroot}%{_bindir}/ |
1820 | 65 | 65 | ||
1821 | 66 | install -d %{buildroot}%{_mandir}/man8/ | ||
1822 | 67 | install -m 644 docs/man8/ovinstanceadd.8 %{buildroot}%{_mandir}/man8/ | ||
1823 | 68 | install -m 644 docs/man8/ovinstancedel.8 %{buildroot}%{_mandir}/man8/ | ||
1824 | 69 | install -m 644 docs/man8/ovrestore.8 %{buildroot}%{_mandir}/man8/ | ||
1825 | 70 | install -m 644 docs/man8/ovauth.8 %{buildroot}%{_mandir}/man8/ | ||
1826 | 66 | install -d %{buildroot}%{_mandir}/man1/ | 71 | install -d %{buildroot}%{_mandir}/man1/ |
1827 | 67 | install -m 644 docs/man1/ovinstanceadd.1 %{buildroot}%{_mandir}/man1/ | ||
1828 | 68 | install -m 644 docs/man1/ovinstancedel.1 %{buildroot}%{_mandir}/man1/ | ||
1829 | 69 | install -m 644 docs/man1/ovrestore.1 %{buildroot}%{_mandir}/man1/ | ||
1830 | 70 | install -m 644 docs/man1/openvista.1 %{buildroot}%{_mandir}/man1/ | 72 | install -m 644 docs/man1/openvista.1 %{buildroot}%{_mandir}/man1/ |
1831 | 71 | install -m 644 docs/man1/ovtied.1 %{buildroot}%{_mandir}/man1/ | 73 | install -m 644 docs/man1/ovtied.1 %{buildroot}%{_mandir}/man1/ |
1832 | 72 | install -m 644 docs/man1/ovcc.1 %{buildroot}%{_mandir}/man1/ | 74 | install -m 644 docs/man1/ovcc.1 %{buildroot}%{_mandir}/man1/ |
1833 | @@ -74,9 +76,10 @@ | |||
1834 | 74 | install -m 644 docs/man1/ovpurgejournals.1 %{buildroot}%{_mandir}/man1/ | 76 | install -m 644 docs/man1/ovpurgejournals.1 %{buildroot}%{_mandir}/man1/ |
1835 | 75 | install -m 644 docs/man1/ovswitchjournals.1 %{buildroot}%{_mandir}/man1/ | 77 | install -m 644 docs/man1/ovswitchjournals.1 %{buildroot}%{_mandir}/man1/ |
1836 | 76 | install -m 644 docs/man1/ovimport.1 %{buildroot}%{_mandir}/man1/ | 78 | install -m 644 docs/man1/ovimport.1 %{buildroot}%{_mandir}/man1/ |
1840 | 77 | gzip %{buildroot}%{_mandir}/man1/ovinstanceadd.1 | 79 | gzip %{buildroot}%{_mandir}/man8/ovinstanceadd.8 |
1841 | 78 | gzip %{buildroot}%{_mandir}/man1/ovinstancedel.1 | 80 | gzip %{buildroot}%{_mandir}/man8/ovinstancedel.8 |
1842 | 79 | gzip %{buildroot}%{_mandir}/man1/ovrestore.1 | 81 | gzip %{buildroot}%{_mandir}/man8/ovrestore.8 |
1843 | 82 | gzip %{buildroot}%{_mandir}/man8/ovauth.8 | ||
1844 | 80 | gzip %{buildroot}%{_mandir}/man1/openvista.1 | 83 | gzip %{buildroot}%{_mandir}/man1/openvista.1 |
1845 | 81 | gzip %{buildroot}%{_mandir}/man1/ovtied.1 | 84 | gzip %{buildroot}%{_mandir}/man1/ovtied.1 |
1846 | 82 | gzip %{buildroot}%{_mandir}/man1/ovcc.1 | 85 | gzip %{buildroot}%{_mandir}/man1/ovcc.1 |
1847 | @@ -134,9 +137,10 @@ | |||
1848 | 134 | %{_bindir}/ovpurgejournals | 137 | %{_bindir}/ovpurgejournals |
1849 | 135 | %{_bindir}/ovswitchjournals | 138 | %{_bindir}/ovswitchjournals |
1850 | 136 | %{_bindir}/ovimport | 139 | %{_bindir}/ovimport |
1854 | 137 | %{_mandir}/man1/ovinstanceadd.1* | 140 | %{_mandir}/man8/ovinstanceadd.8* |
1855 | 138 | %{_mandir}/man1/ovinstancedel.1* | 141 | %{_mandir}/man8/ovinstancedel.8* |
1856 | 139 | %{_mandir}/man1/ovrestore.1* | 142 | %{_mandir}/man8/ovrestore.8* |
1857 | 143 | %{_mandir}/man8/ovauth.8* | ||
1858 | 140 | %{_mandir}/man1/openvista.1* | 144 | %{_mandir}/man1/openvista.1* |
1859 | 141 | %{_mandir}/man1/ovtied.1* | 145 | %{_mandir}/man1/ovtied.1* |
1860 | 142 | %{_mandir}/man1/ovcc.1* | 146 | %{_mandir}/man1/ovcc.1* |
1861 | 143 | 147 | ||
1862 | === modified file 'packages/rpm/webdav.conf' | |||
1863 | --- packages/rpm/webdav.conf 2009-04-22 04:16:31 +0000 | |||
1864 | +++ packages/rpm/webdav.conf 2009-08-03 22:58:57 +0000 | |||
1865 | @@ -1,4 +1,5 @@ | |||
1866 | 1 | # OpenVista document imaging repository | 1 | # OpenVista document imaging repository |
1867 | 2 | <IfModule mod_dav_fs.c> | ||
1868 | 2 | <Directory "/var/www/html/webdav"> | 3 | <Directory "/var/www/html/webdav"> |
1869 | 3 | Dav On | 4 | Dav On |
1870 | 4 | 5 | ||
1871 | @@ -10,3 +11,4 @@ | |||
1872 | 10 | AuthUserFile "/etc/httpd/conf/webdav.htpasswd" | 11 | AuthUserFile "/etc/httpd/conf/webdav.htpasswd" |
1873 | 11 | Require valid-user | 12 | Require valid-user |
1874 | 12 | </Directory> | 13 | </Directory> |
1875 | 14 | </IfModule> | ||
1876 | 13 | 15 | ||
1877 | === modified file 'scripts/etc/init.d/openvista' | |||
1878 | --- scripts/etc/init.d/openvista 2009-06-11 04:58:31 +0000 | |||
1879 | +++ scripts/etc/init.d/openvista 2009-08-03 21:07:36 +0000 | |||
1880 | @@ -19,6 +19,15 @@ | |||
1881 | 19 | # | 19 | # |
1882 | 20 | # chkconfig: 2345 98 01 | 20 | # chkconfig: 2345 98 01 |
1883 | 21 | # description: Application-level startup/shutdown script for OpenVista Server | 21 | # description: Application-level startup/shutdown script for OpenVista Server |
1884 | 22 | # | ||
1885 | 23 | ### BEGIN INIT INFO | ||
1886 | 24 | # Provides: openvista | ||
1887 | 25 | # Required-Start: $all openvista-databases | ||
1888 | 26 | # Required-Stop: $all openvista-databases | ||
1889 | 27 | # Default-Start: 2 3 4 5 | ||
1890 | 28 | # Default-Stop: 0 1 6 | ||
1891 | 29 | # Short-Description: Application-level startup/shutdown script for OpenVista Server | ||
1892 | 30 | ### END INIT INFO | ||
1893 | 22 | 31 | ||
1894 | 23 | 32 | ||
1895 | 24 | # Copyright (C) 2009 Medsphere Systems Corporation | 33 | # Copyright (C) 2009 Medsphere Systems Corporation |
1896 | @@ -39,8 +48,15 @@ | |||
1897 | 39 | # Oaks Way, Suite 200, Carlsbad, CA 92008 or at legal@medsphere.com. | 48 | # Oaks Way, Suite 200, Carlsbad, CA 92008 or at legal@medsphere.com. |
1898 | 40 | 49 | ||
1899 | 41 | 50 | ||
1900 | 51 | # Check the package is still installed. Traditionally, the test is for a | ||
1901 | 52 | # program that is executed later in this script, but it's not trivial to find | ||
1902 | 53 | # the location of the mumps binary because multiple verisons could be | ||
1903 | 54 | # installed, so look for the functions script instead. | ||
1904 | 55 | [ -f /usr/lib/openvista/functions ] || exit 0 | ||
1905 | 56 | |||
1906 | 42 | # Source function library. | 57 | # Source function library. |
1908 | 43 | . /etc/rc.d/init.d/functions | 58 | [ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions |
1909 | 59 | [ -f /lib/lsb/init-functions ] && . /lib/lsb/init-functions | ||
1910 | 44 | . /usr/lib/openvista/functions | 60 | . /usr/lib/openvista/functions |
1911 | 45 | 61 | ||
1912 | 46 | root="/opt/openvista" | 62 | root="/opt/openvista" |
1913 | @@ -98,35 +114,85 @@ | |||
1914 | 98 | case $1 in | 114 | case $1 in |
1915 | 99 | start) | 115 | start) |
1916 | 100 | if [ -z "$2" ]; then | 116 | if [ -z "$2" ]; then |
1918 | 101 | echo "Starting OpenVista..." | 117 | if function_exists "action"; then |
1919 | 118 | echo "Starting OpenVista..." | ||
1920 | 119 | elif function_exists "log_daemon_msg"; then | ||
1921 | 120 | log_daemon_msg "Running startup hooks for OpenVista databases" | ||
1922 | 121 | fi | ||
1923 | 102 | 122 | ||
1924 | 103 | for instance in `ls $root`; do | 123 | for instance in `ls $root`; do |
1925 | 104 | [ -L "$root/$instance/gtm" ] || continue | 124 | [ -L "$root/$instance/gtm" ] || continue |
1926 | 105 | 125 | ||
1928 | 106 | action $" Running startup hooks for $instance: " run_hook "$instance" ZSTART | 126 | if function_exists "action"; then |
1929 | 127 | action $" Running startup hooks for $instance: " run_hook "$instance" ZSTART | ||
1930 | 128 | elif function_exists "log_daemon_msg"; then | ||
1931 | 129 | log_progress_msg "$instance" | ||
1932 | 130 | run_hook "$instance" ZSTART || end_msg=1 | ||
1933 | 131 | else | ||
1934 | 132 | run_hook "$instance" ZSTART | ||
1935 | 133 | fi | ||
1936 | 107 | done | 134 | done |
1937 | 135 | |||
1938 | 136 | if function_exists "log_daemon_msg"; then | ||
1939 | 137 | log_end_msg ${end_msg:-0} | ||
1940 | 138 | fi | ||
1941 | 108 | else | 139 | else |
1943 | 109 | action $"Running startup hooks for $instance: " run_hook "$instance" ZSTART | 140 | if function_exists "action"; then |
1944 | 141 | action $"Running startup hooks for $instance: " run_hook "$instance" ZSTART | ||
1945 | 142 | elif function_exists "log_daemon_msg"; then | ||
1946 | 143 | log_daemon_msg "Running startup hooks for OpenVista databases" "$instance" | ||
1947 | 144 | run_hook "$instance" ZSTART | ||
1948 | 145 | log_end_msg $? | ||
1949 | 146 | else | ||
1950 | 147 | run_hook "$instance" ZSTART | ||
1951 | 148 | fi | ||
1952 | 110 | fi | 149 | fi |
1953 | 111 | ;; | 150 | ;; |
1954 | 112 | stop) | 151 | stop) |
1955 | 113 | if [ -z "$2" ]; then | 152 | if [ -z "$2" ]; then |
1957 | 114 | echo "Stopping OpenVista..." | 153 | if function_exists "action"; then |
1958 | 154 | echo "Stopping OpenVista..." | ||
1959 | 155 | elif function_exists "log_daemon_msg"; then | ||
1960 | 156 | log_daemon_msg "Running shutdown hooks for OpenVista databases" | ||
1961 | 157 | fi | ||
1962 | 115 | 158 | ||
1963 | 116 | for instance in `ls $root`; do | 159 | for instance in `ls $root`; do |
1964 | 117 | [ -L "$root/$instance/gtm" ] || continue | 160 | [ -L "$root/$instance/gtm" ] || continue |
1965 | 118 | 161 | ||
1967 | 119 | action $" Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP | 162 | if function_exists "action"; then |
1968 | 163 | action $" Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP | ||
1969 | 164 | elif function_exists "log_daemon_msg"; then | ||
1970 | 165 | log_progress_msg "$instance" | ||
1971 | 166 | run_hook "$instance" ZSTOP || end_msg=1 | ||
1972 | 167 | else | ||
1973 | 168 | run_hook "$instance" ZSTOP | ||
1974 | 169 | fi | ||
1975 | 120 | done | 170 | done |
1976 | 171 | |||
1977 | 172 | if function_exists "log_daemon_msg"; then | ||
1978 | 173 | log_end_msg ${end_msg:-0} | ||
1979 | 174 | fi | ||
1980 | 121 | else | 175 | else |
1982 | 122 | action $"Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP | 176 | if function_exists "action"; then |
1983 | 177 | action $"Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP | ||
1984 | 178 | elif function_exists "log_daemon_msg"; then | ||
1985 | 179 | log_daemon_msg "Running shutdown hooks for OpenVista databases" "$instance" | ||
1986 | 180 | run_hook "$instance" ZSTOP | ||
1987 | 181 | log_end_msg $? | ||
1988 | 182 | else | ||
1989 | 183 | run_hook "$instance" ZSTOP | ||
1990 | 184 | fi | ||
1991 | 123 | fi | 185 | fi |
1992 | 124 | 186 | ||
1993 | 125 | # give background jobs (e.g., TaskMan) some time to wake up and realize they've been asked to shut down | 187 | # give background jobs (e.g., TaskMan) some time to wake up and realize they've been asked to shut down |
1994 | 126 | sleep 5 | 188 | sleep 5 |
1995 | 127 | ;; | 189 | ;; |
1996 | 190 | restart|force-reload) | ||
1997 | 191 | $0 stop $2 | ||
1998 | 192 | $0 start $2 | ||
1999 | 193 | ;; | ||
2000 | 128 | *) | 194 | *) |
2002 | 129 | echo "Usage: openvista {start|stop} [INSTANCE_NAME]" >&2 | 195 | echo "Usage: openvista {start|stop|restart|force-reload} [INSTANCE_NAME]" >&2 |
2003 | 130 | exit 1 | 196 | exit 1 |
2004 | 131 | ;; | 197 | ;; |
2005 | 132 | esac | 198 | esac |
2006 | 133 | 199 | ||
2007 | === modified file 'scripts/etc/init.d/openvista-databases' | |||
2008 | --- scripts/etc/init.d/openvista-databases 2009-04-23 16:33:14 +0000 | |||
2009 | +++ scripts/etc/init.d/openvista-databases 2009-08-03 21:07:36 +0000 | |||
2010 | @@ -26,6 +26,15 @@ | |||
2011 | 26 | # | 26 | # |
2012 | 27 | # chkconfig: 2345 50 30 | 27 | # chkconfig: 2345 50 30 |
2013 | 28 | # description: Database-level startup/shutdown script for OpenVista Server | 28 | # description: Database-level startup/shutdown script for OpenVista Server |
2014 | 29 | # | ||
2015 | 30 | ### BEGIN INIT INFO | ||
2016 | 31 | # Provides: openvista-databases | ||
2017 | 32 | # Required-Start: $local_fs $syslog $time | ||
2018 | 33 | # Required-Stop: $local_fs $syslog $time | ||
2019 | 34 | # Default-Start: 2 3 4 5 | ||
2020 | 35 | # Default-Stop: 0 1 6 | ||
2021 | 36 | # Short-Description: Database-level startup/shutdown script for OpenVista Server | ||
2022 | 37 | ### END INIT INFO | ||
2023 | 29 | 38 | ||
2024 | 30 | 39 | ||
2025 | 31 | # Copyright (C) 2009 Medsphere Systems Corporation | 40 | # Copyright (C) 2009 Medsphere Systems Corporation |
2026 | @@ -46,8 +55,15 @@ | |||
2027 | 46 | # Oaks Way, Suite 200, Carlsbad, CA 92008 or at legal@medsphere.com. | 55 | # Oaks Way, Suite 200, Carlsbad, CA 92008 or at legal@medsphere.com. |
2028 | 47 | 56 | ||
2029 | 48 | 57 | ||
2030 | 58 | # Check the package is still installed. Traditionally, the test is for a | ||
2031 | 59 | # program that is executed later in this script, but it's not trivial to find | ||
2032 | 60 | # the location of the mupip binary because multiple verisons could be | ||
2033 | 61 | # installed, so look for the functions script instead. | ||
2034 | 62 | [ -f /usr/lib/openvista/functions ] || exit 0 | ||
2035 | 63 | |||
2036 | 49 | # Source function library. | 64 | # Source function library. |
2038 | 50 | . /etc/rc.d/init.d/functions | 65 | [ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions |
2039 | 66 | [ -f /lib/lsb/init-functions ] && . /lib/lsb/init-functions | ||
2040 | 51 | . /usr/lib/openvista/functions | 67 | . /usr/lib/openvista/functions |
2041 | 52 | 68 | ||
2042 | 53 | root="/opt/openvista" | 69 | root="/opt/openvista" |
2043 | @@ -149,32 +165,82 @@ | |||
2044 | 149 | case $1 in | 165 | case $1 in |
2045 | 150 | start) | 166 | start) |
2046 | 151 | if [ -z "$2" ]; then | 167 | if [ -z "$2" ]; then |
2049 | 152 | echo "Performing backward journal recovery on OpenVista databases..." | 168 | if function_exists "action"; then |
2050 | 153 | 169 | echo "Performing backward journal recovery on OpenVista databases..." | |
2051 | 170 | elif function_exists "log_daemon_msg"; then | ||
2052 | 171 | log_daemon_msg "Performing backward journal recovery on OpenVista databases" | ||
2053 | 172 | fi | ||
2054 | 173 | |||
2055 | 154 | for instance in `ls $root`; do | 174 | for instance in `ls $root`; do |
2056 | 155 | [ -L "$root/$instance/gtm" ] || continue | 175 | [ -L "$root/$instance/gtm" ] || continue |
2057 | 156 | 176 | ||
2059 | 157 | action $" Performing recovery on $instance database: " recover_backward "$instance" | 177 | if function_exists "action"; then |
2060 | 178 | action $" Performing recovery on $instance database: " recover_backward "$instance" | ||
2061 | 179 | elif function_exists "log_daemon_msg"; then | ||
2062 | 180 | log_progress_msg "$instance" | ||
2063 | 181 | recover_backward "$instance" || end_msg=1 | ||
2064 | 182 | else | ||
2065 | 183 | recover_backward "$instance" | ||
2066 | 184 | fi | ||
2067 | 158 | done | 185 | done |
2068 | 186 | |||
2069 | 187 | if function_exists "log_daemon_msg"; then | ||
2070 | 188 | log_end_msg ${end_msg:-0} | ||
2071 | 189 | fi | ||
2072 | 159 | else | 190 | else |
2074 | 160 | action $"Performing recovery on $instance database: " recover_backward "$instance" | 191 | if function_exists "action"; then |
2075 | 192 | action $"Performing recovery on $instance database: " recover_backward "$instance" | ||
2076 | 193 | elif function_exists "log_daemon_msg"; then | ||
2077 | 194 | log_daemon_msg "Performing backward journal recovery on OpenVista databases" "$instance" | ||
2078 | 195 | recover_backward "$instance" | ||
2079 | 196 | log_end_msg $? | ||
2080 | 197 | else | ||
2081 | 198 | recover_backward "$instance" | ||
2082 | 199 | fi | ||
2083 | 161 | fi | 200 | fi |
2084 | 162 | ;; | 201 | ;; |
2085 | 163 | stop) | 202 | stop) |
2086 | 164 | if [ -z "$2" ]; then | 203 | if [ -z "$2" ]; then |
2088 | 165 | echo "Terminating remaining mumps processes..." | 204 | if function_exists "action"; then |
2089 | 205 | echo "Terminating remaining mumps processes..." | ||
2090 | 206 | elif function_exists "log_daemon_msg"; then | ||
2091 | 207 | log_daemon_msg "Terminating remaining mumps processes" | ||
2092 | 208 | fi | ||
2093 | 166 | 209 | ||
2094 | 167 | for instance in `ls $root`; do | 210 | for instance in `ls $root`; do |
2095 | 168 | [ -L "$root/$instance/gtm" ] || continue | 211 | [ -L "$root/$instance/gtm" ] || continue |
2096 | 169 | 212 | ||
2098 | 170 | action $" Terminating mumps processes in $instance: " terminate_processes "$instance" | 213 | if function_exists "action"; then |
2099 | 214 | action $" Terminating mumps processes in $instance: " terminate_processes "$instance" | ||
2100 | 215 | elif function_exists "log_daemon_msg"; then | ||
2101 | 216 | log_progress_msg "$instance" | ||
2102 | 217 | terminate_processes "$instance" || end_msg=1 | ||
2103 | 218 | else | ||
2104 | 219 | terminate_processes "$instance" | ||
2105 | 220 | fi | ||
2106 | 171 | done | 221 | done |
2107 | 222 | |||
2108 | 223 | if function_exists "log_daemon_msg"; then | ||
2109 | 224 | log_end_msg ${end_msg:-0} | ||
2110 | 225 | fi | ||
2111 | 172 | else | 226 | else |
2113 | 173 | action $"Terminating mumps processes in $instance: " terminate_processes "$instance" | 227 | if function_exists "action"; then |
2114 | 228 | action $"Terminating mumps processes in $instance: " terminate_processes "$instance" | ||
2115 | 229 | elif function_exists "log_daemon_msg"; then | ||
2116 | 230 | log_daemon_msg "Terminating remaining mumps processes" "$instance" | ||
2117 | 231 | terminate_processes "$instance" | ||
2118 | 232 | log_end_msg $? | ||
2119 | 233 | else | ||
2120 | 234 | terminate_processes "$instance" | ||
2121 | 235 | fi | ||
2122 | 174 | fi | 236 | fi |
2123 | 175 | ;; | 237 | ;; |
2124 | 238 | restart|force-reload) | ||
2125 | 239 | $0 stop $2 | ||
2126 | 240 | $0 start $2 | ||
2127 | 241 | ;; | ||
2128 | 176 | *) | 242 | *) |
2130 | 177 | echo "Usage: openvista-databases {start|stop} [INSTANCE_NAME]" >&2 | 243 | echo "Usage: openvista-databases {start|stop|restart|force-reload} [INSTANCE_NAME]" >&2 |
2131 | 178 | exit 1 | 244 | exit 1 |
2132 | 179 | ;; | 245 | ;; |
2133 | 180 | esac | 246 | esac |
2134 | 181 | 247 | ||
2135 | === modified file 'scripts/usr/lib/openvista/functions' | |||
2136 | --- scripts/usr/lib/openvista/functions 2009-04-30 06:48:24 +0000 | |||
2137 | +++ scripts/usr/lib/openvista/functions 2009-08-03 18:23:59 +0000 | |||
2138 | @@ -128,3 +128,8 @@ | |||
2139 | 128 | fi | 128 | fi |
2140 | 129 | } | 129 | } |
2141 | 130 | 130 | ||
2142 | 131 | function function_exists() | ||
2143 | 132 | { | ||
2144 | 133 | type "$1" 2> /dev/null | grep -q 'function' | ||
2145 | 134 | } | ||
2146 | 135 | |||
2147 | 131 | 136 | ||
2148 | === modified file 'scripts/usr/sbin/ovinstanceadd' | |||
2149 | --- scripts/usr/sbin/ovinstanceadd 2009-07-17 08:17:11 +0000 | |||
2150 | +++ scripts/usr/sbin/ovinstanceadd 2009-07-20 17:57:12 +0000 | |||
2151 | @@ -94,17 +94,17 @@ | |||
2152 | 94 | exit 1 | 94 | exit 1 |
2153 | 95 | fi | 95 | fi |
2154 | 96 | 96 | ||
2156 | 97 | grep "^$user:" /etc/passwd > /dev/null || { | 97 | if ! getent passwd "$user" > /dev/null; then |
2157 | 98 | echo "ovinstanceadd: user '$user' not found in /etc/passwd" >&2 | 98 | echo "ovinstanceadd: user '$user' not found in /etc/passwd" >&2 |
2158 | 99 | exit 1 | 99 | exit 1 |
2160 | 100 | } | 100 | fi |
2161 | 101 | 101 | ||
2163 | 102 | grep "^$user:" /etc/group > /dev/null || { | 102 | if ! getent group "$user" > /dev/null; then |
2164 | 103 | echo "ovinstanceadd: group '$user' not found in /etc/group" >&2 | 103 | echo "ovinstanceadd: group '$user' not found in /etc/group" >&2 |
2165 | 104 | exit 1 | 104 | exit 1 |
2167 | 105 | } | 105 | fi |
2168 | 106 | 106 | ||
2170 | 107 | home=`grep "^$user:" /etc/passwd | awk -F : '{ print $6 }'` | 107 | home=`getent passwd "$user" | awk -F : '{ print $6 }'` |
2171 | 108 | 108 | ||
2172 | 109 | if [ ! -d "$home" ]; then | 109 | if [ ! -d "$home" ]; then |
2173 | 110 | echo "ovinstanceadd: $user user's home directory does not exist" >&2 | 110 | echo "ovinstanceadd: $user user's home directory does not exist" >&2 |
2174 | @@ -119,18 +119,28 @@ | |||
2175 | 119 | exit 1 | 119 | exit 1 |
2176 | 120 | fi | 120 | fi |
2177 | 121 | 121 | ||
2190 | 122 | grep "^apache:" /etc/passwd > /dev/null || { | 122 | if getent passwd apache > /dev/null; then |
2191 | 123 | echo "ovinstanceadd: user 'apache' not found in /etc/passwd" >&2 | 123 | apache_user=apache |
2192 | 124 | exit 1 | 124 | apache_conf=/etc/httpd/conf |
2193 | 125 | } | 125 | docroot=/var/www/html |
2194 | 126 | 126 | elif getent passwd www-data > /dev/null; then | |
2195 | 127 | if [ ! -d "/var/www/html/webdav" ]; then | 127 | apache_user=www-data |
2196 | 128 | echo "ovinstanceadd: /var/www/html/webdav does not exist" >&2 | 128 | apache_conf=/etc/apache2 |
2197 | 129 | exit 1 | 129 | docroot=/var/www |
2198 | 130 | fi | 130 | fi |
2199 | 131 | 131 | ||
2200 | 132 | if [ ! -f "/etc/httpd/conf/webdav.htpasswd" ]; then | 132 | if [ -z "$apache_user" ]; then |
2201 | 133 | echo "ovinstanceadd: /etc/httpd/conf/webdav.htpasswd does not exist" >&2 | 133 | echo "ovinstanceadd: apache user not found in /etc/passwd" >&2 |
2202 | 134 | exit 1 | ||
2203 | 135 | fi | ||
2204 | 136 | |||
2205 | 137 | if [ ! -d "$docroot/webdav" ]; then | ||
2206 | 138 | echo "ovinstanceadd: $docroot/webdav does not exist" >&2 | ||
2207 | 139 | exit 1 | ||
2208 | 140 | fi | ||
2209 | 141 | |||
2210 | 142 | if [ ! -f "$apache_conf/webdav.htpasswd" ]; then | ||
2211 | 143 | echo "ovinstanceadd: $apache_conf/webdav.htpasswd does not exist" >&2 | ||
2212 | 134 | exit 1 | 144 | exit 1 |
2213 | 135 | fi | 145 | fi |
2214 | 136 | 146 | ||
2215 | @@ -311,12 +321,12 @@ | |||
2216 | 311 | exit 1 | 321 | exit 1 |
2217 | 312 | } | 322 | } |
2218 | 313 | 323 | ||
2220 | 314 | install -o apache -g apache -m 755 -d "/var/www/html/webdav/$instance" || { | 324 | install -o "$apache_user" -g "$apache_user" -m 755 -d "$docroot/webdav/$instance" || { |
2221 | 315 | echo "ovinstanceadd: Unable to create webdav root" >&2 | 325 | echo "ovinstanceadd: Unable to create webdav root" >&2 |
2222 | 316 | exit 1 | 326 | exit 1 |
2223 | 317 | } | 327 | } |
2224 | 318 | 328 | ||
2226 | 319 | ln -s "/var/www/html/webdav/$instance" "$root/$instance/images" | 329 | ln -s "$docroot/webdav/$instance" "$root/$instance/images" |
2227 | 320 | 330 | ||
2228 | 321 | ( | 331 | ( |
2229 | 322 | umask 077 | 332 | umask 077 |
2230 | @@ -327,8 +337,8 @@ | |||
2231 | 327 | exit 1 | 337 | exit 1 |
2232 | 328 | } | 338 | } |
2233 | 329 | 339 | ||
2236 | 330 | htpasswd -b -m "/etc/httpd/conf/webdav.htpasswd" "$instance" "`cat \"$root/$instance/etc/$instance-webdav_password\"`" > /dev/null 2>&1 || { | 340 | htpasswd -b -m "$apache_conf/webdav.htpasswd" "$instance" "`cat \"$root/$instance/etc/$instance-webdav_password\"`" > /dev/null 2>&1 || { |
2237 | 331 | echo "ovinstanceadd: Unable to update /etc/httpd/conf/webdav.htpasswd" >&2 | 341 | echo "ovinstanceadd: Unable to update $apache_conf/webdav.htpasswd" >&2 |
2238 | 332 | exit 1 | 342 | exit 1 |
2239 | 333 | } | 343 | } |
2240 | 334 | 344 | ||
2241 | 335 | 345 | ||
2242 | === modified file 'scripts/usr/sbin/ovinstancedel' | |||
2243 | --- scripts/usr/sbin/ovinstancedel 2009-07-17 08:17:11 +0000 | |||
2244 | +++ scripts/usr/sbin/ovinstancedel 2009-07-20 17:57:12 +0000 | |||
2245 | @@ -80,20 +80,35 @@ | |||
2246 | 80 | } | 80 | } |
2247 | 81 | 81 | ||
2248 | 82 | # check for other requirements | 82 | # check for other requirements |
2250 | 83 | grep "^$user:" /etc/passwd > /dev/null || { | 83 | if ! getent passwd "$user" > /dev/null; then |
2251 | 84 | echo "ovinstancedel: user '$user' not found in /etc/passwd" >&2 | 84 | echo "ovinstancedel: user '$user' not found in /etc/passwd" >&2 |
2252 | 85 | exit 1 | 85 | exit 1 |
2254 | 86 | } | 86 | fi |
2255 | 87 | 87 | ||
2257 | 88 | home=`grep "^$user:" /etc/passwd | awk -F : '{ print $6 }'` | 88 | home=`getent passwd "$user" | awk -F : '{ print $6 }'` |
2258 | 89 | 89 | ||
2259 | 90 | if [ ! -d "$home" ]; then | 90 | if [ ! -d "$home" ]; then |
2260 | 91 | echo "ovinstancedel: $user user's home directory does not exist" >&2 | 91 | echo "ovinstancedel: $user user's home directory does not exist" >&2 |
2261 | 92 | exit 1 | 92 | exit 1 |
2262 | 93 | fi | 93 | fi |
2263 | 94 | 94 | ||
2266 | 95 | if [ ! -f "/etc/httpd/conf/webdav.htpasswd" ]; then | 95 | if getent passwd apache > /dev/null; then |
2267 | 96 | echo "ovinstancedel: /etc/httpd/conf/webdav.htpasswd does not exist" >&2 | 96 | apache_user=apache |
2268 | 97 | apache_conf=/etc/httpd/conf | ||
2269 | 98 | docroot=/var/www/html | ||
2270 | 99 | elif getent passwd www-data > /dev/null; then | ||
2271 | 100 | apache_user=www-data | ||
2272 | 101 | apache_conf=/etc/apache2 | ||
2273 | 102 | docroot=/var/www | ||
2274 | 103 | fi | ||
2275 | 104 | |||
2276 | 105 | if [ -z "$apache_user" ]; then | ||
2277 | 106 | echo "ovinstancedel: apache user not found in /etc/passwd" >&2 | ||
2278 | 107 | exit 1 | ||
2279 | 108 | fi | ||
2280 | 109 | |||
2281 | 110 | if [ ! -f "$apache_conf/webdav.htpasswd" ]; then | ||
2282 | 111 | echo "ovinstancedel: $apache_conf/webdav.htpasswd does not exist" >&2 | ||
2283 | 97 | exit 1 | 112 | exit 1 |
2284 | 98 | fi | 113 | fi |
2285 | 99 | 114 | ||
2286 | @@ -122,7 +137,7 @@ | |||
2287 | 122 | command="grep -v ' $instance\$' '$home/.ssh/authorized_keys' > '$home/.ssh/authorized_keys'.\$\$" | 137 | command="grep -v ' $instance\$' '$home/.ssh/authorized_keys' > '$home/.ssh/authorized_keys'.\$\$" |
2288 | 123 | command=$command"; mv -f '$home/.ssh/authorized_keys'.\$\$ '$home/.ssh/authorized_keys'" | 138 | command=$command"; mv -f '$home/.ssh/authorized_keys'.\$\$ '$home/.ssh/authorized_keys'" |
2289 | 124 | su -c "$command" "$user" || { | 139 | su -c "$command" "$user" || { |
2291 | 125 | echo "ovinstanceadd: Unable to update $home/.ssh/authorized_keys" >&2 | 140 | echo "ovinstancedel: Unable to update $home/.ssh/authorized_keys" >&2 |
2292 | 126 | exit 1 | 141 | exit 1 |
2293 | 127 | } | 142 | } |
2294 | 128 | 143 | ||
2295 | @@ -148,12 +163,12 @@ | |||
2296 | 148 | exit 1 | 163 | exit 1 |
2297 | 149 | } | 164 | } |
2298 | 150 | 165 | ||
2301 | 151 | htpasswd -D "/etc/httpd/conf/webdav.htpasswd" "$instance" > /dev/null 2>&1 || { | 166 | htpasswd -D "$apache_conf/webdav.htpasswd" "$instance" > /dev/null 2>&1 || { |
2302 | 152 | echo "ovinstancedel: Unable to update /etc/httpd/conf/webdav.htpasswd" >&2 | 167 | echo "ovinstancedel: Unable to update $apache_conf/webdav.htpasswd" >&2 |
2303 | 153 | exit 1 | 168 | exit 1 |
2304 | 154 | } | 169 | } |
2305 | 155 | 170 | ||
2307 | 156 | rm -rf "/var/www/html/webdav/$instance" || { | 171 | rm -rf "$docroot/webdav/$instance" || { |
2308 | 157 | echo "ovinstancedel: Unable to remove WebDAV root" >&2 | 172 | echo "ovinstancedel: Unable to remove WebDAV root" >&2 |
2309 | 158 | exit 1 | 173 | exit 1 |
2310 | 159 | } | 174 | } |
I've lightly tested the RPMs and debs built from this branch and everything seems to work OK - RPC broker, webdav, tied accounts, programmer mode authentication, man pages, and logging. Reviewers (essentially, Jeff) - please do your own testing and be on the lookout for regressions.