summaryrefslogtreecommitdiff
path: root/pkgtools/rpm2pkg/files/rpm2pkg.8
blob: cfeb63e4ca0cd217365c2567b96660654414be96 (plain)
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
.\"	$NetBSD: rpm2pkg.8,v 1.1 2001/01/28 10:44:39 manu Exp $
.\"
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to The NetBSD Foundation
.\" by Emmanuel Dreyfus.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\" This product includes software developed by the NetBSD
.\" Foundation, Inc. and its contributors.
.\" 4. Neither the name of The NetBSD Foundation nor the names of its
.\"    contributors may be used to endorse or promote products derived
.\"    from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd January 27, 2001
.Dt RPM2PKG 8
.Os
.Sh NAME
.Nm rpm2pkg
.Nd RPM to BSD package convertion helper
.Sh SYNOPSIS
.Nm
.Op Fl d Ar directory
.Op Fl f Ar package_list
.Op Fl i Ar ignored_dir
.Op Fl p Ar prefix
.Ar rpm_file ...
.Sh DESCRIPTION
.Nm
helps building BSD packages from RPM files by unpacking each specified
.Ar rpm_file, 
and by building a 
.Ar package_list
according to what was extraced. The
.Ar packge_list
has the format expected by the NetBSD package system.
.Pp 
.Nm 
also provide a mecanism that helps selecting what is actually 
extracted from the RPM files. It is therefore possible to reject files
that are of no interest when building a BSD package. This is specially usefull for files that are to be extracted in
.Pa /var
or
.Pa /etc
directories.
.Pp
The following options are available:
.Bl -tag -width indent
.It Fl d Ar directory
Change working directory to 
.Ar directory
.It Fl f Ar packge_list
Produce a NetBSD package list 
.Ar packge_list
from what was actually extracted from the RPM files archives.
.It Fl i Ar ignored_dir
Do not extract files contained in the
.Ar ignored_dir
directory of the RPM files archives.
.It Fl p Ar prefix
Use 
.Ar prefix 
when extracting files.
.Sh EXAMPLES
.Nm
.Fl d Ar /usr/pkg
.Fl f Ar /usr/pkgsrc/emulator/more_linux_lib/work/PLIST_DYNAMIC
.Fl p Ar emul/linux
.Fl i Ar tmp
.Fl i Ar var
.Fl i Ar usr/tmp
.Ar /usr/pkgsrc/distfiles/more_linux_lib/foo.rpm 
.Ar /usr/pkgsrc/distfiles/more_linux_lib/bar.rpm
.Pp
This will extract 
.Pa foo.rpm 
and
.Pa bar.rpm
into 
.Pa /usr/pkg/emul/linux.
A Packing list, called 
.Pa PLIST_DYNAMIC
will be created, with pathnames relative to 
.Pa /usr/pkg,
because this is the directory we asked 
.Nm
to change to with the
.Fl d
option.
.Pp
.Nm 
will not extract files contained in the
.Pa tmp,
.Pa var,
and
.Pa /usr/tmp
directories of the RPM files archives.
.Sh COMPATIBILITY
.Nm 
should work with any regular RPM file.
.Sh AUTHOR(S)
.An Matthias Scheler Aq tron@netbsd.org
.br
This man page was written by 
.An Emmanuel Dreyfus Aq manu@netbsd.org
.Sh SEE ALSO
.Xr rpm 8 ,
.Xr rpm2cpio 8 ,
.Xr cpio 1
.br
.Em "Documentation on the NetBSD Package System", 
.An Hubert Feyrer Aq hubert.feyrer@informatik.fh-regensburg.de , 
.An Alistair Crooks Aq agc@pkgsrc.org