File: epm.html

package info (click to toggle)
epm 3.0-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,020 kB
  • ctags: 371
  • sloc: ansic: 6,199; cpp: 1,188; makefile: 201; perl: 134
file content (195 lines) | stat: -rw-r--r-- 6,076 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<HTML>
<BODY>
<H2><A NAME="epm">epm</A></H2>
<HR>
<P>Create software packages</P>

<H3>Synopsis</H3>

<P><B>epm</B> [ -a <I>architecture</I> ] [ -f <I>format</I> ] [
-g ] [ -k ] [ -n[mrs] ] [ -s <I>setup.xpm</I> ] [ --setup-image
<I>setup.xpm</I> ] [ --setup-program <I>/foo/bar/setup</I> ] [
--setup-types <I>setup.types</I> ] [ -v ] [ <I>name=value
name=value</I> ] product [ <I>listfile</I> ]</P>

<H3>Description</H3>

<P><B>epm</B> generates software packages complete with
installation, removal, and (if necessary) patch scripts. Unless
otherwise specified, the files required for <I>product</I> are
read from a file named "<I>product</I>.list".</P>

<P>The <I>-a</I> option ("architecture") specifies the actual
architecture for the software. Without this option the generic
processor architecture is used ("intel", "sparc", "mips", etc.)</P>

<P>The <I>-f</I> option ("format") specifies the distribution
format:</P>

<UL><DL>

	<DT>aix</DT>

	<DD>Generate an AIX distribution suitable for
	installation on an AIX system.</DD>

	<DT>bsd</DT>

	<DD>Generate a BSD distribution suitable for
	installation on a FreeBSD, NetBSD, or OpenBSD system.</DD>

	<DT>deb</DT>

	<DD>Generate a Debian distribution suitable for
	installation on a Debian Linux system.</DD>

	<DT>inst, tardist</DT>

	<DD>Generate an IRIX distribution suitable for
	installation on an system running IRIX.</DD>

	<DT>native</DT>

	<DD>Generate an native distribution. This uses
	<I>rpm</I> for Linux, <I>inst</I> for IRIX, <I>pkg</I>
	for Solaris, <I>swinstall</I> for HP-UX, and <I>bsd</I>
	for FreeBSD, NetBSD, and OpenBSD. All other operating
	systems default to the <I>portable</I> format.</DD>

	<DT>pkg</DT>

	<DD>Generate an AT&T software package. These are used
	primarily under Solaris.</DD>

	<DT>portable</DT>

	<DD>Generate a portable distribution based on shell
	scripts and tar files. The resulting distribution is
	installed and removed the same way on all operating
	systems. [default]</DD>

	<DT>rpm</DT>

	<DD>Generate a Red Hat Package Manager ("RPM")
	distribution suitable for installation on a Red Hat
	Linux system.</DD>

	<DT>setld</DT>

	<DD>Generate a Tru64 (setld) software distribution.</DD>

	<DT>swinstall, depot</DT>

	<DD>Generate a HP-UX software distribution.</DD>

</DL></UL>

<P>Executable files in the distribution are normally stripped of
debugging information when packaged. To disable this
functionality use the <I>-g</I> option.</P>

<P>Intermediate (spec, etc.) files used to create the
distribution are normally removed after the distribution is
created. The <I>-k</I> option keeps these files in the
distribution directory.</P>

<P>The <I>-s</I> and <I>--setup-image</I> options ("setup")
include the ESP Software Wizard with the specified XPM image
file with the distribution. This option is currently only
supported by portable distributions.</P>

<P>The <I>--setup-program</I> option specifies the setup
executable to use with the distribution. This option is
currently only supported by portable distributions.</P>

<P>The <I>--setup-types</I> option specifies the
<VAR>setup.types</VAR> file to include with the distribution.
This option is currently only supported by portable
distributions.</P>

<P>The <I>-v</I> option ("verbose") increases the amount of
information that is reported. Use multiple v's for more verbose
output.</P>

<P>Distributions normally are named
"product-version-system-release-machine.ext" and
"product-version-system-release-machine-patch.ext" (for patch
distributions.) The "system-release-machine" information can be
customized or eliminated using the <I>-n</I> option with the
appropriate trailing letters. Using <I>-n</I> by itself will
remove the "system-release-machine" string from the filename
entirely.</P>

<P>Debian, IRIX, portable, and Red Hat distributions use the
extensions ".deb", ".tardist", "tar.gz", and ".rpm"
respectively.</P>

<H3>List Variables</H3>

<P><I>EPM</I> maintains a list of variables and their values
which can be used to substitute values in the list file. These
variables are imported from the current environment and taken
from the command-line and list file as provided. Substitutions
occur when the variable name is referenced with the dollar sign
($):</P>

<UL><PRE>
%install echo What is your name:
%install read $$name
%install echo Your name is $$name
</PRE></UL>

<UL><PRE>
f 0555 root sys ${bindir}/foo foo
f 0555 root sys $datadir/foo/foo.dat foo.dat
</PRE></UL>

<P>Variable names can be surrounded by curley brackets (${name})
or alone ($name); without brackets the name is terminated by the
first slash (/), dash (-), or whitespace. The dollar sign can be
inserted using $$.</P>

<H3>Environment Variables</H3>

<P>The <I>RPMDIR</I> environment variable will override where
EPM looks for RPM distributions you generate. The default
locations are <VAR>/usr/src/redhat/RPMS, /usr/src/RPM/RPMS,
/usr/src/packages/RPMS</VAR>, and <VAR>/usr/local/src/RPMS</VAR>.</P>

<H3>Known Bugs</H3>

<P><I>EPM</I> does not currently support generation of IRIX software
patches.</P>

<H3>See Also</H3>

<P><A HREF="#epm">epm(1)</A> - create software packages.</P>

<P><A HREF="#epminstall">epminstall(1)</A> - add a directory,
file, or symlink to a list file.<BR>

<A HREF="#mkepmlist">mkepmlist(1)</A> - make an epm list file
from a directory.<BR>

<A HREF="#REFERENCE">epm.list(5)</A> - epm list file format.</P>

<A HREF="#setup">setup(1)</A> - graphical setup program for the esp package
manager.</P>

<H3>Copyright</H3>

<P>Copyright 1999-2001 by Easy Software Products, All Rights
Reserved.</P>

<P>This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2, or
(at your option) any later version.</P>

<P>This program is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.</P>

</BODY>
</HTML>