Merge lp:~jontai/openvista-gtm-integration/bug413322 into lp:openvista-gtm-integration
- bug413322
- Merge into mainline
Proposed by
Jon Tai
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~jontai/openvista-gtm-integration/bug413322 | ||||
Merge into: | lp:openvista-gtm-integration | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp:~jontai/openvista-gtm-integration/bug413322 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
jeff.apple | Approve | ||
Review via email: mp+10864@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Jon Tai (jontai) wrote : | # |
Revision history for this message
jeff.apple (jeff-apple) wrote : | # |
These look like new files copied and tweaked from a previous version. That being the case, I am going to assume that there are not broad changes and I will approve.
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'debuild.sh' |
2 | --- debuild.sh 2009-07-30 20:45:36 +0000 |
3 | +++ debuild.sh 2009-08-13 23:50:55 +0000 |
4 | @@ -43,7 +43,7 @@ |
5 | ;; |
6 | fis-gtm*) |
7 | # rename source tarball |
8 | - upstream_version=`echo "$version" | sed 's/\.//'` |
9 | + upstream_version=`echo "$version" | sed 's/\.//' | tr '[:lower:]' '[:upper:]'` |
10 | cp -f "/tmp/ubuntu/gtm_V${upstream_version}_linux_i686_src.tar.gz" "/tmp/ubuntu/${package}_${version}.orig.tar.gz" |
11 | |
12 | # unpack source tarball |
13 | |
14 | === added directory 'packages/deb/fis-gtm-5.3004a' |
15 | === added directory 'packages/deb/fis-gtm-5.3004a/debian' |
16 | === added file 'packages/deb/fis-gtm-5.3004a/debian/changelog' |
17 | --- packages/deb/fis-gtm-5.3004a/debian/changelog 1970-01-01 00:00:00 +0000 |
18 | +++ packages/deb/fis-gtm-5.3004a/debian/changelog 2009-08-13 23:50:55 +0000 |
19 | @@ -0,0 +1,5 @@ |
20 | +fis-gtm-5.3004a (5.3004a-0ubuntu1) jaunty; urgency=low |
21 | + |
22 | + * Initial Ubuntu package (Closes: #358242) |
23 | + |
24 | + -- Jonathan Tai <jon.tai@medsphere.com> Thu, 13 Aug 2009 16:50:02 -0700 |
25 | |
26 | === added file 'packages/deb/fis-gtm-5.3004a/debian/compat' |
27 | --- packages/deb/fis-gtm-5.3004a/debian/compat 1970-01-01 00:00:00 +0000 |
28 | +++ packages/deb/fis-gtm-5.3004a/debian/compat 2009-08-13 23:50:55 +0000 |
29 | @@ -0,0 +1,1 @@ |
30 | +7 |
31 | |
32 | === added file 'packages/deb/fis-gtm-5.3004a/debian/control' |
33 | --- packages/deb/fis-gtm-5.3004a/debian/control 1970-01-01 00:00:00 +0000 |
34 | +++ packages/deb/fis-gtm-5.3004a/debian/control 2009-08-13 23:50:55 +0000 |
35 | @@ -0,0 +1,17 @@ |
36 | +Source: fis-gtm-5.3004a |
37 | +Section: misc |
38 | +Priority: optional |
39 | +Maintainer: Jonathan Tai <jon.tai@medsphere.com> |
40 | +Build-Depends: debhelper (>= 7), dpatch, tcsh, gcc-4.1, libicu-dev (>= 3.8), zlib1g-dev, libncurses5-dev, libgpgme11-dev, libgpg-error-dev, libgcrypt11-dev |
41 | +Standards-Version: 3.8.0 |
42 | +Homepage: http://www.fidelityinfoservices.com/FNFIS/Markets/NonFinancialIndustries/Healthcare/GTM/ |
43 | + |
44 | +Package: fis-gtm-5.3004a |
45 | +Architecture: any |
46 | +Depends: ${shlibs:Depends}, ${misc:Depends}, adduser, libicu38, zlib1g, libncurses5, libgpgme11, libgpg-error0, libgcrypt11 |
47 | +Suggests: ksh |
48 | +Description: High end TP schemaless database |
49 | + GT.M is a vetted, industrial strength, transaction processing application |
50 | + platform consisting of a schema-less database engine optimized for extreme |
51 | + transaction processing throughput & business continuity plus a compiler for the |
52 | + MUMPS language. |
53 | |
54 | === added file 'packages/deb/fis-gtm-5.3004a/debian/copyright' |
55 | --- packages/deb/fis-gtm-5.3004a/debian/copyright 1970-01-01 00:00:00 +0000 |
56 | +++ packages/deb/fis-gtm-5.3004a/debian/copyright 2009-08-13 23:50:55 +0000 |
57 | @@ -0,0 +1,21 @@ |
58 | +This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on |
59 | +Thu, 13 Aug 2009 16:50:02 -0700. |
60 | + |
61 | +It was downloaded from <http://www.fidelityinfoservices.com/FNFIS/Markets/NonFinancialIndustries/Healthcare/GTM/> |
62 | + |
63 | +Upstream Author: |
64 | + |
65 | + Fidelity Information Services, Inc. |
66 | + |
67 | +Copyright: |
68 | + |
69 | + Copyright (C) 2009 Fidelity Information Services, Inc. |
70 | + |
71 | +License: |
72 | + |
73 | + GT.M for selected platforms, including GNU/Linux on the popular x86 |
74 | + architecture, can be downloaded under the terms of the Affero GNU General |
75 | + Public License (AGPL) version 3. |
76 | + |
77 | +The Debian packaging is copyright 2009, Medsphere Systems Corporation and |
78 | +is licensed under the AGPL. |
79 | |
80 | === added file 'packages/deb/fis-gtm-5.3004a/debian/dirs' |
81 | --- packages/deb/fis-gtm-5.3004a/debian/dirs 1970-01-01 00:00:00 +0000 |
82 | +++ packages/deb/fis-gtm-5.3004a/debian/dirs 2009-08-13 23:50:55 +0000 |
83 | @@ -0,0 +1,1 @@ |
84 | +opt/lsb-gtm |
85 | |
86 | === added file 'packages/deb/fis-gtm-5.3004a/debian/docs' |
87 | --- packages/deb/fis-gtm-5.3004a/debian/docs 1970-01-01 00:00:00 +0000 |
88 | +++ packages/deb/fis-gtm-5.3004a/debian/docs 2009-08-13 23:50:55 +0000 |
89 | @@ -0,0 +1,1 @@ |
90 | +COPYING |
91 | |
92 | === added directory 'packages/deb/fis-gtm-5.3004a/debian/patches' |
93 | === added file 'packages/deb/fis-gtm-5.3004a/debian/patches/00list' |
94 | --- packages/deb/fis-gtm-5.3004a/debian/patches/00list 1970-01-01 00:00:00 +0000 |
95 | +++ packages/deb/fis-gtm-5.3004a/debian/patches/00list 2009-08-13 23:50:55 +0000 |
96 | @@ -0,0 +1,1 @@ |
97 | +01-configurable-compiler.dpatch |
98 | |
99 | === added file 'packages/deb/fis-gtm-5.3004a/debian/patches/01-configurable-compiler.dpatch' |
100 | --- packages/deb/fis-gtm-5.3004a/debian/patches/01-configurable-compiler.dpatch 1970-01-01 00:00:00 +0000 |
101 | +++ packages/deb/fis-gtm-5.3004a/debian/patches/01-configurable-compiler.dpatch 2009-08-13 23:50:55 +0000 |
102 | @@ -0,0 +1,19 @@ |
103 | +#! /bin/sh /usr/share/dpatch/dpatch-run |
104 | +## 01-configurable-compiler.dpatch by <jon.tai@medsphere.com> |
105 | +## |
106 | +## All lines beginning with `## DP:' are a description of the patch. |
107 | +## DP: No description. |
108 | + |
109 | +@DPATCH@ |
110 | +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 |
111 | +--- fis-gtm-5.3004-5.3004~/sr_linux/gtm_env_sp.mk 2009-06-08 05:08:10.000000000 -0400 |
112 | ++++ fis-gtm-5.3004-5.3004/sr_linux/gtm_env_sp.mk 2009-07-28 22:22:03.000000000 -0400 |
113 | +@@ -57,7 +57,7 @@ |
114 | + gt_as_src_suffix=.s |
115 | + |
116 | + # C compiler options |
117 | +-gt_cc_compiler=gcc |
118 | ++gt_cc_compiler?=gcc |
119 | + |
120 | + # Do not lookup the source directory before include directories specified by -I. |
121 | + # gcc complains about -I- being obsolete, but using -iquote cause build errors for gcc and as - ABS 2008.12.09 |
122 | |
123 | === added file 'packages/deb/fis-gtm-5.3004a/debian/patches/99-noninteractive-configure.patch' |
124 | --- packages/deb/fis-gtm-5.3004a/debian/patches/99-noninteractive-configure.patch 1970-01-01 00:00:00 +0000 |
125 | +++ packages/deb/fis-gtm-5.3004a/debian/patches/99-noninteractive-configure.patch 2009-08-13 23:50:55 +0000 |
126 | @@ -0,0 +1,78 @@ |
127 | +--- configure.orig 2009-08-13 15:54:09.000000000 -0700 |
128 | ++++ configure 2009-08-13 15:59:38.000000000 -0700 |
129 | +@@ -123,7 +123,7 @@ |
130 | + # create temporary file to test for valid user and group names |
131 | + touch tmp_owngrp |
132 | + $echo "What account should own the files? ($defowner) \c" |
133 | +-read resp |
134 | ++resp="" |
135 | + if [ "$resp" = "" ] ; then |
136 | + owner=$defowner |
137 | + else |
138 | +@@ -137,10 +137,10 @@ |
139 | + fi |
140 | + |
141 | + $echo "Should execution of GT.M be restricted to a group? (y or n) \c" |
142 | +-read resp |
143 | ++resp="y" |
144 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
145 | + $echo "Enter group name: \c" |
146 | +- read group |
147 | ++ group="bin" |
148 | + if [ "$group" != "" ] ; then |
149 | + chgrp $group tmp_owngrp 2> /dev/null |
150 | + if [ 1 = "$?" ] ; then |
151 | +@@ -156,7 +156,7 @@ |
152 | + rm tmp_owngrp |
153 | + |
154 | + $echo "In what directory should GT.M be installed? \c" |
155 | +-read gtmdist |
156 | ++gtmdist="@GTM_DIST@" |
157 | + |
158 | + # if gtmdist is relative then need to make it absolute |
159 | + |
160 | +@@ -182,7 +182,7 @@ |
161 | + $echo "Directory $gtmdist does not exist. Do you wish to create it as part of" |
162 | + $echo "this installation? (y or n) \c" |
163 | + |
164 | +- read resp |
165 | ++ resp="y" |
166 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
167 | + mkdir -p $gtmdist |
168 | + chmod 0755 $gtmdist |
169 | +@@ -226,14 +226,14 @@ |
170 | + library_path="/usr/local/lib32 /usr/local/lib /usr/lib32 /usr/lib /lib32 /lib" |
171 | + fi |
172 | + $echo "Should unicode support be installed? (y or n) \c" |
173 | +- read resp |
174 | ++ resp="y" |
175 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
176 | + would_like_utf8=1 |
177 | + $echo "Should an ICU version other than the default be used? (y or n) \c" |
178 | +- read resp |
179 | ++ resp="y" |
180 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
181 | + $echo "Enter ICU version (at least ICU version 3.6 is required. Enter as <minor-ver>.<major-ver>): \c" |
182 | +- read gtm_icu_version |
183 | ++ gtm_icu_version="@GTM_ICU_VERSION@" |
184 | + icu_ver=`$echo $gtm_icu_version | sed 's/\.//'` |
185 | + majmin=`$echo $icu_ver | cut -f 1 -d "."` |
186 | + if [ "$majmin" -lt "36" ] ; then |
187 | +@@ -600,7 +600,7 @@ |
188 | + $echo "only the uppercase versions of the files." |
189 | + $echo "" |
190 | + $echo "Do you want uppercase and lowercase versions of the MUMPS routines? (y or n)\c" |
191 | +-read resp |
192 | ++resp="n" |
193 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
194 | + $echo "" |
195 | + $echo "Creating lowercase versions of the MUMPS routines." |
196 | +@@ -817,7 +817,7 @@ |
197 | + $echo "" |
198 | + $echo "Installation completed. Would you like all the temporary files" |
199 | + $echo "removed from this directory? (y or n) \c" |
200 | +-read resp |
201 | ++resp="y" |
202 | + |
203 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
204 | + \rm -rf $binaries $pathmods $rscripts $nscripts $dirs configure \ |
205 | |
206 | === added file 'packages/deb/fis-gtm-5.3004a/debian/postinst' |
207 | --- packages/deb/fis-gtm-5.3004a/debian/postinst 1970-01-01 00:00:00 +0000 |
208 | +++ packages/deb/fis-gtm-5.3004a/debian/postinst 2009-08-13 23:50:55 +0000 |
209 | @@ -0,0 +1,56 @@ |
210 | +#!/bin/sh |
211 | +# postinst script for fis-gtm-5.3004a |
212 | +# |
213 | +# see: dh_installdeb(1) |
214 | + |
215 | +set -e |
216 | + |
217 | +# summary of how this script can be called: |
218 | +# * <postinst> `configure' <most-recently-configured-version> |
219 | +# * <old-postinst> `abort-upgrade' <new version> |
220 | +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
221 | +# <new-version> |
222 | +# * <postinst> `abort-remove' |
223 | +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
224 | +# <failed-install-package> <version> `removing' |
225 | +# <conflicting-package> <version> |
226 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
227 | +# the debian-policy package |
228 | + |
229 | + |
230 | +case "$1" in |
231 | + configure) |
232 | + if ! getent group gtm >/dev/null; then |
233 | + addgroup --quiet gtm |
234 | + fi |
235 | + |
236 | + if [ `dpkg --print-architecture` = "amd64" ]; then |
237 | + gtm_dist=/opt/lsb-gtm/V5.3-004A_x86_64 |
238 | + else |
239 | + gtm_dist=/opt/lsb-gtm/V5.3-004A_i686 |
240 | + fi |
241 | + |
242 | + suid_files=`find $gtm_dist -perm /4000` |
243 | + |
244 | + chgrp -R gtm $gtm_dist |
245 | + chgrp -R bin $gtm_dist/gtmsecshrdir |
246 | + |
247 | + # the chgrp commands above may cause files to lose the setuid bit; re-add it here just in case |
248 | + for file in $suid_files; do chmod u+s $file; done |
249 | + ;; |
250 | + |
251 | + abort-upgrade|abort-remove|abort-deconfigure) |
252 | + ;; |
253 | + |
254 | + *) |
255 | + echo "postinst called with unknown argument \`$1'" >&2 |
256 | + exit 1 |
257 | + ;; |
258 | +esac |
259 | + |
260 | +# dh_installdeb will replace this with shell code automatically |
261 | +# generated by other debhelper scripts. |
262 | + |
263 | +#DEBHELPER# |
264 | + |
265 | +exit 0 |
266 | |
267 | === added file 'packages/deb/fis-gtm-5.3004a/debian/postrm' |
268 | --- packages/deb/fis-gtm-5.3004a/debian/postrm 1970-01-01 00:00:00 +0000 |
269 | +++ packages/deb/fis-gtm-5.3004a/debian/postrm 2009-08-13 23:50:55 +0000 |
270 | @@ -0,0 +1,44 @@ |
271 | +#!/bin/sh |
272 | +# postrm script for fis-gtm-5.3004a |
273 | +# |
274 | +# see: dh_installdeb(1) |
275 | + |
276 | +set -e |
277 | + |
278 | +# summary of how this script can be called: |
279 | +# * <postrm> `remove' |
280 | +# * <postrm> `purge' |
281 | +# * <old-postrm> `upgrade' <new-version> |
282 | +# * <new-postrm> `failed-upgrade' <old-version> |
283 | +# * <new-postrm> `abort-install' |
284 | +# * <new-postrm> `abort-install' <old-version> |
285 | +# * <new-postrm> `abort-upgrade' <old-version> |
286 | +# * <disappearer's-postrm> `disappear' <overwriter> |
287 | +# <overwriter-version> |
288 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
289 | +# the debian-policy package |
290 | + |
291 | + |
292 | +case "$1" in |
293 | + purge) |
294 | + # if we were the last GT.M package on the system, remove the gtm group |
295 | + if [ ! -d /opt/lsb-gtm ]; then |
296 | + delgroup --quiet gtm || : |
297 | + fi |
298 | + ;; |
299 | + |
300 | + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) |
301 | + ;; |
302 | + |
303 | + *) |
304 | + echo "postrm called with unknown argument \`$1'" >&2 |
305 | + exit 1 |
306 | + ;; |
307 | +esac |
308 | + |
309 | +# dh_installdeb will replace this with shell code automatically |
310 | +# generated by other debhelper scripts. |
311 | + |
312 | +#DEBHELPER# |
313 | + |
314 | +exit 0 |
315 | |
316 | === added file 'packages/deb/fis-gtm-5.3004a/debian/rules' |
317 | --- packages/deb/fis-gtm-5.3004a/debian/rules 1970-01-01 00:00:00 +0000 |
318 | +++ packages/deb/fis-gtm-5.3004a/debian/rules 2009-08-13 23:50:55 +0000 |
319 | @@ -0,0 +1,205 @@ |
320 | +#!/usr/bin/make -f |
321 | +# -*- makefile -*- |
322 | +# Sample debian/rules that uses debhelper. |
323 | +# |
324 | +# This file was originally written by Joey Hess and Craig Small. |
325 | +# As a special exception, when this file is copied by dh-make into a |
326 | +# dh-make output file, you may use that output file without restriction. |
327 | +# This special exception was added by Craig Small in version 0.37 of dh-make. |
328 | +# |
329 | +# Modified to make a template file for a multi-binary package with separated |
330 | +# build-arch and build-indep targets by Bill Allombert 2001 |
331 | + |
332 | +# Uncomment this to turn on verbose mode. |
333 | +#export DH_VERBOSE=1 |
334 | + |
335 | +# This has to be exported to make some magic below work. |
336 | +export DH_OPTIONS |
337 | + |
338 | +#enable dpatch |
339 | +include /usr/share/dpatch/dpatch.make |
340 | + |
341 | +GTM_CURPRO = /tmp/gtm |
342 | + |
343 | +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) |
344 | +DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) |
345 | + |
346 | +ifeq ($(DEB_HOST_ARCH),amd64) |
347 | +GTM_DIST = /opt/lsb-gtm/V5.3-004A_x86_64 |
348 | +else |
349 | +GTM_DIST = /opt/lsb-gtm/V5.3-004A_i686 |
350 | +endif |
351 | + |
352 | +ifeq ($(DEB_HOST_ARCH_OS),linux) |
353 | +GTM_HOSTOS = Linux |
354 | +else |
355 | +GTM_HOSTOS = $(DEB_HOST_ARCH_OS) |
356 | +endif |
357 | + |
358 | +GT_CC_COMPILER = gcc-4.1 |
359 | + |
360 | +GTM_ICU_VERSION_MAJMIN = $(shell icu-config --version | sed 's/\.//' | cut -f 1 -d '.') |
361 | +GTM_ICU_VERSION_MINORVER = $(shell expr $(GTM_ICU_VERSION_MAJMIN) % 10) |
362 | +GTM_ICU_VERSION_MAJORVER = $(shell expr $(GTM_ICU_VERSION_MAJMIN) / 10) |
363 | +GTM_ICU_VERSION = $(GTM_ICU_VERSION_MAJORVER).$(GTM_ICU_VERSION_MINORVER) |
364 | + |
365 | + |
366 | + |
367 | +check-build-env: |
368 | + if [ ! -d "$(GTM_CURPRO)" ]; then \ |
369 | + echo "existing binary installation of GT.M not found at $(GTM_CURPRO)"; \ |
370 | + exit 1; \ |
371 | + fi |
372 | + |
373 | + if [ -d "$(GTM_DIST)" ]; then \ |
374 | + echo "target GT.M directory $(GTM_DIST) already exists"; \ |
375 | + exit 1; \ |
376 | + fi |
377 | + |
378 | + if ! getent group gtm >/dev/null; then \ |
379 | + echo "gtm group not found in /etc/group"; \ |
380 | + exit 1; \ |
381 | + fi |
382 | + |
383 | + |
384 | +configure: |
385 | + dh_testdir |
386 | + |
387 | + # GT.M needs to be built with tcsh, and with a bunch of environmental variables |
388 | + # set. Since we can't run tcsh interactively, we put all the setenv commands |
389 | + # and the build command itself into a temporary script, then execute it with |
390 | + # tcsh. |
391 | + echo 'setenv gtm_curpro $(GTM_CURPRO)' > build.csh |
392 | + echo 'setenv gtm_exe $(GTM_CURPRO)' >> build.csh |
393 | + echo 'setenv HOSTOS $(GTM_HOSTOS)' >> build.csh |
394 | + echo 'setenv gtm_tools $(CURDIR)/sr_linux' >> build.csh |
395 | + echo 'setenv gtm_inc $(CURDIR)/sr_linux' >> build.csh |
396 | + if [ "$(DEB_HOST_ARCH)" = "amd64" ]; then \ |
397 | + echo 'setenv OBJECT_MODE 64' >> build.csh ; \ |
398 | + fi |
399 | + echo 'setenv distro ubuntu' >> build.csh |
400 | + echo 'setenv gtm_icu_version $(GTM_ICU_VERSION)' >> build.csh |
401 | + echo 'setenv gtm_version_change 1' >> build.csh |
402 | + cat sr_unix/gtm_env.csh >> build.csh |
403 | + |
404 | + # GT.M 5.3004 requires gcc-4.1, Jaunty's default (gcc 4.3) doesn't work |
405 | + echo 'setenv gt_cc_compiler $(GT_CC_COMPILER)' >> build.csh |
406 | + |
407 | + # GT.M's makefiles get confused if this isn't reset back to 0 |
408 | + echo 'setenv MAKELEVEL 0' >> build.csh |
409 | + |
410 | + |
411 | +#Architecture |
412 | +build: patch-stamp build-arch build-indep |
413 | + |
414 | +build-arch: build-arch-stamp |
415 | +build-arch-stamp: check-build-env configure |
416 | + echo '$(MAKE) -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver=$(CURDIR)' >> build.csh |
417 | + tcsh -b build.csh |
418 | + |
419 | + touch $@ |
420 | + |
421 | +build-indep: build-indep-stamp |
422 | +build-indep-stamp: check-build-env configure |
423 | + |
424 | + # Add here commands to compile the indep part of the package. |
425 | + #$(MAKE) doc |
426 | + touch $@ |
427 | + |
428 | +clean: unpatch configure |
429 | + dh_testdir |
430 | + dh_testroot |
431 | + rm -f build-arch-stamp build-indep-stamp |
432 | + |
433 | + echo '$(MAKE) -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver=$(CURDIR) clean' >> build.csh |
434 | + tcsh -b build.csh |
435 | + rm -f build.csh |
436 | + |
437 | + if [ -f install-arch-stamp ]; then \ |
438 | + rm -rf $(GTM_DIST); \ |
439 | + rm install-arch-stamp; \ |
440 | + fi |
441 | + |
442 | + dh_clean |
443 | + |
444 | +install: install-indep install-arch |
445 | +install-indep: |
446 | + dh_testdir |
447 | + dh_testroot |
448 | + dh_prep -i |
449 | + dh_installdirs -i |
450 | + |
451 | + # Add here commands to install the indep part of the package into |
452 | + # debian/<package>-doc. |
453 | + #INSTALLDOC# |
454 | + |
455 | + dh_install -i |
456 | + |
457 | +install-arch: |
458 | + dh_testdir |
459 | + dh_testroot |
460 | + dh_prep -s |
461 | + dh_installdirs -s |
462 | + |
463 | + mkdir -p `dirname $(GTM_DIST)` |
464 | + |
465 | + # We need to patch the configure script to pre-answer all of the prompts and |
466 | + # set the installation directory |
467 | + cd pro ; \ |
468 | + cat ../debian/patches/99-noninteractive-configure.patch | \ |
469 | + sed 's,@GTM_DIST@,$(GTM_DIST),' | \ |
470 | + sed 's,@GTM_ICU_VERSION@,$(GTM_ICU_VERSION),' | \ |
471 | + patch -p0 -b ; \ |
472 | + chmod +x configure ; \ |
473 | + ./configure |
474 | + |
475 | + cp -a $(GTM_DIST) debian/fis-gtm-5.3004a`dirname $(GTM_DIST)`/ |
476 | + |
477 | + touch install-arch-stamp |
478 | + |
479 | + dh_install -s |
480 | +# Must not depend on anything. This is to be called by |
481 | +# binary-arch/binary-indep |
482 | +# in another 'make' thread. |
483 | +binary-common: |
484 | + dh_testdir |
485 | + dh_testroot |
486 | + dh_installchangelogs |
487 | + dh_installdocs |
488 | + dh_installexamples |
489 | +# dh_installmenu |
490 | +# dh_installdebconf |
491 | +# dh_installlogrotate |
492 | +# dh_installemacsen |
493 | +# dh_installpam |
494 | +# dh_installmime |
495 | +# dh_python |
496 | +# dh_installinit |
497 | +# dh_installcron |
498 | +# dh_installinfo |
499 | + dh_installman |
500 | + dh_link |
501 | + dh_strip |
502 | + dh_compress |
503 | + dh_fixperms |
504 | + # re-copy files to ensure permissions are correct. files are owned by |
505 | + # group bin for now; will change to group gtm in postinst |
506 | + rm -rf debian/fis-gtm-5.3004a$(GTM_DIST) |
507 | + cp -a $(GTM_DIST) debian/fis-gtm-5.3004a`dirname $(GTM_DIST)`/ |
508 | +# dh_perl |
509 | + dh_makeshlibs |
510 | + dh_installdeb |
511 | + dh_shlibdeps |
512 | + dh_gencontrol |
513 | + dh_md5sums |
514 | + dh_builddeb |
515 | +# Build architecture independant packages using the common target. |
516 | +binary-indep: build-indep install-indep |
517 | + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common |
518 | + |
519 | +# Build architecture dependant packages using the common target. |
520 | +binary-arch: build-arch install-arch |
521 | + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common |
522 | + |
523 | +binary: binary-arch binary-indep |
524 | +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure |
525 | |
526 | === modified file 'packages/deb/openvista-libs-5.3004/debian/changelog' |
527 | --- packages/deb/openvista-libs-5.3004/debian/changelog 2009-08-11 20:47:56 +0000 |
528 | +++ packages/deb/openvista-libs-5.3004/debian/changelog 2009-08-28 20:12:33 +0000 |
529 | @@ -1,3 +1,10 @@ |
530 | +openvista-libs-5.3004 (0.8.5-0ubuntu2) jaunty; urgency=low |
531 | + |
532 | + * gtmsignal.8 man page conflicts with openvista-libs-5.3004a; remove it until |
533 | + docs can be split out into their own package. |
534 | + |
535 | + -- Jonathan Tai <jon.tai@medsphere.com> Fri, 28 Aug 2009 13:07:39 -0700 |
536 | + |
537 | openvista-libs-5.3004 (0.8.5-0ubuntu1) jaunty; urgency=low |
538 | |
539 | * Bump version number for release |
540 | |
541 | === removed file 'packages/deb/openvista-libs-5.3004/debian/manpages' |
542 | --- packages/deb/openvista-libs-5.3004/debian/manpages 2009-08-03 19:22:13 +0000 |
543 | +++ packages/deb/openvista-libs-5.3004/debian/manpages 1970-01-01 00:00:00 +0000 |
544 | @@ -1,1 +0,0 @@ |
545 | -docs/man8/gtmsignal.8 |
546 | |
547 | === added directory 'packages/deb/openvista-libs-5.3004a' |
548 | === added directory 'packages/deb/openvista-libs-5.3004a/debian' |
549 | === added file 'packages/deb/openvista-libs-5.3004a/debian/changelog' |
550 | --- packages/deb/openvista-libs-5.3004a/debian/changelog 1970-01-01 00:00:00 +0000 |
551 | +++ packages/deb/openvista-libs-5.3004a/debian/changelog 2009-08-28 20:12:33 +0000 |
552 | @@ -0,0 +1,12 @@ |
553 | +openvista-libs-5.3004a (0.8.5-0ubuntu2) jaunty; urgency=low |
554 | + |
555 | + * gtmsignal.8 man page conflicts with openvista-libs-5.3004; remove it until |
556 | + docs can be split out into their own package. |
557 | + |
558 | + -- Jonathan Tai <jon.tai@medsphere.com> Fri, 28 Aug 2009 13:07:39 -0700 |
559 | + |
560 | +openvista-libs-5.3004a (0.8.5-0ubuntu1) jaunty; urgency=low |
561 | + |
562 | + * Initial Ubuntu package |
563 | + |
564 | + -- Jonathan Tai <jon.tai@medsphere.com> Fri, 28 Aug 2009 12:52:31 -0700 |
565 | |
566 | === added file 'packages/deb/openvista-libs-5.3004a/debian/changelogs' |
567 | --- packages/deb/openvista-libs-5.3004a/debian/changelogs 1970-01-01 00:00:00 +0000 |
568 | +++ packages/deb/openvista-libs-5.3004a/debian/changelogs 2009-08-28 20:06:25 +0000 |
569 | @@ -0,0 +1,1 @@ |
570 | +ChangeLog |
571 | |
572 | === added file 'packages/deb/openvista-libs-5.3004a/debian/compat' |
573 | --- packages/deb/openvista-libs-5.3004a/debian/compat 1970-01-01 00:00:00 +0000 |
574 | +++ packages/deb/openvista-libs-5.3004a/debian/compat 2009-08-28 20:06:25 +0000 |
575 | @@ -0,0 +1,1 @@ |
576 | +7 |
577 | |
578 | === added file 'packages/deb/openvista-libs-5.3004a/debian/control' |
579 | --- packages/deb/openvista-libs-5.3004a/debian/control 1970-01-01 00:00:00 +0000 |
580 | +++ packages/deb/openvista-libs-5.3004a/debian/control 2009-08-28 20:06:25 +0000 |
581 | @@ -0,0 +1,21 @@ |
582 | +Source: openvista-libs-5.3004a |
583 | +Section: misc |
584 | +Priority: optional |
585 | +Maintainer: Jonathan Tai <jon.tai@medsphere.com> |
586 | +Build-Depends: debhelper (>= 7), fis-gtm-5.3004a |
587 | +Standards-Version: 3.8.0 |
588 | +Homepage: https://medsphere.org/community/project/gtm |
589 | + |
590 | +Package: openvista-libs-5.3004a |
591 | +Architecture: any |
592 | +Depends: ${shlibs:Depends}, ${misc:Depends}, fis-gtm-5.3004a |
593 | +Provides: openvista-libs |
594 | +Description: GT.M External Calls for OpenVista |
595 | + OpenVista is a cost-effective, open, trusted and complete EHR which enhances |
596 | + patient safety, increases clinical and operational efficiency and provides an |
597 | + opportunity to improve quality of care delivery. |
598 | + . |
599 | + This package provides a shared library that OpenVista code running in GT.M |
600 | + calls out to for PAM authentication and duplicating a device onto a spawned |
601 | + child's stdin/stdout. This package also provides an suid wrapper around GT.M |
602 | + utilities used to send signals to other GT.M processes. |
603 | |
604 | === added file 'packages/deb/openvista-libs-5.3004a/debian/copyright' |
605 | --- packages/deb/openvista-libs-5.3004a/debian/copyright 1970-01-01 00:00:00 +0000 |
606 | +++ packages/deb/openvista-libs-5.3004a/debian/copyright 2009-08-28 20:06:25 +0000 |
607 | @@ -0,0 +1,50 @@ |
608 | +This package was debianized by Jonathan Tai <jon.tai@medsphere.com> on |
609 | +Fri, 28 Aug 2009 12:52:31 -0700 |
610 | + |
611 | +It was downloaded from <https://medsphere.org/community/project/gtm> |
612 | + |
613 | +Upstream Author: |
614 | + |
615 | + Medsphere Systems Corporation |
616 | + |
617 | +Copyright: |
618 | + |
619 | + Copyright (C) 2009 Medsphere Systems Corporation |
620 | + |
621 | +License: |
622 | + |
623 | + The utilities provided by the OpenVista/GT.M Integration Project simplify |
624 | + installation, configuration, and operation of OpenVista Server when running on |
625 | + GT.M on Linux. |
626 | + |
627 | + Copyright (C) 2009 Medsphere Systems Corporation |
628 | + |
629 | + This program is free software; you can redistribute it and/or modify it solely |
630 | + under the terms of the GNU Affero General Public License version 3 as published |
631 | + by the Free Software Foundation. |
632 | + |
633 | + This program is distributed in the hope that it will be useful, but WITHOUT |
634 | + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
635 | + FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License |
636 | + for more details. |
637 | + |
638 | + You should have received a copy of the GNU Affero General Public License along |
639 | + with this program; if not, see http://www.gnu.org/licenses or write to the Free |
640 | + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
641 | + 02110-1301 USA. |
642 | + |
643 | + You can contact Medsphere Systems Corporation headquarters at 1917 Palomar Oaks Way, |
644 | + Carlsbad, Ca. 92008 or at legal@medsphere.com. |
645 | + |
646 | + The interactive user interfaces in modified source and object code versions |
647 | + of this program must display Appropriate Legal Notices, as required under |
648 | + Section 5 of the GNU Affero General Public License version 3. |
649 | + |
650 | + In accordance with Section 7(b) of the GNU Affero General Public License |
651 | + version 3, these Appropriate Legal Notices must retain the display of the |
652 | + "Powered by Medsphere" logo. If the display of the logo is not reasonably |
653 | + feasible for technical reasons, the Appropriate Legal Notices must display |
654 | + the words "Powered by Medsphere". |
655 | + |
656 | +The Debian packaging is copyright 2009, Medsphere Systems Corporation and |
657 | +is licensed under the AGPL. |
658 | |
659 | === added file 'packages/deb/openvista-libs-5.3004a/debian/dirs' |
660 | --- packages/deb/openvista-libs-5.3004a/debian/dirs 1970-01-01 00:00:00 +0000 |
661 | +++ packages/deb/openvista-libs-5.3004a/debian/dirs 2009-08-28 20:06:25 +0000 |
662 | @@ -0,0 +1,1 @@ |
663 | +usr/share/doc/openvista-libs-5.3004a |
664 | |
665 | === added file 'packages/deb/openvista-libs-5.3004a/debian/docs' |
666 | --- packages/deb/openvista-libs-5.3004a/debian/docs 1970-01-01 00:00:00 +0000 |
667 | +++ packages/deb/openvista-libs-5.3004a/debian/docs 2009-08-28 20:06:25 +0000 |
668 | @@ -0,0 +1,2 @@ |
669 | +NEWS |
670 | +README |
671 | |
672 | === added file 'packages/deb/openvista-libs-5.3004a/debian/postinst' |
673 | --- packages/deb/openvista-libs-5.3004a/debian/postinst 1970-01-01 00:00:00 +0000 |
674 | +++ packages/deb/openvista-libs-5.3004a/debian/postinst 2009-08-28 20:06:25 +0000 |
675 | @@ -0,0 +1,49 @@ |
676 | +#!/bin/sh |
677 | +# postinst script for openvista-libs-5.3004a |
678 | +# |
679 | +# see: dh_installdeb(1) |
680 | + |
681 | +set -e |
682 | + |
683 | +# summary of how this script can be called: |
684 | +# * <postinst> `configure' <most-recently-configured-version> |
685 | +# * <old-postinst> `abort-upgrade' <new version> |
686 | +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> |
687 | +# <new-version> |
688 | +# * <postinst> `abort-remove' |
689 | +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' |
690 | +# <failed-install-package> <version> `removing' |
691 | +# <conflicting-package> <version> |
692 | +# for details, see http://www.debian.org/doc/debian-policy/ or |
693 | +# the debian-policy package |
694 | + |
695 | + |
696 | +case "$1" in |
697 | + configure) |
698 | + if [ `dpkg --print-architecture` = "amd64" ]; then |
699 | + gtm_dist=/opt/lsb-gtm/V5.3-004A_x86_64 |
700 | + else |
701 | + gtm_dist=/opt/lsb-gtm/V5.3-004A_i686 |
702 | + fi |
703 | + |
704 | + chgrp gtm $gtm_dist/libopenvista.so $gtm_dist/openvista.xc $gtm_dist/gtmsignal |
705 | + |
706 | + # the chgrp command above may cause gtmsignal to lose the setuid bit; re-add it here just in case |
707 | + chmod u+s $gtm_dist/gtmsignal |
708 | + ;; |
709 | + |
710 | + abort-upgrade|abort-remove|abort-deconfigure) |
711 | + ;; |
712 | + |
713 | + *) |
714 | + echo "postinst called with unknown argument \`$1'" >&2 |
715 | + exit 1 |
716 | + ;; |
717 | +esac |
718 | + |
719 | +# dh_installdeb will replace this with shell code automatically |
720 | +# generated by other debhelper scripts. |
721 | + |
722 | +#DEBHELPER# |
723 | + |
724 | +exit 0 |
725 | |
726 | === added file 'packages/deb/openvista-libs-5.3004a/debian/rules' |
727 | --- packages/deb/openvista-libs-5.3004a/debian/rules 1970-01-01 00:00:00 +0000 |
728 | +++ packages/deb/openvista-libs-5.3004a/debian/rules 2009-08-28 20:06:25 +0000 |
729 | @@ -0,0 +1,138 @@ |
730 | +#!/usr/bin/make -f |
731 | +# -*- makefile -*- |
732 | +# Sample debian/rules that uses debhelper. |
733 | +# |
734 | +# This file was originally written by Joey Hess and Craig Small. |
735 | +# As a special exception, when this file is copied by dh-make into a |
736 | +# dh-make output file, you may use that output file without restriction. |
737 | +# This special exception was added by Craig Small in version 0.37 of dh-make. |
738 | +# |
739 | +# Modified to make a template file for a multi-binary package with separated |
740 | +# build-arch and build-indep targets by Bill Allombert 2001 |
741 | + |
742 | +# Uncomment this to turn on verbose mode. |
743 | +#export DH_VERBOSE=1 |
744 | + |
745 | +# This has to be exported to make some magic below work. |
746 | +export DH_OPTIONS |
747 | + |
748 | +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) |
749 | + |
750 | +ifeq ($(DEB_HOST_ARCH),amd64) |
751 | +GTM_DIST = /opt/lsb-gtm/V5.3-004A_x86_64 |
752 | +else |
753 | +GTM_DIST = /opt/lsb-gtm/V5.3-004A_i686 |
754 | +endif |
755 | + |
756 | + |
757 | + |
758 | +configure: configure-stamp |
759 | +configure-stamp: |
760 | + dh_testdir |
761 | + # Add here commands to configure the package. |
762 | + |
763 | + touch configure-stamp |
764 | + |
765 | + |
766 | +#Architecture |
767 | +build: build-arch build-indep |
768 | + |
769 | +build-arch: build-arch-stamp |
770 | +build-arch-stamp: configure-stamp |
771 | + cd src/libopenvista && gtm_dist="$(GTM_DIST)" ./compile.sh |
772 | + cd src/gtmsignal && ./compile.sh |
773 | + touch $@ |
774 | + |
775 | +build-indep: build-indep-stamp |
776 | +build-indep-stamp: configure-stamp |
777 | + |
778 | + # Add here commands to compile the indep part of the package. |
779 | + #$(MAKE) doc |
780 | + touch $@ |
781 | + |
782 | +clean: |
783 | + dh_testdir |
784 | + dh_testroot |
785 | + rm -f build-arch-stamp build-indep-stamp configure-stamp |
786 | + |
787 | + rm -f src/libopenvista/libopenvista.so |
788 | + rm -f src/libopenvista/openvista.xc |
789 | + rm -f src/gtmsignal/gtmsignal |
790 | + |
791 | + dh_clean |
792 | + |
793 | +install: install-indep install-arch |
794 | +install-indep: |
795 | + dh_testdir |
796 | + dh_testroot |
797 | + dh_prep -i |
798 | + dh_installdirs -i |
799 | + |
800 | + # Add here commands to install the indep part of the package into |
801 | + # debian/<package>-doc. |
802 | + #INSTALLDOC# |
803 | + |
804 | + dh_install -i |
805 | + |
806 | +install-arch: |
807 | + dh_testdir |
808 | + dh_testroot |
809 | + dh_prep -s |
810 | + dh_installdirs -s |
811 | + |
812 | + install COPYING.AGPL debian/openvista-libs-5.3004a/usr/share/doc/openvista-libs-5.3004a/AGPL |
813 | + |
814 | + mkdir -p debian/openvista-libs-5.3004a$(GTM_DIST) |
815 | + |
816 | + install src/libopenvista/libopenvista.so debian/openvista-libs-5.3004a$(GTM_DIST) |
817 | + install -m 644 src/libopenvista/openvista.xc debian/openvista-libs-5.3004a$(GTM_DIST) |
818 | + |
819 | + install src/gtmsignal/gtmsignal debian/openvista-libs-5.3004a$(GTM_DIST) |
820 | + |
821 | + dh_install -s |
822 | +# Must not depend on anything. This is to be called by |
823 | +# binary-arch/binary-indep |
824 | +# in another 'make' thread. |
825 | +binary-common: |
826 | + dh_testdir |
827 | + dh_testroot |
828 | + dh_installchangelogs |
829 | + dh_installdocs |
830 | + dh_installexamples |
831 | +# dh_installmenu |
832 | +# dh_installdebconf |
833 | +# dh_installlogrotate |
834 | +# dh_installemacsen |
835 | +# dh_installpam |
836 | +# dh_installmime |
837 | +# dh_python |
838 | +# dh_installinit |
839 | +# dh_installcron |
840 | +# dh_installinfo |
841 | + dh_installman |
842 | + dh_link |
843 | + dh_strip |
844 | + dh_compress |
845 | + dh_fixperms |
846 | + # use group bin for now; will change to group gtm in postinst |
847 | + chown bin:bin debian/openvista-libs-5.3004a$(GTM_DIST)/* |
848 | + chmod 440 debian/openvista-libs-5.3004a$(GTM_DIST)/* |
849 | + chown root debian/openvista-libs-5.3004a$(GTM_DIST)/gtmsignal |
850 | + chmod 4550 debian/openvista-libs-5.3004a$(GTM_DIST)/gtmsignal |
851 | +# dh_perl |
852 | + dh_makeshlibs |
853 | + dh_installdeb |
854 | + dh_shlibdeps |
855 | + dh_gencontrol |
856 | + dh_md5sums |
857 | + dh_builddeb |
858 | +# Build architecture independant packages using the common target. |
859 | +binary-indep: build-indep install-indep |
860 | + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common |
861 | + |
862 | +# Build architecture dependant packages using the common target. |
863 | +binary-arch: build-arch install-arch |
864 | + $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common |
865 | + |
866 | +binary: binary-arch binary-indep |
867 | +.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure |
868 | |
869 | === added file 'packages/rpm/fis-gtm-5.3004a.spec' |
870 | --- packages/rpm/fis-gtm-5.3004a.spec 1970-01-01 00:00:00 +0000 |
871 | +++ packages/rpm/fis-gtm-5.3004a.spec 2009-08-28 19:09:24 +0000 |
872 | @@ -0,0 +1,148 @@ |
873 | +# FIXME: this is a pretty bad RPM: |
874 | +# - It requires that gtm_curpro already exists on the build box |
875 | +# - It requires that gtm_dist does not already exist on the build box |
876 | +# - It requires that the gtm group already exist on the build box |
877 | +# - It requires the RPM be built as root |
878 | + |
879 | +# This must point to an existing binary installation of GT.M because GT.M |
880 | +# requires GT.M to build |
881 | +%define gtm_curpro /tmp/gtm |
882 | + |
883 | +%ifarch x86_64 |
884 | +%define gtm_dist /opt/lsb-gtm/V5.3-004A_x86_64 |
885 | +%else |
886 | +%define gtm_dist /opt/lsb-gtm/V5.3-004A_i686 |
887 | +%endif |
888 | + |
889 | +Name: fis-gtm-5.3004a |
890 | +Version: 5.3004a |
891 | +Release: 1 |
892 | +Summary: High end TP schemaless database |
893 | +License: AGPL |
894 | +Vendor: Fidelity Information Services |
895 | +URL: http://www.fidelityinfoservices.com/FNFIS/Markets/NonFinancialIndustries/Healthcare/GTM/ |
896 | +Group: Applications/Databases |
897 | +Packager: Jonathan Tai <jon.tai@medsphere.com> |
898 | + |
899 | +Provides: fis-gtm |
900 | + |
901 | +Requires(pre): /usr/sbin/groupadd |
902 | +Requires(post): /usr/sbin/semanage, /sbin/restorecon |
903 | +Requires(postun): /usr/sbin/semanage, /usr/sbin/groupdel |
904 | + |
905 | +Requires: /bin/sh, coreutils, libicu, zlib, ncurses, gpgme, libgpg-error, libgcrypt |
906 | +BuildRequires: /bin/tcsh, libicu-devel, zlib-devel, ncurses-devel, gpgme-devel, libgpg-error-devel, libgcrypt-devel |
907 | + |
908 | +%ifarch x86_64 |
909 | +BuildRequires: elfutils-libelf-devel |
910 | +%endif |
911 | + |
912 | +# The source for both i686 and x86_64 versions are both in this tarball, even |
913 | +# though the tarball is named i686_src |
914 | +Source: gtm_V53004A_linux_i686_src.tar.gz |
915 | + |
916 | +# Patch the configure script to pre-answer all of the prompts and set the |
917 | +# installation directory |
918 | +Patch1: fis-gtm-5.3004a_noninteractive-configure.patch |
919 | + |
920 | +BuildRoot: %{_tmppath}/%{name}-root |
921 | + |
922 | +%description |
923 | +GT.M is a vetted, industrial strength, transaction processing application |
924 | +platform consisting of a schema-less database engine optimized for extreme |
925 | +transaction processing throughput & business continuity plus a compiler for the |
926 | +MUMPS language. |
927 | + |
928 | +%prep |
929 | +if [ ! -d "%{gtm_curpro}" ]; then |
930 | + echo "existing binary installation of GT.M not found at %{gtm_curpro}" |
931 | + exit 1 |
932 | +fi |
933 | + |
934 | +if [ -d "%{gtm_dist}" ]; then |
935 | + echo "target GT.M directory %{gtm_dist} already exists" |
936 | + exit 1 |
937 | +fi |
938 | + |
939 | +if ! getent group gtm >/dev/null; then |
940 | + echo "gtm group not found in /etc/group" |
941 | + exit 1 |
942 | +fi |
943 | + |
944 | +if [ `/usr/bin/id -u` -ne 0 ]; then |
945 | + echo "this RPM must be built as root" |
946 | + exit 1 |
947 | +fi |
948 | +%setup -c |
949 | + |
950 | +%build |
951 | +# GT.M needs to be built with tcsh, and with a bunch of environmental variables |
952 | +# set. Since we can't run tcsh interactively, we put all the setenv commands |
953 | +# and the build command itself into a temporary script, then execute it with |
954 | +# tcsh. |
955 | +echo 'setenv gtm_curpro %{gtm_curpro}' > build.csh |
956 | +echo 'setenv gtm_exe %{gtm_curpro}' >> build.csh |
957 | +echo 'setenv HOSTOS '$(uname -s) >> build.csh |
958 | +echo 'setenv gtm_tools '$(pwd)'/sr_linux' >> build.csh |
959 | +echo 'setenv gtm_inc '$(pwd)'/sr_linux' >> build.csh |
960 | +%ifarch x86_64 |
961 | +echo 'setenv OBJECT_MODE 64' >> build.csh |
962 | +%endif |
963 | +echo 'setenv gtm_icu_version '$(icu-config --version) >> build.csh |
964 | +echo 'setenv gtm_version_change 1' >> build.csh |
965 | +cat sr_unix/gtm_env.csh >> build.csh |
966 | +echo 'make -f sr_unix/comlist.mk -I./sr_unix -I./sr_linux buildtypes=pro gtm_ver='$(pwd) >> build.csh |
967 | +tcsh -b build.csh |
968 | +rm -f build.csh |
969 | + |
970 | +# Put a copy of the COPYING file in the pro directory so that it will be |
971 | +# installed by the ./configure script later |
972 | +cp COPYING pro |
973 | + |
974 | +%install |
975 | +rm -rf %{buildroot} |
976 | + |
977 | +mkdir -p $(dirname %{gtm_dist}) |
978 | + |
979 | +# We need to patch the configure script to pre-answer all of the prompts and |
980 | +# set the installation directory |
981 | +cd pro |
982 | +cat %{PATCH1} | sed 's,@GTM_DIST@,%{gtm_dist},' | sed 's,@GTM_ICU_VERSION@,'$(icu-config --version)',' | patch -p0 -b |
983 | +chmod +x configure |
984 | +./configure |
985 | + |
986 | +mkdir -p %{buildroot}$(dirname %{gtm_dist}) |
987 | +mv %{gtm_dist} %{buildroot}$(dirname %{gtm_dist}) |
988 | + |
989 | +%clean |
990 | +rm -rf %{buildroot} |
991 | + |
992 | +%files |
993 | +%defattr(-,-,-) |
994 | +/opt/lsb-gtm |
995 | + |
996 | +%pre |
997 | +/usr/sbin/groupadd gtm 2> /dev/null || : |
998 | + |
999 | +%post |
1000 | +# GT.M's installation script just chcon directly, but it won't have any effect |
1001 | +# on the target system (only on the build system, and then only if SELinux is |
1002 | +# enabled on the build system). On the target system, we should use semanage |
1003 | +# to save the correct context for libgtmshr.so in the SELinux policy. This |
1004 | +# will ensure that the file has the correct context, even after relabling. |
1005 | +# |
1006 | +# See http://fedoraproject.org/wiki/PackagingDrafts/SELinux |
1007 | +/usr/sbin/semanage fcontext -a -t textrel_shlib_t %{gtm_dist}/libgtmshr.so 2>/dev/null || : |
1008 | +/sbin/restorecon %{gtm_dist}/libgtmshr.so || : |
1009 | + |
1010 | +%postun |
1011 | +if [ $1 -eq 0 ]; then |
1012 | + # Remove libgtmshr.so from the SELinux policy if we're removing the package |
1013 | + # See http://fedoraproject.org/wiki/PackagingDrafts/SELinux |
1014 | + /usr/sbin/semanage fcontext -d -t textrel_shlib_t %{gtm_dist}/libgtmshr.so 2>/dev/null || : |
1015 | + |
1016 | + # if we were the last GT.M package on the system, remove the gtm group |
1017 | + if [ ! -d /opt/lsb-gtm ]; then |
1018 | + /usr/sbin/groupdel gtm 2> /dev/null || : |
1019 | + fi |
1020 | +fi |
1021 | |
1022 | === added file 'packages/rpm/fis-gtm-5.3004a_noninteractive-configure.patch' |
1023 | --- packages/rpm/fis-gtm-5.3004a_noninteractive-configure.patch 1970-01-01 00:00:00 +0000 |
1024 | +++ packages/rpm/fis-gtm-5.3004a_noninteractive-configure.patch 2009-08-28 19:09:24 +0000 |
1025 | @@ -0,0 +1,78 @@ |
1026 | +--- configure.orig 2009-08-13 15:54:09.000000000 -0700 |
1027 | ++++ configure 2009-08-13 15:59:38.000000000 -0700 |
1028 | +@@ -123,7 +123,7 @@ |
1029 | + # create temporary file to test for valid user and group names |
1030 | + touch tmp_owngrp |
1031 | + $echo "What account should own the files? ($defowner) \c" |
1032 | +-read resp |
1033 | ++resp="" |
1034 | + if [ "$resp" = "" ] ; then |
1035 | + owner=$defowner |
1036 | + else |
1037 | +@@ -137,10 +137,10 @@ |
1038 | + fi |
1039 | + |
1040 | + $echo "Should execution of GT.M be restricted to a group? (y or n) \c" |
1041 | +-read resp |
1042 | ++resp="y" |
1043 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
1044 | + $echo "Enter group name: \c" |
1045 | +- read group |
1046 | ++ group="gtm" |
1047 | + if [ "$group" != "" ] ; then |
1048 | + chgrp $group tmp_owngrp 2> /dev/null |
1049 | + if [ 1 = "$?" ] ; then |
1050 | +@@ -156,7 +156,7 @@ |
1051 | + rm tmp_owngrp |
1052 | + |
1053 | + $echo "In what directory should GT.M be installed? \c" |
1054 | +-read gtmdist |
1055 | ++gtmdist="@GTM_DIST@" |
1056 | + |
1057 | + # if gtmdist is relative then need to make it absolute |
1058 | + |
1059 | +@@ -182,7 +182,7 @@ |
1060 | + $echo "Directory $gtmdist does not exist. Do you wish to create it as part of" |
1061 | + $echo "this installation? (y or n) \c" |
1062 | + |
1063 | +- read resp |
1064 | ++ resp="y" |
1065 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
1066 | + mkdir -p $gtmdist |
1067 | + chmod 0755 $gtmdist |
1068 | +@@ -226,14 +226,14 @@ |
1069 | + library_path="/usr/local/lib32 /usr/local/lib /usr/lib32 /usr/lib /lib32 /lib" |
1070 | + fi |
1071 | + $echo "Should unicode support be installed? (y or n) \c" |
1072 | +- read resp |
1073 | ++ resp="y" |
1074 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
1075 | + would_like_utf8=1 |
1076 | + $echo "Should an ICU version other than the default be used? (y or n) \c" |
1077 | +- read resp |
1078 | ++ resp="y" |
1079 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
1080 | + $echo "Enter ICU version (at least ICU version 3.6 is required. Enter as <minor-ver>.<major-ver>): \c" |
1081 | +- read gtm_icu_version |
1082 | ++ gtm_icu_version="@GTM_ICU_VERSION@" |
1083 | + icu_ver=`$echo $gtm_icu_version | sed 's/\.//'` |
1084 | + majmin=`$echo $icu_ver | cut -f 1 -d "."` |
1085 | + if [ "$majmin" -lt "36" ] ; then |
1086 | +@@ -600,7 +600,7 @@ |
1087 | + $echo "only the uppercase versions of the files." |
1088 | + $echo "" |
1089 | + $echo "Do you want uppercase and lowercase versions of the MUMPS routines? (y or n)\c" |
1090 | +-read resp |
1091 | ++resp="n" |
1092 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
1093 | + $echo "" |
1094 | + $echo "Creating lowercase versions of the MUMPS routines." |
1095 | +@@ -817,7 +817,7 @@ |
1096 | + $echo "" |
1097 | + $echo "Installation completed. Would you like all the temporary files" |
1098 | + $echo "removed from this directory? (y or n) \c" |
1099 | +-read resp |
1100 | ++resp="y" |
1101 | + |
1102 | + if [ "$resp" = "Y" -o "$resp" = "y" ] ; then |
1103 | + \rm -rf $binaries $pathmods $rscripts $nscripts $dirs configure \ |
1104 | |
1105 | === added file 'packages/rpm/openvista-libs-5.3004a.spec' |
1106 | --- packages/rpm/openvista-libs-5.3004a.spec 1970-01-01 00:00:00 +0000 |
1107 | +++ packages/rpm/openvista-libs-5.3004a.spec 2009-08-28 19:09:24 +0000 |
1108 | @@ -0,0 +1,91 @@ |
1109 | +%ifarch x86_64 |
1110 | +%define gtm_dist /opt/lsb-gtm/V5.3-004A_x86_64 |
1111 | +%else |
1112 | +%define gtm_dist /opt/lsb-gtm/V5.3-004A_i686 |
1113 | +%endif |
1114 | + |
1115 | +Name: openvista-libs-5.3004a |
1116 | +Version: 0.8.5 |
1117 | +Release: 1 |
1118 | +Summary: GT.M External Calls for OpenVista |
1119 | +License: AGPL |
1120 | +Vendor: Medsphere Systems Corporation |
1121 | +URL: https://medsphere.org/community/project/gtm |
1122 | +Group: Applications/System |
1123 | +Packager: Jonathan Tai <jon.tai@medsphere.com> |
1124 | + |
1125 | +Provides: openvista-libs |
1126 | + |
1127 | +Requires(post): /usr/sbin/semanage, /sbin/restorecon |
1128 | +Requires(postun): /usr/sbin/semanage |
1129 | + |
1130 | +Requires: fis-gtm-5.3004a |
1131 | +BuildRequires: fis-gtm-5.3004a |
1132 | + |
1133 | +Obsoletes: openvista-libs |
1134 | + |
1135 | +Source: openvista-libs-5.3004a-%{version}.tar.bz2 |
1136 | +BuildRoot: %{_tmppath}/%{name}-root |
1137 | + |
1138 | +%description |
1139 | +OpenVista is a cost-effective, open, trusted and complete EHR which enhances |
1140 | +patient safety, increases clinical and operational efficiency and provides an |
1141 | +opportunity to improve quality of care delivery. |
1142 | + |
1143 | +This package provides a shared library that OpenVista code running in GT.M |
1144 | +calls out to for PAM authentication and duplicating a device onto a spawned |
1145 | +child's stdin/stdout. This package also provides an suid wrapper around GT.M |
1146 | +utilities used to send signals to other GT.M processes. |
1147 | + |
1148 | +%prep |
1149 | +%setup |
1150 | + |
1151 | +%build |
1152 | +cd src/libopenvista |
1153 | +echo 'export gtm_dist="%{gtm_dist}"' > env |
1154 | +. ./env |
1155 | +./compile.sh |
1156 | + |
1157 | +cd ../../ |
1158 | + |
1159 | +cd src/gtmsignal |
1160 | +./compile.sh |
1161 | + |
1162 | +%install |
1163 | +rm -rf %{buildroot} |
1164 | + |
1165 | +install -d %{buildroot}%{_mandir}/man8/ |
1166 | +install -m 644 docs/man8/gtmsignal.8 %{buildroot}%{_mandir}/man8/ |
1167 | +gzip %{buildroot}%{_mandir}/man8/gtmsignal.8 |
1168 | + |
1169 | +install -d %{buildroot}%{gtm_dist} |
1170 | +install -m 550 src/libopenvista/libopenvista.so %{buildroot}%{gtm_dist} |
1171 | +install -m 440 src/libopenvista/openvista.xc %{buildroot}%{gtm_dist} |
1172 | +install -m 4550 src/gtmsignal/gtmsignal %{buildroot}%{gtm_dist} |
1173 | + |
1174 | +%clean |
1175 | +rm -rf %{buildroot} |
1176 | + |
1177 | +%files |
1178 | +%defattr(-,root,root) |
1179 | +%doc README |
1180 | +%doc COPYING |
1181 | +%doc COPYING.AGPL |
1182 | +%doc NEWS |
1183 | +%{_mandir}/man8/gtmsignal.8* |
1184 | +%defattr(-,bin,gtm) |
1185 | +%{gtm_dist}/libopenvista.so |
1186 | +%{gtm_dist}/openvista.xc |
1187 | +%defattr(-,root,gtm) |
1188 | +%{gtm_dist}/gtmsignal |
1189 | + |
1190 | +%post |
1191 | +# See http://fedoraproject.org/wiki/PackagingDrafts/SELinux |
1192 | +/usr/sbin/semanage fcontext -a -t textrel_shlib_t %{gtm_dist}/libopenvista.so 2>/dev/null || : |
1193 | +/sbin/restorecon %{gtm_dist}/libopenvista.so || : |
1194 | + |
1195 | +%postun |
1196 | +# See http://fedoraproject.org/wiki/PackagingDrafts/SELinux |
1197 | +if [ $1 -eq 0 ]; then |
1198 | + /usr/sbin/semanage fcontext -d -t textrel_shlib_t %{gtm_dist}/libopenvista.so 2>/dev/null || : |
1199 | +fi |
Let's get this into mainline first, then address the remaining issues in bug 420754 and bug 409102.