Merge lp:~jontai/openvista-gtm-integration/bug358242 into lp:openvista-gtm-integration

Proposed by Jon Tai
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jontai/openvista-gtm-integration/bug358242
Merge into: lp:openvista-gtm-integration
Diff against target: None lines
To merge this branch: bzr merge lp:~jontai/openvista-gtm-integration/bug358242
Reviewer Review Type Date Requested Status
jeff.apple Approve
Review via email: mp+9669@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jon Tai (jontai) wrote :

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.

Revision history for this message
jeff.apple (jeff-apple) wrote :

In scripts/etc/init.d/openvista we have
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.

review: Approve
Revision history for this message
Jon Tai (jontai) wrote :

> In scripts/etc/init.d/openvista we have
> 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://www.debian.org/doc/debian-policy/ch-opersys.html#s9.4

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

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added file 'debuild.sh'
--- debuild.sh 1970-01-01 00:00:00 +0000
+++ debuild.sh 2009-07-30 20:45:36 +0000
@@ -0,0 +1,59 @@
1#!/bin/sh
2
3# build Debian package(s) from the files in this directory
4#
5# specify the name of a package to build as the first argument, or no arguments
6# to build all packages
7
8dir1=`pwd`
9dir2=`dirname "$0"`
10dir=`cd "$dir1/$dir2"; pwd`
11
12if [ -z "$1" ]; then
13 packages=""
14 for package in "$dir/packages/deb/"*; do
15 package=`basename "$package"`
16 packages="$packages $package"
17 done
18else
19 if [ -d "$dir/packages/deb/$1" ]; then
20 packages=$1
21 else
22 echo "debuild.sh: $1: No such package in '$dir/packages/deb'" >&2
23 exit 3
24 fi
25fi
26
27mkdir -p /tmp/ubuntu
28
29for package in $packages; do
30 version=`head -n1 "packages/deb/$package/debian/changelog" | awk '{ print $2 }' | sed 's/[()]//g' | sed 's/-[^\-]\+$//'`
31
32 case $package in
33 openvista-utils|openvista-libs*)
34 # create source tarabll
35 rm -rf "/tmp/ubuntu/${package}-$version"
36 cp -Rp "$dir" "/tmp/ubuntu/${package}-$version"
37 rm -rf "/tmp/ubuntu/${package}-$version/.bzr"
38 rm -f "/tmp/ubuntu/${package}_${version}.orig.tar.gz"
39 tar -c --gzip -f "/tmp/ubuntu/${package}_${version}.orig.tar.gz" -C /tmp/ubuntu "${package}-$version"
40 cp -Rp "/tmp/ubuntu/${package}-$version/packages/deb/$package/debian" "/tmp/ubuntu/${package}-$version/"
41
42 ( cd "/tmp/ubuntu/${package}-$version" && debuild )
43 ;;
44 fis-gtm*)
45 # rename source tarball
46 upstream_version=`echo "$version" | sed 's/\.//'`
47 cp -f "/tmp/ubuntu/gtm_V${upstream_version}_linux_i686_src.tar.gz" "/tmp/ubuntu/${package}_${version}.orig.tar.gz"
48
49 # unpack source tarball
50 rm -rf "/tmp/ubuntu/${package}-${version}"
51 mkdir "/tmp/ubuntu/${package}-${version}"
52 ( cd "/tmp/ubuntu/${package}-${version}" && tar -xzf "/tmp/ubuntu/${package}_${version}.orig.tar.gz" )
53 cp -Rp "$dir/packages/deb/${package}/debian" "/tmp/ubuntu/${package}-${version}/"
54
55 ( cd "/tmp/ubuntu/${package}-$version" && debuild -r sudo )
56 ;;
57 esac
58done
59
060
=== modified file 'docs/man1/ovbackup.1'
--- docs/man1/ovbackup.1 2009-04-21 20:45:44 +0000
+++ docs/man1/ovbackup.1 2009-07-09 23:48:40 +0000
@@ -1,4 +1,4 @@
1.TH ovbackup 1 "18 Apr 2009" Linux "User Manuals"1.TH ovbackup 1 "9 Jul 2009" Linux "User Manuals"
2.SH NAME2.SH NAME
3ovbackup \- backs up routines and globals of an OpenVista instance3ovbackup \- backs up routines and globals of an OpenVista instance
4.SH SYNOPSIS4.SH SYNOPSIS
@@ -63,4 +63,4 @@
63Jonathan Tai <jon.tai@medsphere.com>63Jonathan Tai <jon.tai@medsphere.com>
64.SH "SEE ALSO"64.SH "SEE ALSO"
65.BR ovpurgejournals (1)65.BR ovpurgejournals (1)
66.BR ovrestore (1)66.BR ovrestore (8)
6767
=== modified file 'docs/man1/ovimport.1'
--- docs/man1/ovimport.1 2009-04-28 01:22:21 +0000
+++ docs/man1/ovimport.1 2009-07-09 23:48:40 +0000
@@ -1,4 +1,4 @@
1.TH ovimport 1 "20 Apr 2009" Linux "User Manuals"1.TH ovimport 1 "9 Jul 2009" Linux "User Manuals"
2.SH NAME2.SH NAME
3ovimport \- imports routines and globals into a new OpenVista instance3ovimport \- imports routines and globals into a new OpenVista instance
4.SH SYNOPSIS4.SH SYNOPSIS
@@ -74,4 +74,4 @@
74.SH AUTHOR74.SH AUTHOR
75Jonathan Tai <jon.tai@medsphere.com>75Jonathan Tai <jon.tai@medsphere.com>
76.SH "SEE ALSO"76.SH "SEE ALSO"
77.BR ovrestore (1)77.BR ovrestore (8)
7878
=== added directory 'docs/man8'
=== added file 'docs/man8/gtmsignal.8'
--- docs/man8/gtmsignal.8 1970-01-01 00:00:00 +0000
+++ docs/man8/gtmsignal.8 2009-08-03 19:22:13 +0000
@@ -0,0 +1,50 @@
1.TH gtmsignal 8 "3 Aug 2009" Linux "User Manuals"
2.SH NAME
3gtmsignal \- send mupip STOP or INTRPT to GT.M processes
4.SH SYNOPSIS
5.B gtmsignal [-a|--all] [-s|--stop] [-h|--help] [-q|--quiet]
6.I \fR[\fIpid\fR...]
7.SH DESCRIPTION
8.B mupip
9can be used to send signals to other GT.M processes if the user calling mupip
10also owns the target process (the one receiving the signal), or if the user
11calling mupip is root. Sending signals as a non-root user to processes owned
12by a different user is prohibited by Linux.
13.PP
14.B gtmsignal
15is a suid wrapper around
16.B mupip
17that allow users in the gtm group to bypass this restriction when sending
18signals to GT.M processes, i.e., any user in the gtm group can call
19.B gtmsignal
20to send a signal to any GT.M process, regardless of the target GT.M process'
21owner.
22.PP
23.B gtmsignal
24relies on mupip to do the actual sending of signals, and will only send signals
25to GT.M processes currently executing the
26.B mumps
27binary installed in the same directory as
28.B gtmsignal\fP.
29.SH OPTIONS
30.TP
31\fB\-a\fR, \fB\-\-all\fR
32send signal to all GT.M processes
33.TP
34\fB\-s\fR, \fB\-\-stop\fR
35send STOP instead of INTRPT
36.TP
37\fB\-h\fR, \fB\-\-help\fR
38display help text and exit
39.TP
40\fB\-q\fR, \fB\-\-quiet\fR
41quiet; do not display warnings
42.SH "REPORTING BUGS"
43Please report any bugs you encounter at
44.PP
45https://bugs.launchpad.net/openvista-gtm-integration
46.SH AUTHOR
47.SS "gtmsignal"
48Jeff Apple <jeff.apple@medsphere.com>
49.SS "This manual page"
50Jonathan Tai <jon.tai@medsphere.com>
051
=== added file 'docs/man8/ovauth.8'
--- docs/man8/ovauth.8 1970-01-01 00:00:00 +0000
+++ docs/man8/ovauth.8 2009-07-10 00:05:19 +0000
@@ -0,0 +1,48 @@
1.TH ovauth 8 "9 Jul 2009" Linux "User Manuals"
2.SH NAME
3ovauth \- helper application for OpenVista to verify PAM credentials
4.SH SYNOPSIS
5.B ovauth
6.I user
7.SH DESCRIPTION
8.B ovauth
9can be called by the
10.B openvista
11tied account to verify the PAM credentials of another user in the
12.B openvista
13group. If
14.B ovauth
15is run by a user other than the
16.B openvista
17user, or if
18.B ovauth
19is run with a TTY,
20.B ovauth
21will return an error. Similarly, if the
22.B openvista
23user attempts to verify the credentials of a user who is not in the
24.B openvista
25group,
26.B ovauth
27will return an error.
28.PP
29.B ovauth
30is invoked with a single argument - the username of the user whose credentials
31are being verified. The user's potential password is read from standard input.
32If the supplied password is valid,
33.B ovauth
34prints "OK" and exits 0. Otherwise,
35.B ovauth
36prints "Authentication failure" and exits 1.
37.SH "REPORTING BUGS"
38Please report any bugs you encounter at
39.PP
40https://bugs.launchpad.net/openvista-gtm-integration
41.SH AUTHOR
42.SS "ovauth"
43Jeff Apple <jeff.apple@medsphere.com>
44.SS "This manual page"
45Jonathan Tai <jon.tai@medsphere.com>
46.SH "SEE ALSO"
47.BR ovtied (1)
48.BR pam (3)
049
=== renamed file 'docs/man1/ovinstanceadd.1' => 'docs/man8/ovinstanceadd.8'
--- docs/man1/ovinstanceadd.1 2009-04-21 23:38:53 +0000
+++ docs/man8/ovinstanceadd.8 2009-07-09 23:48:40 +0000
@@ -1,4 +1,4 @@
1.TH ovinstanceadd 1 "18 Apr 2009" Linux "User Manuals"1.TH ovinstanceadd 8 "9 Jul 2009" Linux "User Manuals"
2.SH NAME2.SH NAME
3ovinstanceadd \- create a new OpenVista instance3ovinstanceadd \- create a new OpenVista instance
4.SH SYNOPSIS4.SH SYNOPSIS
@@ -25,4 +25,4 @@
25.SH AUTHOR25.SH AUTHOR
26Jonathan Tai <jon.tai@medsphere.com>26Jonathan Tai <jon.tai@medsphere.com>
27.SH "SEE ALSO"27.SH "SEE ALSO"
28.BR ovinstancedel (1)28.BR ovinstancedel (8)
2929
=== renamed file 'docs/man1/ovinstancedel.1' => 'docs/man8/ovinstancedel.8'
--- docs/man1/ovinstancedel.1 2009-04-21 23:38:53 +0000
+++ docs/man8/ovinstancedel.8 2009-07-09 23:48:40 +0000
@@ -1,4 +1,4 @@
1.TH ovinstancedel 1 "18 Apr 2009" Linux "User Manuals"1.TH ovinstancedel 8 "9 Jul 2009" Linux "User Manuals"
2.SH NAME2.SH NAME
3ovinstancedel \- delete an OpenVista instance3ovinstancedel \- delete an OpenVista instance
4.SH SYNOPSIS4.SH SYNOPSIS
@@ -26,4 +26,4 @@
26.SH AUTHOR26.SH AUTHOR
27Jonathan Tai <jon.tai@medsphere.com>27Jonathan Tai <jon.tai@medsphere.com>
28.SH "SEE ALSO"28.SH "SEE ALSO"
29.BR ovinstanceadd (1)29.BR ovinstanceadd (8)
3030
=== renamed file 'docs/man1/ovrestore.1' => 'docs/man8/ovrestore.8'
--- docs/man1/ovrestore.1 2009-04-21 20:45:44 +0000
+++ docs/man8/ovrestore.8 2009-07-09 23:48:40 +0000
@@ -1,4 +1,4 @@
1.TH ovrestore 1 "18 Apr 2009" Linux "User Manuals"1.TH ovrestore 8 "9 Jul 2009" Linux "User Manuals"
2.SH NAME2.SH NAME
3ovrestore \- restores a backup file into an OpenVista instance3ovrestore \- restores a backup file into an OpenVista instance
4.SH SYNOPSIS4.SH SYNOPSIS
55
=== added directory 'packages/deb'
=== added directory 'packages/deb/fis-gtm-5.3004'
=== added directory 'packages/deb/fis-gtm-5.3004/debian'
=== added file 'packages/deb/fis-gtm-5.3004/debian/changelog'
--- packages/deb/fis-gtm-5.3004/debian/changelog 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/changelog 2009-07-29 12:27:28 +0000
@@ -0,0 +1,5 @@
1fis-gtm-5.3004 (5.3004-0ubuntu1) jaunty; urgency=low
2
3 * Initial Ubuntu package (Closes: #358242)
4
5 -- Jonathan Tai <jon.tai@medsphere.com> Fri, 24 Jul 2009 00:34:40 -0700
06
=== added file 'packages/deb/fis-gtm-5.3004/debian/compat'
--- packages/deb/fis-gtm-5.3004/debian/compat 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/compat 2009-07-29 12:27:28 +0000
@@ -0,0 +1,1 @@
17
02
=== added file 'packages/deb/fis-gtm-5.3004/debian/control'
--- packages/deb/fis-gtm-5.3004/debian/control 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/control 2009-07-30 22:23:13 +0000
@@ -0,0 +1,17 @@
1Source: fis-gtm-5.3004
2Section: misc
3Priority: optional
4Maintainer: Jonathan Tai <jon.tai@medsphere.com>
5Build-Depends: debhelper (>= 7), dpatch, tcsh, gcc-4.1, libicu-dev (>= 3.8), zlib1g-dev, libncurses5-dev, libgpgme11-dev, libgpg-error-dev, libgcrypt11-dev
6Standards-Version: 3.8.0
7Homepage: http://www.fidelityinfoservices.com/FNFIS/Markets/NonFinancialIndustries/Healthcare/GTM/
8
9Package: fis-gtm-5.3004
10Architecture: any
11Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, libicu38, zlib1g, libncurses5, libgpgme11, libgpg-error0, libgcrypt11
12Suggests: ksh
13Description: High end TP schemaless database
14 GT.M is a vetted, industrial strength, transaction processing application
15 platform consisting of a schema-less database engine optimized for extreme
16 transaction processing throughput & business continuity plus a compiler for the
17 MUMPS language.
018
=== added file 'packages/deb/fis-gtm-5.3004/debian/copyright'
--- packages/deb/fis-gtm-5.3004/debian/copyright 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/copyright 2009-07-29 12:27:28 +0000
@@ -0,0 +1,21 @@
1This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on
2Fri, 24 Jul 2009 00:34:40 -0700.
3
4It was downloaded from <http://www.fidelityinfoservices.com/FNFIS/Markets/NonFinancialIndustries/Healthcare/GTM/>
5
6Upstream Author:
7
8 Fidelity Information Services, Inc.
9
10Copyright:
11
12 Copyright (C) 2009 Fidelity Information Services, Inc.
13
14License:
15
16 GT.M for selected platforms, including GNU/Linux on the popular x86
17 architecture, can be downloaded under the terms of the Affero GNU General
18 Public License (AGPL) version 3.
19
20The Debian packaging is copyright 2009, Medsphere Systems Corporation and
21is licensed under the AGPL.
022
=== added file 'packages/deb/fis-gtm-5.3004/debian/dirs'
--- packages/deb/fis-gtm-5.3004/debian/dirs 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/dirs 2009-07-29 12:27:28 +0000
@@ -0,0 +1,1 @@
1opt/lsb-gtm
02
=== added file 'packages/deb/fis-gtm-5.3004/debian/docs'
--- packages/deb/fis-gtm-5.3004/debian/docs 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/docs 2009-07-30 20:45:36 +0000
@@ -0,0 +1,1 @@
1COPYING
02
=== added directory 'packages/deb/fis-gtm-5.3004/debian/patches'
=== added file 'packages/deb/fis-gtm-5.3004/debian/patches/00list'
--- packages/deb/fis-gtm-5.3004/debian/patches/00list 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/patches/00list 2009-07-29 12:27:28 +0000
@@ -0,0 +1,2 @@
101-configurable-compiler.dpatch
202-configure-fix.dpatch
03
=== added file 'packages/deb/fis-gtm-5.3004/debian/patches/01-configurable-compiler.dpatch'
--- packages/deb/fis-gtm-5.3004/debian/patches/01-configurable-compiler.dpatch 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/patches/01-configurable-compiler.dpatch 2009-07-29 12:27:28 +0000
@@ -0,0 +1,19 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 01-configurable-compiler.dpatch by <jon.tai@medsphere.com>
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: No description.
6
7@DPATCH@
8diff -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
9--- fis-gtm-5.3004-5.3004~/sr_linux/gtm_env_sp.mk 2009-06-08 05:08:10.000000000 -0400
10+++ fis-gtm-5.3004-5.3004/sr_linux/gtm_env_sp.mk 2009-07-28 22:22:03.000000000 -0400
11@@ -57,7 +57,7 @@
12 gt_as_src_suffix=.s
13
14 # C compiler options
15-gt_cc_compiler=gcc
16+gt_cc_compiler?=gcc
17
18 # Do not lookup the source directory before include directories specified by -I.
19 # gcc complains about -I- being obsolete, but using -iquote cause build errors for gcc and as - ABS 2008.12.09
020
=== added file 'packages/deb/fis-gtm-5.3004/debian/patches/02-configure-fix.dpatch'
--- packages/deb/fis-gtm-5.3004/debian/patches/02-configure-fix.dpatch 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/patches/02-configure-fix.dpatch 2009-07-29 12:27:28 +0000
@@ -0,0 +1,31 @@
1#! /bin/sh /usr/share/dpatch/dpatch-run
2## 02-configure-fix.dpatch by <jon.tai@medsphere.com>
3##
4## All lines beginning with `## DP:' are a description of the patch.
5## DP: No description.
6
7@DPATCH@
8diff -urNad fis-gtm-5.3004-5.3004~/sr_unix/configure.gtc fis-gtm-5.3004-5.3004/sr_unix/configure.gtc
9--- fis-gtm-5.3004-5.3004~/sr_unix/configure.gtc 2009-07-10 11:31:45.000000000 -0400
10+++ fis-gtm-5.3004-5.3004/sr_unix/configure.gtc 2009-07-28 22:27:19.000000000 -0400
11@@ -208,9 +208,9 @@
12 is64bit_gtm=`file mumps | grep "64-bit" | wc -l`
13 fi
14 if [ $is64bit_gtm -eq 1 ] ; then
15- library_path="/usr/local/lib64 /usr/local/lib /usr/lib /usr/lib32"
16+ library_path="/usr/local/lib64 /usr/local/lib /usr/lib64 /usr/lib /lib64 /lib"
17 else
18- library_path="/usr/local/lib /usr/lib /usr/lib32"
19+ library_path="/usr/local/lib32 /usr/local/lib /usr/lib32 /usr/lib /lib32 /lib"
20 fi
21 $echo "Should unicode support be installed? (y or n) \c"
22 read resp
23@@ -303,7 +303,7 @@
24 fi
25 done
26 if [ "$found_icu" -eq 0 ] ; then
27- if [ $majmin != "" ] ; then
28+ if [ "$majmin" != "" ] ; then
29 echo "WARNING: ICU version $gtm_icu_version not found. Not installing Unicode support."
30 else
31 echo "WARNING: Default ICU version not found. Not installing Unicode support."
032
=== added file 'packages/deb/fis-gtm-5.3004/debian/patches/99-noninteractive-configure.patch'
--- packages/deb/fis-gtm-5.3004/debian/patches/99-noninteractive-configure.patch 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/patches/99-noninteractive-configure.patch 2009-08-01 07:06:06 +0000
@@ -0,0 +1,78 @@
1--- configure 2009-07-16 15:26:02.000000000 -0700
2+++ configure 2009-07-16 15:28:00.000000000 -0700
3@@ -112,7 +112,7 @@
4 # create temporary file to test for valid user and group names
5 touch tmp_owngrp
6 $echo "What account should own the files? (bin) \c"
7-read resp
8+resp=""
9 if [ "$resp" = "" ] ; then
10 owner="bin"
11 else
12@@ -126,10 +126,10 @@
13 fi
14
15 $echo "Should execution of GT.M to be restricted to a group? (y or n) \c"
16-read resp
17+resp="y"
18 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
19 $echo "Enter group name? \c"
20- read group
21+ group="bin"
22 if [ "$group" != "" ] ; then
23 chgrp $group tmp_owngrp 2> /dev/null
24 if [ 1 = "$?" ] ; then
25@@ -145,7 +145,7 @@
26 rm tmp_owngrp
27
28 $echo "In what directory should GT.M be installed? \c"
29-read gtmdist
30+gtmdist="@GTM_DIST@"
31
32 # if gtmdist is relative then need to make it absolute
33
34@@ -171,7 +171,7 @@
35 $echo "Directory $gtmdist does not exist. Do you wish to create it as part of"
36 $echo "this installation? (y or n) \c"
37
38- read resp
39+ resp="y"
40 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
41 mkdir -p $gtmdist
42 chmod 0755 $gtmdist
43@@ -213,14 +213,14 @@
44 library_path="/usr/local/lib32 /usr/local/lib /usr/lib32 /usr/lib /lib32 /lib"
45 fi
46 $echo "Should unicode support be installed? (y or n) \c"
47- read resp
48+ resp="y"
49 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
50 would_like_utf8=1
51 $echo "Should an ICU version other than the default be used? (y or n) \c"
52- read resp
53+ resp="y"
54 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
55 $echo "Enter ICU version (at least ICU version 3.6 is required. Enter as <minor-ver>.<major-ver>): \c"
56- read gtm_icu_version
57+ gtm_icu_version="@GTM_ICU_VERSION@"
58 icu_ver=`$echo $gtm_icu_version | sed 's/\.//'`
59 majmin=`$echo $icu_ver | cut -f 1 -d "."`
60 if [ "$majmin" -lt "36" ] ; then
61@@ -567,7 +567,7 @@
62 $echo "only the uppercase versions of the files."
63 $echo ""
64 $echo "Do you want uppercase and lowercase versions of the MUMPS routines? (y or n)\c"
65-read resp
66+resp="n"
67 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
68 $echo ""
69 $echo "Creating lowercase versions of the MUMPS routines."
70@@ -768,7 +768,7 @@
71 $echo ""
72 $echo "Installation completed. Would you like all the temporary files"
73 $echo "removed from this directory? (y or n) \c"
74-read resp
75+resp="y"
76
77 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
78 \rm -rf $binaries $pathmods $rscripts $nscripts $dirs configure \
079
=== added file 'packages/deb/fis-gtm-5.3004/debian/postinst'
--- packages/deb/fis-gtm-5.3004/debian/postinst 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/postinst 2009-08-01 19:52:55 +0000
@@ -0,0 +1,56 @@
1#!/bin/sh
2# postinst script for fis-gtm-5.3004
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <postinst> `configure' <most-recently-configured-version>
10# * <old-postinst> `abort-upgrade' <new version>
11# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12# <new-version>
13# * <postinst> `abort-remove'
14# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15# <failed-install-package> <version> `removing'
16# <conflicting-package> <version>
17# for details, see http://www.debian.org/doc/debian-policy/ or
18# the debian-policy package
19
20
21case "$1" in
22 configure)
23 if ! getent group gtm >/dev/null; then
24 addgroup --quiet gtm
25 fi
26
27 if [ `dpkg --print-architecture` = "amd64" ]; then
28 gtm_dist=/opt/lsb-gtm/V5.3-004_x86_64
29 else
30 gtm_dist=/opt/lsb-gtm/V5.3-004_i686
31 fi
32
33 suid_files=`find $gtm_dist -perm /4000`
34
35 chgrp -R gtm $gtm_dist
36 chgrp -R bin $gtm_dist/gtmsecshrdir
37
38 # the chgrp commands above may cause files to lose the setuid bit; re-add it here just in case
39 for file in $suid_files; do chmod u+s $file; done
40 ;;
41
42 abort-upgrade|abort-remove|abort-deconfigure)
43 ;;
44
45 *)
46 echo "postinst called with unknown argument \`$1'" >&2
47 exit 1
48 ;;
49esac
50
51# dh_installdeb will replace this with shell code automatically
52# generated by other debhelper scripts.
53
54#DEBHELPER#
55
56exit 0
057
=== added file 'packages/deb/fis-gtm-5.3004/debian/postrm'
--- packages/deb/fis-gtm-5.3004/debian/postrm 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/postrm 2009-08-01 07:06:06 +0000
@@ -0,0 +1,44 @@
1#!/bin/sh
2# postrm script for fis-gtm-5.3004
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <postrm> `remove'
10# * <postrm> `purge'
11# * <old-postrm> `upgrade' <new-version>
12# * <new-postrm> `failed-upgrade' <old-version>
13# * <new-postrm> `abort-install'
14# * <new-postrm> `abort-install' <old-version>
15# * <new-postrm> `abort-upgrade' <old-version>
16# * <disappearer's-postrm> `disappear' <overwriter>
17# <overwriter-version>
18# for details, see http://www.debian.org/doc/debian-policy/ or
19# the debian-policy package
20
21
22case "$1" in
23 purge)
24 # if we were the last GT.M package on the system, remove the gtm group
25 if [ ! -d /opt/lsb-gtm ]; then
26 delgroup --quiet gtm || :
27 fi
28 ;;
29
30 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
31 ;;
32
33 *)
34 echo "postrm called with unknown argument \`$1'" >&2
35 exit 1
36 ;;
37esac
38
39# dh_installdeb will replace this with shell code automatically
40# generated by other debhelper scripts.
41
42#DEBHELPER#
43
44exit 0
045
=== added file 'packages/deb/fis-gtm-5.3004/debian/rules'
--- packages/deb/fis-gtm-5.3004/debian/rules 1970-01-01 00:00:00 +0000
+++ packages/deb/fis-gtm-5.3004/debian/rules 2009-08-01 07:06:06 +0000
@@ -0,0 +1,205 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4#
5# This file was originally written by Joey Hess and Craig Small.
6# As a special exception, when this file is copied by dh-make into a
7# dh-make output file, you may use that output file without restriction.
8# This special exception was added by Craig Small in version 0.37 of dh-make.
9#
10# Modified to make a template file for a multi-binary package with separated
11# build-arch and build-indep targets by Bill Allombert 2001
12
13# Uncomment this to turn on verbose mode.
14#export DH_VERBOSE=1
15
16# This has to be exported to make some magic below work.
17export DH_OPTIONS
18
19#enable dpatch
20include /usr/share/dpatch/dpatch.make
21
22GTM_CURPRO = /tmp/gtm
23
24DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
25DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
26
27ifeq ($(DEB_HOST_ARCH),amd64)
28GTM_DIST = /opt/lsb-gtm/V5.3-004_x86_64
29else
30GTM_DIST = /opt/lsb-gtm/V5.3-004_i686
31endif
32
33ifeq ($(DEB_HOST_ARCH_OS),linux)
34GTM_HOSTOS = Linux
35else
36GTM_HOSTOS = $(DEB_HOST_ARCH_OS)
37endif
38
39GT_CC_COMPILER = gcc-4.1
40
41GTM_ICU_VERSION_MAJMIN = $(shell icu-config --version | sed 's/\.//' | cut -f 1 -d '.')
42GTM_ICU_VERSION_MINORVER = $(shell expr $(GTM_ICU_VERSION_MAJMIN) % 10)
43GTM_ICU_VERSION_MAJORVER = $(shell expr $(GTM_ICU_VERSION_MAJMIN) / 10)
44GTM_ICU_VERSION = $(GTM_ICU_VERSION_MAJORVER).$(GTM_ICU_VERSION_MINORVER)
45
46
47
48check-build-env:
49 if [ ! -d "$(GTM_CURPRO)" ]; then \
50 echo "existing binary installation of GT.M not found at $(GTM_CURPRO)"; \
51 exit 1; \
52 fi
53
54 if [ -d "$(GTM_DIST)" ]; then \
55 echo "target GT.M directory $(GTM_DIST) already exists"; \
56 exit 1; \
57 fi
58
59 if ! getent group gtm >/dev/null; then \
60 echo "gtm group not found in /etc/group"; \
61 exit 1; \
62 fi
63
64
65configure:
66 dh_testdir
67
68 # GT.M needs to be built with tcsh, and with a bunch of environmental variables
69 # set. Since we can't run tcsh interactively, we put all the setenv commands
70 # and the build command itself into a temporary script, then execute it with
71 # tcsh.
72 echo 'setenv gtm_curpro $(GTM_CURPRO)' > build.csh
73 echo 'setenv gtm_exe $(GTM_CURPRO)' >> build.csh
74 echo 'setenv HOSTOS $(GTM_HOSTOS)' >> build.csh
75 echo 'setenv gtm_tools $(CURDIR)/sr_linux' >> build.csh
76 echo 'setenv gtm_inc $(CURDIR)/sr_linux' >> build.csh
77 if [ "$(DEB_HOST_ARCH)" = "amd64" ]; then \
78 echo 'setenv OBJECT_MODE 64' >> build.csh ; \
79 fi
80 echo 'setenv distro ubuntu' >> build.csh
81 echo 'setenv gtm_icu_version $(GTM_ICU_VERSION)' >> build.csh
82 echo 'setenv gtm_version_change 1' >> build.csh
83 cat sr_unix/gtm_env.csh >> build.csh
84
85 # GT.M 5.3004 requires gcc-4.1, Jaunty's default (gcc 4.3) doesn't work
86 echo 'setenv gt_cc_compiler $(GT_CC_COMPILER)' >> build.csh
87
88 # GT.M's makefiles get confused if this isn't reset back to 0
89 echo 'setenv MAKELEVEL 0' >> build.csh
90
91
92#Architecture
93build: patch-stamp build-arch build-indep
94
95build-arch: build-arch-stamp
96build-arch-stamp: check-build-env configure
97 echo '$(MAKE) -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver=$(CURDIR)' >> build.csh
98 tcsh -b build.csh
99
100 touch $@
101
102build-indep: build-indep-stamp
103build-indep-stamp: check-build-env configure
104
105 # Add here commands to compile the indep part of the package.
106 #$(MAKE) doc
107 touch $@
108
109clean: unpatch configure
110 dh_testdir
111 dh_testroot
112 rm -f build-arch-stamp build-indep-stamp
113
114 echo '$(MAKE) -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver=$(CURDIR) clean' >> build.csh
115 tcsh -b build.csh
116 rm -f build.csh
117
118 if [ -f install-arch-stamp ]; then \
119 rm -rf $(GTM_DIST); \
120 rm install-arch-stamp; \
121 fi
122
123 dh_clean
124
125install: install-indep install-arch
126install-indep:
127 dh_testdir
128 dh_testroot
129 dh_prep -i
130 dh_installdirs -i
131
132 # Add here commands to install the indep part of the package into
133 # debian/<package>-doc.
134 #INSTALLDOC#
135
136 dh_install -i
137
138install-arch:
139 dh_testdir
140 dh_testroot
141 dh_prep -s
142 dh_installdirs -s
143
144 mkdir -p `dirname $(GTM_DIST)`
145
146 # We need to patch the configure script to pre-answer all of the prompts and
147 # set the installation directory
148 cd pro ; \
149 cat ../debian/patches/99-noninteractive-configure.patch | \
150 sed 's,@GTM_DIST@,$(GTM_DIST),' | \
151 sed 's,@GTM_ICU_VERSION@,$(GTM_ICU_VERSION),' | \
152 patch -p0 -b ; \
153 chmod +x configure ; \
154 ./configure
155
156 cp -a $(GTM_DIST) debian/fis-gtm-5.3004`dirname $(GTM_DIST)`/
157
158 touch install-arch-stamp
159
160 dh_install -s
161# Must not depend on anything. This is to be called by
162# binary-arch/binary-indep
163# in another 'make' thread.
164binary-common:
165 dh_testdir
166 dh_testroot
167 dh_installchangelogs
168 dh_installdocs
169 dh_installexamples
170# dh_installmenu
171# dh_installdebconf
172# dh_installlogrotate
173# dh_installemacsen
174# dh_installpam
175# dh_installmime
176# dh_python
177# dh_installinit
178# dh_installcron
179# dh_installinfo
180 dh_installman
181 dh_link
182 dh_strip
183 dh_compress
184 dh_fixperms
185 # re-copy files to ensure permissions are correct. files are owned by
186 # group bin for now; will change to group gtm in postinst
187 rm -rf debian/fis-gtm-5.3004$(GTM_DIST)
188 cp -a $(GTM_DIST) debian/fis-gtm-5.3004`dirname $(GTM_DIST)`/
189# dh_perl
190 dh_makeshlibs
191 dh_installdeb
192 dh_shlibdeps
193 dh_gencontrol
194 dh_md5sums
195 dh_builddeb
196# Build architecture independant packages using the common target.
197binary-indep: build-indep install-indep
198 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
199
200# Build architecture dependant packages using the common target.
201binary-arch: build-arch install-arch
202 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
203
204binary: binary-arch binary-indep
205.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
0206
=== added directory 'packages/deb/openvista-libs-5.3004'
=== added directory 'packages/deb/openvista-libs-5.3004/debian'
=== added file 'packages/deb/openvista-libs-5.3004/debian/changelog'
--- packages/deb/openvista-libs-5.3004/debian/changelog 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/changelog 2009-07-26 07:07:12 +0000
@@ -0,0 +1,5 @@
1openvista-libs-5.3004 (0.8.4-0ubuntu1) jaunty; urgency=low
2
3 * Initial Ubuntu package (Closes: #358242)
4
5 -- Jonathan Tai <jon.tai@medsphere.com> Sat, 25 Jul 2009 23:44:28 -0700
06
=== added file 'packages/deb/openvista-libs-5.3004/debian/changelogs'
--- packages/deb/openvista-libs-5.3004/debian/changelogs 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/changelogs 2009-07-26 07:07:12 +0000
@@ -0,0 +1,1 @@
1ChangeLog
02
=== added file 'packages/deb/openvista-libs-5.3004/debian/compat'
--- packages/deb/openvista-libs-5.3004/debian/compat 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/compat 2009-07-26 07:07:12 +0000
@@ -0,0 +1,1 @@
17
02
=== added file 'packages/deb/openvista-libs-5.3004/debian/control'
--- packages/deb/openvista-libs-5.3004/debian/control 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/control 2009-07-30 21:37:58 +0000
@@ -0,0 +1,21 @@
1Source: openvista-libs-5.3004
2Section: misc
3Priority: optional
4Maintainer: Jonathan Tai <jon.tai@medsphere.com>
5Build-Depends: debhelper (>= 7), fis-gtm-5.3004
6Standards-Version: 3.8.0
7Homepage: https://medsphere.org/community/project/gtm
8
9Package: openvista-libs-5.3004
10Architecture: any
11Depends: ${shlibs:Depends}, ${misc:Depends}, fis-gtm-5.3004
12Provides: openvista-libs
13Description: GT.M External Calls for OpenVista
14 OpenVista is a cost-effective, open, trusted and complete EHR which enhances
15 patient safety, increases clinical and operational efficiency and provides an
16 opportunity to improve quality of care delivery.
17 .
18 This package provides a shared library that OpenVista code running in GT.M
19 calls out to for PAM authentication and duplicating a device onto a spawned
20 child's stdin/stdout. This package also provides an suid wrapper around GT.M
21 utilities used to send signals to other GT.M processes.
022
=== added file 'packages/deb/openvista-libs-5.3004/debian/copyright'
--- packages/deb/openvista-libs-5.3004/debian/copyright 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/copyright 2009-07-26 07:07:12 +0000
@@ -0,0 +1,50 @@
1This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on
2Sat, 25 Jul 2009 23:44:28 -0700
3
4It was downloaded from <https://medsphere.org/community/project/gtm>
5
6Upstream Author:
7
8 Medsphere Systems Corporation
9
10Copyright:
11
12 Copyright (C) 2009 Medsphere Systems Corporation
13
14License:
15
16 The utilities provided by the OpenVista/GT.M Integration Project simplify
17 installation, configuration, and operation of OpenVista Server when running on
18 GT.M on Linux.
19
20 Copyright (C) 2009 Medsphere Systems Corporation
21
22 This program is free software; you can redistribute it and/or modify it solely
23 under the terms of the GNU Affero General Public License version 3 as published
24 by the Free Software Foundation.
25
26 This program is distributed in the hope that it will be useful, but WITHOUT
27 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
28 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
29 for more details.
30
31 You should have received a copy of the GNU Affero General Public License along
32 with this program; if not, see http://www.gnu.org/licenses or write to the Free
33 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
34 02110-1301 USA.
35
36 You can contact Medsphere Systems Corporation headquarters at 1917 Palomar Oaks Way,
37 Carlsbad, Ca. 92008 or at legal@medsphere.com.
38
39 The interactive user interfaces in modified source and object code versions
40 of this program must display Appropriate Legal Notices, as required under
41 Section 5 of the GNU Affero General Public License version 3.
42
43 In accordance with Section 7(b) of the GNU Affero General Public License
44 version 3, these Appropriate Legal Notices must retain the display of the
45 "Powered by Medsphere" logo. If the display of the logo is not reasonably
46 feasible for technical reasons, the Appropriate Legal Notices must display
47 the words "Powered by Medsphere".
48
49The Debian packaging is copyright 2009, Medsphere Systems Corporation and
50is licensed under the AGPL.
051
=== added file 'packages/deb/openvista-libs-5.3004/debian/dirs'
--- packages/deb/openvista-libs-5.3004/debian/dirs 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/dirs 2009-07-30 21:56:37 +0000
@@ -0,0 +1,1 @@
1usr/share/doc/openvista-libs-5.3004
02
=== added file 'packages/deb/openvista-libs-5.3004/debian/docs'
--- packages/deb/openvista-libs-5.3004/debian/docs 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/docs 2009-07-26 07:07:12 +0000
@@ -0,0 +1,2 @@
1NEWS
2README
03
=== added file 'packages/deb/openvista-libs-5.3004/debian/manpages'
--- packages/deb/openvista-libs-5.3004/debian/manpages 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/manpages 2009-08-03 19:22:13 +0000
@@ -0,0 +1,1 @@
1docs/man8/gtmsignal.8
02
=== added file 'packages/deb/openvista-libs-5.3004/debian/postinst'
--- packages/deb/openvista-libs-5.3004/debian/postinst 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/postinst 2009-08-01 19:52:55 +0000
@@ -0,0 +1,49 @@
1#!/bin/sh
2# postinst script for openvista-libs-5.3004
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <postinst> `configure' <most-recently-configured-version>
10# * <old-postinst> `abort-upgrade' <new version>
11# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12# <new-version>
13# * <postinst> `abort-remove'
14# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15# <failed-install-package> <version> `removing'
16# <conflicting-package> <version>
17# for details, see http://www.debian.org/doc/debian-policy/ or
18# the debian-policy package
19
20
21case "$1" in
22 configure)
23 if [ `dpkg --print-architecture` = "amd64" ]; then
24 gtm_dist=/opt/lsb-gtm/V5.3-004_x86_64
25 else
26 gtm_dist=/opt/lsb-gtm/V5.3-004_i686
27 fi
28
29 chgrp gtm $gtm_dist/libopenvista.so $gtm_dist/openvista.xc $gtm_dist/gtmsignal
30
31 # the chgrp command above may cause gtmsignal to lose the setuid bit; re-add it here just in case
32 chmod u+s $gtm_dist/gtmsignal
33 ;;
34
35 abort-upgrade|abort-remove|abort-deconfigure)
36 ;;
37
38 *)
39 echo "postinst called with unknown argument \`$1'" >&2
40 exit 1
41 ;;
42esac
43
44# dh_installdeb will replace this with shell code automatically
45# generated by other debhelper scripts.
46
47#DEBHELPER#
48
49exit 0
050
=== added file 'packages/deb/openvista-libs-5.3004/debian/rules'
--- packages/deb/openvista-libs-5.3004/debian/rules 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-libs-5.3004/debian/rules 2009-08-01 07:06:06 +0000
@@ -0,0 +1,138 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4#
5# This file was originally written by Joey Hess and Craig Small.
6# As a special exception, when this file is copied by dh-make into a
7# dh-make output file, you may use that output file without restriction.
8# This special exception was added by Craig Small in version 0.37 of dh-make.
9#
10# Modified to make a template file for a multi-binary package with separated
11# build-arch and build-indep targets by Bill Allombert 2001
12
13# Uncomment this to turn on verbose mode.
14#export DH_VERBOSE=1
15
16# This has to be exported to make some magic below work.
17export DH_OPTIONS
18
19DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
20
21ifeq ($(DEB_HOST_ARCH),amd64)
22GTM_DIST = /opt/lsb-gtm/V5.3-004_x86_64
23else
24GTM_DIST = /opt/lsb-gtm/V5.3-004_i686
25endif
26
27
28
29configure: configure-stamp
30configure-stamp:
31 dh_testdir
32 # Add here commands to configure the package.
33
34 touch configure-stamp
35
36
37#Architecture
38build: build-arch build-indep
39
40build-arch: build-arch-stamp
41build-arch-stamp: configure-stamp
42 cd src/libopenvista && gtm_dist="$(GTM_DIST)" ./compile.sh
43 cd src/gtmsignal && ./compile.sh
44 touch $@
45
46build-indep: build-indep-stamp
47build-indep-stamp: configure-stamp
48
49 # Add here commands to compile the indep part of the package.
50 #$(MAKE) doc
51 touch $@
52
53clean:
54 dh_testdir
55 dh_testroot
56 rm -f build-arch-stamp build-indep-stamp configure-stamp
57
58 rm -f src/libopenvista/libopenvista.so
59 rm -f src/libopenvista/openvista.xc
60 rm -f src/gtmsignal/gtmsignal
61
62 dh_clean
63
64install: install-indep install-arch
65install-indep:
66 dh_testdir
67 dh_testroot
68 dh_prep -i
69 dh_installdirs -i
70
71 # Add here commands to install the indep part of the package into
72 # debian/<package>-doc.
73 #INSTALLDOC#
74
75 dh_install -i
76
77install-arch:
78 dh_testdir
79 dh_testroot
80 dh_prep -s
81 dh_installdirs -s
82
83 install COPYING.AGPL debian/openvista-libs-5.3004/usr/share/doc/openvista-libs-5.3004/AGPL
84
85 mkdir -p debian/openvista-libs-5.3004$(GTM_DIST)
86
87 install src/libopenvista/libopenvista.so debian/openvista-libs-5.3004$(GTM_DIST)
88 install -m 644 src/libopenvista/openvista.xc debian/openvista-libs-5.3004$(GTM_DIST)
89
90 install src/gtmsignal/gtmsignal debian/openvista-libs-5.3004$(GTM_DIST)
91
92 dh_install -s
93# Must not depend on anything. This is to be called by
94# binary-arch/binary-indep
95# in another 'make' thread.
96binary-common:
97 dh_testdir
98 dh_testroot
99 dh_installchangelogs
100 dh_installdocs
101 dh_installexamples
102# dh_installmenu
103# dh_installdebconf
104# dh_installlogrotate
105# dh_installemacsen
106# dh_installpam
107# dh_installmime
108# dh_python
109# dh_installinit
110# dh_installcron
111# dh_installinfo
112 dh_installman
113 dh_link
114 dh_strip
115 dh_compress
116 dh_fixperms
117 # use group bin for now; will change to group gtm in postinst
118 chown bin:bin debian/openvista-libs-5.3004$(GTM_DIST)/*
119 chmod 440 debian/openvista-libs-5.3004$(GTM_DIST)/*
120 chown root debian/openvista-libs-5.3004$(GTM_DIST)/gtmsignal
121 chmod 4550 debian/openvista-libs-5.3004$(GTM_DIST)/gtmsignal
122# dh_perl
123 dh_makeshlibs
124 dh_installdeb
125 dh_shlibdeps
126 dh_gencontrol
127 dh_md5sums
128 dh_builddeb
129# Build architecture independant packages using the common target.
130binary-indep: build-indep install-indep
131 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
132
133# Build architecture dependant packages using the common target.
134binary-arch: build-arch install-arch
135 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
136
137binary: binary-arch binary-indep
138.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
0139
=== added directory 'packages/deb/openvista-utils'
=== added directory 'packages/deb/openvista-utils/debian'
=== added file 'packages/deb/openvista-utils/debian/changelog'
--- packages/deb/openvista-utils/debian/changelog 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/changelog 2009-07-20 18:10:21 +0000
@@ -0,0 +1,11 @@
1openvista-utils (0.8.4-0ubuntu1) jaunty; urgency=low
2
3 * Sync with upstream
4
5 -- Jonathan Tai <jon.tai@medsphere.com> Mon, 20 Jul 2009 11:01:18 -0700
6
7openvista-utils (0.8.3-0ubuntu1) jaunty; urgency=low
8
9 * Initial Ubuntu package (Closes: #358242)
10
11 -- Jonathan Tai <jon.tai@medsphere.com> Wed, 08 Jul 2009 21:26:33 -0700
012
=== added file 'packages/deb/openvista-utils/debian/changelogs'
--- packages/deb/openvista-utils/debian/changelogs 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/changelogs 2009-07-09 07:59:00 +0000
@@ -0,0 +1,1 @@
1ChangeLog
02
=== added file 'packages/deb/openvista-utils/debian/compat'
--- packages/deb/openvista-utils/debian/compat 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/compat 2009-07-09 07:59:00 +0000
@@ -0,0 +1,1 @@
17
02
=== added file 'packages/deb/openvista-utils/debian/control'
--- packages/deb/openvista-utils/debian/control 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/control 2009-08-03 22:58:57 +0000
@@ -0,0 +1,20 @@
1Source: openvista-utils
2Section: admin
3Priority: optional
4Maintainer: Jonathan Tai <jon.tai@medsphere.com>
5Build-Depends: debhelper (>= 7), libpam0g-dev
6Standards-Version: 3.8.0
7Homepage: https://medsphere.org/community/project/gtm
8
9Package: openvista-utils
10Architecture: any
11Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, rsync, bzip2 | pbzip2 (>= 1.0.5), cron, openssh-client, apache2.2-common, openvista-libs
12Recommends: openssh-server, apache2
13Suggests: putty-tools, bash-completion, pbzip2 (>= 1.0.5)
14Description: Utilities for configuring and managing OpenVista
15 OpenVista is a cost-effective, open, trusted and complete EHR which enhances
16 patient safety, increases clinical and operational efficiency and provides an
17 opportunity to improve quality of care delivery.
18 .
19 This package provides command-line utilities that aid in configuring and
20 managing OpenVista instances.
021
=== added file 'packages/deb/openvista-utils/debian/copyright'
--- packages/deb/openvista-utils/debian/copyright 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/copyright 2009-07-12 04:53:43 +0000
@@ -0,0 +1,50 @@
1This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on
2Wed, 08 Jul 2009 21:26:33 -0700.
3
4It was downloaded from <https://medsphere.org/community/project/gtm>
5
6Upstream Author:
7
8 Medsphere Systems Corporation
9
10Copyright:
11
12 Copyright (C) 2009 Medsphere Systems Corporation
13
14License:
15
16 The utilities provided by the OpenVista/GT.M Integration Project simplify
17 installation, configuration, and operation of OpenVista Server when running on
18 GT.M on Linux.
19
20 Copyright (C) 2009 Medsphere Systems Corporation
21
22 This program is free software; you can redistribute it and/or modify it solely
23 under the terms of the GNU Affero General Public License version 3 as published
24 by the Free Software Foundation.
25
26 This program is distributed in the hope that it will be useful, but WITHOUT
27 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
28 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
29 for more details.
30
31 You should have received a copy of the GNU Affero General Public License along
32 with this program; if not, see http://www.gnu.org/licenses or write to the Free
33 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
34 02110-1301 USA.
35
36 You can contact Medsphere Systems Corporation headquarters at 1917 Palomar Oaks Way,
37 Carlsbad, Ca. 92008 or at legal@medsphere.com.
38
39 The interactive user interfaces in modified source and object code versions
40 of this program must display Appropriate Legal Notices, as required under
41 Section 5 of the GNU Affero General Public License version 3.
42
43 In accordance with Section 7(b) of the GNU Affero General Public License
44 version 3, these Appropriate Legal Notices must retain the display of the
45 "Powered by Medsphere" logo. If the display of the logo is not reasonably
46 feasible for technical reasons, the Appropriate Legal Notices must display
47 the words "Powered by Medsphere".
48
49The Debian packaging is copyright 2009, Medsphere Systems Corporation and
50is licensed under the AGPL.
051
=== added file 'packages/deb/openvista-utils/debian/dirs'
--- packages/deb/openvista-utils/debian/dirs 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/dirs 2009-07-12 08:33:40 +0000
@@ -0,0 +1,9 @@
1etc/apache2/conf.d
2etc/bash_completion.d
3opt/openvista
4sbin
5usr/bin
6usr/lib/openvista
7usr/sbin
8usr/share/doc/openvista-utils
9var/www/webdav
010
=== added file 'packages/deb/openvista-utils/debian/docs'
--- packages/deb/openvista-utils/debian/docs 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/docs 2009-07-12 08:33:40 +0000
@@ -0,0 +1,2 @@
1NEWS
2README
03
=== added file 'packages/deb/openvista-utils/debian/manpages'
--- packages/deb/openvista-utils/debian/manpages 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/manpages 2009-07-10 00:05:19 +0000
@@ -0,0 +1,11 @@
1docs/man8/ovinstanceadd.8
2docs/man8/ovinstancedel.8
3docs/man8/ovrestore.8
4docs/man8/ovauth.8
5docs/man1/openvista.1
6docs/man1/ovtied.1
7docs/man1/ovcc.1
8docs/man1/ovbackup.1
9docs/man1/ovpurgejournals.1
10docs/man1/ovswitchjournals.1
11docs/man1/ovimport.1
012
=== added file 'packages/deb/openvista-utils/debian/openvista-utils.openvista.pam'
--- packages/deb/openvista-utils/debian/openvista-utils.openvista.pam 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/openvista-utils.openvista.pam 2009-07-09 08:28:58 +0000
@@ -0,0 +1,4 @@
1@include common-auth
2@include common-account
3@include common-password
4@include common-session
05
=== added file 'packages/deb/openvista-utils/debian/postinst'
--- packages/deb/openvista-utils/debian/postinst 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/postinst 2009-08-03 20:13:57 +0000
@@ -0,0 +1,74 @@
1#!/bin/sh
2# postinst script for openvista-utils
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <postinst> `configure' <most-recently-configured-version>
10# * <old-postinst> `abort-upgrade' <new version>
11# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12# <new-version>
13# * <postinst> `abort-remove'
14# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15# <failed-install-package> <version> `removing'
16# <conflicting-package> <version>
17# for details, see http://www.debian.org/doc/debian-policy/ or
18# the debian-policy package
19
20
21case "$1" in
22 configure)
23 if ! getent group openvista >/dev/null; then
24 addgroup --quiet openvista
25 fi
26
27 if ! getent passwd openvista >/dev/null; then
28 adduser --quiet --disabled-password --ingroup openvista --gecos "OpenVista tied account" openvista
29 fi
30
31 if ! groups openvista | grep gtm >/dev/null; then
32 adduser --quiet openvista gtm > /dev/null
33 fi
34
35 chgrp openvista /opt/openvista /sbin/ovauth
36
37 # the chgrp command above may cause ovauth to lose the setuid bit; re-add it here just in case
38 chmod u+s /sbin/ovauth
39
40 if [ -x /usr/sbin/a2enmod ]; then
41 a2enmod dav_fs > /dev/null
42 a2enmod ssl > /dev/null
43 fi
44
45 if [ -x /usr/sbin/a2ensite ]; then
46 a2ensite default-ssl > /dev/null
47 fi
48
49 # FIXME: disable access to the webdav directory via regular HTTP
50
51 if [ -x /etc/init.d/apache2 ]; then
52 if [ -x /usr/sbin/invoke-rc.d ]; then
53 invoke-rc.d apache2 restart
54 else
55 /etc/init.d/apache2 restart
56 fi
57 fi
58 ;;
59
60 abort-upgrade|abort-remove|abort-deconfigure)
61 ;;
62
63 *)
64 echo "postinst called with unknown argument \`$1'" >&2
65 exit 1
66 ;;
67esac
68
69# dh_installdeb will replace this with shell code automatically
70# generated by other debhelper scripts.
71
72#DEBHELPER#
73
74exit 0
075
=== added file 'packages/deb/openvista-utils/debian/postrm'
--- packages/deb/openvista-utils/debian/postrm 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/postrm 2009-08-01 07:06:06 +0000
@@ -0,0 +1,55 @@
1#!/bin/sh
2# postrm script for openvista-utils
3#
4# see: dh_installdeb(1)
5
6set -e
7
8# summary of how this script can be called:
9# * <postrm> `remove'
10# * <postrm> `purge'
11# * <old-postrm> `upgrade' <new-version>
12# * <new-postrm> `failed-upgrade' <old-version>
13# * <new-postrm> `abort-install'
14# * <new-postrm> `abort-install' <old-version>
15# * <new-postrm> `abort-upgrade' <old-version>
16# * <disappearer's-postrm> `disappear' <overwriter>
17# <overwriter-version>
18# for details, see http://www.debian.org/doc/debian-policy/ or
19# the debian-policy package
20
21
22case "$1" in
23 purge)
24 deluser --quiet openvista || :
25
26 # if there are no users in the openvista group (other than the openvista
27 # user), deluser will delete the group, but if there *are* other users, we
28 # need to explicitly call delgroup
29 delgroup --quiet openvista || :
30
31 # FIXME: does this need to happen even on remove?
32 if [ -x /etc/init.d/apache2 ]; then
33 if [ -x /usr/sbin/invoke-rc.d ]; then
34 invoke-rc.d apache2 reload
35 else
36 /etc/init.d/apache2 reload
37 fi
38 fi
39 ;;
40
41 remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
42 ;;
43
44 *)
45 echo "postrm called with unknown argument \`$1'" >&2
46 exit 1
47 ;;
48esac
49
50# dh_installdeb will replace this with shell code automatically
51# generated by other debhelper scripts.
52
53#DEBHELPER#
54
55exit 0
056
=== added file 'packages/deb/openvista-utils/debian/rules'
--- packages/deb/openvista-utils/debian/rules 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/rules 2009-08-03 21:07:36 +0000
@@ -0,0 +1,154 @@
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4#
5# This file was originally written by Joey Hess and Craig Small.
6# As a special exception, when this file is copied by dh-make into a
7# dh-make output file, you may use that output file without restriction.
8# This special exception was added by Craig Small in version 0.37 of dh-make.
9#
10# Modified to make a template file for a multi-binary package with separated
11# build-arch and build-indep targets by Bill Allombert 2001
12
13# Uncomment this to turn on verbose mode.
14#export DH_VERBOSE=1
15
16# This has to be exported to make some magic below work.
17export DH_OPTIONS
18
19
20
21
22
23
24configure: configure-stamp
25configure-stamp:
26 dh_testdir
27 # Add here commands to configure the package.
28
29 touch configure-stamp
30
31
32#Architecture
33build: build-arch build-indep
34
35build-arch: build-arch-stamp
36build-arch-stamp: configure-stamp
37 cd src/ovauth && ./compile.sh
38 touch $@
39
40build-indep: build-indep-stamp
41build-indep-stamp: configure-stamp
42
43 # Add here commands to compile the indep part of the package.
44 #$(MAKE) doc
45 touch $@
46
47clean:
48 dh_testdir
49 dh_testroot
50 rm -f build-arch-stamp build-indep-stamp configure-stamp
51
52 rm -f debian/openvista-utils.openvista-databases.init
53 rm -f debian/openvista-utils.openvista.init
54 rm -f debian/openvista-utils.openvista.cron.d
55 rm -f debian/openvista-utils.openvista.cron.daily
56 rm -f src/ovauth/ovauth
57
58 dh_clean
59
60install: install-indep install-arch
61install-indep:
62 dh_testdir
63 dh_testroot
64 dh_prep -i
65 dh_installdirs -i
66
67 # Add here commands to install the indep part of the package into
68 # debian/<package>-doc.
69 #INSTALLDOC#
70
71 dh_install -i
72
73install-arch:
74 dh_testdir
75 dh_testroot
76 dh_prep -s
77 dh_installdirs -s
78
79 install COPYING.AGPL debian/openvista-utils/usr/share/doc/openvista-utils/AGPL
80
81 install -m 644 scripts/usr/lib/openvista/functions debian/openvista-utils/usr/lib/openvista/
82
83 install scripts/usr/sbin/ovinstanceadd debian/openvista-utils/usr/sbin/
84 install scripts/usr/sbin/ovinstancedel debian/openvista-utils/usr/sbin/
85 install scripts/usr/sbin/ovrestore debian/openvista-utils/usr/sbin/
86
87 install scripts/usr/bin/openvista debian/openvista-utils/usr/bin/
88 install scripts/usr/bin/ovtied debian/openvista-utils/usr/bin/
89 install scripts/usr/bin/ovcc debian/openvista-utils/usr/bin/
90 install scripts/usr/bin/ovbackup debian/openvista-utils/usr/bin/
91 install scripts/usr/bin/ovpurgejournals debian/openvista-utils/usr/bin/
92 install scripts/usr/bin/ovswitchjournals debian/openvista-utils/usr/bin/
93 install scripts/usr/bin/ovimport debian/openvista-utils/usr/bin/
94
95 install scripts/etc/init.d/openvista-databases debian/openvista-utils.openvista-databases.init
96 install scripts/etc/init.d/openvista debian/openvista-utils.openvista.init
97
98 install -m 644 scripts/etc/bash_completion.d/openvista debian/openvista-utils/etc/bash_completion.d/
99
100 install scripts/etc/cron.d/openvista debian/openvista-utils.openvista.cron.d
101 install scripts/etc/cron.daily/openvista debian/openvista-utils.openvista.cron.daily
102
103 install -m 644 debian/webdav.conf debian/openvista-utils/etc/apache2/conf.d/
104
105 touch debian/openvista-utils/etc/apache2/webdav.htpasswd
106
107 install src/ovauth/ovauth debian/openvista-utils/sbin/
108
109 dh_install -s
110# Must not depend on anything. This is to be called by
111# binary-arch/binary-indep
112# in another 'make' thread.
113binary-common:
114 dh_testdir
115 dh_testroot
116 dh_installchangelogs
117 dh_installdocs
118 dh_installexamples
119# dh_installmenu
120# dh_installdebconf
121# dh_installlogrotate
122# dh_installemacsen
123 dh_installpam --name=openvista
124# dh_installmime
125# dh_python
126 dh_installinit -r --no-start --name=openvista-databases -- defaults 28 10
127 dh_installinit -r --no-start --name=openvista -- defaults 98 01
128 dh_installcron --name=openvista
129# dh_installinfo
130 dh_installman
131 dh_link
132 dh_strip
133 dh_compress
134 dh_fixperms
135 # use group root for now; will change to group openvista in postinst
136 chmod 2750 debian/openvista-utils/opt/openvista
137 chmod 4754 debian/openvista-utils/sbin/ovauth
138# dh_perl
139 dh_makeshlibs
140 dh_installdeb
141 dh_shlibdeps
142 dh_gencontrol
143 dh_md5sums
144 dh_builddeb
145# Build architecture independant packages using the common target.
146binary-indep: build-indep install-indep
147 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
148
149# Build architecture dependant packages using the common target.
150binary-arch: build-arch install-arch
151 $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
152
153binary: binary-arch binary-indep
154.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure
0155
=== added file 'packages/deb/openvista-utils/debian/webdav.conf'
--- packages/deb/openvista-utils/debian/webdav.conf 1970-01-01 00:00:00 +0000
+++ packages/deb/openvista-utils/debian/webdav.conf 2009-08-03 22:58:57 +0000
@@ -0,0 +1,14 @@
1# OpenVista document imaging repository
2<IfModule mod_dav_fs.c>
3<Directory "/var/www/webdav">
4 Dav On
5
6 AllowOverride None
7 Options Indexes FollowSymLinks
8
9 AuthType Basic
10 AuthName "OpenVista document imaging repository"
11 AuthUserFile "/etc/apache2/webdav.htpasswd"
12 Require valid-user
13</Directory>
14</IfModule>
015
=== modified file 'packages/rpm/fis-gtm-5.3003.spec'
--- packages/rpm/fis-gtm-5.3003.spec 2009-07-18 00:45:57 +0000
+++ packages/rpm/fis-gtm-5.3003.spec 2009-08-04 04:31:03 +0000
@@ -1,8 +1,8 @@
1# FIXME: this is a pretty bad RPM:1# FIXME: this is a pretty bad RPM:
2# - It requires that gtm_curpro already exists on the build box2# - It requires that gtm_curpro already exists on the build box
3# - It requires that gtm_dist does not already exist on the build box3# - It requires that gtm_dist does not already exist on the build box
4# - It requires that the gtm group already exist on the build box
4# - It requires the RPM be built as root5# - It requires the RPM be built as root
5# - The arch is wrong (?) - GT.M requires i686 but this package is marked i386
66
7# This must point to an existing binary installation of GT.M because GT.M7# This must point to an existing binary installation of GT.M because GT.M
8# requires GT.M to build8# requires GT.M to build
@@ -16,7 +16,7 @@
1616
17Name: fis-gtm-5.300317Name: fis-gtm-5.3003
18Version: 5.300318Version: 5.3003
19Release: 319Release: 4
20Summary: High end TP schemaless database20Summary: High end TP schemaless database
21License: AGPL21License: AGPL
22Vendor: Fidelity Information Services22Vendor: Fidelity Information Services
@@ -67,7 +67,7 @@
67 exit 167 exit 1
68fi68fi
6969
70if ! grep '^gtm:' /etc/group > /dev/null; then70if ! getent group gtm >/dev/null; then
71 echo "gtm group not found in /etc/group"71 echo "gtm group not found in /etc/group"
72 exit 172 exit 1
73fi73fi
@@ -106,10 +106,10 @@
106106
107mkdir -p $(dirname %{gtm_dist})107mkdir -p $(dirname %{gtm_dist})
108108
109cd pro
110# We need to patch the configure script to pre-answer all of the prompts and109# We need to patch the configure script to pre-answer all of the prompts and
111# set the installation directory110# set the installation directory
112sed 's,@GTMDIST@,%{gtm_dist},' < %{PATCH1} | patch -p0 -b111cd pro
112cat %{PATCH1} | sed 's,@GTM_DIST@,%{gtm_dist},' | patch -p0 -b
113chmod +x configure113chmod +x configure
114./configure114./configure
115115
116116
=== modified file 'packages/rpm/fis-gtm-5.3003_noninteractive-configure.patch'
--- packages/rpm/fis-gtm-5.3003_noninteractive-configure.patch 2009-02-22 08:42:50 +0000
+++ packages/rpm/fis-gtm-5.3003_noninteractive-configure.patch 2009-08-04 04:31:03 +0000
@@ -27,7 +27,7 @@
27 27
28 $echo "In what directory should GT.M be installed? \c"28 $echo "In what directory should GT.M be installed? \c"
29-read gtmdist29-read gtmdist
30+gtmdist="@GTMDIST@"30+gtmdist="@GTM_DIST@"
31 31
32 $echo ""32 $echo ""
33 33
3434
=== modified file 'packages/rpm/fis-gtm-5.3004.spec'
--- packages/rpm/fis-gtm-5.3004.spec 2009-07-20 07:47:58 +0000
+++ packages/rpm/fis-gtm-5.3004.spec 2009-08-04 04:17:19 +0000
@@ -1,8 +1,8 @@
1# FIXME: this is a pretty bad RPM:1# FIXME: this is a pretty bad RPM:
2# - It requires that gtm_curpro already exists on the build box2# - It requires that gtm_curpro already exists on the build box
3# - It requires that gtm_dist does not already exist on the build box3# - It requires that gtm_dist does not already exist on the build box
4# - It requires that the gtm group already exist on the build box
4# - It requires the RPM be built as root5# - It requires the RPM be built as root
5# - The arch is wrong (?) - GT.M requires i686 but this package is marked i386
66
7# This must point to an existing binary installation of GT.M because GT.M7# This must point to an existing binary installation of GT.M because GT.M
8# requires GT.M to build8# requires GT.M to build
@@ -16,7 +16,7 @@
1616
17Name: fis-gtm-5.300417Name: fis-gtm-5.3004
18Version: 5.300418Version: 5.3004
19Release: 419Release: 5
20Summary: High end TP schemaless database20Summary: High end TP schemaless database
21License: AGPL21License: AGPL
22Vendor: Fidelity Information Services22Vendor: Fidelity Information Services
@@ -66,7 +66,7 @@
66 exit 166 exit 1
67fi67fi
6868
69if ! grep '^gtm:' /etc/group > /dev/null; then69if ! getent group gtm >/dev/null; then
70 echo "gtm group not found in /etc/group"70 echo "gtm group not found in /etc/group"
71 exit 171 exit 1
72fi72fi
@@ -85,13 +85,13 @@
85# tcsh.85# tcsh.
86echo 'setenv gtm_curpro %{gtm_curpro}' > build.csh86echo 'setenv gtm_curpro %{gtm_curpro}' > build.csh
87echo 'setenv gtm_exe %{gtm_curpro}' >> build.csh87echo 'setenv gtm_exe %{gtm_curpro}' >> build.csh
88echo 'setenv HOSTOS `uname -s`' >> build.csh88echo 'setenv HOSTOS '$(uname -s) >> build.csh
89echo 'setenv gtm_tools '$(pwd)'/sr_linux' >> build.csh89echo 'setenv gtm_tools '$(pwd)'/sr_linux' >> build.csh
90echo 'setenv gtm_inc '$(pwd)'/sr_linux' >> build.csh90echo 'setenv gtm_inc '$(pwd)'/sr_linux' >> build.csh
91%ifarch x86_6491%ifarch x86_64
92echo 'setenv OBJECT_MODE 64' >> build.csh92echo 'setenv OBJECT_MODE 64' >> build.csh
93%endif93%endif
94echo 'setenv gtm_icu_version `icu-config --version`' >> build.csh94echo 'setenv gtm_icu_version '$(icu-config --version) >> build.csh
95echo 'setenv gtm_version_change 1' >> build.csh95echo 'setenv gtm_version_change 1' >> build.csh
96cat sr_unix/gtm_env.csh >> build.csh96cat sr_unix/gtm_env.csh >> build.csh
97echo 'make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver='$(pwd) >> build.csh97echo 'make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver='$(pwd) >> build.csh
@@ -107,10 +107,10 @@
107107
108mkdir -p $(dirname %{gtm_dist})108mkdir -p $(dirname %{gtm_dist})
109109
110cd pro
111# We need to patch the configure script to pre-answer all of the prompts and110# We need to patch the configure script to pre-answer all of the prompts and
112# set the installation directory111# set the installation directory
113sed 's,@GTMDIST@,%{gtm_dist},' < %{PATCH1} | patch -p0 -b112cd pro
113cat %{PATCH1} | sed 's,@GTM_DIST@,%{gtm_dist},' | sed 's,@GTM_ICU_VERSION@,'$(icu-config --version)',' | patch -p0 -b
114chmod +x configure114chmod +x configure
115./configure115./configure
116116
117117
=== modified file 'packages/rpm/fis-gtm-5.3004_noninteractive-configure.patch'
--- packages/rpm/fis-gtm-5.3004_noninteractive-configure.patch 2009-07-16 23:02:21 +0000
+++ packages/rpm/fis-gtm-5.3004_noninteractive-configure.patch 2009-07-30 21:06:57 +0000
@@ -27,7 +27,7 @@
27 27
28 $echo "In what directory should GT.M be installed? \c"28 $echo "In what directory should GT.M be installed? \c"
29-read gtmdist29-read gtmdist
30+gtmdist="@GTMDIST@"30+gtmdist="@GTM_DIST@"
31 31
32 # if gtmdist is relative then need to make it absolute32 # if gtmdist is relative then need to make it absolute
33 33
@@ -54,7 +54,7 @@
54 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then54 if [ "$resp" = "Y" -o "$resp" = "y" ] ; then
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"
56- read gtm_icu_version56- read gtm_icu_version
57+ gtm_icu_version="3.6"57+ gtm_icu_version="@GTM_ICU_VERSION@"
58 icu_ver=`$echo $gtm_icu_version | sed 's/\.//'`58 icu_ver=`$echo $gtm_icu_version | sed 's/\.//'`
59 majmin=`$echo $icu_ver | cut -f 1 -d "."`59 majmin=`$echo $icu_ver | cut -f 1 -d "."`
60 if [ "$majmin" -lt "36" ] ; then60 if [ "$majmin" -lt "36" ] ; then
6161
=== modified file 'packages/rpm/openvista-libs-5.3003.spec'
--- packages/rpm/openvista-libs-5.3003.spec 2009-07-17 08:17:11 +0000
+++ packages/rpm/openvista-libs-5.3003.spec 2009-08-04 04:27:16 +0000
@@ -6,7 +6,7 @@
66
7Name: openvista-libs-5.30037Name: openvista-libs-5.3003
8Version: 0.8.48Version: 0.8.4
9Release: 19Release: 2
10Summary: GT.M External Calls for OpenVista10Summary: GT.M External Calls for OpenVista
11License: AGPL11License: AGPL
12Vendor: Medsphere Systems Corporation12Vendor: Medsphere Systems Corporation
@@ -54,6 +54,10 @@
54%install54%install
55rm -rf %{buildroot}55rm -rf %{buildroot}
5656
57install -d %{buildroot}%{_mandir}/man8/
58install -m 644 docs/man8/gtmsignal.8 %{buildroot}%{_mandir}/man8/
59gzip %{buildroot}%{_mandir}/man8/gtmsignal.8
60
57install -d %{buildroot}%{gtm_dist}61install -d %{buildroot}%{gtm_dist}
58install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist}62install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist}
59install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist}63install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist}
@@ -68,6 +72,7 @@
68%doc COPYING72%doc COPYING
69%doc COPYING.AGPL73%doc COPYING.AGPL
70%doc NEWS74%doc NEWS
75%{_mandir}/man8/gtmsignal.8*
71%defattr(-,bin,gtm)76%defattr(-,bin,gtm)
72%{gtm_dist}/libopenvista.so77%{gtm_dist}/libopenvista.so
73%{gtm_dist}/openvista.xc78%{gtm_dist}/openvista.xc
7479
=== modified file 'packages/rpm/openvista-libs-5.3004.spec'
--- packages/rpm/openvista-libs-5.3004.spec 2009-07-18 03:03:33 +0000
+++ packages/rpm/openvista-libs-5.3004.spec 2009-08-04 04:27:16 +0000
@@ -6,7 +6,7 @@
66
7Name: openvista-libs-5.30047Name: openvista-libs-5.3004
8Version: 0.8.48Version: 0.8.4
9Release: 19Release: 2
10Summary: GT.M External Calls for OpenVista10Summary: GT.M External Calls for OpenVista
11License: AGPL11License: AGPL
12Vendor: Medsphere Systems Corporation12Vendor: Medsphere Systems Corporation
@@ -54,6 +54,10 @@
54%install54%install
55rm -rf %{buildroot}55rm -rf %{buildroot}
5656
57install -d %{buildroot}%{_mandir}/man8/
58install -m 644 docs/man8/gtmsignal.8 %{buildroot}%{_mandir}/man8/
59gzip %{buildroot}%{_mandir}/man8/gtmsignal.8
60
57install -d %{buildroot}%{gtm_dist}61install -d %{buildroot}%{gtm_dist}
58install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist}62install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist}
59install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist}63install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist}
@@ -68,6 +72,7 @@
68%doc COPYING72%doc COPYING
69%doc COPYING.AGPL73%doc COPYING.AGPL
70%doc NEWS74%doc NEWS
75%{_mandir}/man8/gtmsignal.8*
71%defattr(-,bin,gtm)76%defattr(-,bin,gtm)
72%{gtm_dist}/libopenvista.so77%{gtm_dist}/libopenvista.so
73%{gtm_dist}/openvista.xc78%{gtm_dist}/openvista.xc
7479
=== modified file 'packages/rpm/openvista-utils.spec'
--- packages/rpm/openvista-utils.spec 2009-07-20 17:23:59 +0000
+++ packages/rpm/openvista-utils.spec 2009-08-03 19:26:46 +0000
@@ -1,6 +1,6 @@
1Name: openvista-utils1Name: openvista-utils
2Version: 0.8.42Version: 0.8.4
3Release: 33Release: 4
4Summary: Utilities for configuring and managing OpenVista4Summary: Utilities for configuring and managing OpenVista
5License: AGPL5License: AGPL
6Vendor: Medsphere Systems Corporation6Vendor: Medsphere Systems Corporation
@@ -14,7 +14,7 @@
14Requires(postun): /usr/sbin/userdel, /sbin/service14Requires(postun): /usr/sbin/userdel, /sbin/service
1515
16Requires: /bin/bash, coreutils, openssh, /usr/bin/logger, /usr/bin/rsync, /bin/tar, /usr/bin/bzip2, /usr/bin/find, vixie-cron16Requires: /bin/bash, coreutils, openssh, /usr/bin/logger, /usr/bin/rsync, /bin/tar, /usr/bin/bzip2, /usr/bin/find, vixie-cron
17Requires: fis-gtm, openvista-libs17Requires: openvista-libs
18Requires: httpd, mod_ssl, pam18Requires: httpd, mod_ssl, pam
19BuildRequires: pam-devel19BuildRequires: pam-devel
2020
@@ -63,10 +63,12 @@
63install scripts/usr/bin/ovswitchjournals %{buildroot}%{_bindir}/63install scripts/usr/bin/ovswitchjournals %{buildroot}%{_bindir}/
64install scripts/usr/bin/ovimport %{buildroot}%{_bindir}/64install scripts/usr/bin/ovimport %{buildroot}%{_bindir}/
6565
66install -d %{buildroot}%{_mandir}/man8/
67install -m 644 docs/man8/ovinstanceadd.8 %{buildroot}%{_mandir}/man8/
68install -m 644 docs/man8/ovinstancedel.8 %{buildroot}%{_mandir}/man8/
69install -m 644 docs/man8/ovrestore.8 %{buildroot}%{_mandir}/man8/
70install -m 644 docs/man8/ovauth.8 %{buildroot}%{_mandir}/man8/
66install -d %{buildroot}%{_mandir}/man1/71install -d %{buildroot}%{_mandir}/man1/
67install -m 644 docs/man1/ovinstanceadd.1 %{buildroot}%{_mandir}/man1/
68install -m 644 docs/man1/ovinstancedel.1 %{buildroot}%{_mandir}/man1/
69install -m 644 docs/man1/ovrestore.1 %{buildroot}%{_mandir}/man1/
70install -m 644 docs/man1/openvista.1 %{buildroot}%{_mandir}/man1/72install -m 644 docs/man1/openvista.1 %{buildroot}%{_mandir}/man1/
71install -m 644 docs/man1/ovtied.1 %{buildroot}%{_mandir}/man1/73install -m 644 docs/man1/ovtied.1 %{buildroot}%{_mandir}/man1/
72install -m 644 docs/man1/ovcc.1 %{buildroot}%{_mandir}/man1/74install -m 644 docs/man1/ovcc.1 %{buildroot}%{_mandir}/man1/
@@ -74,9 +76,10 @@
74install -m 644 docs/man1/ovpurgejournals.1 %{buildroot}%{_mandir}/man1/76install -m 644 docs/man1/ovpurgejournals.1 %{buildroot}%{_mandir}/man1/
75install -m 644 docs/man1/ovswitchjournals.1 %{buildroot}%{_mandir}/man1/77install -m 644 docs/man1/ovswitchjournals.1 %{buildroot}%{_mandir}/man1/
76install -m 644 docs/man1/ovimport.1 %{buildroot}%{_mandir}/man1/78install -m 644 docs/man1/ovimport.1 %{buildroot}%{_mandir}/man1/
77gzip %{buildroot}%{_mandir}/man1/ovinstanceadd.179gzip %{buildroot}%{_mandir}/man8/ovinstanceadd.8
78gzip %{buildroot}%{_mandir}/man1/ovinstancedel.180gzip %{buildroot}%{_mandir}/man8/ovinstancedel.8
79gzip %{buildroot}%{_mandir}/man1/ovrestore.181gzip %{buildroot}%{_mandir}/man8/ovrestore.8
82gzip %{buildroot}%{_mandir}/man8/ovauth.8
80gzip %{buildroot}%{_mandir}/man1/openvista.183gzip %{buildroot}%{_mandir}/man1/openvista.1
81gzip %{buildroot}%{_mandir}/man1/ovtied.184gzip %{buildroot}%{_mandir}/man1/ovtied.1
82gzip %{buildroot}%{_mandir}/man1/ovcc.185gzip %{buildroot}%{_mandir}/man1/ovcc.1
@@ -134,9 +137,10 @@
134%{_bindir}/ovpurgejournals137%{_bindir}/ovpurgejournals
135%{_bindir}/ovswitchjournals138%{_bindir}/ovswitchjournals
136%{_bindir}/ovimport139%{_bindir}/ovimport
137%{_mandir}/man1/ovinstanceadd.1*140%{_mandir}/man8/ovinstanceadd.8*
138%{_mandir}/man1/ovinstancedel.1*141%{_mandir}/man8/ovinstancedel.8*
139%{_mandir}/man1/ovrestore.1*142%{_mandir}/man8/ovrestore.8*
143%{_mandir}/man8/ovauth.8*
140%{_mandir}/man1/openvista.1*144%{_mandir}/man1/openvista.1*
141%{_mandir}/man1/ovtied.1*145%{_mandir}/man1/ovtied.1*
142%{_mandir}/man1/ovcc.1*146%{_mandir}/man1/ovcc.1*
143147
=== modified file 'packages/rpm/webdav.conf'
--- packages/rpm/webdav.conf 2009-04-22 04:16:31 +0000
+++ packages/rpm/webdav.conf 2009-08-03 22:58:57 +0000
@@ -1,4 +1,5 @@
1# OpenVista document imaging repository1# OpenVista document imaging repository
2<IfModule mod_dav_fs.c>
2<Directory "/var/www/html/webdav">3<Directory "/var/www/html/webdav">
3 Dav On4 Dav On
45
@@ -10,3 +11,4 @@
10 AuthUserFile "/etc/httpd/conf/webdav.htpasswd"11 AuthUserFile "/etc/httpd/conf/webdav.htpasswd"
11 Require valid-user12 Require valid-user
12</Directory>13</Directory>
14</IfModule>
1315
=== modified file 'scripts/etc/init.d/openvista'
--- scripts/etc/init.d/openvista 2009-06-11 04:58:31 +0000
+++ scripts/etc/init.d/openvista 2009-08-03 21:07:36 +0000
@@ -19,6 +19,15 @@
19#19#
20# chkconfig: 2345 98 0120# chkconfig: 2345 98 01
21# description: Application-level startup/shutdown script for OpenVista Server21# description: Application-level startup/shutdown script for OpenVista Server
22#
23### BEGIN INIT INFO
24# Provides: openvista
25# Required-Start: $all openvista-databases
26# Required-Stop: $all openvista-databases
27# Default-Start: 2 3 4 5
28# Default-Stop: 0 1 6
29# Short-Description: Application-level startup/shutdown script for OpenVista Server
30### END INIT INFO
2231
2332
24# Copyright (C) 2009 Medsphere Systems Corporation33# Copyright (C) 2009 Medsphere Systems Corporation
@@ -39,8 +48,15 @@
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.
4049
4150
51# Check the package is still installed. Traditionally, the test is for a
52# program that is executed later in this script, but it's not trivial to find
53# the location of the mumps binary because multiple verisons could be
54# installed, so look for the functions script instead.
55[ -f /usr/lib/openvista/functions ] || exit 0
56
42# Source function library.57# Source function library.
43. /etc/rc.d/init.d/functions58[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
59[ -f /lib/lsb/init-functions ] && . /lib/lsb/init-functions
44. /usr/lib/openvista/functions60. /usr/lib/openvista/functions
4561
46root="/opt/openvista"62root="/opt/openvista"
@@ -98,35 +114,85 @@
98case $1 in114case $1 in
99 start)115 start)
100 if [ -z "$2" ]; then116 if [ -z "$2" ]; then
101 echo "Starting OpenVista..."117 if function_exists "action"; then
118 echo "Starting OpenVista..."
119 elif function_exists "log_daemon_msg"; then
120 log_daemon_msg "Running startup hooks for OpenVista databases"
121 fi
102 122
103 for instance in `ls $root`; do123 for instance in `ls $root`; do
104 [ -L "$root/$instance/gtm" ] || continue124 [ -L "$root/$instance/gtm" ] || continue
105125
106 action $" Running startup hooks for $instance: " run_hook "$instance" ZSTART126 if function_exists "action"; then
127 action $" Running startup hooks for $instance: " run_hook "$instance" ZSTART
128 elif function_exists "log_daemon_msg"; then
129 log_progress_msg "$instance"
130 run_hook "$instance" ZSTART || end_msg=1
131 else
132 run_hook "$instance" ZSTART
133 fi
107 done134 done
135
136 if function_exists "log_daemon_msg"; then
137 log_end_msg ${end_msg:-0}
138 fi
108 else139 else
109 action $"Running startup hooks for $instance: " run_hook "$instance" ZSTART140 if function_exists "action"; then
141 action $"Running startup hooks for $instance: " run_hook "$instance" ZSTART
142 elif function_exists "log_daemon_msg"; then
143 log_daemon_msg "Running startup hooks for OpenVista databases" "$instance"
144 run_hook "$instance" ZSTART
145 log_end_msg $?
146 else
147 run_hook "$instance" ZSTART
148 fi
110 fi149 fi
111 ;;150 ;;
112 stop)151 stop)
113 if [ -z "$2" ]; then152 if [ -z "$2" ]; then
114 echo "Stopping OpenVista..."153 if function_exists "action"; then
154 echo "Stopping OpenVista..."
155 elif function_exists "log_daemon_msg"; then
156 log_daemon_msg "Running shutdown hooks for OpenVista databases"
157 fi
115158
116 for instance in `ls $root`; do159 for instance in `ls $root`; do
117 [ -L "$root/$instance/gtm" ] || continue160 [ -L "$root/$instance/gtm" ] || continue
118161
119 action $" Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP162 if function_exists "action"; then
163 action $" Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP
164 elif function_exists "log_daemon_msg"; then
165 log_progress_msg "$instance"
166 run_hook "$instance" ZSTOP || end_msg=1
167 else
168 run_hook "$instance" ZSTOP
169 fi
120 done170 done
171
172 if function_exists "log_daemon_msg"; then
173 log_end_msg ${end_msg:-0}
174 fi
121 else175 else
122 action $"Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP176 if function_exists "action"; then
177 action $"Running shutdown hooks for $instance: " run_hook "$instance" ZSTOP
178 elif function_exists "log_daemon_msg"; then
179 log_daemon_msg "Running shutdown hooks for OpenVista databases" "$instance"
180 run_hook "$instance" ZSTOP
181 log_end_msg $?
182 else
183 run_hook "$instance" ZSTOP
184 fi
123 fi185 fi
124186
125 # give background jobs (e.g., TaskMan) some time to wake up and realize they've been asked to shut down187 # give background jobs (e.g., TaskMan) some time to wake up and realize they've been asked to shut down
126 sleep 5188 sleep 5
127 ;;189 ;;
190 restart|force-reload)
191 $0 stop $2
192 $0 start $2
193 ;;
128 *)194 *)
129 echo "Usage: openvista {start|stop} [INSTANCE_NAME]" >&2195 echo "Usage: openvista {start|stop|restart|force-reload} [INSTANCE_NAME]" >&2
130 exit 1196 exit 1
131 ;;197 ;;
132esac198esac
133199
=== modified file 'scripts/etc/init.d/openvista-databases'
--- scripts/etc/init.d/openvista-databases 2009-04-23 16:33:14 +0000
+++ scripts/etc/init.d/openvista-databases 2009-08-03 21:07:36 +0000
@@ -26,6 +26,15 @@
26#26#
27# chkconfig: 2345 50 3027# chkconfig: 2345 50 30
28# description: Database-level startup/shutdown script for OpenVista Server28# description: Database-level startup/shutdown script for OpenVista Server
29#
30### BEGIN INIT INFO
31# Provides: openvista-databases
32# Required-Start: $local_fs $syslog $time
33# Required-Stop: $local_fs $syslog $time
34# Default-Start: 2 3 4 5
35# Default-Stop: 0 1 6
36# Short-Description: Database-level startup/shutdown script for OpenVista Server
37### END INIT INFO
2938
3039
31# Copyright (C) 2009 Medsphere Systems Corporation40# Copyright (C) 2009 Medsphere Systems Corporation
@@ -46,8 +55,15 @@
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.
4756
4857
58# Check the package is still installed. Traditionally, the test is for a
59# program that is executed later in this script, but it's not trivial to find
60# the location of the mupip binary because multiple verisons could be
61# installed, so look for the functions script instead.
62[ -f /usr/lib/openvista/functions ] || exit 0
63
49# Source function library.64# Source function library.
50. /etc/rc.d/init.d/functions65[ -f /etc/rc.d/init.d/functions ] && . /etc/rc.d/init.d/functions
66[ -f /lib/lsb/init-functions ] && . /lib/lsb/init-functions
51. /usr/lib/openvista/functions67. /usr/lib/openvista/functions
5268
53root="/opt/openvista"69root="/opt/openvista"
@@ -149,32 +165,82 @@
149case $1 in165case $1 in
150 start)166 start)
151 if [ -z "$2" ]; then167 if [ -z "$2" ]; then
152 echo "Performing backward journal recovery on OpenVista databases..."168 if function_exists "action"; then
153 169 echo "Performing backward journal recovery on OpenVista databases..."
170 elif function_exists "log_daemon_msg"; then
171 log_daemon_msg "Performing backward journal recovery on OpenVista databases"
172 fi
173
154 for instance in `ls $root`; do174 for instance in `ls $root`; do
155 [ -L "$root/$instance/gtm" ] || continue175 [ -L "$root/$instance/gtm" ] || continue
156176
157 action $" Performing recovery on $instance database: " recover_backward "$instance"177 if function_exists "action"; then
178 action $" Performing recovery on $instance database: " recover_backward "$instance"
179 elif function_exists "log_daemon_msg"; then
180 log_progress_msg "$instance"
181 recover_backward "$instance" || end_msg=1
182 else
183 recover_backward "$instance"
184 fi
158 done185 done
186
187 if function_exists "log_daemon_msg"; then
188 log_end_msg ${end_msg:-0}
189 fi
159 else190 else
160 action $"Performing recovery on $instance database: " recover_backward "$instance"191 if function_exists "action"; then
192 action $"Performing recovery on $instance database: " recover_backward "$instance"
193 elif function_exists "log_daemon_msg"; then
194 log_daemon_msg "Performing backward journal recovery on OpenVista databases" "$instance"
195 recover_backward "$instance"
196 log_end_msg $?
197 else
198 recover_backward "$instance"
199 fi
161 fi200 fi
162 ;;201 ;;
163 stop)202 stop)
164 if [ -z "$2" ]; then203 if [ -z "$2" ]; then
165 echo "Terminating remaining mumps processes..."204 if function_exists "action"; then
205 echo "Terminating remaining mumps processes..."
206 elif function_exists "log_daemon_msg"; then
207 log_daemon_msg "Terminating remaining mumps processes"
208 fi
166 209
167 for instance in `ls $root`; do210 for instance in `ls $root`; do
168 [ -L "$root/$instance/gtm" ] || continue211 [ -L "$root/$instance/gtm" ] || continue
169212
170 action $" Terminating mumps processes in $instance: " terminate_processes "$instance"213 if function_exists "action"; then
214 action $" Terminating mumps processes in $instance: " terminate_processes "$instance"
215 elif function_exists "log_daemon_msg"; then
216 log_progress_msg "$instance"
217 terminate_processes "$instance" || end_msg=1
218 else
219 terminate_processes "$instance"
220 fi
171 done221 done
222
223 if function_exists "log_daemon_msg"; then
224 log_end_msg ${end_msg:-0}
225 fi
172 else226 else
173 action $"Terminating mumps processes in $instance: " terminate_processes "$instance"227 if function_exists "action"; then
228 action $"Terminating mumps processes in $instance: " terminate_processes "$instance"
229 elif function_exists "log_daemon_msg"; then
230 log_daemon_msg "Terminating remaining mumps processes" "$instance"
231 terminate_processes "$instance"
232 log_end_msg $?
233 else
234 terminate_processes "$instance"
235 fi
174 fi236 fi
175 ;;237 ;;
238 restart|force-reload)
239 $0 stop $2
240 $0 start $2
241 ;;
176 *)242 *)
177 echo "Usage: openvista-databases {start|stop} [INSTANCE_NAME]" >&2243 echo "Usage: openvista-databases {start|stop|restart|force-reload} [INSTANCE_NAME]" >&2
178 exit 1244 exit 1
179 ;;245 ;;
180esac246esac
181247
=== modified file 'scripts/usr/lib/openvista/functions'
--- scripts/usr/lib/openvista/functions 2009-04-30 06:48:24 +0000
+++ scripts/usr/lib/openvista/functions 2009-08-03 18:23:59 +0000
@@ -128,3 +128,8 @@
128 fi128 fi
129}129}
130130
131function function_exists()
132{
133 type "$1" 2> /dev/null | grep -q 'function'
134}
135
131136
=== modified file 'scripts/usr/sbin/ovinstanceadd'
--- scripts/usr/sbin/ovinstanceadd 2009-07-17 08:17:11 +0000
+++ scripts/usr/sbin/ovinstanceadd 2009-07-20 17:57:12 +0000
@@ -94,17 +94,17 @@
94 exit 194 exit 1
95fi95fi
9696
97grep "^$user:" /etc/passwd > /dev/null || {97if ! getent passwd "$user" > /dev/null; then
98 echo "ovinstanceadd: user '$user' not found in /etc/passwd" >&298 echo "ovinstanceadd: user '$user' not found in /etc/passwd" >&2
99 exit 199 exit 1
100}100fi
101101
102grep "^$user:" /etc/group > /dev/null || {102if ! getent group "$user" > /dev/null; then
103 echo "ovinstanceadd: group '$user' not found in /etc/group" >&2103 echo "ovinstanceadd: group '$user' not found in /etc/group" >&2
104 exit 1104 exit 1
105}105fi
106106
107home=`grep "^$user:" /etc/passwd | awk -F : '{ print $6 }'`107home=`getent passwd "$user" | awk -F : '{ print $6 }'`
108108
109if [ ! -d "$home" ]; then109if [ ! -d "$home" ]; then
110 echo "ovinstanceadd: $user user's home directory does not exist" >&2110 echo "ovinstanceadd: $user user's home directory does not exist" >&2
@@ -119,18 +119,28 @@
119 exit 1119 exit 1
120fi120fi
121121
122grep "^apache:" /etc/passwd > /dev/null || {122if getent passwd apache > /dev/null; then
123 echo "ovinstanceadd: user 'apache' not found in /etc/passwd" >&2123 apache_user=apache
124 exit 1124 apache_conf=/etc/httpd/conf
125}125 docroot=/var/www/html
126126elif getent passwd www-data > /dev/null; then
127if [ ! -d "/var/www/html/webdav" ]; then127 apache_user=www-data
128 echo "ovinstanceadd: /var/www/html/webdav does not exist" >&2128 apache_conf=/etc/apache2
129 exit 1129 docroot=/var/www
130fi130fi
131131
132if [ ! -f "/etc/httpd/conf/webdav.htpasswd" ]; then132if [ -z "$apache_user" ]; then
133 echo "ovinstanceadd: /etc/httpd/conf/webdav.htpasswd does not exist" >&2133 echo "ovinstanceadd: apache user not found in /etc/passwd" >&2
134 exit 1
135fi
136
137if [ ! -d "$docroot/webdav" ]; then
138 echo "ovinstanceadd: $docroot/webdav does not exist" >&2
139 exit 1
140fi
141
142if [ ! -f "$apache_conf/webdav.htpasswd" ]; then
143 echo "ovinstanceadd: $apache_conf/webdav.htpasswd does not exist" >&2
134 exit 1144 exit 1
135fi145fi
136146
@@ -311,12 +321,12 @@
311 exit 1321 exit 1
312}322}
313323
314install -o apache -g apache -m 755 -d "/var/www/html/webdav/$instance" || {324install -o "$apache_user" -g "$apache_user" -m 755 -d "$docroot/webdav/$instance" || {
315 echo "ovinstanceadd: Unable to create webdav root" >&2325 echo "ovinstanceadd: Unable to create webdav root" >&2
316 exit 1326 exit 1
317}327}
318328
319ln -s "/var/www/html/webdav/$instance" "$root/$instance/images"329ln -s "$docroot/webdav/$instance" "$root/$instance/images"
320330
321(331(
322 umask 077332 umask 077
@@ -327,8 +337,8 @@
327 exit 1337 exit 1
328}338}
329339
330htpasswd -b -m "/etc/httpd/conf/webdav.htpasswd" "$instance" "`cat \"$root/$instance/etc/$instance-webdav_password\"`" > /dev/null 2>&1 || {340htpasswd -b -m "$apache_conf/webdav.htpasswd" "$instance" "`cat \"$root/$instance/etc/$instance-webdav_password\"`" > /dev/null 2>&1 || {
331 echo "ovinstanceadd: Unable to update /etc/httpd/conf/webdav.htpasswd" >&2341 echo "ovinstanceadd: Unable to update $apache_conf/webdav.htpasswd" >&2
332 exit 1342 exit 1
333}343}
334344
335345
=== modified file 'scripts/usr/sbin/ovinstancedel'
--- scripts/usr/sbin/ovinstancedel 2009-07-17 08:17:11 +0000
+++ scripts/usr/sbin/ovinstancedel 2009-07-20 17:57:12 +0000
@@ -80,20 +80,35 @@
80}80}
8181
82# check for other requirements82# check for other requirements
83grep "^$user:" /etc/passwd > /dev/null || {83if ! getent passwd "$user" > /dev/null; then
84 echo "ovinstancedel: user '$user' not found in /etc/passwd" >&284 echo "ovinstancedel: user '$user' not found in /etc/passwd" >&2
85 exit 185 exit 1
86}86fi
8787
88home=`grep "^$user:" /etc/passwd | awk -F : '{ print $6 }'`88home=`getent passwd "$user" | awk -F : '{ print $6 }'`
8989
90if [ ! -d "$home" ]; then90if [ ! -d "$home" ]; then
91 echo "ovinstancedel: $user user's home directory does not exist" >&291 echo "ovinstancedel: $user user's home directory does not exist" >&2
92 exit 192 exit 1
93fi93fi
9494
95if [ ! -f "/etc/httpd/conf/webdav.htpasswd" ]; then95if getent passwd apache > /dev/null; then
96 echo "ovinstancedel: /etc/httpd/conf/webdav.htpasswd does not exist" >&296 apache_user=apache
97 apache_conf=/etc/httpd/conf
98 docroot=/var/www/html
99elif getent passwd www-data > /dev/null; then
100 apache_user=www-data
101 apache_conf=/etc/apache2
102 docroot=/var/www
103fi
104
105if [ -z "$apache_user" ]; then
106 echo "ovinstancedel: apache user not found in /etc/passwd" >&2
107 exit 1
108fi
109
110if [ ! -f "$apache_conf/webdav.htpasswd" ]; then
111 echo "ovinstancedel: $apache_conf/webdav.htpasswd does not exist" >&2
97 exit 1112 exit 1
98fi113fi
99114
@@ -122,7 +137,7 @@
122command="grep -v ' $instance\$' '$home/.ssh/authorized_keys' > '$home/.ssh/authorized_keys'.\$\$"137command="grep -v ' $instance\$' '$home/.ssh/authorized_keys' > '$home/.ssh/authorized_keys'.\$\$"
123command=$command"; mv -f '$home/.ssh/authorized_keys'.\$\$ '$home/.ssh/authorized_keys'"138command=$command"; mv -f '$home/.ssh/authorized_keys'.\$\$ '$home/.ssh/authorized_keys'"
124su -c "$command" "$user" || {139su -c "$command" "$user" || {
125 echo "ovinstanceadd: Unable to update $home/.ssh/authorized_keys" >&2140 echo "ovinstancedel: Unable to update $home/.ssh/authorized_keys" >&2
126 exit 1141 exit 1
127}142}
128143
@@ -148,12 +163,12 @@
148 exit 1163 exit 1
149}164}
150165
151htpasswd -D "/etc/httpd/conf/webdav.htpasswd" "$instance" > /dev/null 2>&1 || {166htpasswd -D "$apache_conf/webdav.htpasswd" "$instance" > /dev/null 2>&1 || {
152 echo "ovinstancedel: Unable to update /etc/httpd/conf/webdav.htpasswd" >&2167 echo "ovinstancedel: Unable to update $apache_conf/webdav.htpasswd" >&2
153 exit 1168 exit 1
154}169}
155170
156rm -rf "/var/www/html/webdav/$instance" || {171rm -rf "$docroot/webdav/$instance" || {
157 echo "ovinstancedel: Unable to remove WebDAV root" >&2172 echo "ovinstancedel: Unable to remove WebDAV root" >&2
158 exit 1173 exit 1
159}174}

Subscribers

People subscribed via source and target branches