/usr/share/doc/munipack/debbuilder.html is in munipack-doc 0.5.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | <!DOCTYPE HTML>
<html lang="en">
<head>
<!-- meta -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="description" content="A general astronomical image processing software">
<meta name="author" content="Filip Hroch">
<link href="news_feed.xml" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed" />
<link type="text/css" rel="stylesheet" href="munipack.css">
<link rel="shortcut icon" href="favicon.ico">
<title>DEB binary package</title>
</head>
<body>
<header>
<a href="munipack.html"><img src="title_logo.png" alt="Munipack's logo" class="head"></a>
<div class="headhead">
<div class="headtitle">
<a class="headtitle" href="munipack.html">Munipack</a>
<a class="headsubtitle" href="munipack.html">A general astronomical image processing software</a>
</div>
<ul class="menu">
<li class="menu">◈ <a href="docs.html" class="menu">Documents</a></li>
<li class="menu">☺ <a href="guide.html" class="menu">User guide</a></li>
</ul>
</div>
</header>
<h1>DEB binary package</h1>
<p class="abstract">This page describes canonical way of building of a binary package
for DEB-based distributions (Ubuntu, Mint, Debian). The quick and easy preparation
of portable packages for different architectures is the expected purpose.
</p>
<p>
A review of building of DEB packages is described in detail by
<a href="https://www.debian.org/doc/manuals/maint-guide/">New Maintainers' Guide</a>.
Munipack package has been prepared on base of
<a href="https://wiki.debian.org/DebianAstro/AstropyPackagingTutorial/Preparation">AstropyPackagingTutorial</a>. The tutorial contains instructions how a software can be
cloned, modified, patched and re-build.
</p>
<h2>Debian GIT Repository</h2>
<p>
Debian project maintains own repositories for packages. Every package,
as well as <a href="https://anonscm.debian.org/cgit/debian-astro/packages/munipack.git">Munipack</a>, has three branches: upstream (meaning the source code of a project
itself), master (Debian specific files under debian/ directory) and
pristine-tar (with an original archive).
The files specific to Debian should be independent on the original archive ones.
</p>
<h2>Mercurial Repositories</h2>
<p>
The separation of Debian specific and original project files
is reflected also in structure of my development Mercurial repositories:
</p>
<ul>
<li><a href="http://munipack.physics.muni.cz/hg/munipack">Munipack</a></li>
<li><a href="http://munipack.physics.muni.cz/hg/munipack-debian">Munipack-debian</a></li>
</ul>
<p>
Munipack-debian repository contains a script and Debian control files
needs for building of development branch packages.
</p>
<h2>Prerequisites</h2>
<p>Tools listed below are required for the building: </p>
<ul>
<li>Mercurial, the version control system </li>
<li>Fortran 95 and C++ compilers </li>
<li>wxWidgets development libraries</li>
<li>debhelper tool (creating of deb packages) </li>
</ul>
<p>
All the tools are included in any standard distributions.
</p>
<p> We will install
Mercurial (execute the command under root account or use sudo) as the initial step:
</p>
<pre>
# apt-get install mercurial
</pre>
<h2>Getting Copy of Munipack-Debian</h2>
<p>
As a next step, we need a clone of munipack-debian repository
(Munipack itself will be cloned later in a script). The
task can be done under a regular user accout:
</p>
<pre>
$ hg clone http://munipack.physics.muni.cz/hg/munipack-debian
</pre>
<p>
A crucial matter for building is a script file
<samp>munipack-debian/munipack_hg.sh</samp>.
It will be made all for us.
</p>
<p>
Once before building, required software tools
defined in <samp>munipack-debian/debian/control</samp>
should to by presented:
</p>
<pre>
$ grep Build-Depends munipack-debian/debian/control
Build-Depends: debhelper (>= 9), dh-autoreconf, gfortran, g++ (>=4.7), libcfitsio-dev, libwxgtk3.0-dev, minpack-dev
</pre>
<p>
All the required, or any missing, utilities can be installed as:
</p>
<pre># apt-get install gfortran g++ libwxgtk3.0-dev libcfitsio-dev debhelper dh-autoreconf minpack-dev
</pre>
<h2>Build of DEB Packages</h2>
<p>
The previous steps garanties to be all prerequisites available. Now, it's
the moment of truth:
</p>
<pre>
$ bash -x munipack-debian/munipack_hg.sh
</pre>
<p>
If the building process is successful, new packages does appear
(see examples below) in the current working directory:
</p>
<pre>
$ ls
munipack/ munipack-doc_0.5.7+hg1500_all.deb
munipack-0.5.7+hg1500/ munipack-gui_0.5.7+hg1500_amd64.deb
munipack-0.5.7+hg1500.tar.gz munipack_0.5.7+hg1500.dsc
munipack-cli_0.5.7+hg1500_amd64.deb munipack_0.5.7+hg1500.tar.xz
munipack-core_0.5.7+hg1500_amd64.deb munipack_0.5.7+hg1500_amd64.changes
munipack-debian/ munipack_0.5.7+hg1500_amd64.deb
</pre>
<h2>Installation of DEB Packages</h2>
<p>
The packages can be installed as:
</p>
<pre>
# dpkg -i munipack_*.deb munipack-gui_*.deb munipack-doc_*.deb \
munipack-core_*.deb munipack-cli_*.deb
</pre>
<p>
Or, they can be uninstalled analogically:
</p>
<pre>
dpkg -r munipack munipack-gui munipack-doc munipack-core munipack-cli
</pre>
<h2>Personal Distribution Repository</h2>
<p>
This section illustrates how a Munipack own repository
can be established. The repository is served via a HTTP server.
Lets the directory is REPDIR which means a path in a HTTP server
directory tree structure.
<samp>find</samp> does copy of files of the current work directory to REPDIR
(consider removing of older files).
The list of packages for apt is created by scanning
of packages (the commands are included in <samp>dpkg-dev</samp>):
</p>
<pre>
# apt-get install dpkg-dev
# cd [work directory]
# REPDIR=/home/www/...../jessie
# find . -maxdepth 1 -type f -name 'munipack*.*' -exec cp '{}' $REPDIR ';'
# cd ${REPDIR}/..
# dpkg-scanpackages -m jessie > jessie/Packages
# dpkg-scansources jessie > jessie/Sources
</pre>
<p>
To use the repository,
add record to <samp>/etc/apt/sources.list</samp>, update sources
and install Munipack:
</p>
<pre>
# echo "# Munipack" >> /etc/apt/sources.list
# echo "deb http://localhost/path jessie/" >> /etc/apt/sources.list
# apt-get update
# apt-get install munipack
</pre>
<p>More detailed description can be found in <a href="https://www.debian.org/doc/manuals/repository-howto/repository-howto.en.html">Debian Repository HOWTO</a>.
</p>
<h2>See Also</h2>
<p>
<a href="install.html">Installation</a>, <a href="debbundle.html">DEB bundle builder</a>.
</p>
<footer>
<div style="float:left; margin-left:2em;">
Copyright © 1997 – 2018
Filip Hroch (<a style="text-decoration: none" href="mailto:hroch@physics.muni.cz?Subject=Munipack" title="Author's Email">✉</a>), license <a href="http://www.gnu.org/licenses/gpl.html">GPLv3</a>.
</div>
<div style="float:right; margin-right:2em; margin-top:-0.2em;">
<a href="http://monteboo.blogspot.com/search/label/Munipack" title="Munipack on MonteBoo Blog"><img src="favicon-blogger.png" alt="Blogger"></a>
<a href="http://www.muni.cz/?lang=en" title="Masaryk University in Brno, Czech Republic"><img src="mu-logo.png" alt="Masaryk University"></a>
<a href="news_feed.xml" title="Munipack's Releases in Atom Syndication Format"><img src="Feed-icon.png" alt="Atom Feed"></a>
</div>
</footer>
</body>
</html>
|