• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

debian/H18-Sep-2021-141111

windows/H18-Sep-2021-10793

READMEH A D18-Sep-20213.1 KiB8159

alpine.specH A D18-Sep-20212.5 KiB7164

README

1Last changed: 09 July 2016
2
3Building packages for Alpine
4
5Files in this directory:
6  alpine.spec - spec file for building RPMs on RedHat, Fedora and OpenSuse.
7  debian/*    - files containing instructions for building .deb files
8                for use with dpkg
9  windows/*   - files used to build the Windows Alpine installer. Upon
10		release, we set up directory dist.wnt.d with all of the
11		files to be installed, and we then run the command
12		binstaller wnt 0.98 (or whatever the current version is).
13		These scripts are used with Inno Setup 5.
14  README - this file.
15
16
17Most Linux distributions include a package management system to
18simplify the installing and uninstalling of programs.  There are two
19types of these systems commonly used; RPM is the system used by
20default on RedHat, Fedora, Ubuntu, Mandrake, and SuSE, and dpkg
21is a system used by default on Debian and Mac OS X's fink.
22
23
24Why build your own packages?
25
26An RPM and a .deb file are already provided on the Alpine Information
27Center (http://www.washington.edu/alpine).  Additionally, many
28distributions roll their own alpine packages.  The files provided here
29will allow people to build their own versions of the same package in
30the event that the provided packages fail to install due to
31compatibility issues, or in the case where one would want to have a
32modified alpine package.  Unlike the alpine packages provided by the
33various distributions, the packages built with these scripts are built
34directly from source, and will be released concurrently with every
35alpine release.  It may be preferable to use the distributions' alpine
36packages, as they do tend to add value which is intended to enhance
37their users' experience.
38
39
40Building RPMs:
41
42For building RPMs, first find the directory where RPMs are built on
43your system.  On Redhat 9, this directory is /usr/src/redhat.  You can
44change this directory by editing your .rpmmacros file.  Also, you need
45not be root to build an rpm.  To build the RPM, place the
46alpine-{version}.tar.gz file in the SOURCES directory, and place the
47alpine.spec file contained here in the SPECS directory.  Then, you need
48only issue the command:
49
50rpmbuild -ba alpine.spec
51
52The RPM file will be placed in the RPMS directory, and a source RPM
53will be placed in the SRPMS directory.  Installing an RPM is done with
54the command:
55
56rpm -ivh alpine-{version}-1.x86_64.rpm
57
58
59Building .deb files:
60
61For building .deb files, dpkg, the program that builds them, looks in
62the "debian" directory for various control files and build scripts.  This
63directory should reside in the top level of the alpine directory, in the
64same directory as the "build" file.  This requires copying the
65debian directory contained here to the next level up, which can be
66done via the command:
67
68cp -pr debian ../
69
70Then, from alpine's root directory, you would issue the command:
71
72dpkg-buildpackage
73
74Note that you must be root in order to build .deb packages.  After
75running the above command, the .deb will have been built in the
76directory above the alpine root directory, and it would be of the form
77alpine_{version}_i386.deb.  You can then install this package by
78running the command:
79
80dpkg -i alpine_{version}_i386.deb
81