File: applix_4.3-2.diff

package info (click to toggle)
alien 6.03hamm2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 216 kB
  • ctags: 47
  • sloc: perl: 700; makefile: 111
file content (163 lines) | stat: -rw-r--r-- 5,425 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
--- applix-4.3.orig/debian/changelog
+++ applix-4.3/debian/changelog
@@ -0,0 +1,9 @@
+applix (4.3-2) unstable; urgency=low
+
+  * Converted from RPM binary format to debian
+
+ -- Joey Hess <joey@kitenet.net>  Thu, 15 May 1997 21:32:19 -0400
+
+Local variables:
+mode: debian-changelog
+End:
--- applix-4.3.orig/debian/control
+++ applix-4.3/debian/control
@@ -0,0 +1,18 @@
+Source: applix
+Section: unknown
+Priority: extra
+Maintainer: Joey Hess <joey@kitenet.net>
+Standards-Version: 2.1.1.0
+
+Package: applix
+Architecture: i386
+Depends: ${shlibs:Depends}
+Description: A Complete X Windows based Office Suite
+ Redhat's Applixware, a Office Suite for X. 
+ This is a Converted RPM package.
+ .
+ Applixware is a complete X-Window-based Office Suite which provides
+ word processing, spreadsheet, presentation graphics, and more.
+ Applixware also includes Applix Builder, a graphical application builder
+ that allows you to build new applications that reuse Applixware
+ components.
--- applix-4.3.orig/debian/copyright
+++ applix-4.3/debian/copyright
@@ -0,0 +1,20 @@
+This package was debianized by the alien program by converting
+a binary RPM Package on Thu, 15 May 1997 21:33:36 -0400
+
+Copyright: Commercial software. Do not distribute.
+
+Information from the binary Package:
+
+Name        : applix                      Distribution: Applixware for Red Hat Linux
+Version     : 4.3                               Vendor: Red Hat Software
+Release     : 1                             Build Date: Thu Mar 20 15:25:05 1997
+Install date: (none)                        Build Host: imp.redhat.com
+Group       : X11/Applications              Source RPM: applix-4.3-1.nosrc.rpm
+Size        : 57787719
+Summary     : A Complete X-Window-based Office Suite
+Description :
+Applixware is a complete X-Window-based Office Suite which provides
+word processing, spreadsheet, presentation graphics, and more.
+Applixware also includes Applix Builder, a graphical application builder
+that allows you to build new applications that reuse Applixware
+components.
--- applix-4.3.orig/debian/rules
+++ applix-4.3/debian/rules
@@ -0,0 +1,57 @@
+#!/usr/bin/make -f
+#
+# This is a special rules files for handling alien or binary packages
+# Christoph Lameter, October 30, 1996
+
+package=applix
+
+debian/build:
+	$(checkdir)
+	touch debian/build
+
+clean:
+	$(checkdir)
+	-rm -f debian/build
+	-rm -rf *~ debian/tmp debian/*~ debian/files*
+
+binary-indep:	checkroot debian/build
+	$(checkdir)
+# There are no architecture-independent files to be uploaded
+# generated by this package.  If there were any they would be
+# made here.
+
+binary-arch:	checkroot debian/build
+	$(checkdir)
+	-rm -rf debian/tmp
+# Install binary package
+	install -d debian/tmp
+	install -d debian/tmp/usr/X11R6/bin
+	cd debian/tmp/usr/X11R6/bin && ln -sf ../lib/X11/applix/bin/applix
+	install -d debian/tmp/usr/X11R6/lib/X11
+	# Moving the files like this is a little nasty, but this way we
+	# need far less disk space to build the package..
+	mv opt/applix debian/tmp/usr/X11R6/lib/X11
+	chmod +rx debian/tmp/usr/X11R6/lib/X11/applix debian/tmp/usr/X11R6/lib/X11/applix/axdata/elflib
+	debstd
+	dpkg-gencontrol
+	dpkg --build debian/tmp ..
+	mv debian/tmp/usr/X11R6/lib/X11/applix opt
+
+define checkdir
+	test -f debian/rules
+endef
+
+# Below here is fairly generic really
+
+binary:		binary-indep binary-arch
+
+build:	debian/build
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- applix-4.3.orig/debian/README.debian
+++ applix-4.3/debian/README.debian
@@ -0,0 +1,7 @@
+This is a converted RPM package.
+
+I decided to move the files out of /opt, since debian doesn't have an /opt
+yet. If the applix manual talks about files in /opt, look in
+/usr/X11R6/lib/X11/applix, instead.
+
+-- Joey Hess
--- applix-4.3.orig/debian/menu
+++ applix-4.3/debian/menu
@@ -0,0 +1 @@
+?package(applix):needs="x11" section="Apps/Editors" title="Applixware" command="applix"
--- applix-4.3.orig/opt/applix/bin/applix
+++ applix-4.3/opt/applix/bin/applix
@@ -1,11 +1,8 @@
 #!/bin/bash
 
 # Get the current prefix for the applix package:
-if PRE=$(rpm -q --qf '%{INSTALLPREFIX}' applix 2>/dev/null) ; then : ; else
-  # applix has not been installed with RPM on this system.  Assume that
-  # it is in /opt
-  PRE=/opt
-fi
+# Mod for debian:
+PRE=/usr/X11R6/lib/X11
 
 # Choose a default language: Set one of these variables before running
 # this script and you will choose the language you want.  Otherwise,
@@ -32,11 +29,12 @@
 # We'll enforce 5.3.12 for greatest stability
 ldd $PRE/applix/applix | grep "5\.3\.12" >/dev/null 2>&1 || {
   [ -d $PRE/applix/lib ] || {
-    echo    "Please install the applix-libs package; applix may not" >&2
+    # mod for debian: just warn, don't force them to hit enter.
+    echo    "You should condsider installing the applix-libs package; applix may not" >&2
     echo    "work with your current C library. " >&2
-    echo    >&2
-    echo    "Press enter to continue and try to run Applix anyway," >&2
-    echo -n "or press control-c to abort:" >&2
+#    echo    >&2
+#    echo    "Press enter to continue and try to run Applix anyway," >&2
+#    echo -n "or press control-c to abort:" >&2
   }
   export LD_LIBRARY_PATH=$PRE/applix/lib/:$LD_LIBRARY_PATH
 }