File: packaging-howto

package info (click to toggle)
gnokii 0.6.26.dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 10,780 kB
  • ctags: 6,974
  • sloc: ansic: 62,281; sh: 9,804; makefile: 795; sql: 61
file content (157 lines) | stat: -rw-r--r-- 3,776 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
$Id: packaging-howto,v 1.6 2004/01/18 20:43:22 uid66843 Exp $

The gnokii Packaging HOWTO


PURPOSE

Read this document if you want to build gnokii binary packages for your
system or repackage gnokii for a system that is not yet supported.


GENERAL POLICY

For more install/compilation information see the INSTALL file.

Makefiles support 'make DESTDIR=<your_directory> install' for package
building.  For example, in .spec:

	./configure --prefix=/usr

	make DESTDIR=$RPM_BUILD_ROOT/usr install

(You do not need to create any directories - just 'make && make install'.)

For installation procedures use 'make install' or 'make DESTDIR=<dir> install',
and verify that all outputs from the procedure are correct.

Please, DO NOT make any corrections using your package-specific build
system (for example, using 'cp' in packaging scripts like .spec).
Installation is a job for Makefiles.  Writing different installation
procedures for different packaging systems is the road to hell...

The only exception to the above rule is documentation.	'make install'
does not install documentation - one should use each distributions'
packaging routines for this job.  If you want to install docs via a
Makefile use 'make install-docs'.


SYSTEM-SPECIFIC INFORMATION

Debian:

1) Add new lines to Debian/changelog and set the correct version number
in this file.

2) Check the following files:

	rules, menu, docs, *.manpages

3) In gnokii CVS debian directory is in the subdirectory 'packaging'
which is totally non-standard for the Debian package building system,
you must first 'cd' to the top gnokii directory and type:

	ln -s packaging/Debian debian

If you use the release tarball, the directory should be already there.

4) In the top gnokii directory type:

	fakeroot debian/rules binary

5) And then clean up:

	fakeroot debian/rules clean

	rm debian

The .deb packages will appear in the directory ABOVE the top gnokii
directory.

Alternatively, if you want to build everything including sources (.tar.gz,
.dsc, and .changes files), go to the top gnokii directory and type:

	dpkg-buildpackage -rfakeroot

instead of invoking "debian/rules binary" directly.  Note that you will
need the fakeroot package installed, but are there any Debian developers
that don't have that one installed?  Nope.  If you want to sign the
packages with your own PGP key, you will need to make a new first entry
in the Debian changelog.


RedHat:

Just type:

	rpm -ta gnokii-$VERSION.tar.gz

where $VERSION is the version of the gnokii distribution that you are
packaging.


Slackware:

1) Create a gnokii directory and put the gnokii tarball there:

	mkdir gnokii

	cp gnokii-X.Y.Z.tar.gz gnokii

2) Extract SlackBuild from the tarball and copy it into the gnokii
directory, eg.:

	tar xzf gnokii-X.Y.Z.tar.gz

	cp gnokii-X.Y.Z/packaging/Slackware/SlackBuild gnokii

3) Run SlackBuild:

	cd gnokii

	chmod 755 ./SlackBuild ; ./SlackBuild

4) A Slackware package is now located in /tmp/gnokii.tgz.


FreeBSD:


Win32:


DOCUMENT HISTORY

2004-01-18

Pawel Kot <pkot@linuxnews.pl>

* we create debian directory in the make_pkg script -- it will be present in
the release tarballs

2002-09-28

Pawel Kot <pkot@linuxnews.pl>

* use 'make DESTDIR=<dir> install' instead of 'make install prefix=<dir>'

2001-06-18

Erik Rossen <rossen@freesurf.ch>

* fixing Debian notes to mention 'fakeroot' and 'dpkg-buildpackage'

2001-04-20

Erik Rossen <rossen@freesurf.ch>

* fixing English grammar and spelling errors, but no change of information

* changing to a flatter format for easier editing: sections separated
by double spacing and only system commands indented with a tab

* file is always treated with GNU 'fmt' with no options

Pawel Kot <pkot@linuxnews.pl>

* Slackware build instructions added