Loading...
 
Skip to main content

History: DEB Packaging

Source of version: 38 (current)

Copy to clipboard
This page is about packaging Tiki in Debian like GNU/Linux distribution.
The goal is to feet Tiki with the FHS architecture and build a solid debian package which will be accepted by all Debian like distributions( mainly (U|Ku|Edu)buntu and Debian ).

Package 3.3 and 4.1 will be soon in the repository.

!#Tools Required to build package

lintian : these programs will check for many common packaging errors
{CODE(wrap="1" colors="bash")}
apt-get install debian-policy svn-buildpackage pbuilder dpatch debian-keyrings watchupstream lintian patchutils dput devscripts debian-keyring dh-make debhelper fakeroot
{CODE}

!#File require by debian
{snarf url="https://raw.github.com/changi67/tikidebpackage/master/debian/control"}
{snarf url="https://raw.github.com/changi67/tikidebpackage/master/debian/copyright"}
!#What to move to fit FHS
{CODE()}/etc/tiki10/_htaccess		/usr/share/tiki10/htdocs/.htaccess
/etc/tiki10/db			/usr/share/tiki10/htdocs/db
/var/lib/tiki10/dump		/usr/share/tiki10/htdocs/dump
/var/lib/tiki10/maps		/usr/share/tiki10/htdocs/maps
/var/cache/tiki10/temp		/usr/share/tiki10/htdocs/temp
/var/cache/tiki10/templates_c	/usr/share/tiki10/htdocs/templates_c
/var/cache/tiki10/modules/cache	/usr/share/tiki10/htdocs/modules/cache
/var/lib/tiki10/tiki_tests/tests	/usr/share/tiki10/htdocs/tiki_tests/tests
/etc/tiki10/db/tiki.sql		/usr/share/dbconfig-common/data/tiki10/install/mysql
svntiki/temp -> /var/cache/tiki/temp
svntiki/templates -> /var/lib/tiki/templates
svntiki/templates_c -> /var/cache/tiki/templates_c
svntiki/whelp -> /var/lib/tiki/whelp
{CODE}

!#Testing Area

You can test the current package based on Tiki 3.3, downloading from http://archives.tiki.org/debian/main/t/tiki/tiki_3.3.0-1_all.deb or adding this to your sources.list
{CODE(caption="/etc/apt/sources.list" colors="sh")}deb http://archives.tiki.org/debian/ stable main
{CODE}

{CODE(caption="To add key file",colors="shell")}
as root
wget -q -O- http://archives.tiki.org/keys/public.asc | apt-key add -
or
as user (On ubuntu)
wget -q -O- http://archives.tiki.org/keys/public.asc | sudo apt-key add -

{CODE}


! Related
* ((Ubuntu Packaging))
* ((Configuration Management and Systems Orchestration))
* http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427655
* ((doc:Install on Debian))
* https://github.com/DrDub/tikidebpackage
* [https://github.com/matomo-org/matomo-package|Matomo release script (official package), and debian/ubuntu package (allows sysadmins to deploy Matomo within seconds using "apt-get install piwik -V")]

-=alias=-
* (alias(Debian))
Show PHP error messages