<?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=Thermi</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=Thermi"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Thermi"/>
	<updated>2026-05-01T23:12:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Abuild_and_Helpers&amp;diff=29160</id>
		<title>Abuild and Helpers</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Abuild_and_Helpers&amp;diff=29160"/>
		<updated>2025-02-25T20:52:11Z</updated>

		<summary type="html">&lt;p&gt;Thermi: /* buildrepo */ fix link to &amp;quot;the man page&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The {{pkg|abuild}} package provides scripts necessary for creating packages for Alpine Linux. It also implements functionality for building packages as well as additional commands and options for package maintenance. For package development and maintenance, it is recommended to install the {{pkg|alpine-sdk}} meta package, which will install the {{pkg|abuild}} package in addition to other relevant tools.{{Cmd|apk add alpine-sdk}}&lt;br /&gt;
&lt;br /&gt;
The [https://gitlab.alpinelinux.org/alpine/abuild git repository] always contains the latest version of the scripts, example-files, and makefiles.&lt;br /&gt;
&lt;br /&gt;
== Setting up the build environment ==&lt;br /&gt;
{{:Include:Abuild-configure}}&lt;br /&gt;
== Building packages ==&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
&lt;br /&gt;
If you just want to build a package from an [[APKBUILD Reference|APKBUILD]] file, only  two command are needed. Both commands operate on an APKBUILD file in the current directory, so you should &amp;lt;code&amp;gt;cd&amp;lt;/code&amp;gt; into the directory before running them.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;abuild checksum&amp;lt;/code&amp;gt;: updates the checksums for source files.&lt;br /&gt;
* &amp;lt;code&amp;gt;abuild -r&amp;lt;/code&amp;gt;: builds the package.&lt;br /&gt;
&lt;br /&gt;
The [https://git.alpinelinux.org/abuild/tree/abuild.1.scd manual page] (available via &amp;lt;code&amp;gt;man abuild&amp;lt;/code&amp;gt;) describes all options and commands for &amp;lt;code&amp;gt;abuild&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Building in a chroot ===&lt;br /&gt;
{{:Include:AbuildRootBld}}&lt;br /&gt;
== Bumping a package version ==&lt;br /&gt;
&lt;br /&gt;
The tool &amp;lt;code&amp;gt;abump&amp;lt;/code&amp;gt; is a utility to bump pkgver in APKBUILD files if the package gets an update to a newer upstream release. &amp;lt;code&amp;gt;abump&amp;lt;/code&amp;gt; will update the package&#039;s &amp;lt;code&amp;gt;pkgver&amp;lt;/code&amp;gt;, rebuild it and create a new commit with the resulting changes.&lt;br /&gt;
&lt;br /&gt;
The [https://git.alpinelinux.org/abuild/tree/abump.1.scd manual page] (available via &amp;lt;code&amp;gt;man abump&amp;lt;/code&amp;gt;) describes all options for &amp;lt;code&amp;gt;abump&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Updating a package release ==&lt;br /&gt;
&amp;lt;!-- Shouldn&#039;t this be apkrel? None of the other packaging tools use &amp;quot;apkg...&amp;quot;. Or perhaps it should be unified with abump? --&amp;gt;&lt;br /&gt;
If you want to bump or reset the pkgrel value of your APKBUILD or test your APKBUILD files, &amp;lt;tt&amp;gt;apkgrel&amp;lt;/tt&amp;gt; can assist you.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;apkgrel -a|-h|-s NUM|-t|-z [-f] FILE...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;apkgrel options&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;-a&#039;&#039;&#039;  Add 1 to current pkgrel&lt;br /&gt;
* &#039;&#039;&#039;-f&#039;&#039;&#039;  Force, even if given files are not in proper format&lt;br /&gt;
* &#039;&#039;&#039;-h&#039;&#039;&#039;  Show this help&lt;br /&gt;
* &#039;&#039;&#039;-s&#039;&#039;&#039;  Set pkgrel to NUM&lt;br /&gt;
* &#039;&#039;&#039;-t&#039;&#039;&#039;  Only verify that files are in proper format&lt;br /&gt;
* &#039;&#039;&#039;-z&#039;&#039;&#039;  Set pkgrel to 0&lt;br /&gt;
&lt;br /&gt;
== Generating new APKBUILDs ==&lt;br /&gt;
&lt;br /&gt;
=== newapkbuild ===&lt;br /&gt;
The &amp;lt;code&amp;gt;newapkbuild&amp;lt;/code&amp;gt; tool, which is installed as part of the {{Pkg|abuild}} package, can create a new APKBUILD template to use as a starting point. &lt;br /&gt;
&lt;br /&gt;
The [https://git.alpinelinux.org/abuild/tree/newapkbuild.1.scd manual page] (available via &amp;lt;code&amp;gt;man newapkbuild&amp;lt;/code&amp;gt;) describes all options for &amp;lt;code&amp;gt;newapkbuild&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== apkbuild-cpan ===&lt;br /&gt;
{{:Include:apkbuild-cpan}}&lt;br /&gt;
&lt;br /&gt;
=== apkbuild-pypi ===&lt;br /&gt;
{{:Include:apkbuild-pypi}}&lt;br /&gt;
&lt;br /&gt;
== Signing packages and indexes ==&lt;br /&gt;
&lt;br /&gt;
=== abuild-sign ===&lt;br /&gt;
{{:Include:Abuild-sign}}&lt;br /&gt;
&lt;br /&gt;
=== abuild-tar ===&lt;br /&gt;
{{:Include:Abuild-tar}}&lt;br /&gt;
&lt;br /&gt;
=== buildrepo ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;buildrepo&amp;lt;/code&amp;gt; build an entire package repository.&lt;br /&gt;
&lt;br /&gt;
See [https://gitlab.alpinelinux.org/alpine/lua-aports/-/blob/master/buildrepo.1.scd the man page] for a complete description.&lt;br /&gt;
&lt;br /&gt;
[[Category:Package Manager]] [[Category:Development]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ToDo&lt;br /&gt;
=== cmp-apks-iso ===&lt;br /&gt;
&lt;br /&gt;
=== devbuild ===&lt;br /&gt;
&lt;br /&gt;
=== initramfs-init ===&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[How to make a cross architecture chroot]]&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20111</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20111"/>
		<updated>2021-08-20T23:37:43Z</updated>

		<summary type="html">&lt;p&gt;Thermi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
&#039;&#039;&#039;By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. They are also different from the ones used in upstream kopano&#039;&#039;&#039;.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, same user as the daemon can auth as admin. This is hardcoded.), if the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap) depending on if the corresponding authentication plugin is configured independent on the socket used (can be disabled for the unix socket).&lt;br /&gt;
&lt;br /&gt;
kopano can be integrated into an Active Directory (AD).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Available Plugins ==&lt;br /&gt;
&lt;br /&gt;
Currently the following plugins are packaged, each as its own package:&lt;br /&gt;
* desktopnotifications&lt;br /&gt;
* fetchmail&lt;br /&gt;
* filepreviewer&lt;br /&gt;
* files&lt;br /&gt;
* intranet&lt;br /&gt;
* mdm&lt;br /&gt;
* smime&lt;br /&gt;
* spellchecker&lt;br /&gt;
&lt;br /&gt;
For the files plugin, the following backends are packaged:&lt;br /&gt;
* files-backend-owncloud&lt;br /&gt;
* files-backend-smb&lt;br /&gt;
&lt;br /&gt;
For the spellchecker plugin, the following languagepacks are packaged:&lt;br /&gt;
* de-at&lt;br /&gt;
* de-ch&lt;br /&gt;
* de-de&lt;br /&gt;
* en-gb&lt;br /&gt;
* en-us&lt;br /&gt;
* es-es&lt;br /&gt;
* fr-fr&lt;br /&gt;
* it-it&lt;br /&gt;
* nl-nl&lt;br /&gt;
* pl-pl&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like [[apache]] or [[nginx]].&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided to the application using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
It is strongly advised to copy the complete files and not include them from their original location so the web server does not need to be able to access any configuration directories of kopano.&lt;br /&gt;
Make sure the user of the web server is part of the http group. This group is the owner of the unix sockets used by php-fpm for kopano-webapp and z-push.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon. kopano-webapp and z-push ship with php-fpm7 configuration files&lt;br /&gt;
with the correct configuration for the group http to access the unix sockets they use.&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
9( Starting the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
service kopano-$i start&lt;br /&gt;
done&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
10) Enabling the services&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
update-rc add kopano-$i default &lt;br /&gt;
done&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20110</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20110"/>
		<updated>2021-08-20T23:37:18Z</updated>

		<summary type="html">&lt;p&gt;Thermi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
&#039;&#039;&#039;By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. They are also different from the ones used in upstream kopano&#039;&#039;&#039;.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, same user as the daemon can auth as admin. This is hardcoded.), if the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap) depending on if the corresponding authentication plugin is configured independent on the socket used (can be disabled for the unix socket).&lt;br /&gt;
&lt;br /&gt;
kopano can be integrated into an Active Directory (AD).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Available Plugins ==&lt;br /&gt;
&lt;br /&gt;
Currently the following plugins are packaged, each as its own package:&lt;br /&gt;
* desktopnotifications&lt;br /&gt;
* fetchmail&lt;br /&gt;
* filepreviewer&lt;br /&gt;
* files&lt;br /&gt;
* intranet&lt;br /&gt;
* mdm&lt;br /&gt;
* smime&lt;br /&gt;
* spellchecker&lt;br /&gt;
&lt;br /&gt;
For the files plugin, the following backends are packaged:&lt;br /&gt;
* files-backend-owncloud&lt;br /&gt;
* files-backend-smb&lt;br /&gt;
&lt;br /&gt;
For the spellchecker plugin, the following languagepacks are packaged:&lt;br /&gt;
* de-at&lt;br /&gt;
* de-ch&lt;br /&gt;
* de-de&lt;br /&gt;
* en-gb&lt;br /&gt;
* en-us&lt;br /&gt;
* es-es&lt;br /&gt;
* fr-fr&lt;br /&gt;
* it-it&lt;br /&gt;
* nl-nl&lt;br /&gt;
* pl-pl&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like [[apache]] or [[nginx]].&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided to the application using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
It is strongly advised to copy the complete files and not include them from their original location so the web server does not need to be able to access any configuration directories of kopano.&lt;br /&gt;
Make sure the user of the web server is part of the http group. This group is the owner of the unix sockets used by php-fpm for kopano-webapp and z-push.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon. kopano-webapp and z-push ship with php-fpm7 configuration files&lt;br /&gt;
with the correct configuration for the group http to access the unix sockets they use.&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
10( Starting the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
service kopano-$i start&lt;br /&gt;
done&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
11) Enabling the services&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
update-rc add kopano-$i default &lt;br /&gt;
done&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20109</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20109"/>
		<updated>2021-08-20T23:36:04Z</updated>

		<summary type="html">&lt;p&gt;Thermi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
&#039;&#039;&#039;By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. They are also different from the ones used in upstream kopano&#039;&#039;&#039;.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, same user as the daemon can auth as admin. This is hardcoded.), if the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap) depending on if the corresponding authentication plugin is configured independent on the socket used (can be disabled for the unix socket).&lt;br /&gt;
&lt;br /&gt;
kopano can be integrated into an Active Directory (AD).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&#039;&#039;&#039;&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Available Plugins ==&lt;br /&gt;
&lt;br /&gt;
Currently the following plugins are packaged, each as its own package:&lt;br /&gt;
* desktopnotifications&lt;br /&gt;
* fetchmail&lt;br /&gt;
* filepreviewer&lt;br /&gt;
* files&lt;br /&gt;
* intranet&lt;br /&gt;
* mdm&lt;br /&gt;
* smime&lt;br /&gt;
* spellchecker&lt;br /&gt;
&lt;br /&gt;
For the files plugin, the following backends are packaged:&lt;br /&gt;
* files-backend-owncloud&lt;br /&gt;
* files-backend-smb&lt;br /&gt;
&lt;br /&gt;
For the spellchecker plugin, the following languagepacks are packaged:&lt;br /&gt;
* de-at&lt;br /&gt;
* de-ch&lt;br /&gt;
* de-de&lt;br /&gt;
* en-gb&lt;br /&gt;
* en-us&lt;br /&gt;
* es-es&lt;br /&gt;
* fr-fr&lt;br /&gt;
* it-it&lt;br /&gt;
* nl-nl&lt;br /&gt;
* pl-pl&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like [[apache]] or [[nginx]].&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided to the application using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
It is strongly advised to copy the complete files and not include them from their original location so the web server does not need to be able to access any configuration directories of kopano.&lt;br /&gt;
Make sure the user of the web server is part of the http group. This group is the owner of the unix sockets used by php-fpm for kopano-webapp and z-push.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon. kopano-webapp and z-push ship with php-fpm7 configuration files&lt;br /&gt;
with the correct configuration for the group http to access the unix sockets they use.&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
8) Enabling the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
update-rc add kopano-$i default &lt;br /&gt;
done&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=20108</id>
		<title>Tutorials and Howtos</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Tutorials_and_Howtos&amp;diff=20108"/>
		<updated>2021-08-20T05:26:46Z</updated>

		<summary type="html">&lt;p&gt;Thermi: Kopano&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Todo|This material needs to be re-organized .. as &#039;&#039;&#039;Howtos are smaller articles&#039;&#039;&#039; and &#039;&#039;&#039;tutorials are more detailed document&#039;&#039;&#039; both need to be reordered as independent sections }}&lt;br /&gt;
&lt;br /&gt;
[[Image:package_edutainment.svg|right|link=]]&lt;br /&gt;
{{TOC left}}&lt;br /&gt;
&#039;&#039;&#039;Welcome to Tutorials and Howtos, a place of basic and advanced configuration tasks for your Alpine Linux.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;The tutorials are hands-on&#039;&#039;&#039; and the reader is expected to try and achieve the goals described in each step, possibly with the help of a good example. The output in one step is the starting point for the following step.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Howtos are smaller articles&#039;&#039;&#039; explaining how to perform a particular task with Alpine Linux, that expects a minimal knowledge from reader to perform actions.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;IMPORTANT:&#039;&#039;&#039; contributions on those pages must be complete articles as well as requesting topics to be covered, don&#039;t override already made contributions. If you want to request a topic, please add your request in this page&#039;s [[Talk:Tutorials_and_Howtos|Discussion]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Clear}}&lt;br /&gt;
&lt;br /&gt;
== New users and Newbies ==&lt;br /&gt;
&lt;br /&gt;
* [[Newbie Alpine Ecosystem]] (for overall information in funny sections)&lt;br /&gt;
&lt;br /&gt;
==== Installation: Use cases ====&lt;br /&gt;
&lt;br /&gt;
* [[Alpine newbie install manual]]&lt;br /&gt;
** [[Alpine Install: from a disc to a new computer single only boot]]&lt;br /&gt;
** [[Alpine Install: from a disc to a old computer single only boot]]&lt;br /&gt;
** [[Alpine Install: from a disc to a virtualbox machine single only]]&lt;br /&gt;
** [[Alpine Install: from a iso to a virtualbox machine with external disc]]&lt;br /&gt;
* [[Alpine_newbie_install_manual#Ways_to_install_Alpine_listed_by_architectures|Ways to install listed by architectures]]&lt;br /&gt;
** [[Alpine_newbie_install_manual#x86_64_x86_32_x86|x86_64 x86_32 x86 s390]]&lt;br /&gt;
** [[Alpine_newbie_install_manual#armhf_armv7|armhf armv7 aarch64]]&lt;br /&gt;
** [[Alpine_newbie_install_manual#ppc64le|ppc64le others PPC]]&lt;br /&gt;
&lt;br /&gt;
==== Postinstall: desktops and applications ====&lt;br /&gt;
&lt;br /&gt;
* [[Alpine newbie apk packages|Overall info and minimal packages common to any working desktop]]&lt;br /&gt;
** [[Alpine newbie desktops|Alpine newbie desktops, (overall information only)]]&lt;br /&gt;
** [[XFCE Setup]]&lt;br /&gt;
** [[Alpine Newbies LXDE Desktop Environment]]&lt;br /&gt;
** [[Alpine Newbies Openbox Window Manager|Alpine Newbies Xorg and Openbox Window Manager]]&lt;br /&gt;
** [[MATE|Alpine Newbies MATE Desktop Environment]]&lt;br /&gt;
* [[Alpine and UEFI|Alpine and UEFI Support Status and related topics]]&lt;br /&gt;
&lt;br /&gt;
==== Developers: compilers, IDEs and tools ====&lt;br /&gt;
&lt;br /&gt;
* [[Alpine newbie developer]]&lt;br /&gt;
** [[Alpine newbie developer: gitea|Alpine newbie developer: Git management web frontend gitea]]&lt;br /&gt;
** [[Alpine newbie developer: full stack web]]&lt;br /&gt;
&lt;br /&gt;
==== Servers: deploy in production ====&lt;br /&gt;
&lt;br /&gt;
* [[Alpine production deploy]]&lt;br /&gt;
** [[Production Web server: Lighttpd‎‎]]&lt;br /&gt;
** [[Production DataBases : mysql]]&lt;br /&gt;
** [[Production LAMP system: Lighttpd + PHP + MySQL‎‎]]&lt;br /&gt;
* Alpine production monitoring&lt;br /&gt;
** [[Cacti: traffic analysis and monitoring network]]&lt;br /&gt;
** [[Zabbix|Zabbix - the professional complete manager]]&lt;br /&gt;
&lt;br /&gt;
== Storage ==&lt;br /&gt;
&lt;br /&gt;
* [[Alpine local backup|Alpine local backup (lbu)]] &#039;&#039;(Permanently store your modifications in case your box needs reboot)&#039;&#039; &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
** [[Back Up a Flash Memory Installation]] &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up disks manually]] &amp;lt;!-- Installation and Storage --&amp;gt;&lt;br /&gt;
* [[Setting up a software RAID array]]&lt;br /&gt;
&amp;lt;!-- ** [[Setting up a /var partition on software IDE raid1]]  Obsolete, Installation and Storage --&amp;gt; &lt;br /&gt;
* [[Raid Administration]]&lt;br /&gt;
* [[Setting up encrypted volumes with LUKS]]&lt;br /&gt;
* [[Setting up LVM on LUKS]]&lt;br /&gt;
* [[Setting up Logical Volumes with LVM]]&lt;br /&gt;
** [[Setting up LVM on GPT-labeled disks]]&lt;br /&gt;
** [[Installing on GPT LVM]]&lt;br /&gt;
* [[Filesystems|Formatting HD/Floppy/Other]] &amp;lt;!-- just a stub --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up iSCSI]]&lt;br /&gt;
** [[iSCSI Raid and Clustered File Systems]]&lt;br /&gt;
* [[Setting up NBD]]&lt;br /&gt;
* [[Setting up ZFS on LUKS]]&lt;br /&gt;
* [[Setting up ZFS with native encryption]]&lt;br /&gt;
* [[High performance SCST iSCSI Target on Linux software Raid]] &#039;&#039;(deprecated)&#039;&#039; &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
* [[Linux iSCSI Target (TCM)]]&lt;br /&gt;
* [[Disk Replication with DRBD]] &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Burning ISOs]] &amp;lt;!-- just some links now --&amp;gt;&lt;br /&gt;
* [[Partitioning and Bootmanagers]]&lt;br /&gt;
* [[Migrating data]]&lt;br /&gt;
* [[Create a bootable SDHC from a Mac]]&lt;br /&gt;
* [[Alpine on ARM]]&lt;br /&gt;
&lt;br /&gt;
== Networking ==&lt;br /&gt;
&lt;br /&gt;
* [[Configure Networking]]&lt;br /&gt;
* [[Connecting to a wireless access point]]&lt;br /&gt;
* [[Bonding]]&lt;br /&gt;
* [[Vlan]]&lt;br /&gt;
* [[Bridge]]&lt;br /&gt;
* [[Bridge wlan0 to eth0]]&lt;br /&gt;
* [[OpenVSwitch]]&lt;br /&gt;
* [[How to configure static routes]]&lt;br /&gt;
* [[Configure a Wireguard interface (wg)]]&lt;br /&gt;
&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;
* [[PXE boot]]&lt;br /&gt;
&lt;br /&gt;
* [[Using serial modem]]&lt;br /&gt;
* [[Using HSDPA modem]]&lt;br /&gt;
* [[Setting up Satellite Internet Connection]]&lt;br /&gt;
* [[Using Alpine on Windows domain with IPSEC isolation]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is the preferred way to administer your box remotely)&#039;&#039; &amp;lt;!-- Server and Networking --&amp;gt;&lt;br /&gt;
** [[HOWTO OpenSSH 2FA with password and Google Authenticator]] &#039;&#039;(A simple two factor setup for OpenSSH)&#039;&#039;&lt;br /&gt;
* [[How to setup a wireless access point]] &#039;&#039;(Setting up Secure Wireless AP w/ WPA encryption with bridge to wired network)&#039;&#039;&lt;br /&gt;
* [[How to set up Alpine as a wireless router]] &#039;&#039;(Setting up a firewalled, Wireless AP with wired network on a Pi Zero W)&#039;&#039;&lt;br /&gt;
* [[Setting up a OpenVPN server with Alpine]] &#039;&#039;(Allowing single users or devices to remotely connect to your network)&#039;&#039;&lt;br /&gt;
&amp;lt;!-- [[Using Racoon for Remote Sites]] is a different VPN tunnelling method, but that article is just a stub --&amp;gt;&lt;br /&gt;
* [[Experiences with OpenVPN-client on ALIX.2D3]]  &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Generating SSL certs with ACF]] &amp;lt;!-- Generating SSL certs with ACF 1.9 --&amp;gt;&lt;br /&gt;
* [[Setting up unbound DNS server]]&lt;br /&gt;
* [[Setting up nsd DNS server]]&lt;br /&gt;
* [[TinyDNS Format]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]] &amp;lt;!-- solution --&amp;gt;&lt;br /&gt;
* [[Freeradius Active Directory Integration]]&lt;br /&gt;
* [[Multi_ISP]] &#039;&#039;(Dual-ISP setup with load-balancing and automatic failover)&#039;&#039;&lt;br /&gt;
* [[OwnCloud]] &#039;&#039;(Installing OwnCloud)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Seafile: setting up your own private cloud]]&lt;br /&gt;
&lt;br /&gt;
* [[GNUnet]]&lt;br /&gt;
&lt;br /&gt;
== Post-Install ==&lt;br /&gt;
&amp;lt;!-- If you edit this, please coordinate with Installation and Developer_Documentation#Package_management.  Note that these three sections are not exact duplicates. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Alpine_newbie_apk_packages|Alpine newbie users post install and easy setups]]&lt;br /&gt;
** [[Alpine_newbie_apk_packages#New_users:_hostname_and_network_wired_connection|First steps at post install]]&lt;br /&gt;
** [[Alpine_newbie_apk_packages#New_users:_common_needed_package_to_install|Enable repositories]]&lt;br /&gt;
** [[Alpine_newbie_apk_packages#New_users:_management_of_users_and_logins|Added the first user to use the system]]&lt;br /&gt;
** [[Alpine_newbie_apk_packages#install_basic_tools|First packages to install]] (need the previous [[Alpine_newbie_apk_packages#New_users:_common_needed_package_to_install|Enable repositories]]) already done!&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a new user]]&lt;br /&gt;
* [[Enable Community Repository]] &#039;&#039;(Providing additional packages)&#039;&#039;&lt;br /&gt;
* [[Alpine Linux package management|Package Management (apk)]] &#039;&#039;(How to add/remove packages on your Alpine)&#039;&#039;&lt;br /&gt;
   &amp;lt;!-- [[Alpine Linux package management#Local_Cache|How to enable APK caching]] --&amp;gt;&lt;br /&gt;
** [[Comparison with other distros]]&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]] &amp;lt;!-- new --&amp;gt;&lt;br /&gt;
** [[Manually editing a existing apkovl]]&lt;br /&gt;
* [[Alpine Linux Init System|Init System (OpenRC)]] &#039;&#039;(Configure a service to automatically boot at next reboot)&#039;&#039;&lt;br /&gt;
** [[Multiple Instances of Services]]&lt;br /&gt;
   &amp;lt;!-- [[Writing Init Scripts]] --&amp;gt;&lt;br /&gt;
* [[Alpine setup scripts#setup-xorg-base|Setting up Xorg]]&lt;br /&gt;
* [[Upgrading Alpine]]&lt;br /&gt;
&amp;lt;!-- Obsolete&lt;br /&gt;
 [[Upgrading Alpine - v1.9.x]]&lt;br /&gt;
 [[Upgrading Alpine - CD v1.8.x]]&lt;br /&gt;
 [[Upgrading Alpine - HD v1.8.x]]&lt;br /&gt;
 [[Upgrade to repository main|Upgrading to signed repositories]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
** [[HOWTO OpenSSH 2FA with password and Google Authenticator]] &#039;&#039;(A simple two factor setup for OpenSSH)&#039;&#039;&lt;br /&gt;
* [[setup-acf]] &#039;&#039;(Configures ACF (webconfiguration) so you can manage your box through https)&#039;&#039;&lt;br /&gt;
* [[Changing passwords for ACF|Changing passwords]]&lt;br /&gt;
* [[Ansible]] &#039;&#039;(Configuration management)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Enable Serial Console on Boot]]&lt;br /&gt;
&amp;lt;!-- Obsolete?&lt;br /&gt;
* [[Error message on boot: Address space collision: host bridge window conflicts with Adaptor ROM]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
* [[How to get regular stuff working]] &#039;&#039;some notes on need-to-know topics&#039;&#039;&lt;br /&gt;
* [[Installing Oracle Java]]&lt;br /&gt;
* [[Rsnapshot|Setting up periodic backups with &amp;lt;samp&amp;gt;rsnapshot&amp;lt;/samp&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
== Virtualization==&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 PCI Passthrough]]&lt;br /&gt;
* [[Xen LiveCD]]&lt;br /&gt;
* [[qemu]]&lt;br /&gt;
* [[KVM]] &#039;&#039;(Setting up Alpine as a KVM hypervisor)&#039;&#039;&lt;br /&gt;
* [[LXC]] &#039;&#039;(Setting up a Linux container in Alpine Linux)&#039;&#039;&lt;br /&gt;
* [[Docker]]&lt;br /&gt;
* [[Install_Alpine_on_VirtualBox]]&lt;br /&gt;
* [[Install Alpine on VMWare]]&lt;br /&gt;
&lt;br /&gt;
== Desktop Environment ==&lt;br /&gt;
&lt;br /&gt;
* [[Awesome(wm) Setup]]&lt;br /&gt;
* [[dwm]] &#039;&#039;(dynamic window manager for X)&#039;&#039;&lt;br /&gt;
* [[EyeOS]] &#039;&#039;(Cloud Computing Desktop)&#039;&#039;&lt;br /&gt;
* [[Gnome Setup]]&lt;br /&gt;
* [[KDE]]&lt;br /&gt;
* [[MATE|MATE Setup]]&lt;br /&gt;
* [[Oneye]] &#039;&#039;(Cloud Computing Desktop - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
* [[Owncloud]] &#039;&#039;(Cloud Computing Desktop - Dropbox Alternative)&#039;&#039;&lt;br /&gt;
** (to be merged with [[OwnCloud]] &#039;&#039;(Your personal Cloud for storing and sharing your data on-line)&#039;&#039;)&lt;br /&gt;
* [[Remote Desktop Server]]&lt;br /&gt;
* [[Suspend on LID close]]&lt;br /&gt;
* [[Sway]]&lt;br /&gt;
* [[XFCE Setup]] and [[Xfce Desktop|Desktop Ideas]]&lt;br /&gt;
* [[Installing Adobe flash player for Firefox]]&lt;br /&gt;
* [[Sound Setup]]&lt;br /&gt;
* [[PipeWire]]&lt;br /&gt;
* [[Printer Setup]]&lt;br /&gt;
* [[Default applications]]&lt;br /&gt;
&lt;br /&gt;
== Raspberry Pi ==&lt;br /&gt;
&lt;br /&gt;
* [[Raspberry Pi|Raspberry Pi (Installation)]]&lt;br /&gt;
* [[Raspberry Pi - Headless Installation]]&lt;br /&gt;
* [[Classic install or sys mode on Raspberry Pi]]&lt;br /&gt;
* [[RPI Video Receiver]] &#039;&#039;(network video decoder using Rasperry Pi and omxplayer)&#039;&#039;&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi]]&lt;br /&gt;
* [[Linux Router with VPN on a Raspberry Pi (IPv6)]]&lt;br /&gt;
* [[Raspberry Pi 4 - Persistent system acting as a NAS and Time Machine]]&lt;br /&gt;
* [[Raspberry Pi 3 - Configuring it as wireless access point -AP Mode]]&lt;br /&gt;
* [[Raspberry Pi 3 - Setting Up Bluetooth]]&lt;br /&gt;
* [[Raspberry Pi 3 - Browser Client]] - kiosk or digital sign&lt;br /&gt;
* [[Raspberry Pi Zero W - Installation]]&lt;br /&gt;
* [[Raspberry Pi Bluetooth Speaker]]&lt;br /&gt;
&lt;br /&gt;
== PowerPC ==&lt;br /&gt;
&lt;br /&gt;
* [[Ppc64le|Powepc64le (Installation)]]&lt;br /&gt;
&lt;br /&gt;
== IBM Z (IBM z Systems) ==&lt;br /&gt;
&lt;br /&gt;
* [[s390x|s390x (Installation)]]&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
=== Telephony ===&lt;br /&gt;
* [[Setting up Zaptel/Asterisk on Alpine]]&lt;br /&gt;
** [[Setting up Streaming an Asterisk Channel]]&lt;br /&gt;
* [[Freepbx on Alpine Linux]]&lt;br /&gt;
* [[FreePBX_V3]] &#039;&#039;(FreeSWITCH, Asterisk GUI web acces tool)&#039;&#039;&lt;br /&gt;
* [[2600hz]] &#039;&#039;(FreeSWITCH, Asterisk GUI web access tool)&#039;&#039;&lt;br /&gt;
* [[Kamailio]] &#039;&#039;(SIP Server, formerly OpenSER)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Mail ===&lt;br /&gt;
* [[Hosting services on Alpine]] &#039;&#039;(Hosting mail, webservices and other services)&#039;&#039;&lt;br /&gt;
** [[Hosting Web/Email services on Alpine]]&lt;br /&gt;
* [[ISP Mail Server HowTo]] &amp;lt;!-- solution, Mail --&amp;gt;&lt;br /&gt;
** [[ISP Mail Server Upgrade 2.x]]&lt;br /&gt;
** [[ISP Mail Server 2.x HowTo]] &#039;&#039;(Beta, please test)&#039;&#039;&lt;br /&gt;
** [[ISP Mail Server 3.x HowTo]]&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Setting up postfix with virtual domains]]&lt;br /&gt;
* [[Protecting your email server with Alpine]]&lt;br /&gt;
* [[Setting up clamsmtp]]&lt;br /&gt;
* [[Setting up dovecot with imap and ssl]]&lt;br /&gt;
* [[relay email to gmail (msmtp, mailx, sendmail]]&lt;br /&gt;
&lt;br /&gt;
=== HTTP ===&lt;br /&gt;
* [[Lighttpd]]&lt;br /&gt;
** [[Lighttpd Https access]]&lt;br /&gt;
** [[Setting Up Lighttpd with PHP]]&lt;br /&gt;
** [[Setting Up Lighttpd With FastCGI]]&lt;br /&gt;
* [[Cherokee]]&lt;br /&gt;
* [[Nginx]]&lt;br /&gt;
** [[Nginx_with_PHP#Nginx_with_PHP|Nginx with PHP]]&lt;br /&gt;
** [[Nginx as reverse proxy with acme (letsencrypt)]]&lt;br /&gt;
* [[Apache]]&lt;br /&gt;
** [[Apache with php-fpm]]&lt;br /&gt;
** [[Setting Up Apache with PHP]]&lt;br /&gt;
** [[Apache authentication: NTLM Single Signon]]&lt;br /&gt;
&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039; &amp;lt;!-- solution, Server --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up Transparent Squid Proxy]] &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
** [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[Setting up Explicit Squid Proxy]]&lt;br /&gt;
&lt;br /&gt;
* [[Drupal]] &#039;&#039;(Content Management System (CMS) written in PHP)&#039;&#039;&lt;br /&gt;
* [[WordPress]] &#039;&#039;(Web software to create website or blog)&#039;&#039;&lt;br /&gt;
* [[MediaWiki]] &#039;&#039;(Free web-based wiki software application)&#039;&#039;&lt;br /&gt;
* [[DokuWiki]]&lt;br /&gt;
* [[Darkhttpd]]&lt;br /&gt;
* [[Tomcat]]&lt;br /&gt;
* [[Kopano]] &#039;&#039;(Microsoft Outlook compatible Groupware)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Other Servers ===&lt;br /&gt;
* [[Setting up a ssh-server]] &#039;&#039;(Using ssh is a good way to administer your box remotely)&#039;&#039;&lt;br /&gt;
** [[HOWTO OpenSSH 2FA with password and Google Authenticator]] &#039;&#039;(A simple two factor setup for OpenSSH)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Setting up a nfs-server]]&lt;br /&gt;
* [[Setting up a samba-server]] &#039;&#039;(standard file sharing)&#039;&#039;&lt;br /&gt;
* [[Setting up a samba-ad-dc]] &#039;&#039;(Active Directory compatible domain controller)&#039;&#039;&lt;br /&gt;
* [[Phpizabi]] &#039;&#039;(Social Networking Platform)&#039;&#039;&lt;br /&gt;
* [[Statusnet]] &#039;&#039;(Microblogging Platform)&#039;&#039;&lt;br /&gt;
* [[Pastebin]] &#039;&#039;(Pastebin software application)&#039;&#039;&lt;br /&gt;
* [[Setting up Transmission (bittorrent) with Clutch WebUI]]&lt;br /&gt;
&lt;br /&gt;
* [[Patchwork]] &#039;&#039;(Patch review management system)&#039;&#039;&lt;br /&gt;
* [[Redmine]] &#039;&#039;(Project management system)&#039;&#039;&lt;br /&gt;
* [[Request-Tracker]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[OsTicket]] &#039;&#039;(Ticket system)&#039;&#039;&lt;br /&gt;
* [[Setting up trac wiki|Trac]] &#039;&#039;(Enhanced wiki and issue tracking system for software development projects)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Alpine_newbie_developer: gitea|Setting up Git management web frontend gitea]]&lt;br /&gt;
* [[Cgit]]&lt;br /&gt;
** [[Setting up a git repository server with gitolite and cgit]] &amp;lt;!-- doesn&#039;t exist yet --&amp;gt;&lt;br /&gt;
* [[Roundcube]] &#039;&#039;(Webmail system)&#039;&#039;&lt;br /&gt;
* [[Glpi]] &#039;&#039;(Manage inventory of technical resources)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[How to setup a Alpine Linux mirror]]&lt;br /&gt;
* [[Cups]]&lt;br /&gt;
* [[NgIRCd]] &#039;&#039;(Server for Internet Relay Chat/IRC)&#039;&#039;&lt;br /&gt;
* [[How To Setup Your Own IRC Network]] &#039;&#039;(Using {{Pkg|charybdis}} and {{Pkg|atheme-iris}})&#039;&#039;&lt;br /&gt;
* [[OpenVCP]] &#039;&#039;(VServer Control Panel)&#039;&#039;&lt;br /&gt;
* [[Mahara]] &#039;&#039;(E-portfolio and social networking system)&#039;&#039;&lt;br /&gt;
* [[Chrony and GPSD | Using chrony, gpsd, and a garmin LVC 18 as a Stratum 1 NTP source ]]&lt;br /&gt;
* [[Sending SMS using gnokii]]&lt;br /&gt;
* [[IPTV How To|Internet Protocol television (IPTV)]]&lt;br /&gt;
* [[UniFi_Controller]]&lt;br /&gt;
* [[DNSCrypt-Proxy]] &#039;&#039;Encrypt and authenticate DNS calls from your system&#039;&#039;&lt;br /&gt;
* [[Odoo]]&lt;br /&gt;
&lt;br /&gt;
=== Monitoring ===&lt;br /&gt;
* Setting up [[collectd]]&lt;br /&gt;
* [[Traffic monitoring]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up traffic monitoring using rrdtool (and snmp)]] &amp;lt;!-- Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up monitoring using rrdtool (and rrdcollect)]]&lt;br /&gt;
* [[Cacti: traffic analysis and monitoring network]] &#039;&#039;(Front-end for rrdtool networking monitor)&#039;&#039;&lt;br /&gt;
* [[LTTng]] &#039;&#039;(Kernel and userspace tracing)&#039;&#039;&lt;br /&gt;
* [[Zabbix|Zabbix - the professional complete manager]] &#039;&#039;(Monitor and track the status of network services and hardware)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft, solution, Networking and Monitoring and Server --&amp;gt;&lt;br /&gt;
** [[Setting up NRPE daemon]] &#039;&#039;(Performs remote Nagios checks)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Setting up Smokeping|Smokeping]] &#039;&#039;(Network latency monitoring)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
** [[Setting up MRTG and Smokeping to Monitor Bandwidth Usage and Network Latency]]&lt;br /&gt;
* [[Setting Up Fprobe And Ntop|Ntop]] &#039;&#039;(NetFlow collection and analysis using a remote fprobe instance)&#039;&#039; &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Cvechecker]] &#039;&#039;(Compare installed packages for Common Vulnerabilities Exposure)&#039;&#039; &amp;lt;!-- Monitoring and Security --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [[IP Accounting]] &amp;lt;!-- Networking and Monitoring --&amp;gt;&lt;br /&gt;
* [[Obtaining user information via SNMP]] &#039;&#039;(Using squark-auth-snmp as a Squid authentication helper)&#039;&#039; &amp;lt;!-- Networking and Server, &amp;lt;== Using squark-auth-snmp --&amp;gt;&lt;br /&gt;
* [[SqStat]] &#039;&#039;(Script to look at active squid users connections)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Piwik]] &#039;&#039;(A real time web analytics software program)&#039;&#039;&lt;br /&gt;
* [[Awstats]] &#039;&#039;(Free log file analyzer)&#039;&#039;&lt;br /&gt;
* [[Intrusion Detection using Snort]]&lt;br /&gt;
** [[Intrusion Detection using Snort, Sguil, Barnyard and more]]&lt;br /&gt;
* [[Dglog]] &#039;&#039;(Log analyzer for the web content filter DansGuardian)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* [[Webmin]] &#039;&#039;(A web-based interface for Linux system)&#039;&#039;&lt;br /&gt;
* [[PhpPgAdmin]] &#039;&#039;(Web-based administration tool for PostgreSQL)&#039;&#039;&lt;br /&gt;
* [[PhpMyAdmin]] &#039;&#039;(Web-based administration tool for MYSQL)&#039;&#039;&lt;br /&gt;
* [[PhpSysInfo]] &#039;&#039;(A simple application that displays information about the host it&#039;s running on)&#039;&#039;&lt;br /&gt;
* [[Linfo]]&lt;br /&gt;
&lt;br /&gt;
* [[Setting up lm_sensors]]&lt;br /&gt;
&lt;br /&gt;
* [[ZoneMinder video camera security and surveillance]]&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Shell]]&lt;br /&gt;
* [[:Category:Programming]]&lt;br /&gt;
* [[Running glibc programs]]&lt;br /&gt;
* [[:Category:Drivers]]&lt;br /&gt;
* [[:Category:Multimedia]]&lt;br /&gt;
* [[Kernel Modesetting]]&lt;br /&gt;
* [[CPU frequency scaling]]&lt;br /&gt;
&lt;br /&gt;
== Complete Solutions ==&lt;br /&gt;
* [[DIY Fully working Alpine Linux for Allwinner and Other ARM SOCs]]&lt;br /&gt;
* [[Alpine on the Aopen Chromebase or Chromebox Mini with Mainline Kernel]]&lt;br /&gt;
* [[Replacing non-Alpine Linux with Alpine remotely]]&lt;br /&gt;
* [[High performance SCST iSCSI Target on Linux software Raid]]&lt;br /&gt;
* [[Fault Tolerant Routing with Alpine Linux]]&lt;br /&gt;
* [[Experiences with OpenVPN-client on ALIX.2D3]]&lt;br /&gt;
* [[Building a cloud with Alpine Linux]]&lt;br /&gt;
&lt;br /&gt;
* [[ISP Mail Server HowTo]] &#039;&#039;(Postfix+PostfixAdmin+DoveCot+Roundcube+ClamAV+Spamd - A full-serivce ISP mail server)&#039;&#039;&lt;br /&gt;
** [[ISP Mail Server Upgrade 2.x]]&lt;br /&gt;
** [[ISP Mail Server 2.x HowTo]] &#039;&#039;(Beta, please test)&#039;&#039;&lt;br /&gt;
* [[High Availability High Performance Web Cache]] &#039;&#039;(uCarp + HAProxy for High Availability Services such as Squid web proxy)&#039;&#039;&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039; &amp;lt;!-- draft --&amp;gt;&lt;br /&gt;
* [[Streaming Security Camera Video with VLC]]&lt;br /&gt;
* [[Dynamic Multipoint VPN (DMVPN)]] combined with [[Small_Office_Services]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
This does not attempt to be complete. Is it useful to have these listed here? I find them more accessible if grouped with their topics; also, an up-to-date list of all Draft or Obsolete pages can be found at [[Project:Wiki maintenance]].&lt;br /&gt;
&lt;br /&gt;
== Drafts ==&lt;br /&gt;
Currently unfinished/works-in-progress.&lt;br /&gt;
* [[Using Racoon for Remote Sites]]&lt;br /&gt;
* [[Setting up Transparent Squid Proxy]] &#039;&#039;(Covers Squid proxy and URL Filtering system)&#039;&#039;&lt;br /&gt;
** [[Obtaining user information via SNMP]] &#039;&#039;(Using the Squark Squid authentication helper)&#039;&#039; [!-- no longer a draft --]&lt;br /&gt;
* [[Setting up Streaming an Asterisk Channel]]&lt;br /&gt;
* [[Setting up A Network Monitoring and Inventory System]] &#039;&#039;(Nagios + OpenAudit and related components)&#039;&#039;&lt;br /&gt;
* [[Intrusion Detection using Snort]] &#039;&#039;(Installing and configuring Snort and related applications on Alpine 2.0.x)&#039;&#039;&lt;br /&gt;
* [[IP Accounting]] &#039;&#039;(Installing and configuring pmacct for IP Accounting, Netflow/sFlow collector)&#039;&#039;&lt;br /&gt;
* [[Disk Replication with DRBD]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Newbie]]&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20107</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20107"/>
		<updated>2021-08-20T04:55:58Z</updated>

		<summary type="html">&lt;p&gt;Thermi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. *They are also different from the ones used in upstream kopano*.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, same user as the daemon can auth as admin. This is hardcoded.), if the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap) depending on if the corresponding authentication plugin is configured independent on the socket used (can be disabled for the unix socket).&lt;br /&gt;
&lt;br /&gt;
kopano can be integrated into an Active Directory (AD).&lt;br /&gt;
&lt;br /&gt;
The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Available Plugins ==&lt;br /&gt;
&lt;br /&gt;
Currently the following plugins are packaged, each as its own package:&lt;br /&gt;
* desktopnotifications&lt;br /&gt;
* fetchmail&lt;br /&gt;
* filepreviewer&lt;br /&gt;
* files&lt;br /&gt;
* intranet&lt;br /&gt;
* mdm&lt;br /&gt;
* smime&lt;br /&gt;
* spellchecker&lt;br /&gt;
&lt;br /&gt;
For the files plugin, the following backends are packaged:&lt;br /&gt;
* files-backend-owncloud&lt;br /&gt;
* files-backend-smb&lt;br /&gt;
&lt;br /&gt;
For the spellchecker plugin, the following languagepacks are packaged:&lt;br /&gt;
* de-at&lt;br /&gt;
* de-ch&lt;br /&gt;
* de-de&lt;br /&gt;
* en-gb&lt;br /&gt;
* en-us&lt;br /&gt;
* es-es&lt;br /&gt;
* fr-fr&lt;br /&gt;
* it-it&lt;br /&gt;
* nl-nl&lt;br /&gt;
* pl-pl&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like [[apache]] or [[nginx]].&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided to the application using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
It is strongly advised to copy the complete files and not include them from their original location so the web server does not need to be able to access any configuration directories of kopano.&lt;br /&gt;
Make sure the user of the web server is part of the http group. This group is the owner of the unix sockets used by php-fpm for kopano-webapp and z-push.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon. kopano-webapp and z-push ship with php-fpm7 configuration files&lt;br /&gt;
with the correct configuration for the group http to access the unix sockets they use.&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
8) Enabling the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
update-rc add kopano-$i default &lt;br /&gt;
done&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20106</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20106"/>
		<updated>2021-08-20T04:48:03Z</updated>

		<summary type="html">&lt;p&gt;Thermi: Plugin, languagepack, files-backend list&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
[https://pkgs.alpinelinux.org/packages?name=kopano-*&amp;amp;branch=edge Packages]&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. *They are also different from the ones used in upstream kopano*.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, kopano can auth as admin), when the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap) depending on if the corresponding authentication plugin is configured.&lt;br /&gt;
kopano can be integrated into an Active Directory (AD).&lt;br /&gt;
&lt;br /&gt;
The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Available Plugins ==&lt;br /&gt;
&lt;br /&gt;
Currently the following plugins are packaged, each as its own package:&lt;br /&gt;
* desktopnotifications&lt;br /&gt;
* fetchmail&lt;br /&gt;
* filepreviewer&lt;br /&gt;
* files&lt;br /&gt;
* intranet&lt;br /&gt;
* mdm&lt;br /&gt;
* smime&lt;br /&gt;
* spellchecker&lt;br /&gt;
&lt;br /&gt;
For the files plugin, the following backends are packaged:&lt;br /&gt;
* files-backend-owncloud&lt;br /&gt;
* files-backend-smb&lt;br /&gt;
&lt;br /&gt;
For the spellchecker plugin, the following languagepacks are packaged:&lt;br /&gt;
* de-at&lt;br /&gt;
* de-ch&lt;br /&gt;
* de-de&lt;br /&gt;
* en-gb&lt;br /&gt;
* en-us&lt;br /&gt;
* es-es&lt;br /&gt;
* fr-fr&lt;br /&gt;
* it-it&lt;br /&gt;
* nl-nl&lt;br /&gt;
* pl-pl&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like apache or nginx.&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided to the application using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
Make sure the user of the web server is part of the http group. This group is the owner of the unix sockets used by php-fpm for kopano-webapp and z-push.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon. kopano-webapp and z-push ship with php-fpm7 configuration files&lt;br /&gt;
with the correct configuration for the group http to access the unix sockets they use.&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
8) Enabling the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
update-rc add kopano-$i default &lt;br /&gt;
done&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20105</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20105"/>
		<updated>2021-08-20T04:39:52Z</updated>

		<summary type="html">&lt;p&gt;Thermi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
[https://pkgs.alpinelinux.org/packages?name=kopano-*&amp;amp;branch=edge Packages]&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. *They are also different from the ones used in upstream kopano*.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, kopano can auth as admin), when the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap).&lt;br /&gt;
&lt;br /&gt;
The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like apache or nginx.&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided to the application using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
Make sure the user of the web server is part of the http group. This group is the owner of the unix sockets used by php-fpm for kopano-webapp and z-push.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon. kopano-webapp and z-push ship with php-fpm7 configuration files&lt;br /&gt;
with the correct configuration for the group http to access the unix sockets they use.&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
8) Enabling the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
update-rc add kopano-$i default &lt;br /&gt;
done&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20104</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20104"/>
		<updated>2021-08-20T04:36:57Z</updated>

		<summary type="html">&lt;p&gt;Thermi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
[https://pkgs.alpinelinux.org/packages?name=kopano-*&amp;amp;branch=edge Packages]&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. *They are also different from the ones used in upstream kopano*.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, kopano can auth as admin), when the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap).&lt;br /&gt;
&lt;br /&gt;
The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like apache or nginx.&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
If you want to use kopano-ical, configure ical.cfg apropriately.&lt;br /&gt;
If you want to use kopano-gateway, configure kopano-gateway apropriately.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
8) Enabling the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|for i in dagent gateway ical monitor search server spamd spooler; do&lt;br /&gt;
update-rc add kopano-$i default &lt;br /&gt;
done&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20103</id>
		<title>Kopano</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Kopano&amp;diff=20103"/>
		<updated>2021-08-20T04:35:36Z</updated>

		<summary type="html">&lt;p&gt;Thermi: Initial version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOC left}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Kopano is a primarily Microsoft Outlook compatible groupware.&lt;br /&gt;
It comes with its own mysql based storage and CALDAV, IMAP, POP3, and SMTP gateways, and a web based interface to access the service.&lt;br /&gt;
It implements support for quotas, internationalization, automatic archiving, backups, integrated file sharing over webdav, owncloud, or smb/cifs, and spam filtering.&lt;br /&gt;
&lt;br /&gt;
[https://pkgs.alpinelinux.org/packages?name=kopano-*&amp;amp;branch=edge Packages]&lt;br /&gt;
&lt;br /&gt;
Currently, kopano is not available on riscv64, ppc64le, or mips64, because some dependencies of kopano-core, the server component, are not yet available on those platforms.&lt;br /&gt;
kopano-webapp and z-push are currently build and tested against php7 on Alpine Linux. If it is upgraded to php8 or later, the configuration of parts like php-fpm8 (used by -webapp) will need to be updated to start automatically (using openrc).&lt;br /&gt;
Management of kopano is possible via CLI using kopano-admin.&lt;br /&gt;
&lt;br /&gt;
The default values for all ACLs and users should work OOTB.&lt;br /&gt;
By default, the users for kopano-server, -gateway, -ical, z-push, and the webapp are different from each other. *They are also different from the ones used in upstream kopano*.&lt;br /&gt;
This is done so each service can only access those resources it needs.&lt;br /&gt;
&lt;br /&gt;
Authentication against kopano-server is done via a user whitelist (root, kopano can auth as admin), when the UNIX socket is used, and via the selected user backend (unix system passwd, database, ldap).&lt;br /&gt;
&lt;br /&gt;
The manual at https://documentation.kopano.io/ covers all topics. This article only contains Alpine Linux specifics.&lt;br /&gt;
&lt;br /&gt;
== Services ==&lt;br /&gt;
&lt;br /&gt;
* CALDAV  - kopano-ical          - tcp 443 &lt;br /&gt;
* MAPI    - kopano-server        - tcp 443&lt;br /&gt;
* IMAPS   - kopano-gateway       - tcp 143, 993&lt;br /&gt;
* POP3S   - kopano-gateway       - tcp 110, 995&lt;br /&gt;
* SMTPS   - postfix or other MTA - tcp 25,465,587&lt;br /&gt;
* Web     - web server via php   - tcp 443&lt;br /&gt;
* activesync - zpush             - tcp 443&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
1) Install the packages&lt;br /&gt;
&lt;br /&gt;
{{Cmd|apk add kopano-core kopano-core-doc kopano-webapp z-push}}&lt;br /&gt;
&lt;br /&gt;
You also need a CGI capable webserver, like apache or nginx.&lt;br /&gt;
&lt;br /&gt;
2) Configuring mariadb&lt;br /&gt;
&lt;br /&gt;
Configure mariadb and create a database &amp;quot;kopano&amp;quot; that is going to hold kopano&#039;s data.&lt;br /&gt;
Create a user &amp;quot;kopano-core&amp;quot; that is going to be able to administrate that database.&lt;br /&gt;
kopano-core will populate the database with the necessary data.&lt;br /&gt;
&lt;br /&gt;
In a mysql shell (replace password with a random password used for the kopano user):&lt;br /&gt;
&lt;br /&gt;
{{Cmd|START TRANSACTION;&lt;br /&gt;
CREATE DATABASE kopano;&lt;br /&gt;
GRANT ALTER, CREATE, CREATE ROUTINE, DELETE, DROP, INDEX, INSERT, LOCK TABLES, \&lt;br /&gt;
      SELECT, UPDATE ON kopano.* TO &#039;kopano&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;password&#039;;&lt;br /&gt;
COMMIT;}}&lt;br /&gt;
&lt;br /&gt;
3) Preparing your MTA&lt;br /&gt;
&lt;br /&gt;
kopano requires an MTA to deliver emails to the Internet.&lt;br /&gt;
It is only capable of sending emails to a single host using a specific SMTP address.&lt;br /&gt;
&lt;br /&gt;
For receiving emails, kopano-dagent needs to be integrated with postfix.&lt;br /&gt;
For sending emails, kopano-spooler needs to be integrated with postfix.&lt;br /&gt;
kopano-dagent can be integrated using lmtp.&lt;br /&gt;
kopano-spooler can be integrated using an smtp socket on loopback, for example.&lt;br /&gt;
&lt;br /&gt;
4) Configuring kopano-core&lt;br /&gt;
&lt;br /&gt;
The configuration directory /etc/kopano/ is not populated with any configuration files by default.&lt;br /&gt;
The default ones for Alpine Linux, meaning they are not the default ones, are available in&lt;br /&gt;
`/usr/share/doc/kopano/example-config/`.&lt;br /&gt;
Copy all of them to /etc/kopano/.&lt;br /&gt;
{{Cmd|cp /usr/share/doc/kopano/example-config/*.cnf /etc/kopano/}}&lt;br /&gt;
&lt;br /&gt;
In `/etc/kopano/server.conf`, put in the details to connect to your mariadb server in the mysql_* variables declared in the file,&lt;br /&gt;
and configure any other necessary details, for example the TLS certificate and certificate chain.&lt;br /&gt;
&lt;br /&gt;
If you want to use kopano-ical, configure ical.cfg apropriately.&lt;br /&gt;
If you want to use kopano-gateway, configure kopano-gateway apropriately.&lt;br /&gt;
&lt;br /&gt;
Natively, kopano-core uses berkeley db (bsddb) to store some information used by kopano-search and some tools. Because Alpine Linux does not support bsddb anymore, this was patched to use mdbx instead.&lt;br /&gt;
&lt;br /&gt;
5) configuring kopano-webapp&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/kopano-webapp contains the configuration for kopano-webapp. The configuration files for the different plugins are provided using a symlink for ease of administration.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
6) configuring z-push&lt;br /&gt;
&lt;br /&gt;
The directory /etc/webapps/z-push contains the configuration for z-push.&lt;br /&gt;
The default values were adjusted for Alpine Linux and should be fine.&lt;br /&gt;
&lt;br /&gt;
7) Configuring the web server&lt;br /&gt;
&lt;br /&gt;
Example configuration files for nginx and apache are available in the /etc/webapps/ directories for z-push and kopano-webapp.&lt;br /&gt;
The configuration files for apache and nginx are just locations, not complete vhosts. Thus they need to be integrated into a vhost first.&lt;br /&gt;
&lt;br /&gt;
8) configuring php-fpm&lt;br /&gt;
&lt;br /&gt;
php-fpm should not require any additional configuration, except starting of the php-fpm daemon&lt;br /&gt;
{{Cmd|service php-fpm7 start}}&lt;br /&gt;
&lt;br /&gt;
8) Enabling the services&lt;br /&gt;
&lt;br /&gt;
openrc units for kopano-dagent, -gateway, -ical, -monitor, -search, -server, -spamd, and -spooler are provided. Their dependencies to each other are expressed within the openrc files and should work OOTB.&lt;br /&gt;
&lt;br /&gt;
{{Cmd|update-rc.d add default }}&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=18614</id>
		<title>APKBUILD Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=APKBUILD_Reference&amp;diff=18614"/>
		<updated>2021-01-27T14:35:50Z</updated>

		<summary type="html">&lt;p&gt;Thermi: Fix description of the &amp;#039;&amp;#039;&amp;#039;arch&amp;#039;&amp;#039;&amp;#039; field&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 or several seperated by whitespace of: &#039;&#039;&#039;[[x86]], [[x86_64]], [[arm7]], [[armhf]], [[aarch64]], [[ppc64le]], [[s390x]], [[mips64]], 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). Architectures can be negated using the ! character to exclude them from the list of supported architectures. E.g. &#039;&#039;&#039;arch=&amp;quot;all !ppc64le&amp;quot;&#039;&#039;&#039; means that the package is allowed to be built on all architectures but the ppc64le architecture.&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;
&lt;br /&gt;
==== depends_doc ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-doc&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== depends_openrc ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-openrc&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== depends_libs ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-libs&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== depends_static ====&lt;br /&gt;
: Run-time dependency package(s) for the &#039;&#039;&#039;$pkgname-static&#039;&#039;&#039; subpackage.&lt;br /&gt;
&lt;br /&gt;
==== checkdepends ====&lt;br /&gt;
: Dependencies that are only required during the check phase, they are only installed if the check option is enabled&lt;br /&gt;
&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;
&amp;lt;blockquote&amp;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. It works in reverse to the &#039;&#039;recommends&#039;&#039; feature, that other package managers provide.&lt;br /&gt;
&lt;br /&gt;
: Typically this is used in a subpackage that should provide files which make sense with another package. For example:&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
subpackages=&amp;quot;$pkgname-bash-completion:bashcomp:noarch&amp;quot;&lt;br /&gt;
...&lt;br /&gt;
bashcomp() {&lt;br /&gt;
	pkgdesc=&amp;quot;Bash completions for $pkgname&amp;quot;&lt;br /&gt;
	install_if=&amp;quot;$pkgname=$pkgver-r$pkgrel bash-completion&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	install -Dm644 &amp;quot;$builddir&amp;quot;/doc/bash_completion/aria2c \&lt;br /&gt;
		&amp;quot;$subpkgdir&amp;quot;/usr/share/bash-completion/completions/_aria2c&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
From the aria2c APKBUILD. Note that the custom bashcomp() function is only necessary, because the files are not in /usr/share/bash-completion.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:In general, install_if should only be used with &#039;&#039;&#039;at least one versioned constraint&#039;&#039;&#039;. Otherwise, a package that was implicitly installed by install_if and then removed from the binary repositories, will not get purged with &amp;lt;code&amp;gt;apk upgrade&amp;lt;/code&amp;gt;. [https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10720#note_121298]&lt;br /&gt;
&lt;br /&gt;
==== license ====&lt;br /&gt;
: License(s) for the package, for example &amp;lt;code&amp;gt;GPL-3.0-or-later&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;BSD-2-Clause&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;MIT&amp;lt;/code&amp;gt; [[Creating_an_Alpine_package#license|(details)]].&lt;br /&gt;
&lt;br /&gt;
==== makedepends ====&lt;br /&gt;
: Build-time dependency package(s).&lt;br /&gt;
==== md5sums/sha256sums/sha512sums ====&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;
&lt;br /&gt;
New packages should use only sha512sums.&lt;br /&gt;
&lt;br /&gt;
==== options ====&lt;br /&gt;
: Build-time options for the package.&lt;br /&gt;
&lt;br /&gt;
: {| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Option&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!archcheck&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not try to verify that the architecture of the binary files is the same architecture as abuild should build for. One example where it makes sense to set this are packages with firmware files, that get executed on another CPU (such as WiFi firmware).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!check&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not try to run the &amp;lt;code&amp;gt;check()&amp;lt;/code&amp;gt; function. Please always add a short comment after the &amp;lt;code&amp;gt;!check&amp;lt;/code&amp;gt; about why it&#039;s disabled. [https://github.com/alpinelinux/aports/pull/2322#discussion_r142545300] Creating a very simple check function, that calls &amp;lt;code&amp;gt;program --version&amp;lt;/code&amp;gt; is worse than disabling tests completely because it gives the false impression that the package is thoroughly tested with the testsuite from upstream. [https://github.com/alpinelinux/aports/pull/7326#discussion_r278797457]&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;checkroot&amp;lt;/code&amp;gt;&lt;br /&gt;
| Specifies that the package&#039;s test suite will be run in &#039;&#039;fakeroot&#039;&#039;. This is necessary for some test suites which fail when run as non-root.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;net&amp;lt;/code&amp;gt;&lt;br /&gt;
| Allows network access when run in &#039;&#039;rootbld&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!strip&amp;lt;/code&amp;gt;&lt;br /&gt;
| Avoid stripping symbols from binaries.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;suid&amp;lt;/code&amp;gt;&lt;br /&gt;
| Allow [https://en.wikipedia.org/wiki/Setuid setuid] binaries.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!tracedeps&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not automatically find dependencies (e.g. by using &amp;lt;code&amp;gt;ldd&amp;lt;/code&amp;gt; to find dynamic libraries, which the resulting binary links against).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;chmod-clean&amp;lt;/code&amp;gt;&lt;br /&gt;
| Make all files writable in the src/ directory. Useful for packages that make files read-only in the process of building packages (go modules).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;toolchain&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t warn when g++ is in makedepends&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!dbg&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t create debugging subpackage&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;ldpath-recursive&amp;lt;/code&amp;gt;&lt;br /&gt;
| Scan directories recursively when creating .so providers&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!spdx&amp;lt;/code&amp;gt;&lt;br /&gt;
| Do not check if the license= field has a SPDX compliant license&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;textrels&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t error out when text relocations are found&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;charset.alias&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t error out if /usr/lib/charset.alias is found&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;libtool&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t delete libtool .la files&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;!fhs&amp;lt;/code&amp;gt;&lt;br /&gt;
| Don&#039;t enforce checks on path that follow the FHS&lt;br /&gt;
|}&lt;br /&gt;
&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. Format for valid versions: &amp;lt;code&amp;gt;{digit}{.digit}...{letter}{_suf{#}}...{-r#}&amp;lt;/code&amp;gt; [https://git.alpinelinux.org/cgit/apk-tools/tree/src/version.c#n17]&lt;br /&gt;
: A Suffix &amp;lt;code&amp;gt;suf&amp;lt;/code&amp;gt; in the above format can be one of the following to indicate that the release is &#039;&#039;less recent&#039;&#039; than the version without the suffix: &amp;lt;code&amp;gt;alpha&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;pre&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;rc&amp;lt;/code&amp;gt; [https://git.alpinelinux.org/cgit/apk-tools/tree/src/version.c#n75]&lt;br /&gt;
: These are for indicating &#039;&#039;more recent&#039;&#039; releases: &amp;lt;code&amp;gt;cvs&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;svn&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;git&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;hg&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;p&amp;lt;/code&amp;gt; [https://git.alpinelinux.org/cgit/apk-tools/tree/src/version.c#n76]&lt;br /&gt;
: All other suffices are invalid. To package a specific git commit, the date of the commit gets appended to the latest release, e.g. &amp;lt;code&amp;gt;1.0.0_git20180204&amp;lt;/code&amp;gt;.&lt;br /&gt;
&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;
==== provider_priority ====&lt;br /&gt;
: A numeric value which is used by apk-tools to break ties when choosing a virtual package to satisfy a dependency. Higher values have higher priority. The primary use case is to specify the primary package that satisfies a virtual (provider).&lt;br /&gt;
==== replaces ====&lt;br /&gt;
: Allow this package to be installed at the same time as the listed packages, even if they have conflicting files. The files from this package will override (&amp;quot;take over&amp;quot;) the conflicting files.&lt;br /&gt;
&lt;br /&gt;
: This can be used to override config files with &amp;quot;policy packages&amp;quot; [https://gitlab.alpinelinux.org/alpine/apk-tools/-/commit/89d003f8c2e5a92655ee778f7bfa5c0e85ddbed4].&lt;br /&gt;
&lt;br /&gt;
: Another use case is renaming packages (or moving files from one package to another): &amp;quot;replaces&amp;quot; will avoid the file conflict error that apk reports if it happens to install the new package before uninstalling the old package [https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10724#note_132872].&lt;br /&gt;
&lt;br /&gt;
: A common misconception is, that &amp;quot;replaces&amp;quot; is used to replace packages (like in [https://wiki.archlinux.org/index.php/PKGBUILD#replaces PKGBUILD]). This is not the case, it is only for solving file conflicts. To let apk consider installing one package instead of another one, refer to [[#provides|provides]] (with the version).&lt;br /&gt;
&lt;br /&gt;
==== replaces_priority ====&lt;br /&gt;
: The priority of the replaces. If multiple packages replace files of each other, then the package with the highest &#039;&#039;replaces_priority&#039;&#039; will win.&lt;br /&gt;
&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/software/software-$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 (only in Alpine &amp;gt;= 2.5)&lt;br /&gt;
:** .tar.gz / .tgz&lt;br /&gt;
:** .tar.bz2&lt;br /&gt;
:** .tar.lz (only in Alpine &amp;gt;=3.7)&lt;br /&gt;
:** .tar.lzma&lt;br /&gt;
:** .tar.xz&lt;br /&gt;
:** .zip&lt;br /&gt;
&lt;br /&gt;
:* &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt; should only include variables that change often like &amp;lt;code&amp;gt;pkgver&amp;lt;/code&amp;gt; or a commit ID. CI will warn you if you include &amp;lt;code&amp;gt;pkgname&amp;lt;/code&amp;gt; in source. Other variables like for example &amp;lt;code&amp;gt;_pkgname&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;_pyname&amp;lt;/code&amp;gt; do not belong in &amp;lt;code&amp;gt;source&amp;lt;/code&amp;gt; either.&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 executed 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;
==== langdir ====&lt;br /&gt;
: Path to where the language files are located for the &#039;&#039;&#039;-lang&#039;&#039;&#039; subpackage, defaults to &#039;&#039;&#039;/usr/share/locale&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== pcprefix ====&lt;br /&gt;
: Prefix all provides derived from parsing pkg-config Requires: with the value in this variable, example: &#039;&#039;&#039;&#039;pcprefix=&amp;quot;foo:&amp;quot;&#039;&#039;&#039; will produce &#039;&#039;&#039;pc:foo:bar&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==== sonameprefix ====&lt;br /&gt;
: Prefix all provides derived from parsing shared objects with the value in this variable, example: &#039;&#039;&#039;sonameprefix=&amp;quot;foo&amp;quot;&#039;&#039;&#039; will produce &#039;&#039;&#039;so:foo:bar.so.X&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
= Functions =&lt;br /&gt;
{{Note|All functions that are not &#039;&#039;prepare()&#039;&#039;, &#039;&#039;build()&#039;&#039;, &#039;&#039;check()&#039;&#039; and &#039;&#039;package()&#039;&#039; 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;
 sanitycheck() -&amp;gt; clean()-&amp;gt; fetch() -&amp;gt; verify() -&amp;gt; unpack() -&amp;gt; prepare() -&amp;gt; mkusers() -&amp;gt; build() -&amp;gt; check() -&amp;gt; package() -&amp;gt; subpackages() -&amp;gt; language packs -&amp;gt; apk -&amp;gt; cleanup()&lt;br /&gt;
&lt;br /&gt;
== abuild-defined functions ==&lt;br /&gt;
The following functions are provided by abuild and can be overridden, but it is strongly discouraged on code review for some functions:&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;
: unpack() will call default_unpack().&lt;br /&gt;
&lt;br /&gt;
: [https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L403 default_unpack()] unpacks .tar, .tgz, .tar.gz, .tar.lz (only available in Alpine &amp;gt;=3.7), .tar.bz2, .tar.lzma, .tar.xz, and .zip archives from a symlink in &#039;&#039;$srcdir&#039;&#039; associated with &#039;&#039;$SRCDEST&#039;&#039; (or distfiles folder) resulting in an unpacked folder in &#039;&#039;$srcdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==== dev() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-dev&#039;&#039;&#039; package is used to collect developer files and folders for use in other packages in the compilation process nothing more.  Without specifying a custom &#039;&#039;dev()&#039;&#039; function, abuild will call its internal &#039;&#039;dev()&#039;&#039; function, which in turn calls default_dev().&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L1605 default_dev()]&#039;&#039; will move any &#039;&#039;include&#039;&#039; folder and folders containing &#039;&#039;*.[acho]&#039;&#039; (static archive, c source, c header file, object file), &#039;&#039;*.prl&#039;&#039; file extension patterns in &#039;&#039;&amp;quot;$pkgdir&amp;quot;/{lib,usr}&#039;&#039; to &#039;&#039;&amp;quot;$subpkgdir&amp;quot;/{lib,usr}&#039;&#039; recursively; and &#039;&#039;*.so&#039;&#039; files from &#039;&#039;&amp;quot;$pkgdir&amp;quot;/{lib,usr/lib}&#039;&#039; to &#039;&#039;&amp;quot;$subpkgdir&amp;quot;/{lib,usr/lib}&#039;&#039;.  It will also scan and move &#039;&#039;usr/{include,lib/{pkgconfig,cmake,qt*/mkspecs},share/{aclocal,gettext,vala/vapi,gir-[0-9]*,qt*/mkspecs},bin/*-config}}&#039;&#039; developer only folders in &#039;&#039;$pkgdir&#039;&#039; and transfer them to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: In general, default_dev() will support packages that share pkg-config, C programming language API, shared and static libraries, Autotools, gettext, Vala programming language bindings, Python GObject introspection, a provided custom pkg-config like command (*-config), Qt, and CMake.  If you have packages that have C++, other languages, other build system, etc; you need to manually move those developer files only if they are to be used in other packages.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: For default_dev() to be called as in no dev(), you need to explicitly add subpackages=&amp;quot;$pkgname-dev&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== doc() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-doc&#039;&#039;&#039; package whose job is only to collect documentation folders from $pkgdir nothing more.  Without specifying a custom &#039;&#039;doc()&#039;&#039; function, abuild will call its internal &#039;&#039;doc()&#039;&#039; function, which in turn calls default_doc().&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L1519 default_doc()]&#039;&#039; will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/share/{doc,man,info,html,sgml,licenses,gtk-doc,ri,help}&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Overriding this function is strongly discouraged.  Packaging docs should be done in the package() function while letting abuild automatically collect the doc folders.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: For default_doc() to be called as in no doc(), you need to explicitly add subpackages=&amp;quot;$pkgname-doc&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== openrc() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-opernc&#039;&#039;&#039; package whose job is to collect OpenRC service files that are in /etc/init.d and /etc/conf.d.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L1661 default_openrc()]&#039;&#039; will move &#039;&#039;&amp;quot;$pkgdir&amp;quot;/etc/{conf,init}.d&#039;&#039; to &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Overriding this function is strongly discouraged. Packaging OpenRC service definitions should be in the package() function while letting abuild automatically collect the openrc folders.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: for default_openrc() to be called as in no openrc(), you need to explicitly add subpackages=&amp;quot;$pkgname-openrc&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== static() ====&lt;br /&gt;
: Subpackage function for the &#039;&#039;&#039;$pkgname-static&#039;&#039;&#039; package whose job is to collect static libraries that are stored in /lib and /usr/lib.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;[https://github.com/alpinelinux/abuild/blob/v3.4.0_rc4/abuild.in#L1748 default_static()]&#039;&#039; will move all static libraries (files ending with .a) from &#039;&#039;&amp;quot;$pkgdir&amp;quot;/lib&#039;&#039; and &#039;&#039;&amp;quot;$pkgdir&amp;quot;/usr/lib&#039;&#039; to their equivalents in &#039;&#039;$subpkgdir&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Overriding this function is strongly discouraged. Packaging static libraries should be done in the package() function while letting abuild automatically collect the static libraries.&lt;br /&gt;
&lt;br /&gt;
: &#039;&#039;&#039;Important&#039;&#039;&#039;: for default_static() to be called as in no static(), you need to explicitly add subpackages=&amp;quot;$pkgname-static&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== snapshot() ====&lt;br /&gt;
: &#039;&#039;&#039;Optional&#039;&#039;&#039;.  For live APKBUILDs or those with a _cvs, _svn, _git, _hg in their version number, you should create a snapshot function only if there is no download link to an archive file (.zip, .tar.gz, ...) to the commit/hash/tag.  The purpose of the snapshot function is to create an archive of the source code so that the package source code is deterministic, and it doesn&#039;t waste time to fetch the source code but bypasses the download step after snapshotting.  Those that download the source code from a git repository will follow head or the latest change to the source code.  It is better to archive the source code as a zip / tar.gz / tar.bz2 up to the commit or the tag which you are trying to build a package.  If it is not deterministic or not every part of the code frozen in time for every dependency and the main project, then the patches will fail or the package may fail to compile when you revisit the package months or years to backport a patch.&lt;br /&gt;
&lt;br /&gt;
: The default [https://github.com/alpinelinux/abuild/blob/v3.1.0/abuild.in#L2310 snapshot()] function has variables associated with it:&lt;br /&gt;
:* $disturl - the base-url of the place to autoupload the snapshot&lt;br /&gt;
:* $svnurl - Subversion repository &lt;br /&gt;
:* $giturl - Git repository&lt;br /&gt;
&lt;br /&gt;
: The default snapshot() can only support one repository.  It is better to override it if there are multiple repositories involved in your package.  CVS, Mercurial (hg), and alternative version control systems must override the default snapshot().&lt;br /&gt;
&lt;br /&gt;
: See [[APKBUILD_examples:Git_checkout]] to how to use it with git.  It takes 2-3 general steps.  Clone the repository; check it out at a specific revision/commit or tag; then you use an archiver to dump it in the &#039;&#039;$SRCDEST&#039;&#039; variable which points to the distfiles folder and the base path to the full path to the archive that you want to create.  You do this for every internal dependency that the package pulls.&lt;br /&gt;
&lt;br /&gt;
: After you have created your snapshot function, you use &amp;lt;code&amp;gt;abuild snapshot&amp;lt;/code&amp;gt; to run it.  &lt;br /&gt;
&lt;br /&gt;
: The archives produced by the snapshot will be saved in &#039;&#039;/var/cache/distfiles&#039;&#039; or whatever you set for &#039;&#039;$SRCDEST&#039;&#039;.  You may need to create symlinks to the archive if the archive is not saved to the Alpine server.&lt;br /&gt;
&lt;br /&gt;
: After you snapshot it, you need to produce the checksums with &amp;lt;code&amp;gt;abuild checksum&amp;lt;/code&amp;gt; to use it in the APKBUILD creation process.&lt;br /&gt;
&lt;br /&gt;
: This feature is available since Alpine &amp;gt;=2.6.&lt;br /&gt;
&lt;br /&gt;
==== default_prepare() ====&lt;br /&gt;
&lt;br /&gt;
:  Before build preparation it handles set of patches inside &amp;lt;code&amp;gt;$srcdir&amp;lt;/code&amp;gt; and prints failed ones.&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;
: {{note|Please adjust old APKBUILDs, which still have a &#039;&#039;prepare()&#039;&#039; function that does the same as the &#039;&#039;default_prepare()&#039;&#039; when you edit them anyway.}}&lt;br /&gt;
: &#039;&#039;&#039;&#039;&#039;Optional&#039;&#039;.&#039;&#039;&#039;  Used for build preparation: patches, etc, should be applied here. When you don&#039;t specify a custom &#039;&#039;prepare()&#039;&#039;, the built-in &#039;&#039;default_prepare()&#039;&#039; from abuild will be used. It applies patches already (always prepare them in the &amp;lt;code&amp;gt;-p1&amp;lt;/code&amp;gt; format), so &#039;&#039;&#039;usually it makes sense to not create a custom &#039;&#039;prepare()&#039;&#039; function at all!&#039;&#039;&#039; If you do create one, call &#039;&#039;default_prepare()&#039;&#039; inside it:&lt;br /&gt;
&lt;br /&gt;
: Before default_prepare gets called, you can define &#039;&#039;patch_args&#039;&#039; to supply the argument to the patch command in global scope then throw away prepare() so it is unnecessary to use the old template code floating around to patch.  patch_args and autopatching is only available in Alpine &amp;gt;=3.4.  See [[Creating_an_Alpine_package#Patches]] to fix the patch that uses a different patch level (-pX).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prepare() {&lt;br /&gt;
    default_prepare&lt;br /&gt;
    # your custom code here&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&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;
&lt;br /&gt;
: To enable or disable CFLAGS, CXXFLAGS, CMake with option, or configure option per arch, use the CARCH variable:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local cmakeoptions=&lt;br /&gt;
case &amp;quot;$CARCH&amp;quot; in&lt;br /&gt;
        aarch64*|arm*|ppc64le|x86|s390x) cmakeoptions=&amp;quot;$cmakeoptions -DWITH_OPENMP=OFF&amp;quot; ;;&lt;br /&gt;
        x86_64)                          cmakeoptions=&amp;quot;$cmakeoptions -DWITH_OPENMP=ON&amp;quot; ;;&lt;br /&gt;
        *)                               msg &amp;quot;Unable to determine architecture from (CARCH=$CARCH)&amp;quot; ; return 1 ;;&lt;br /&gt;
esac&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: The block can be used in other parts of the APKBUILD even in global.&lt;br /&gt;
&lt;br /&gt;
==== check() ====&lt;br /&gt;
: &#039;&#039;&#039;Required if functionality exists.&#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 (&amp;lt;code&amp;gt;options=&amp;quot;!check&amp;quot;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
: default_check() does nothing.  You need to manually explicitly call the unit tests or test suite yourself.  When you run the test, the program should return with an exit code of 0, indicating the tests were a success.  Unit tests or test suites will do feature tests, per function correctness check, fuzz testing, benchmarks.&lt;br /&gt;
&lt;br /&gt;
: A package may also require additional testing frameworks packages that are external dependencies.  You should add those to the &#039;&#039;checkdepends=&#039;&#039; in Alpine &amp;gt;=3.6 or &#039;&#039;makedepends=&#039;&#039; for older for backporters.  If the testing framework is not available, you need to create a package for it.  If it requires a specific version of a testing framework, consider making it an internal dependency or a new package with a package name containing the major and minor version number like the python packages.&lt;br /&gt;
&lt;br /&gt;
: Generally speaking, you should define the check functions for libraries, large programs like web browsers, or compilers and interpreters, cryptographic/security/anonymity stuff, mission critical stuff, PCI compliance/money/accounting software, server software with a lot of stakeholders or consumers.  Soon for the new policy change will have virtually &#039;&#039;&#039;all packages with testing capabilities be required to have a working and defined check() function&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: There are times when the unit tests do not work, just because the test itself is broken, new unimplemented feature, external factors not taken into consideration, unbundling path differences, breakage caused by ccache, missing test dependency or version mismatch dependency as in python2 vs python3, test scripts only work for particular language implementation like only supporting python2 but not python3 having used the 2to3 conversion script.  If a unit test is known not to work, you may need to patch it to omit that test or fix it; but, certain tests should not be disabled if it is important.  You may need to alter the references to uncompiled internal dependencies to work with the external dependencies instead.  For ccache, you can either disable it or remove it from the PATH environmental variable before running tests.&lt;br /&gt;
&lt;br /&gt;
{{Note|Tests for graphical applications and toolkits might work on a X11 user setup but will fail on the server unless run with xvfb-run.}}&lt;br /&gt;
&lt;br /&gt;
: If you don&#039;t add the &#039;&#039;check()&#039;&#039; and the &#039;&#039;options=&#039;&#039;, this is what you will see:&lt;br /&gt;
&lt;br /&gt;
  &amp;gt;&amp;gt;&amp;gt; WARNING: py-webtest*: APKBUILD does not run any tests!&lt;br /&gt;
    Alpine policy will soon require that packages have any relevant testsuites run during the build process.&lt;br /&gt;
    To fix, either define a check() function, or declare !check in $options to indicate the package does not have a testsuite.&lt;br /&gt;
&lt;br /&gt;
: If you do not do a check or disable it, you must state there is no testsuite in comment form (#) next to options=&amp;quot;!check&amp;quot; for the code reviewers.&lt;br /&gt;
&lt;br /&gt;
: To run test suite with autotools do:&lt;br /&gt;
&lt;br /&gt;
  make check&lt;br /&gt;
&lt;br /&gt;
: To run the test suite with python setuptools:&lt;br /&gt;
&lt;br /&gt;
  python2 setup.py test&lt;br /&gt;
  python3 setup.py test&lt;br /&gt;
&lt;br /&gt;
: For python it should be &#039;&#039;&#039;test&#039;&#039;&#039; not check.  Check for python setuptools will check the packaging metadata fields[https://docs.python.org/3/distutils/examples.html#checking-a-package] only but not run the unit tests.  There should be verbose output also.  The dependencies for the tests are found in test_require in the setup.py.&lt;br /&gt;
&lt;br /&gt;
: If it says &amp;lt;code&amp;gt;Ran 0 tests in 0.000s&amp;lt;/code&amp;gt; that is not acceptable.  check() will say it was good but it is not actually correct.  It needs to run the test suite with an alternative method like &amp;lt;code&amp;gt;tox -e py27,py36&amp;lt;/code&amp;gt; if you see a tox.ini file.&lt;br /&gt;
&lt;br /&gt;
: You want to do it for each implementation to ensure that the API calls are correct per implementation but ncopa said it was just fine with python3.&lt;br /&gt;
&lt;br /&gt;
: If there is a circular dependency for the checkdepends=, you need to disable the check and put the reason next to &amp;lt;code&amp;gt;options=&amp;quot;!check&amp;quot;&amp;lt;/code&amp;gt; that there is a circular dependency.  You should disable it for the package that package that is least important or least security risk.  The other solution is to make the conflicting dependency an internal dependency but making sure that it doesn&#039;t pull it at check time.  This way they can both preform tests properly.&lt;br /&gt;
&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;
= Version =&lt;br /&gt;
&lt;br /&gt;
This document assumes abuild for Alpine Edge.  For older releases of abuild, some of these features may not be available if you are using an older release.  A link to the implementation is linked for researchers and backporters.&lt;br /&gt;
&lt;br /&gt;
For more information see [[APKBUILD_versions]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Thermi</name></author>
	</entry>
</feed>