<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TemptorSent</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TemptorSent"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/TemptorSent"/>
	<updated>2026-04-28T14:49:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13577</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13577"/>
		<updated>2017-06-04T03:06:31Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Manifests */ \t -&amp;gt; &amp;lt;tab&amp;gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
Where more than one package provides the same file or facility, allow the user to choose which implementation to prefer.&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
===Flat===&lt;br /&gt;
Existing layout with most binaries and libraries in common directories. Only a single version of a package may be installed and only one package providing a given file or facility may be installed.&lt;br /&gt;
===/pkg===&lt;br /&gt;
 /pkg/apk-tools/3.0.0&lt;br /&gt;
 /pkg/apk-tools/2.7.1&lt;br /&gt;
 /pkg/apk-tools/default -&amp;gt; 3.0.0&lt;br /&gt;
&lt;br /&gt;
Each package is installed in it&#039;s own versioned directory allowing different versions and of the same package and multiple packages which provide the same file to coexist and be selected between as needed.&lt;br /&gt;
&lt;br /&gt;
===/app===&lt;br /&gt;
 /app/webserver/20170406&lt;br /&gt;
 /app/webserver/20170514&lt;br /&gt;
 /app/webserver/production -&amp;gt; 20170406&lt;br /&gt;
 /app/webserver/testing -&amp;gt; 20170514&lt;br /&gt;
&lt;br /&gt;
A a complete set of packages and their dependencies needed to provide an application with a consistent environment for deployment. Generally specifies exact versions of every dependency and is updated as a unit.&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
&amp;lt;code&amp;gt;apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate a manifest of files contained within the specified package(s)/apk(s).&lt;br /&gt;
&lt;br /&gt;
Current default format is:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With verbose flag:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;: &amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proposed canonical format:&lt;br /&gt;
&amp;lt;code&amp;gt;pkg:&amp;lt;i&amp;gt;arch&amp;lt;/i&amp;gt;/&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;-&amp;lt;i&amp;gt;pkgver&amp;lt;/i&amp;gt;	&amp;lt;i&amp;gt;mode&amp;lt;/i&amp;gt;	&amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;group&amp;lt;/i&amp;gt;	&amp;lt;i&amp;gt;size&amp;lt;/i&amp;gt;	&amp;lt;i&amp;gt;timestamp&amp;lt;/i&amp;gt;	&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;	&amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&amp;lt;code&amp;gt;apk gen --key-file=... --control-dir=... --data-dir=...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a key file and two filesystem directories -- one for the control portion and one for the data portion.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use an archive as the source for control or data directories.&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive list -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive extract -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive create -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive append -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Low-level tools to manipulate .apk archives directly.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define proper applet and command names.&lt;br /&gt;
* Determine appropriate flags.&lt;br /&gt;
* Provide ability to supply include/exclude file/pattern list on STDIN, on the command line, or listed in external files.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13576</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13576"/>
		<updated>2017-06-04T02:44:42Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Alternatives */  Add description.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
Where more than one package provides the same file or facility, allow the user to choose which implementation to prefer.&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
===Flat===&lt;br /&gt;
Existing layout with most binaries and libraries in common directories. Only a single version of a package may be installed and only one package providing a given file or facility may be installed.&lt;br /&gt;
===/pkg===&lt;br /&gt;
 /pkg/apk-tools/3.0.0&lt;br /&gt;
 /pkg/apk-tools/2.7.1&lt;br /&gt;
 /pkg/apk-tools/default -&amp;gt; 3.0.0&lt;br /&gt;
&lt;br /&gt;
Each package is installed in it&#039;s own versioned directory allowing different versions and of the same package and multiple packages which provide the same file to coexist and be selected between as needed.&lt;br /&gt;
&lt;br /&gt;
===/app===&lt;br /&gt;
 /app/webserver/20170406&lt;br /&gt;
 /app/webserver/20170514&lt;br /&gt;
 /app/webserver/production -&amp;gt; 20170406&lt;br /&gt;
 /app/webserver/testing -&amp;gt; 20170514&lt;br /&gt;
&lt;br /&gt;
A a complete set of packages and their dependencies needed to provide an application with a consistent environment for deployment. Generally specifies exact versions of every dependency and is updated as a unit.&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
&amp;lt;code&amp;gt;apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate a manifest of files contained within the specified package(s)/apk(s).&lt;br /&gt;
&lt;br /&gt;
Current default format is:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With verbose flag:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;: &amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proposed canonical format:&lt;br /&gt;
&amp;lt;code&amp;gt;pkg:&amp;lt;i&amp;gt;arch&amp;lt;/i&amp;gt;/&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;-&amp;lt;i&amp;gt;pkgver&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;mode&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;group&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;size&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;timestamp&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&amp;lt;code&amp;gt;apk gen --key-file=... --control-dir=... --data-dir=...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a key file and two filesystem directories -- one for the control portion and one for the data portion.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use an archive as the source for control or data directories.&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive list -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive extract -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive create -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive append -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Low-level tools to manipulate .apk archives directly.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define proper applet and command names.&lt;br /&gt;
* Determine appropriate flags.&lt;br /&gt;
* Provide ability to supply include/exclude file/pattern list on STDIN, on the command line, or listed in external files.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13575</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13575"/>
		<updated>2017-06-04T02:06:11Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Plugable Layouts */ Add example layouts&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
===Flat===&lt;br /&gt;
Existing layout with most binaries and libraries in common directories. Only a single version of a package may be installed and only one package providing a given file or facility may be installed.&lt;br /&gt;
===/pkg===&lt;br /&gt;
 /pkg/apk-tools/3.0.0&lt;br /&gt;
 /pkg/apk-tools/2.7.1&lt;br /&gt;
 /pkg/apk-tools/default -&amp;gt; 3.0.0&lt;br /&gt;
&lt;br /&gt;
Each package is installed in it&#039;s own versioned directory allowing different versions and of the same package and multiple packages which provide the same file to coexist and be selected between as needed.&lt;br /&gt;
&lt;br /&gt;
===/app===&lt;br /&gt;
 /app/webserver/20170406&lt;br /&gt;
 /app/webserver/20170514&lt;br /&gt;
 /app/webserver/production -&amp;gt; 20170406&lt;br /&gt;
 /app/webserver/testing -&amp;gt; 20170514&lt;br /&gt;
&lt;br /&gt;
A a complete set of packages and their dependencies needed to provide an application with a consistent environment for deployment. Generally specifies exact versions of every dependency and is updated as a unit.&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
&amp;lt;code&amp;gt;apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate a manifest of files contained within the specified package(s)/apk(s).&lt;br /&gt;
&lt;br /&gt;
Current default format is:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With verbose flag:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;: &amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proposed canonical format:&lt;br /&gt;
&amp;lt;code&amp;gt;pkg:&amp;lt;i&amp;gt;arch&amp;lt;/i&amp;gt;/&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;-&amp;lt;i&amp;gt;pkgver&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;mode&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;group&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;size&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;timestamp&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&amp;lt;code&amp;gt;apk gen --key-file=... --control-dir=... --data-dir=...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a key file and two filesystem directories -- one for the control portion and one for the data portion.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use an archive as the source for control or data directories.&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive list -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive extract -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive create -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive append -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Low-level tools to manipulate .apk archives directly.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define proper applet and command names.&lt;br /&gt;
* Determine appropriate flags.&lt;br /&gt;
* Provide ability to supply include/exclude file/pattern list on STDIN, on the command line, or listed in external files.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13574</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13574"/>
		<updated>2017-06-04T01:49:02Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* TODO Items */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
&amp;lt;code&amp;gt;apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate a manifest of files contained within the specified package(s)/apk(s).&lt;br /&gt;
&lt;br /&gt;
Current default format is:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With verbose flag:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;: &amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proposed canonical format:&lt;br /&gt;
&amp;lt;code&amp;gt;pkg:&amp;lt;i&amp;gt;arch&amp;lt;/i&amp;gt;/&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;-&amp;lt;i&amp;gt;pkgver&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;mode&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;group&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;size&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;timestamp&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&amp;lt;code&amp;gt;apk gen --key-file=... --control-dir=... --data-dir=...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a key file and two filesystem directories -- one for the control portion and one for the data portion.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use an archive as the source for control or data directories.&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive list -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive extract -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive create -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive append -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Low-level tools to manipulate .apk archives directly.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define proper applet and command names.&lt;br /&gt;
* Determine appropriate flags.&lt;br /&gt;
* Provide ability to supply include/exclude file/pattern list on STDIN, on the command line, or listed in external files.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13573</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13573"/>
		<updated>2017-06-04T01:44:08Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* pax Archive Tool */  Add possible usage and TODO items.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
&amp;lt;code&amp;gt;apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate a manifest of files contained within the specified package(s)/apk(s).&lt;br /&gt;
&lt;br /&gt;
Current default format is:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With verbose flag:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;: &amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proposed canonical format:&lt;br /&gt;
&amp;lt;code&amp;gt;pkg:&amp;lt;i&amp;gt;arch&amp;lt;/i&amp;gt;/&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;-&amp;lt;i&amp;gt;pkgver&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;mode&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;group&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;size&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;timestamp&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TODO Items===&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&amp;lt;code&amp;gt;apk gen --key-file=... --control-dir=... --data-dir=...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a key file and two filesystem directories -- one for the control portion and one for the data portion.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use an archive as the source for control or data directories.&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive list -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive extract -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;pattern list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive create -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;apk archive append -f &amp;lt;i&amp;gt;file&amp;lt;/i&amp;gt;.apk [&amp;lt;i&amp;gt;file list...&amp;lt;/i&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Low-level tools to manipulate .apk archives directly.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Define proper applet and command names.&lt;br /&gt;
* Determine appropriate flags.&lt;br /&gt;
* Provide ability to supply include/exclude file/pattern list on STDIN, on the command line, or listed in external files.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13572</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13572"/>
		<updated>2017-06-04T00:37:49Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Manifests */  Add description, formats, and TODO header.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
&amp;lt;code&amp;gt;apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generate a manifest of files contained within the specified package(s)/apk(s).&lt;br /&gt;
&lt;br /&gt;
Current default format is:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With verbose flag:&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;: &amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;  &amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Proposed canonical format:&lt;br /&gt;
&amp;lt;code&amp;gt;pkg:&amp;lt;i&amp;gt;arch&amp;lt;/i&amp;gt;/&amp;lt;i&amp;gt;pkgname&amp;lt;/i&amp;gt;-&amp;lt;i&amp;gt;pkgver&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;mode&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;user&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;group&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;size&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;timestamp&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;sumfunc&amp;lt;/i&amp;gt;:&amp;lt;i&amp;gt;checksum&amp;lt;/i&amp;gt;\t&amp;lt;i&amp;gt;path&amp;lt;/i&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===TODO Items===&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&amp;lt;code&amp;gt;apk gen --key-file=... --control-dir=... --data-dir=...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a key file and two filesystem directories -- one for the control portion and one for the data portion.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use an archive as the source for control or data directories.&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13571</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13571"/>
		<updated>2017-06-03T23:24:14Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* .apk Generator */  Update usage and TODO items&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&amp;lt;code&amp;gt;apk gen --key-file=... --control-dir=... --data-dir=...&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a key file and two filesystem directories -- one for the control portion and one for the data portion.&lt;br /&gt;
&lt;br /&gt;
===TODO Items:===&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use an archive as the source for control or data directories.&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13570</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13570"/>
		<updated>2017-06-03T22:10:37Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* .apk Generator */ Add description and TODO items.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
apk gen ....&lt;br /&gt;
&lt;br /&gt;
Generates a well-formed .apk from a filesystem directory (or archive?).&lt;br /&gt;
* Document current WIP (kaniini).&lt;br /&gt;
* Add ability to use a pre-generated manifest as the source file list and provider of package&#039;s file meta-data.&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13569</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13569"/>
		<updated>2017-06-03T22:00:40Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Manifests */ Update TODOs.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
apk manifest [-v] (&amp;lt;pkg&amp;gt;|&amp;lt;.apk&amp;gt;)...&lt;br /&gt;
* Define a canonical default manifest format which contains all available metadata in a reliably parsable format.&lt;br /&gt;
* Add ability to specify manifest format and fields in a manner similar to &#039;stat&#039;.&lt;br /&gt;
* Add ability to select a subset of files to display in a manner similar to tar. (i.e. &#039;etc/&#039; or &#039;lib/*.so&#039;)&lt;br /&gt;
* Add ability to generate manifest from a filesystem directory structure or path list.&lt;br /&gt;
* (DONE - kaniini) Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13391</id>
		<title>TODO:apk</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=TODO:apk&amp;diff=13391"/>
		<updated>2017-05-24T22:59:36Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Add stub page and headings for TODO:apk&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=TODO: apk=&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
* Document current [[apk internals]].&lt;br /&gt;
* Define &#039;virtual&#039;, &#039;alternative&#039;, and their proper use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Alternatives==&lt;br /&gt;
&lt;br /&gt;
==Plugable Layouts==&lt;br /&gt;
&lt;br /&gt;
==Manifests==&lt;br /&gt;
* Add ability to generate manifest for .apk file in addition to installed packages.&lt;br /&gt;
&lt;br /&gt;
==.apk Generator==&lt;br /&gt;
&lt;br /&gt;
==pax Archive Tool==&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Apk_internals&amp;diff=13390</id>
		<title>Apk internals</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Apk_internals&amp;diff=13390"/>
		<updated>2017-05-24T22:50:27Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Add stub &amp;quot;apk_internals&amp;quot; and link &amp;quot;TODO:apk&amp;quot; stub.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Internals of apk=&lt;br /&gt;
&lt;br /&gt;
&amp;quot;It&#039;s a secret to all!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
See [[TODO:apk]].&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13389</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13389"/>
		<updated>2017-05-24T22:45:45Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Package Management Tools */ Add stub for apk internals.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Alpine Hardware Architecture (&amp;quot;arch&amp;quot;) Support ==&lt;br /&gt;
=== x86 Based ===&lt;br /&gt;
* [[x86]] - 32 bit x86 (ia32)&lt;br /&gt;
* [[x86_64]] - 64 bit x86 (amd64)&lt;br /&gt;
&lt;br /&gt;
=== ARM Based ===&lt;br /&gt;
* [[armhf]] - 32 bit ARM (hard-float ABI)&lt;br /&gt;
* [[aarch64]] - 64 bit ARM&lt;br /&gt;
&lt;br /&gt;
=== PowerPC Based ===&lt;br /&gt;
* [[ppc64le]] - 64 bit PowerPC (little-endian)&lt;br /&gt;
&lt;br /&gt;
=== IBM System Z Based ===&lt;br /&gt;
* [[s390x]]&lt;br /&gt;
&lt;br /&gt;
== Alpine Packaging ==&lt;br /&gt;
&lt;br /&gt;
=== Package Building ===&lt;br /&gt;
&lt;br /&gt;
==== Alpine Package Building Ports ====&lt;br /&gt;
* [[APKBUILD]] - Package build scripts&lt;br /&gt;
* [[aports]] - Official Alpine ports git repository&lt;br /&gt;
&lt;br /&gt;
==== Package Building Tools ====&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Package Format ===&lt;br /&gt;
Alpine uses packages in the [[.apk file format]].&lt;br /&gt;
&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]] - Alpine Package Keeper (see [[apk internals]] for more detail)&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
* vanilla&lt;br /&gt;
* hardened&lt;br /&gt;
* virthardened&lt;br /&gt;
* rpi&lt;br /&gt;
&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
* modules=&amp;quot;&amp;lt;modules&amp;gt;&amp;quot; - specify list of modules to be loaded by initramfs /init needed to mount real root filesystem.&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
&lt;br /&gt;
* Parses kernel command line options.&lt;br /&gt;
* Uses [[nlplug-findfs]] to discover devices.&lt;br /&gt;
&lt;br /&gt;
==== Initfs Module Handling ====&lt;br /&gt;
Modules required to mount the root filesystem and boot must either built into the kernel or available from with the initramfs filesystem through use of appended initrd cpio.gz files provided by the [[bootloader]].&lt;br /&gt;
&lt;br /&gt;
The /init script will first [[modprobe]] the modules specified by the modules= kernel command line option and by the name of the specified rootfs type. It will then load the contents of /etc/modules, which may include module options.&lt;br /&gt;
Modules may be blacklisted from autoprobing (but NOT explicit insertion!) using the blacklist= kernel command line option which appends blacklist entries to &#039;/etc/modprobe.d/boot-opt-blacklist.conf&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [[busybox]]&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;br /&gt;
&lt;br /&gt;
==== Module Loading ====&lt;br /&gt;
&#039;/etc/init.d/modules&#039; loads all modules specified in &#039;/etc/modules&#039; and &#039;/(etc|run|usr/lib|lib)/modules-load.d/*.conf&#039;&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13344</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13344"/>
		<updated>2017-05-19T23:32:30Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Alpine Hardware Architecture (&amp;quot;arch&amp;quot;) Support */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Alpine Hardware Architecture (&amp;quot;arch&amp;quot;) Support ==&lt;br /&gt;
=== x86 Based ===&lt;br /&gt;
* [[x86]] - 32 bit x86 (ia32)&lt;br /&gt;
* [[x86_64]] - 64 bit x86 (amd64)&lt;br /&gt;
&lt;br /&gt;
=== ARM Based ===&lt;br /&gt;
* [[armhf]] - 32 bit ARM (hard-float ABI)&lt;br /&gt;
* [[aarch64]] - 64 bit ARM&lt;br /&gt;
&lt;br /&gt;
=== PowerPC Based ===&lt;br /&gt;
* [[ppc64le]] - 64 bit PowerPC (little-endian)&lt;br /&gt;
&lt;br /&gt;
=== IBM System Z Based ===&lt;br /&gt;
* [[s390x]]&lt;br /&gt;
&lt;br /&gt;
== Alpine Packaging ==&lt;br /&gt;
&lt;br /&gt;
=== Package Building ===&lt;br /&gt;
&lt;br /&gt;
==== Alpine Package Building Ports ====&lt;br /&gt;
* [[APKBUILD]] - Package build scripts&lt;br /&gt;
* [[aports]] - Official Alpine ports git repository&lt;br /&gt;
&lt;br /&gt;
==== Package Building Tools ====&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Package Format ===&lt;br /&gt;
Alpine uses packages in the [[.apk file format]].&lt;br /&gt;
&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]] - Alpine Package Keeper&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
* vanilla&lt;br /&gt;
* hardened&lt;br /&gt;
* virthardened&lt;br /&gt;
* rpi&lt;br /&gt;
&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
* modules=&amp;quot;&amp;lt;modules&amp;gt;&amp;quot; - specify list of modules to be loaded by initramfs /init needed to mount real root filesystem.&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
&lt;br /&gt;
* Parses kernel command line options.&lt;br /&gt;
* Uses [[nlplug-findfs]] to discover devices.&lt;br /&gt;
&lt;br /&gt;
==== Initfs Module Handling ====&lt;br /&gt;
Modules required to mount the root filesystem and boot must either built into the kernel or available from with the initramfs filesystem through use of appended initrd cpio.gz files provided by the [[bootloader]].&lt;br /&gt;
&lt;br /&gt;
The /init script will first [[modprobe]] the modules specified by the modules= kernel command line option and by the name of the specified rootfs type. It will then load the contents of /etc/modules, which may include module options.&lt;br /&gt;
Modules may be blacklisted from autoprobing (but NOT explicit insertion!) using the blacklist= kernel command line option which appends blacklist entries to &#039;/etc/modprobe.d/boot-opt-blacklist.conf&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [[busybox]]&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;br /&gt;
&lt;br /&gt;
==== Module Loading ====&lt;br /&gt;
&#039;/etc/init.d/modules&#039; loads all modules specified in &#039;/etc/modules&#039; and &#039;/(etc|run|usr/lib|lib)/modules-load.d/*.conf&#039;&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=13343</id>
		<title>APKBUILD Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=13343"/>
		<updated>2017-05-19T23:25:57Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* arch */ Add ppc64le and s390x, make archs link.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;APKBUILDs are the scripts that are created in order to build Alpine packages using the [[abuild]] tool.&lt;br /&gt;
&lt;br /&gt;
See [[aports]] for details on Alpine&#039;s official ports repository.&lt;br /&gt;
&lt;br /&gt;
This page is intended to serve as a reference for creating APKBUILDs; if this is your first time creating a package for Alpine Linux, please see [[Creating an Alpine package]].&lt;br /&gt;
&lt;br /&gt;
= Legend =&lt;br /&gt;
The following notes will assist you in understanding this document.&lt;br /&gt;
&lt;br /&gt;
In description text:&lt;br /&gt;
* If a variable is not prefixed with a &#039;&#039;$&#039;&#039;, it will be represented by italics (i.e., &#039;&#039;srcdir&#039;&#039; ).&lt;br /&gt;
* Functions will also be represented by italics, but will also end with a pair of parentheses (i.e., &#039;&#039;build()&#039;&#039; ).&lt;br /&gt;
* Shell commands will be represented &amp;lt;code&amp;gt;like this&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
{{Note|Variables that contain a path (e.g. &#039;&#039;$srcdir&#039;&#039; and &#039;&#039;$pkgdir&#039;&#039;) should always be quoted using double quotes (i.e., &#039;&#039;&amp;quot;$srcdir&amp;quot;&#039;&#039;).  This is done to prevent things from breaking, should the user have the APKBUILD in a directory path that contains spaces.}}&lt;br /&gt;
{{Note|All arbitrary variable and function names should be prefixed with an underscore character ( _ ) to avoid name clashes with the internals of abuild (for example, &#039;&#039;_luaversions&#039;&#039;).}}&lt;br /&gt;
&lt;br /&gt;
== abuild-defined variables ==&lt;br /&gt;
The following variables are defined by abuild:&lt;br /&gt;
&lt;br /&gt;
==== startdir ====&lt;br /&gt;
: The directory where the APKBUILD script is.&lt;br /&gt;
==== srcdir ====&lt;br /&gt;
: The directory where sources, from the &#039;&#039;source&#039;&#039; variable, are downloaded to and unpacked to.&lt;br /&gt;
==== pkgdir ====&lt;br /&gt;
: This directory should receive the files for the main package.  For example, a normal [http://en.wikipedia.org/wiki/GNU_build_system autotools] package would have &amp;lt;code&amp;gt;make DESTDIR=&amp;quot;$pkgdir&amp;quot; install&amp;lt;/code&amp;gt; in the &#039;&#039;package()&#039;&#039; function.&lt;br /&gt;
==== subpkgdir ====&lt;br /&gt;
: This directory should receive the files for a subpackage. This variable should only be used from subpackage functions.&lt;br /&gt;
==== builddir ====&lt;br /&gt;
: This variable should point to the directory inside the &#039;&#039;srcdir&#039;&#039; where the main package source is unpacked.  This is typically &#039;&#039;$srcdir/$pkgname-$pkgver&#039;&#039;.  It’s used by the default &#039;&#039;prepare()&#039;&#039; function as a working directory when applying patches.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== User-defined variables ==&lt;br /&gt;
The following variables should be defined by the user:&lt;br /&gt;
==== arch ====&lt;br /&gt;
: Package architecture(s) to build for.  Can be one of: &#039;&#039;&#039;[[x86]], [[x86_64]], [[armhf]], [[aarch64]], [[ppc64le]], [[s390x]], all&#039;&#039;&#039;, or &#039;&#039;&#039;noarch&#039;&#039;&#039;, where &#039;&#039;&#039;all&#039;&#039;&#039; means all architectures, and &#039;&#039;&#039;noarch&#039;&#039;&#039; means it&#039;s architecture-independent (e.g., a pure-python package).&lt;br /&gt;
: {{Tip|To determine if your APKBUILD can use &#039;&#039;&#039;noarch&#039;&#039;&#039;: First specify &#039;&#039;&#039;all&#039;&#039;&#039; and then build the package by executing &amp;lt;code&amp;gt;abuild -r&amp;lt;/code&amp;gt;.  Watch the output towards the end for warnings saying that &#039;&#039;&#039;noarch&#039;&#039;&#039; can be used.  If the main package and all subpackages, if you have any subpackages, give a warning saying that &#039;&#039;&#039;noarch&#039;&#039;&#039; can be used, then you can use &#039;&#039;&#039;noarch&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
==== depends ====&lt;br /&gt;
: Run-time dependency package(s) that are not shared-object dependencies.  Shared objects dependencies are auto-detected and should not be specified here.&lt;br /&gt;
==== depends_dev ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-dev&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
: {{Note|From ncopa on IRC: To find out if you need to add a package to depends_dev have a look at *requires* in usr/lib/pkgconfig/*.pc. With libtool it gets more complicated, but we should delete the .la files. Also check if there are any  /usr/bin/*-configure #!/bin/bash #!/usr/bin/perl or Python. Sometimes scripts or similar are generated at build time (i.e autoconf automake) then you normally don&#039;t need add those to depends_dev. You can also just add all -dev makedepends to depends_dev but it will slow the build process a little bit (more build dependencies).}}&lt;br /&gt;
==== giturl ====&lt;br /&gt;
:Git repository from which &amp;lt;code&amp;gt;abuild checkout&amp;lt;/code&amp;gt; checks out. You can checkout a specific branch in git by adding &amp;lt;code&amp;gt;-b $branch&amp;lt;/code&amp;gt;.&lt;br /&gt;
==== install ====&lt;br /&gt;
: There are 6 different types of install scripts.  Install scripts are named &#039;&#039;&#039;$pkgname.action&#039;&#039;&#039;, where &#039;&#039;&#039;action&#039;&#039;&#039; can be:  &#039;&#039;&#039;pre-install, post-install, pre-upgrade, post-upgrade, pre-deinstall&#039;&#039;&#039;, or &#039;&#039;&#039;post-deinstall&#039;&#039;&#039;.  For example, if &#039;&#039;pkgname&#039;&#039; is set to &#039;&#039;&#039;mypackage&#039;&#039;&#039; and &#039;&#039;install&#039;&#039; is set to &#039;&#039;&#039;$pkgname.post-install&#039;&#039;&#039;, then a script named &#039;&#039;&#039;mypackage.post-install&#039;&#039;&#039; must exist along-side the APKBUILD.&lt;br /&gt;
&lt;br /&gt;
: First, a few notes regarding install scripts:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;{{Note|When using install scripts, &#039;&#039;$install&#039;&#039; should be included in &#039;&#039;source&#039;&#039; so that checksums can be generated and used for the install scripts specified in &#039;&#039;install&#039;&#039;.  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
install=&amp;quot;$pkgname.pre-install $pkgname.post-install&amp;quot;&lt;br /&gt;
source=&amp;quot;http://....&lt;br /&gt;
       $install&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
{{Note|Always use &amp;lt;code&amp;gt;/bin/sh&amp;lt;/code&amp;gt; for the command-line interpreter on the [http://en.wikipedia.org/wiki/Shebang_%28Unix%29 shebang line] of your install scripts.}}&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following are the different types of install scripts in detail:&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-install =====&lt;br /&gt;
: This script is executed &#039;&#039;before installing&#039;&#039; the package.  Typical use is when the package needs a group and a user to be created. For example:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
addgroup -S clamav 2&amp;gt;/dev/null&lt;br /&gt;
adduser -S -D -H -s /bin/false -G clamav -g clamav clamav 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Note|If the script exits with a failure (e.g., if the user already exists), the package will not be installed and &amp;lt;code&amp;gt;apk&amp;lt;/code&amp;gt; will exit with failure, hence the &amp;lt;code&amp;gt;exit 0&amp;lt;/code&amp;gt; at the end.}}&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-install =====&lt;br /&gt;
: This script is executed &#039;&#039;after installing&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-upgrade =====&lt;br /&gt;
: This script is executed &#039;&#039;before upgrading/downgrading/reinstalling&#039;&#039; the package. Note that exiting with failure will not cause apk to exit with failure, but will mark the package as broken.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-upgrade =====&lt;br /&gt;
: This script is executed &#039;&#039;after upgrading/downgrading/reinstalling&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-deinstall =====&lt;br /&gt;
: This script is executed &#039;&#039;before uninstalling&#039;&#039; the package.&lt;br /&gt;
: {{Note|If the script exits with failure, &amp;lt;code&amp;gt;apk&amp;lt;/code&amp;gt; will not uninstall the package.}}&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-deinstall =====&lt;br /&gt;
: This script is executed &#039;&#039;after uninstalling&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
==== install_if ====&lt;br /&gt;
:install_if can be used when a package needs to be installed when some packages are already installed or are in the dependency tree. As example we could take open-vm-tools. Currently it contains the userspace tools and separate packages for the kernel modules (grsec and vserver). When we install the userspace tools, apk should automatically install the correct kernel modules and will need to figure out for which kernel. This is where install_if jumps in. For any of the kernel modules package we would use:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;install_if=&amp;quot;linux-${_flavor}=${_kernelver} open-vm-tools&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:This will automatically install the package when the specified packages are installed or are in dependency tree.&lt;br /&gt;
&lt;br /&gt;
==== license ====&lt;br /&gt;
: License(s) for the package.&lt;br /&gt;
==== makedepends ====&lt;br /&gt;
: Build-time dependency package(s).&lt;br /&gt;
==== md5sums ====&lt;br /&gt;
: Checksums for the files/URLs listed in &#039;&#039;source&#039;&#039;.  The checksums are normally generated and updated by executing &amp;lt;code&amp;gt;abuild checksum&amp;lt;/code&amp;gt; and should be the last item in the APKBUILD.&lt;br /&gt;
==== options ====&lt;br /&gt;
: Build-time options for the package.  Can be: &#039;&#039;&#039;!strip&#039;&#039;&#039; - to avoid stripping symbols from binaries.&lt;br /&gt;
==== pkgdesc ====&lt;br /&gt;
: A brief, one-line description of what the package does.&lt;br /&gt;
&lt;br /&gt;
: Here&#039;s an example from the OpenSSH client package:&lt;br /&gt;
: &amp;lt;pre&amp;gt;pkgdesc=&amp;quot;Port of OpenBSD&#039;s free SSH release - client&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== pkggroups ====&lt;br /&gt;
: System group(s) to be created during build-time.  System group(s) should also be created in the &#039;&#039;&#039;[[APKBUILD Reference#.24pkgname.pre-install|$pkgname.pre-install]]&#039;&#039;&#039; script, so that the system group(s) are also created prior to package installation for run-time use.&lt;br /&gt;
==== pkgname ====&lt;br /&gt;
: The name of the package.  All letters should be lowercase.&lt;br /&gt;
: {{Note|When creating an APKBUILD of a module or library for another package, we use some common package prefixes, such as: &#039;&#039;lua-&#039;&#039;, &#039;&#039;perl-&#039;&#039;, &#039;&#039;php-&#039;&#039;, and &#039;&#039;py-&#039;&#039;.  Search aports for other common prefixes.}}&lt;br /&gt;
&lt;br /&gt;
==== pkgrel ====&lt;br /&gt;
: Alpine package release number.  Starts at 0 (zero).  Always increment &#039;&#039;pkgrel&#039;&#039; when making updates to an aport; reset &#039;&#039;pkgrel&#039;&#039; to 0 (zero) when incrementing &#039;&#039;pkgver&#039;&#039;.&lt;br /&gt;
==== pkgusers ====&lt;br /&gt;
: System user(s) to be created during build-time.  System user(s) should also be created in the &#039;&#039;&#039;[[APKBUILD Reference#.24pkgname.pre-install|$pkgname.pre-install]]&#039;&#039;&#039; script, so that the system user(s) are also created prior to package installation for run-time use.&lt;br /&gt;
==== pkgver ====&lt;br /&gt;
: The version of the software being packaged.&lt;br /&gt;
==== provides ====&lt;br /&gt;
: List of package names (and optionally version info) this package provides.&lt;br /&gt;
&lt;br /&gt;
: If package with a version is provided (provides=&#039;foo=1.2&#039;) apk will consider it as an alternate name and it will automatically consider the package for installation by the alternate name, and conflict with other packages having the same name, or provides.&lt;br /&gt;
&lt;br /&gt;
: If version is not provided (provides=&#039;foo&#039;), apk will consider it as virtual package name. Several package with same non-versioned provides can be installed simultaneously. However, none of them will be installed by default when requested by the virtual name - instead, error message is given and user is asked to choose which package providing the virtual name should be installed.&lt;br /&gt;
==== replaces ====&lt;br /&gt;
: Package(s) that this package replaces.  This package will &amp;quot;take over&amp;quot; files owned by packages listed in the &#039;&#039;replaces&#039;&#039; variable.  This is useful when files move from one package to another, or when a package gets renamed.&lt;br /&gt;
==== replaces_priority ====&lt;br /&gt;
: The priority of the replaces. If multiple packages replace each other, then will the package with highest &#039;&#039;replaces_priority&#039;&#039; win.&lt;br /&gt;
==== source ====&lt;br /&gt;
: The source variable is not only used to list the remote source files to fetch, it is also used to list the local files that abuild will need in order to build the apk. Examples of such local files include: init.d files, conf.d files, install files (see [[APKBUILD Reference#install|install variable]]), patches, and all other necessary files.&lt;br /&gt;
&lt;br /&gt;
: Here are few things to note:&lt;br /&gt;
&lt;br /&gt;
:* When you are finished adding local and/or remote files to &#039;&#039;source&#039;&#039;, you can execute the following command to add their checksums to the APKBUILD file:&lt;br /&gt;
:: {{Cmd|abuild checksum}}&lt;br /&gt;
:: {{Note|When later updating the content of &#039;&#039;source&#039;&#039;, or updating a file that is listed in &#039;&#039;source&#039;&#039;, you must also update their checksums again with the same command.}}&lt;br /&gt;
&lt;br /&gt;
:* When the remote file is hosted at SourceForge, it&#039;s best to specify the special mirrors link used by SourceForge:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: (or similar depending on the package).&lt;br /&gt;
&lt;br /&gt;
:* You can set target filename (eg &#039;save as...&#039;) by prefixing the URI with &#039;&#039;filename::&#039;&#039;. This is useful when the remote filename is not specified in the URI (ie, does not end in &#039;/software-1.0.tar.gz&#039;), such as:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;http://oss.example.org/?get=software&amp;amp;ver=1.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: or when the filename is braindead, like githubs&#039; download tags:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;https://github.com/software/software/archive/v$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: The above two examples needs a target filename prefix:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;$pkgname-$pkgver.tar.gz::http://oss.example.org/?get=software&amp;amp;ver=$pkgver&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: and:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;$pkgname-$pkgver.tar.gz::https://github.com/software/software/archive/v$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* abuild currently supports the following protocols for remote file retrieval:&lt;br /&gt;
:** http&lt;br /&gt;
:** https&lt;br /&gt;
:** ftp&lt;br /&gt;
&lt;br /&gt;
:* abuild currently supports the following archive types/archive file extensions:&lt;br /&gt;
:** .tar.gz / .tgz&lt;br /&gt;
:** .tar.bz2&lt;br /&gt;
:** .tar.lzma&lt;br /&gt;
:** .tar.xz&lt;br /&gt;
:** .zip&lt;br /&gt;
&lt;br /&gt;
:: {{Note|Legacy APKBUILD scripts define &#039;&#039;source&#039;&#039; variable as &amp;quot;saveas-[brain-dead-url]/[target-filename]&amp;quot; format instead of the modern [target-filename]::[brain-dead-url].&amp;lt;br /&amp;gt;&#039;&#039;BAD&#039;&#039;:   source&amp;amp;#61;&amp;quot;saveas-http://releases.ddvtech.com/download.php?pack&amp;amp;#61;libmist_dist&amp;amp;ver&amp;amp;#61;RC/$pkgname-$pkgver.tar.gz&amp;quot;&amp;lt;br /&amp;gt;&#039;&#039;GOOD&#039;&#039;:   source&amp;amp;#61;$pkgname-$pkgver.tar.gz::http://releases.ddvtech.com/download.php?pack&amp;amp;#61;libmist_dist&amp;amp;ver&amp;amp;#61;RC&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
==== subpackages ====&lt;br /&gt;
: Subpackages built from this APKBUILD.  abuild will parse this variable and try to find a subpackage split function.  The split function must &#039;&#039;move&#039;&#039; files that do not belong in the main package, from &#039;&#039;$pkgdir&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.  Files and directories can also be &#039;&#039;copied&#039;&#039; from &#039;&#039;$startdir&#039;&#039; and &#039;&#039;$srcdir&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: The split function can be specified in 1 of 3 different methods:&lt;br /&gt;
:# subpkgname:&#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
:# $pkgname-&#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
:# &#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: {{Note|Split function names &#039;&#039;&#039;cannot&#039;&#039;&#039; use hyphens; use the first method above if the subpackage name contains a hyphen (-) character, like this: &#039;&#039;subpkg-name:subpkg_name&#039;&#039;, where &amp;lt;code&amp;gt;subpkg-name&amp;lt;/code&amp;gt; is the name of the &#039;&#039;&#039;subpackage&#039;&#039;&#039; and &amp;lt;code&amp;gt;subpkg_name&amp;lt;/code&amp;gt; is the name of the &#039;&#039;&#039;subpackage&#039;s split function&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
: {{Tip|For more information, see the [[APKBUILD_examples:Subpackages|Subpackages example]].}}&lt;br /&gt;
&lt;br /&gt;
==== triggers ====&lt;br /&gt;
: Apk-tools can &amp;quot;monitor&amp;quot; directories and execute a trigger if any package installed/uninstalled any file in the monitored dir. The triggers are always execute after the apk action (install, uninstall, upgrade).&lt;br /&gt;
&lt;br /&gt;
: The triggers are specified in the format: &#039;&#039;scriptname&#039;&#039;=&#039;&#039;pathlist&#039;&#039; where &#039;&#039;scriptname&#039;&#039; is the (sub)package name + .trigger suffix and pathlist is : separated list of the dirs to monitor.&lt;br /&gt;
&lt;br /&gt;
: The &#039;&#039;&#039;triggers&#039;&#039;&#039; variable must include the triggers for subpackages too if they have any.&lt;br /&gt;
&lt;br /&gt;
: It is possible to use wildcards (*) in the dir list.&lt;br /&gt;
&lt;br /&gt;
==== url ====&lt;br /&gt;
: The homepage for the package.  This is to help users find upstream documentation and other information regarding the package.&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
{{Note|All functions should consider the current working directory as undefined, and should therefore use the [[APKBUILD Reference#abuild-defined_variables|abuild-defined directory variables]] to their advantage.}}&lt;br /&gt;
&lt;br /&gt;
== abuild-defined functions ==&lt;br /&gt;
The following functions are provided by abuild and can be overridden:&lt;br /&gt;
&lt;br /&gt;
==== fetch() ====&lt;br /&gt;
: Downloads remote sources listed in &#039;&#039;source&#039;&#039; to &#039;&#039;SRCDEST&#039;&#039; (&#039;&#039;SRCDEST&#039;&#039; is configured in &#039;&#039;/etc/abuild.conf&#039;&#039;) and creates symlinks in &#039;&#039;$srcdir&#039;&#039;.&lt;br /&gt;
==== unpack() ====&lt;br /&gt;
: Unpacks .tgz, .tar.gz, .tar.bz2, .tar.lzma, .tar.xz, and .zip archives in &#039;&#039;$srcdir&#039;&#039; to &#039;&#039;$srcdir&#039;&#039;.&lt;br /&gt;
==== dev() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-dev&#039;&#039;&#039; package.  Without specifying a custom &#039;&#039;dev()&#039;&#039; function, abuild will call it&#039;s internal &#039;&#039;dev()&#039;&#039; function, which in turn calls &#039;&#039;default_dev()&#039;&#039;, which will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/include&#039;&#039;, &#039;&#039;*.a&#039;&#039;, &#039;&#039;*.la&#039;&#039; and similar files to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
==== doc() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-doc&#039;&#039;&#039; package.  Without specifying a custom &#039;&#039;doc()&#039;&#039; function, abuild will call it&#039;s internal &#039;&#039;doc()&#039;&#039; function, which in turn calls &#039;&#039;default_doc()&#039;&#039;, which will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/share/doc&#039;&#039;, &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/share/man&#039;&#039; and similar to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== User-defined functions ==&lt;br /&gt;
The following functions should be defined by the user: &lt;br /&gt;
&lt;br /&gt;
==== prepare() ====&lt;br /&gt;
: &#039;&#039;&#039;&#039;&#039;Optional&#039;&#039;.&#039;&#039;&#039;  Used for build preparation: patches, etc, should be applied here.  This function is available for your convenience. It is better to use &amp;quot;default_prepare || return&amp;quot; to handle *.patch file, and the patch file should always be prepared as -p1 format.&lt;br /&gt;
==== build() ====&lt;br /&gt;
: &#039;&#039;&#039;Required.&#039;&#039;&#039;  This is the compilation stage.  This function will be called as the current user (unless the &#039;&#039;package()&#039;&#039; function is missing - for compatibility reasons).  If no compilation is needed, this function can contain a single line: &amp;lt;code&amp;gt;return 0&amp;lt;/code&amp;gt;&lt;br /&gt;
==== check() ====&lt;br /&gt;
: &#039;&#039;&#039;Recommended.&#039;&#039;&#039; This function is called right after the build stage.  It should check that the packaged thing is actually working, typically by running (integration) tests, if provided by upstream.  If there’s no (easy) way how to test the package, you can declare that it does not want to use &#039;&#039;check()&#039;&#039; by adding &amp;quot;!check&amp;quot; into the &#039;&#039;options&#039;&#039; variable.&lt;br /&gt;
==== package() ====&lt;br /&gt;
: &#039;&#039;&#039;Required.&#039;&#039;&#039;  This is the packaging stage.  Here, the built application and support files should be installed into &#039;&#039;&#039;$pkgdir&#039;&#039;&#039;.  If this is a metapackage, this function can contain a single line: &amp;lt;code&amp;gt;mkdir -p &amp;quot;$pkgdir&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|Building in fakeroot will reduce performance for parallel builds dramatically.  It is for this reason that we split the build and package process into two separate functions.}}&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
The [[APKBUILD examples]] page will assist you in understanding how to create an APKBUILD.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=13342</id>
		<title>APKBUILD Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=13342"/>
		<updated>2017-05-19T22:21:35Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Add reference to aports now that APKBUILD no longer redirects there.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;APKBUILDs are the scripts that are created in order to build Alpine packages using the [[abuild]] tool.&lt;br /&gt;
&lt;br /&gt;
See [[aports]] for details on Alpine&#039;s official ports repository.&lt;br /&gt;
&lt;br /&gt;
This page is intended to serve as a reference for creating APKBUILDs; if this is your first time creating a package for Alpine Linux, please see [[Creating an Alpine package]].&lt;br /&gt;
&lt;br /&gt;
= Legend =&lt;br /&gt;
The following notes will assist you in understanding this document.&lt;br /&gt;
&lt;br /&gt;
In description text:&lt;br /&gt;
* If a variable is not prefixed with a &#039;&#039;$&#039;&#039;, it will be represented by italics (i.e., &#039;&#039;srcdir&#039;&#039; ).&lt;br /&gt;
* Functions will also be represented by italics, but will also end with a pair of parentheses (i.e., &#039;&#039;build()&#039;&#039; ).&lt;br /&gt;
* Shell commands will be represented &amp;lt;code&amp;gt;like this&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Variables =&lt;br /&gt;
{{Note|Variables that contain a path (e.g. &#039;&#039;$srcdir&#039;&#039; and &#039;&#039;$pkgdir&#039;&#039;) should always be quoted using double quotes (i.e., &#039;&#039;&amp;quot;$srcdir&amp;quot;&#039;&#039;).  This is done to prevent things from breaking, should the user have the APKBUILD in a directory path that contains spaces.}}&lt;br /&gt;
{{Note|All arbitrary variable and function names should be prefixed with an underscore character ( _ ) to avoid name clashes with the internals of abuild (for example, &#039;&#039;_luaversions&#039;&#039;).}}&lt;br /&gt;
&lt;br /&gt;
== abuild-defined variables ==&lt;br /&gt;
The following variables are defined by abuild:&lt;br /&gt;
&lt;br /&gt;
==== startdir ====&lt;br /&gt;
: The directory where the APKBUILD script is.&lt;br /&gt;
==== srcdir ====&lt;br /&gt;
: The directory where sources, from the &#039;&#039;source&#039;&#039; variable, are downloaded to and unpacked to.&lt;br /&gt;
==== pkgdir ====&lt;br /&gt;
: This directory should receive the files for the main package.  For example, a normal [http://en.wikipedia.org/wiki/GNU_build_system autotools] package would have &amp;lt;code&amp;gt;make DESTDIR=&amp;quot;$pkgdir&amp;quot; install&amp;lt;/code&amp;gt; in the &#039;&#039;package()&#039;&#039; function.&lt;br /&gt;
==== subpkgdir ====&lt;br /&gt;
: This directory should receive the files for a subpackage. This variable should only be used from subpackage functions.&lt;br /&gt;
==== builddir ====&lt;br /&gt;
: This variable should point to the directory inside the &#039;&#039;srcdir&#039;&#039; where the main package source is unpacked.  This is typically &#039;&#039;$srcdir/$pkgname-$pkgver&#039;&#039;.  It’s used by the default &#039;&#039;prepare()&#039;&#039; function as a working directory when applying patches.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== User-defined variables ==&lt;br /&gt;
The following variables should be defined by the user:&lt;br /&gt;
==== arch ====&lt;br /&gt;
: Package architecture(s) to build for.  Can be one of: &#039;&#039;&#039;x86, x86_64, armhf, aarch64, all&#039;&#039;&#039;, or &#039;&#039;&#039;noarch&#039;&#039;&#039;, where &#039;&#039;&#039;all&#039;&#039;&#039; means all architectures, and &#039;&#039;&#039;noarch&#039;&#039;&#039; means it&#039;s architecture-independent (e.g., a pure-python package).&lt;br /&gt;
: {{Tip|To determine if your APKBUILD can use &#039;&#039;&#039;noarch&#039;&#039;&#039;: First specify &#039;&#039;&#039;all&#039;&#039;&#039; and then build the package by executing &amp;lt;code&amp;gt;abuild -r&amp;lt;/code&amp;gt;.  Watch the output towards the end for warnings saying that &#039;&#039;&#039;noarch&#039;&#039;&#039; can be used.  If the main package and all subpackages, if you have any subpackages, give a warning saying that &#039;&#039;&#039;noarch&#039;&#039;&#039; can be used, then you can use &#039;&#039;&#039;noarch&#039;&#039;&#039;.}}&lt;br /&gt;
==== depends ====&lt;br /&gt;
: Run-time dependency package(s) that are not shared-object dependencies.  Shared objects dependencies are auto-detected and should not be specified here.&lt;br /&gt;
==== depends_dev ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-dev&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
: {{Note|From ncopa on IRC: To find out if you need to add a package to depends_dev have a look at *requires* in usr/lib/pkgconfig/*.pc. With libtool it gets more complicated, but we should delete the .la files. Also check if there are any  /usr/bin/*-configure #!/bin/bash #!/usr/bin/perl or Python. Sometimes scripts or similar are generated at build time (i.e autoconf automake) then you normally don&#039;t need add those to depends_dev. You can also just add all -dev makedepends to depends_dev but it will slow the build process a little bit (more build dependencies).}}&lt;br /&gt;
==== giturl ====&lt;br /&gt;
:Git repository from which &amp;lt;code&amp;gt;abuild checkout&amp;lt;/code&amp;gt; checks out. You can checkout a specific branch in git by adding &amp;lt;code&amp;gt;-b $branch&amp;lt;/code&amp;gt;.&lt;br /&gt;
==== install ====&lt;br /&gt;
: There are 6 different types of install scripts.  Install scripts are named &#039;&#039;&#039;$pkgname.action&#039;&#039;&#039;, where &#039;&#039;&#039;action&#039;&#039;&#039; can be:  &#039;&#039;&#039;pre-install, post-install, pre-upgrade, post-upgrade, pre-deinstall&#039;&#039;&#039;, or &#039;&#039;&#039;post-deinstall&#039;&#039;&#039;.  For example, if &#039;&#039;pkgname&#039;&#039; is set to &#039;&#039;&#039;mypackage&#039;&#039;&#039; and &#039;&#039;install&#039;&#039; is set to &#039;&#039;&#039;$pkgname.post-install&#039;&#039;&#039;, then a script named &#039;&#039;&#039;mypackage.post-install&#039;&#039;&#039; must exist along-side the APKBUILD.&lt;br /&gt;
&lt;br /&gt;
: First, a few notes regarding install scripts:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;{{Note|When using install scripts, &#039;&#039;$install&#039;&#039; should be included in &#039;&#039;source&#039;&#039; so that checksums can be generated and used for the install scripts specified in &#039;&#039;install&#039;&#039;.  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
install=&amp;quot;$pkgname.pre-install $pkgname.post-install&amp;quot;&lt;br /&gt;
source=&amp;quot;http://....&lt;br /&gt;
       $install&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
{{Note|Always use &amp;lt;code&amp;gt;/bin/sh&amp;lt;/code&amp;gt; for the command-line interpreter on the [http://en.wikipedia.org/wiki/Shebang_%28Unix%29 shebang line] of your install scripts.}}&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following are the different types of install scripts in detail:&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-install =====&lt;br /&gt;
: This script is executed &#039;&#039;before installing&#039;&#039; the package.  Typical use is when the package needs a group and a user to be created. For example:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
addgroup -S clamav 2&amp;gt;/dev/null&lt;br /&gt;
adduser -S -D -H -s /bin/false -G clamav -g clamav clamav 2&amp;gt;/dev/null&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Note|If the script exits with a failure (e.g., if the user already exists), the package will not be installed and &amp;lt;code&amp;gt;apk&amp;lt;/code&amp;gt; will exit with failure, hence the &amp;lt;code&amp;gt;exit 0&amp;lt;/code&amp;gt; at the end.}}&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-install =====&lt;br /&gt;
: This script is executed &#039;&#039;after installing&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-upgrade =====&lt;br /&gt;
: This script is executed &#039;&#039;before upgrading/downgrading/reinstalling&#039;&#039; the package. Note that exiting with failure will not cause apk to exit with failure, but will mark the package as broken.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-upgrade =====&lt;br /&gt;
: This script is executed &#039;&#039;after upgrading/downgrading/reinstalling&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.pre-deinstall =====&lt;br /&gt;
: This script is executed &#039;&#039;before uninstalling&#039;&#039; the package.&lt;br /&gt;
: {{Note|If the script exits with failure, &amp;lt;code&amp;gt;apk&amp;lt;/code&amp;gt; will not uninstall the package.}}&lt;br /&gt;
&lt;br /&gt;
===== $pkgname.post-deinstall =====&lt;br /&gt;
: This script is executed &#039;&#039;after uninstalling&#039;&#039; the package.&lt;br /&gt;
&lt;br /&gt;
==== install_if ====&lt;br /&gt;
:install_if can be used when a package needs to be installed when some packages are already installed or are in the dependency tree. As example we could take open-vm-tools. Currently it contains the userspace tools and separate packages for the kernel modules (grsec and vserver). When we install the userspace tools, apk should automatically install the correct kernel modules and will need to figure out for which kernel. This is where install_if jumps in. For any of the kernel modules package we would use:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;install_if=&amp;quot;linux-${_flavor}=${_kernelver} open-vm-tools&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:This will automatically install the package when the specified packages are installed or are in dependency tree.&lt;br /&gt;
&lt;br /&gt;
==== license ====&lt;br /&gt;
: License(s) for the package.&lt;br /&gt;
==== makedepends ====&lt;br /&gt;
: Build-time dependency package(s).&lt;br /&gt;
==== md5sums ====&lt;br /&gt;
: Checksums for the files/URLs listed in &#039;&#039;source&#039;&#039;.  The checksums are normally generated and updated by executing &amp;lt;code&amp;gt;abuild checksum&amp;lt;/code&amp;gt; and should be the last item in the APKBUILD.&lt;br /&gt;
==== options ====&lt;br /&gt;
: Build-time options for the package.  Can be: &#039;&#039;&#039;!strip&#039;&#039;&#039; - to avoid stripping symbols from binaries.&lt;br /&gt;
==== pkgdesc ====&lt;br /&gt;
: A brief, one-line description of what the package does.&lt;br /&gt;
&lt;br /&gt;
: Here&#039;s an example from the OpenSSH client package:&lt;br /&gt;
: &amp;lt;pre&amp;gt;pkgdesc=&amp;quot;Port of OpenBSD&#039;s free SSH release - client&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
==== pkggroups ====&lt;br /&gt;
: System group(s) to be created during build-time.  System group(s) should also be created in the &#039;&#039;&#039;[[APKBUILD Reference#.24pkgname.pre-install|$pkgname.pre-install]]&#039;&#039;&#039; script, so that the system group(s) are also created prior to package installation for run-time use.&lt;br /&gt;
==== pkgname ====&lt;br /&gt;
: The name of the package.  All letters should be lowercase.&lt;br /&gt;
: {{Note|When creating an APKBUILD of a module or library for another package, we use some common package prefixes, such as: &#039;&#039;lua-&#039;&#039;, &#039;&#039;perl-&#039;&#039;, &#039;&#039;php-&#039;&#039;, and &#039;&#039;py-&#039;&#039;.  Search aports for other common prefixes.}}&lt;br /&gt;
&lt;br /&gt;
==== pkgrel ====&lt;br /&gt;
: Alpine package release number.  Starts at 0 (zero).  Always increment &#039;&#039;pkgrel&#039;&#039; when making updates to an aport; reset &#039;&#039;pkgrel&#039;&#039; to 0 (zero) when incrementing &#039;&#039;pkgver&#039;&#039;.&lt;br /&gt;
==== pkgusers ====&lt;br /&gt;
: System user(s) to be created during build-time.  System user(s) should also be created in the &#039;&#039;&#039;[[APKBUILD Reference#.24pkgname.pre-install|$pkgname.pre-install]]&#039;&#039;&#039; script, so that the system user(s) are also created prior to package installation for run-time use.&lt;br /&gt;
==== pkgver ====&lt;br /&gt;
: The version of the software being packaged.&lt;br /&gt;
==== provides ====&lt;br /&gt;
: List of package names (and optionally version info) this package provides.&lt;br /&gt;
&lt;br /&gt;
: If package with a version is provided (provides=&#039;foo=1.2&#039;) apk will consider it as an alternate name and it will automatically consider the package for installation by the alternate name, and conflict with other packages having the same name, or provides.&lt;br /&gt;
&lt;br /&gt;
: If version is not provided (provides=&#039;foo&#039;), apk will consider it as virtual package name. Several package with same non-versioned provides can be installed simultaneously. However, none of them will be installed by default when requested by the virtual name - instead, error message is given and user is asked to choose which package providing the virtual name should be installed.&lt;br /&gt;
==== replaces ====&lt;br /&gt;
: Package(s) that this package replaces.  This package will &amp;quot;take over&amp;quot; files owned by packages listed in the &#039;&#039;replaces&#039;&#039; variable.  This is useful when files move from one package to another, or when a package gets renamed.&lt;br /&gt;
==== replaces_priority ====&lt;br /&gt;
: The priority of the replaces. If multiple packages replace each other, then will the package with highest &#039;&#039;replaces_priority&#039;&#039; win.&lt;br /&gt;
==== source ====&lt;br /&gt;
: The source variable is not only used to list the remote source files to fetch, it is also used to list the local files that abuild will need in order to build the apk. Examples of such local files include: init.d files, conf.d files, install files (see [[APKBUILD Reference#install|install variable]]), patches, and all other necessary files.&lt;br /&gt;
&lt;br /&gt;
: Here are few things to note:&lt;br /&gt;
&lt;br /&gt;
:* When you are finished adding local and/or remote files to &#039;&#039;source&#039;&#039;, you can execute the following command to add their checksums to the APKBUILD file:&lt;br /&gt;
:: {{Cmd|abuild checksum}}&lt;br /&gt;
:: {{Note|When later updating the content of &#039;&#039;source&#039;&#039;, or updating a file that is listed in &#039;&#039;source&#039;&#039;, you must also update their checksums again with the same command.}}&lt;br /&gt;
&lt;br /&gt;
:* When the remote file is hosted at SourceForge, it&#039;s best to specify the special mirrors link used by SourceForge:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: (or similar depending on the package).&lt;br /&gt;
&lt;br /&gt;
:* You can set target filename (eg &#039;save as...&#039;) by prefixing the URI with &#039;&#039;filename::&#039;&#039;. This is useful when the remote filename is not specified in the URI (ie, does not end in &#039;/software-1.0.tar.gz&#039;), such as:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;http://oss.example.org/?get=software&amp;amp;ver=1.0&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: or when the filename is braindead, like githubs&#039; download tags:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;https://github.com/software/software/archive/v$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: The above two examples needs a target filename prefix:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;$pkgname-$pkgver.tar.gz::http://oss.example.org/?get=software&amp;amp;ver=$pkgver&amp;lt;/pre&amp;gt;&lt;br /&gt;
:: and:&lt;br /&gt;
:: &amp;lt;pre&amp;gt;$pkgname-$pkgver.tar.gz::https://github.com/software/software/archive/v$pkgver.tar.gz&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* abuild currently supports the following protocols for remote file retrieval:&lt;br /&gt;
:** http&lt;br /&gt;
:** https&lt;br /&gt;
:** ftp&lt;br /&gt;
&lt;br /&gt;
:* abuild currently supports the following archive types/archive file extensions:&lt;br /&gt;
:** .tar.gz / .tgz&lt;br /&gt;
:** .tar.bz2&lt;br /&gt;
:** .tar.lzma&lt;br /&gt;
:** .tar.xz&lt;br /&gt;
:** .zip&lt;br /&gt;
&lt;br /&gt;
:: {{Note|Legacy APKBUILD scripts define &#039;&#039;source&#039;&#039; variable as &amp;quot;saveas-[brain-dead-url]/[target-filename]&amp;quot; format instead of the modern [target-filename]::[brain-dead-url].&amp;lt;br /&amp;gt;&#039;&#039;BAD&#039;&#039;:   source&amp;amp;#61;&amp;quot;saveas-http://releases.ddvtech.com/download.php?pack&amp;amp;#61;libmist_dist&amp;amp;ver&amp;amp;#61;RC/$pkgname-$pkgver.tar.gz&amp;quot;&amp;lt;br /&amp;gt;&#039;&#039;GOOD&#039;&#039;:   source&amp;amp;#61;$pkgname-$pkgver.tar.gz::http://releases.ddvtech.com/download.php?pack&amp;amp;#61;libmist_dist&amp;amp;ver&amp;amp;#61;RC&amp;quot;}}&lt;br /&gt;
&lt;br /&gt;
==== subpackages ====&lt;br /&gt;
: Subpackages built from this APKBUILD.  abuild will parse this variable and try to find a subpackage split function.  The split function must &#039;&#039;move&#039;&#039; files that do not belong in the main package, from &#039;&#039;$pkgdir&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.  Files and directories can also be &#039;&#039;copied&#039;&#039; from &#039;&#039;$startdir&#039;&#039; and &#039;&#039;$srcdir&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: The split function can be specified in 1 of 3 different methods:&lt;br /&gt;
:# subpkgname:&#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
:# $pkgname-&#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
:# &#039;&#039;&#039;splitfunc&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
: {{Note|Split function names &#039;&#039;&#039;cannot&#039;&#039;&#039; use hyphens; use the first method above if the subpackage name contains a hyphen (-) character, like this: &#039;&#039;subpkg-name:subpkg_name&#039;&#039;, where &amp;lt;code&amp;gt;subpkg-name&amp;lt;/code&amp;gt; is the name of the &#039;&#039;&#039;subpackage&#039;&#039;&#039; and &amp;lt;code&amp;gt;subpkg_name&amp;lt;/code&amp;gt; is the name of the &#039;&#039;&#039;subpackage&#039;s split function&#039;&#039;&#039;.}}&lt;br /&gt;
&lt;br /&gt;
: {{Tip|For more information, see the [[APKBUILD_examples:Subpackages|Subpackages example]].}}&lt;br /&gt;
&lt;br /&gt;
==== triggers ====&lt;br /&gt;
: Apk-tools can &amp;quot;monitor&amp;quot; directories and execute a trigger if any package installed/uninstalled any file in the monitored dir. The triggers are always execute after the apk action (install, uninstall, upgrade).&lt;br /&gt;
&lt;br /&gt;
: The triggers are specified in the format: &#039;&#039;scriptname&#039;&#039;=&#039;&#039;pathlist&#039;&#039; where &#039;&#039;scriptname&#039;&#039; is the (sub)package name + .trigger suffix and pathlist is : separated list of the dirs to monitor.&lt;br /&gt;
&lt;br /&gt;
: The &#039;&#039;&#039;triggers&#039;&#039;&#039; variable must include the triggers for subpackages too if they have any.&lt;br /&gt;
&lt;br /&gt;
: It is possible to use wildcards (*) in the dir list.&lt;br /&gt;
&lt;br /&gt;
==== url ====&lt;br /&gt;
: The homepage for the package.  This is to help users find upstream documentation and other information regarding the package.&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
{{Note|All functions should consider the current working directory as undefined, and should therefore use the [[APKBUILD Reference#abuild-defined_variables|abuild-defined directory variables]] to their advantage.}}&lt;br /&gt;
&lt;br /&gt;
== abuild-defined functions ==&lt;br /&gt;
The following functions are provided by abuild and can be overridden:&lt;br /&gt;
&lt;br /&gt;
==== fetch() ====&lt;br /&gt;
: Downloads remote sources listed in &#039;&#039;source&#039;&#039; to &#039;&#039;SRCDEST&#039;&#039; (&#039;&#039;SRCDEST&#039;&#039; is configured in &#039;&#039;/etc/abuild.conf&#039;&#039;) and creates symlinks in &#039;&#039;$srcdir&#039;&#039;.&lt;br /&gt;
==== unpack() ====&lt;br /&gt;
: Unpacks .tgz, .tar.gz, .tar.bz2, .tar.lzma, .tar.xz, and .zip archives in &#039;&#039;$srcdir&#039;&#039; to &#039;&#039;$srcdir&#039;&#039;.&lt;br /&gt;
==== dev() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-dev&#039;&#039;&#039; package.  Without specifying a custom &#039;&#039;dev()&#039;&#039; function, abuild will call it&#039;s internal &#039;&#039;dev()&#039;&#039; function, which in turn calls &#039;&#039;default_dev()&#039;&#039;, which will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/include&#039;&#039;, &#039;&#039;*.a&#039;&#039;, &#039;&#039;*.la&#039;&#039; and similar files to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
==== doc() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-doc&#039;&#039;&#039; package.  Without specifying a custom &#039;&#039;doc()&#039;&#039; function, abuild will call it&#039;s internal &#039;&#039;doc()&#039;&#039; function, which in turn calls &#039;&#039;default_doc()&#039;&#039;, which will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/share/doc&#039;&#039;, &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/share/man&#039;&#039; and similar to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== User-defined functions ==&lt;br /&gt;
The following functions should be defined by the user: &lt;br /&gt;
&lt;br /&gt;
==== prepare() ====&lt;br /&gt;
: &#039;&#039;&#039;&#039;&#039;Optional&#039;&#039;.&#039;&#039;&#039;  Used for build preparation: patches, etc, should be applied here.  This function is available for your convenience. It is better to use &amp;quot;default_prepare || return&amp;quot; to handle *.patch file, and the patch file should always be prepared as -p1 format.&lt;br /&gt;
==== build() ====&lt;br /&gt;
: &#039;&#039;&#039;Required.&#039;&#039;&#039;  This is the compilation stage.  This function will be called as the current user (unless the &#039;&#039;package()&#039;&#039; function is missing - for compatibility reasons).  If no compilation is needed, this function can contain a single line: &amp;lt;code&amp;gt;return 0&amp;lt;/code&amp;gt;&lt;br /&gt;
==== check() ====&lt;br /&gt;
: &#039;&#039;&#039;Recommended.&#039;&#039;&#039; This function is called right after the build stage.  It should check that the packaged thing is actually working, typically by running (integration) tests, if provided by upstream.  If there’s no (easy) way how to test the package, you can declare that it does not want to use &#039;&#039;check()&#039;&#039; by adding &amp;quot;!check&amp;quot; into the &#039;&#039;options&#039;&#039; variable.&lt;br /&gt;
==== package() ====&lt;br /&gt;
: &#039;&#039;&#039;Required.&#039;&#039;&#039;  This is the packaging stage.  Here, the built application and support files should be installed into &#039;&#039;&#039;$pkgdir&#039;&#039;&#039;.  If this is a metapackage, this function can contain a single line: &amp;lt;code&amp;gt;mkdir -p &amp;quot;$pkgdir&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|Building in fakeroot will reduce performance for parallel builds dramatically.  It is for this reason that we split the build and package process into two separate functions.}}&lt;br /&gt;
&lt;br /&gt;
= Examples =&lt;br /&gt;
The [[APKBUILD examples]] page will assist you in understanding how to create an APKBUILD.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13340</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13340"/>
		<updated>2017-05-19T22:10:33Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Added hardware archs; added to and cleaned up package building heading&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Alpine Hardware Architecture (&amp;quot;arch&amp;quot;) Support ==&lt;br /&gt;
=== x86 Based ===&lt;br /&gt;
* [[x86]] - 32 bit x86 (ia32)&lt;br /&gt;
* [[x86_64]] - 64 bit x86 (amd64)&lt;br /&gt;
&lt;br /&gt;
=== ARM Based ===&lt;br /&gt;
* [[armhf]]&lt;br /&gt;
* [[aarch64]]&lt;br /&gt;
&lt;br /&gt;
=== PowerPC Based ===&lt;br /&gt;
* [[ppc]] - 32 bit PowerPC&lt;br /&gt;
* [[ppc64]] - 64 bit PowerPC (big-endian)&lt;br /&gt;
* [[ppc64le]] - 64 bit PowerPC (little-endian)&lt;br /&gt;
&lt;br /&gt;
=== IBM System Z Based ===&lt;br /&gt;
* [[s390x]]&lt;br /&gt;
&lt;br /&gt;
== Alpine Packaging ==&lt;br /&gt;
&lt;br /&gt;
=== Package Building ===&lt;br /&gt;
&lt;br /&gt;
==== Alpine Package Building Ports ====&lt;br /&gt;
* [[APKBUILD]] - Package build scripts&lt;br /&gt;
* [[aports]] - Official Alpine ports git repository&lt;br /&gt;
&lt;br /&gt;
==== Package Building Tools ====&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Package Format ===&lt;br /&gt;
Alpine uses packages in the [[.apk file format]].&lt;br /&gt;
&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]] - Alpine Package Keeper&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
* vanilla&lt;br /&gt;
* hardened&lt;br /&gt;
* virthardened&lt;br /&gt;
* rpi&lt;br /&gt;
&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
* modules=&amp;quot;&amp;lt;modules&amp;gt;&amp;quot; - specify list of modules to be loaded by initramfs /init needed to mount real root filesystem.&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
&lt;br /&gt;
* Parses kernel command line options.&lt;br /&gt;
* Uses [[nlplug-findfs]] to discover devices.&lt;br /&gt;
&lt;br /&gt;
==== Initfs Module Handling ====&lt;br /&gt;
Modules required to mount the root filesystem and boot must either built into the kernel or available from with the initramfs filesystem through use of appended initrd cpio.gz files provided by the [[bootloader]].&lt;br /&gt;
&lt;br /&gt;
The /init script will first [[modprobe]] the modules specified by the modules= kernel command line option and by the name of the specified rootfs type. It will then load the contents of /etc/modules, which may include module options.&lt;br /&gt;
Modules may be blacklisted from autoprobing (but NOT explicit insertion!) using the blacklist= kernel command line option which appends blacklist entries to &#039;/etc/modprobe.d/boot-opt-blacklist.conf&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [[busybox]]&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;br /&gt;
&lt;br /&gt;
==== Module Loading ====&lt;br /&gt;
&#039;/etc/init.d/modules&#039; loads all modules specified in &#039;/etc/modules&#039; and &#039;/(etc|run|usr/lib|lib)/modules-load.d/*.conf&#039;&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13314</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13314"/>
		<updated>2017-05-01T18:08:20Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Boot Process */ - Add module handling&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Packaging ==&lt;br /&gt;
Alpine uses packages in the [[.apk file format]].&lt;br /&gt;
&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
=== Package Building Tools ===&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
* vanilla&lt;br /&gt;
* hardened&lt;br /&gt;
* virthardened&lt;br /&gt;
* rpi&lt;br /&gt;
&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
* modules=&amp;quot;&amp;lt;modules&amp;gt;&amp;quot; - specify list of modules to be loaded by initramfs /init needed to mount real root filesystem.&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
&lt;br /&gt;
* Parses kernel command line options.&lt;br /&gt;
* Uses [[nlplug-findfs]] to discover devices.&lt;br /&gt;
&lt;br /&gt;
==== Initfs Module Handling ====&lt;br /&gt;
Modules required to mount the root filesystem and boot must either built into the kernel or available from with the initramfs filesystem through use of appended initrd cpio.gz files provided by the [[bootloader]].&lt;br /&gt;
&lt;br /&gt;
The /init script will first [[modprobe]] the modules specified by the modules= kernel command line option and by the name of the specified rootfs type. It will then load the contents of /etc/modules, which may include module options.&lt;br /&gt;
Modules may be blacklisted from autoprobing (but NOT explicit insertion!) using the blacklist= kernel command line option which appends blacklist entries to &#039;/etc/modprobe.d/boot-opt-blacklist.conf&#039;.&lt;br /&gt;
&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [[busybox]]&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;br /&gt;
&lt;br /&gt;
==== Module Loading ====&lt;br /&gt;
&#039;/etc/init.d/modules&#039; loads all modules specified in &#039;/etc/modules&#039; and &#039;/(etc|run|usr/lib|lib)/modules-load.d/*.conf&#039;&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13308</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13308"/>
		<updated>2017-04-27T23:04:43Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: /* Flavors */ Update to reflect kernel name change from -grsec to -hardened&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Packaging ==&lt;br /&gt;
Alpine uses packages in the [[.apk file format]].&lt;br /&gt;
&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
=== Package Building Tools ===&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
* vanilla&lt;br /&gt;
* hardened&lt;br /&gt;
* virthardened&lt;br /&gt;
* rpi&lt;br /&gt;
&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [[busybox]]&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13306</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13306"/>
		<updated>2017-04-25T22:23:43Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Added list of kernel flavors&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Packaging ==&lt;br /&gt;
Alpine uses packages in the [[.apk file format]].&lt;br /&gt;
&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
=== Package Building Tools ===&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
* vanilla&lt;br /&gt;
* grsec&lt;br /&gt;
* virtgrsec&lt;br /&gt;
* rpi&lt;br /&gt;
&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [[busybox]]&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13305</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13305"/>
		<updated>2017-04-25T21:28:03Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Packaging ==&lt;br /&gt;
Alpine uses packages in the [[.apk file format]].&lt;br /&gt;
&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
=== Package Building Tools ===&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [[busybox]]&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=File_Formats&amp;diff=13304</id>
		<title>File Formats</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=File_Formats&amp;diff=13304"/>
		<updated>2017-04-25T21:27:45Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Created page with &amp;quot; .apk file format&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[.apk file format]]&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13303</id>
		<title>Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Architecture&amp;diff=13303"/>
		<updated>2017-04-25T21:20:33Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Initial work for overview of alpine architecture&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Packaging ==&lt;br /&gt;
=== Package Management Tools ===&lt;br /&gt;
* [[apk]]&lt;br /&gt;
&lt;br /&gt;
=== Package Building Tools ===&lt;br /&gt;
* [[abuild]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Boot Process ==&lt;br /&gt;
&lt;br /&gt;
=== Boot Loader ===&lt;br /&gt;
==== EFI ====&lt;br /&gt;
==== BIOS ====&lt;br /&gt;
==== Other ====&lt;br /&gt;
&lt;br /&gt;
=== Kernel ===&lt;br /&gt;
==== Versioning ====&lt;br /&gt;
===== Flavors =====&lt;br /&gt;
==== Signing ====&lt;br /&gt;
==== Command line options ====&lt;br /&gt;
&lt;br /&gt;
=== Initfs ===&lt;br /&gt;
The kernel will decompress the stream of compressed cpio archives passed to it by the &#039;append&#039; bootloader option to the root of &#039;rootfs&#039;, a tmpfs automatically mounted at &#039;/&#039; by the kernel at boot.&lt;br /&gt;
&lt;br /&gt;
==== &#039;/init&#039; Script ====&lt;br /&gt;
Not to be confused with &#039;/sbin/init&#039;, the &#039;/init&#039; script in the root of the &#039;rootfs&#039; is called by the kernel upon completion of its boot process, and is responsible for doing whatever steps are necessary to mount the real root file system to &#039;/&#039; and transfer control to &#039;/sbin/init&#039;.&lt;br /&gt;
==== Minimal Required Set ====&lt;br /&gt;
===== Directory Structure =====&lt;br /&gt;
* / /bin /boot /dev /etc /lib /lib/modules /media /media/cdrom /media/usb /mnt /proc /sbin /sys /usr /usr/bin /usr/sbin&lt;br /&gt;
===== Devices =====&lt;br /&gt;
* /dev/null&lt;br /&gt;
* /dev/console&lt;br /&gt;
* /dev/kmsg&lt;br /&gt;
&lt;br /&gt;
===== Mounts =====&lt;br /&gt;
* /proc&lt;br /&gt;
* /sys&lt;br /&gt;
* /dev (can be disabled?)&lt;br /&gt;
&lt;br /&gt;
===== Configuration =====&lt;br /&gt;
* /etc/passwd&lt;br /&gt;
* /etc/group&lt;br /&gt;
* /etc/fstab&lt;br /&gt;
&lt;br /&gt;
===== Binaries =====&lt;br /&gt;
* [busybox]&lt;br /&gt;
* [apk]&lt;br /&gt;
&lt;br /&gt;
==== Feature Sets ====&lt;br /&gt;
Feature sets consist of lists for the set of modules and files that need to be included in a final initramfs to support the indicated feature.&lt;br /&gt;
&lt;br /&gt;
=== Init ===&lt;br /&gt;
Not to be confused with the &#039;/init&#039; script in the initramfs, &#039;/sbin/init&#039; is the first process to be started in the live system after the initramfs completes its work.&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Developer_Documentation&amp;diff=13302</id>
		<title>Developer Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Developer_Documentation&amp;diff=13302"/>
		<updated>2017-04-25T20:24:20Z</updated>

		<summary type="html">&lt;p&gt;TemptorSent: Add design docs heading and stubs.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:package_system.svg|right|link=]]&lt;br /&gt;
&lt;br /&gt;
== Package management ==&lt;br /&gt;
&amp;lt;!-- If you edit the following, please coordinate with Tutorials_and_Howtos#Post-Install and Installation#Post-Install.  Note that these three sections are not exact duplicates. --&amp;gt;&lt;br /&gt;
* [[Alpine Linux package management|Package Management (apk)]] &#039;&#039;(How to add/remove packages on your Alpine)&#039;&#039; &amp;lt;!-- &lt;br /&gt;
  [[Alpine Linux package management#Local_Cache|How to enable APK caching]] --&amp;gt;  &amp;lt;!-- includes [[Local APK cache]] --&amp;gt;&lt;br /&gt;
** [[Comparison with other distros]]&lt;br /&gt;
** [[apk spec]]&lt;br /&gt;
* [[Edge|Upgrading to Edge]]&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]]&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
&amp;lt;!-- [[Replacing a package]] Obsolete? --&amp;gt;&lt;br /&gt;
* [[How to setup a Alpine Linux mirror]]&lt;br /&gt;
* [[How to use xdelta and download only differential update files]]&lt;br /&gt;
* [[How to make a custom ISO image]]&lt;br /&gt;
** [[Burning ISOs]]&lt;br /&gt;
&lt;br /&gt;
== Init system ==&lt;br /&gt;
* [[Alpine Linux Init System|Init System (OpenRC)]] &#039;&#039;(Configure a service to automatically launch at next reboot)&#039;&#039;&lt;br /&gt;
** [[Multiple Instances of Services]]&lt;br /&gt;
* [[Writing Init Scripts]]&lt;br /&gt;
&lt;br /&gt;
== Development ==&lt;br /&gt;
=== Configuring your system ===&lt;br /&gt;
* [[Edge|Upgrading to Edge]] &amp;lt;!-- Pkg and Dev and Installation --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- If you edit the following, please coordinate with Installation#Advanced.  Note that these two sections are not exact duplicates. --&amp;gt;&lt;br /&gt;
* [[Setting up the build environment on HDD]] &amp;lt;!-- Dev and Installation --&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Setting up the build environment 1.7]] Obsolete, only Dev --&amp;gt;&lt;br /&gt;
** [[Creating_an_Alpine_package#Setup_your_system_and_account|Setup your system and account for building packages]]&lt;br /&gt;
** [[Abuild_and_Helpers#abuild-keygen|Abuild-keygen]]&lt;br /&gt;
&lt;br /&gt;
* [[Installing Alpine Linux in a chroot]] &amp;lt;!-- only Installation --&amp;gt;&lt;br /&gt;
** [[Buildlab]] &#039;&#039;(Tool for creating and managing chroots)&#039;&#039;&lt;br /&gt;
* [[Install Alpine on LXC]]&lt;br /&gt;
* Install Alpine on [[Install Alpine on VirtualBox|VirtualBox]], [[Install Alpine on VMware|VMware]], [[Install Alpine on coLinux|coLinux]], [[Qemu]], &amp;lt;!-- includes [[Install Alpine in Qemu]], [[Running Alpine in Qemu Live mode]], [[Running Alpine Linux As a QEMU networked Guest]] --&amp;gt; or [[Install Alpine on Amazon EC2|Amazon EC2]]&lt;br /&gt;
&lt;br /&gt;
* [[Xen Dom0]] &#039;&#039;(Setting up Alpine as a dom0 for Xen hypervisor)&#039;&#039;&lt;br /&gt;
** [[Xen Dom0 on USB or SD]]&lt;br /&gt;
** [[Create Alpine Linux PV DomU]]&lt;br /&gt;
** [[Xen LiveCD]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a basic vserver]] &amp;lt;!-- only Installation --&amp;gt;&lt;br /&gt;
* [[Setting up a compile vserver]] for official or for [[Setting up a compile vserver for third party packages|third party]] packages &amp;lt;!-- Dev and Installation --&amp;gt;&lt;br /&gt;
&amp;lt;!-- [[Create an Alpine 1.9 vserver template]] --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Building from source and creating packages ===&lt;br /&gt;
&lt;br /&gt;
* [[Aports tree]] &amp;lt;!-- &amp;lt;== APKBUILD --&amp;gt;&lt;br /&gt;
* [[Abuild and Helpers]] &#039;&#039;(Scripts for packaging)&#039;&#039;&lt;br /&gt;
  &amp;lt;!-- includes [[Abuild_and_Helpers#apkbuild-cpan|Apkbuild-cpan]] --&amp;gt;&lt;br /&gt;
  &amp;lt;!-- includes [[Abuild_and_Helpers#apkbuild-pypi|Apkbuild-pypi]] --&amp;gt;&lt;br /&gt;
  &amp;lt;!--&lt;br /&gt;
   [[Abuild_and_Helpers#buildrepo|Buildrepo]]&lt;br /&gt;
   [[Abuild_and_Helpers#abuild-sign|Abuild-sign]]&lt;br /&gt;
   [[Abuild_and_Helpers#abuild-tar|Abuild-tar]]&lt;br /&gt;
   [[Abuild_and_Helpers#abump|Abump]]&lt;br /&gt;
   [[Abuild_helpers#apkgrel|Apkgrel]]&lt;br /&gt;
  --&amp;gt;&lt;br /&gt;
* [[Creating an Alpine package]]&lt;br /&gt;
  &amp;lt;!-- includes [[Setup your system and account for building packages]] --&amp;gt;&lt;br /&gt;
  &amp;lt;!-- includes [[Newapkbuild]]&lt;br /&gt;
       To create the actual APKBUILD file, newapkbuild can give you a template to start with.&lt;br /&gt;
       It will create a directory with the given package name, place an example/template APKBUILD &lt;br /&gt;
       file to the given directory, and fill some variables if those are provided. --&amp;gt;&lt;br /&gt;
  &amp;lt;!-- includes [[Local_APK_cache]] --&amp;gt;&lt;br /&gt;
** [[Package policies]]&lt;br /&gt;
** [[Package Maintainers]]&lt;br /&gt;
* [[Custom Kernel]]&lt;br /&gt;
* [[APKBUILD Reference]]&lt;br /&gt;
* [[APKBUILD examples]]&lt;br /&gt;
* [[Alpine package format]]&lt;br /&gt;
* [[Apkindex format]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Development using git]] &amp;lt;!-- includes [[Development using git:Configuration]] [[Development using git:Email]] --&amp;gt;&lt;br /&gt;
** [[Development using git:Basic usage|Basic usage]]&lt;br /&gt;
** [[Package Maintainers]]&lt;br /&gt;
** [[Creating patches]]&lt;br /&gt;
** [[Development using git:Developer repositories|Developer repositories]]&lt;br /&gt;
** [[Development using git:Cgit|Cgit]]&lt;br /&gt;
** [[Cgit|Another cgit page]]&lt;br /&gt;
&lt;br /&gt;
=== Misc ===&lt;br /&gt;
&lt;br /&gt;
* [[Alpine Package Testing Suite]] &#039;&#039;work in progress&#039;&#039;&lt;br /&gt;
* [[Alpine Release Testing Checklist]]&lt;br /&gt;
* [[Running glibc programs]]&lt;br /&gt;
* [[Alpine Source Map by boot sequence]]&lt;br /&gt;
&lt;br /&gt;
== Alpine Configuration Framework ==&lt;br /&gt;
{{Draft|Needs to be organized/consolidated.}}&lt;br /&gt;
&lt;br /&gt;
* [[Alpine Configuration Framework Design]] (Why ACF is the way it is)&lt;br /&gt;
* [[Writing User Documentation for ACF]]&lt;br /&gt;
* [[ACF mvc.lua reference|mvc.lua reference]] - mvc.lua is the core of ACF &lt;br /&gt;
* [[ACF mvc.lua example|mvc.lua example]] - build a simple (command-line) application &lt;br /&gt;
* [[ACF acf www-controller.lua reference|acf www-controller reference]] - ACF www application functions &lt;br /&gt;
* [[ACF acf www example|acf www-controller example]] - webify the above examples &lt;br /&gt;
* [[ACF how to write]] - Step by step howto for writing acfs &lt;br /&gt;
* [[ACF core principles]] - Things that are standard across the application &lt;br /&gt;
* [[LuaPosix]] - Documentation for the Lua Posix functions &lt;br /&gt;
* [[ACF Libraries]] - Document the libraries and common functions &lt;br /&gt;
* [[Writing ACF Views]] - Guide for writing a view &lt;br /&gt;
* [[Writing ACF Controllers]] - Guide for writing a controller &lt;br /&gt;
* [[Writing ACF Models]] - Guide for writing a model&lt;br /&gt;
&lt;br /&gt;
* [[ACF css]]&lt;br /&gt;
* [[ACF packages]]&lt;br /&gt;
* [[APKBUILD examples:ACF]]&lt;br /&gt;
* [[Apk.lua]]&lt;br /&gt;
* [[Changing passwords for ACF]]&lt;br /&gt;
* [[Generating SSL certs with ACF]]&lt;br /&gt;
* [[Generating SSL certs with ACF 1.9]]&lt;br /&gt;
* [[Getting started with ACF development]]&lt;br /&gt;
* [[Managing ACF]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Alpine-developed Utilities ==&lt;br /&gt;
* [[Alpine Wall]] - [[How-To Alpine Wall]] - [[Alpine Wall User&#039;s Guide]] &#039;&#039;(a new firewall management framework)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Alpine Design Docs ==&lt;br /&gt;
* [[Architecture]]&lt;br /&gt;
* [[File Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>TemptorSent</name></author>
	</entry>
</feed>