Difference between revisions of "Web application package guidelines"

From ArchWiki
Jump to: navigation, search
m (add ring template)
(added examples of packages, removed unexplained stub template)
Line 1: Line 1:
 
[[Category:Package development]]
 
[[Category:Package development]]
 
{{Package Guidelines}}
 
{{Package Guidelines}}
{{stub}}
 
This page describes how to package web application which tends to install into /srv/http. (For example packages written in php)
 
  
==Directory structure==
+
This page describes how to package web application which tends to install into {{Ic|/srv/http}} (for example packages written in php, such as {{Pkg|phpmyadmin}} and {{Pkg|phpvirtualbox}}).
  
 +
==Directory structure==
 
Layout example:
 
Layout example:
  
* /etc/webapps/$pkgname
+
* {{Ic|/etc/webapps/''$pkgname''}}
* /etc/webapps/$pkgname/apache.example.conf
+
* {{Ic|/usr/share/webapps/''$pkgname''}}
* /etc/webapps/$pkgname/nginx.example.conf
+
* {{Ic|/var/...}} (according to generic FHS conventions)
* /etc/webapps/$pkgname/other-web-server.example.conf
+
 
* /usr/share/webapps/$pkgname
+
{{Ic|/usr/share/webapps/''$pkgname''}} files and/or directories should be symlinked into {{Ic|/var}} and {{Ic|/etc/}}.
* /var/... (according to generic FHS conventions)
+
  
/var and /etc/ files and/or directories should be symlinked into /usr/share/webapps/$pkgname.
+
{{Ic|/etc/webapps/''$pkgname''}} should contain some examples which helps to setup web-server to run this web application:
  
/etc/webapps/$pkgname/ should contain some examples which helps to setup web-server to run this web application.
+
* {{Ic|/etc/webapps/''$pkgname''/apache.example.conf}}
 +
* {{Ic|/etc/webapps/''$pkgname''/nginx.example.conf}}
 +
* {{Ic|/etc/webapps/''$pkgname''/other-web-server.example.conf}}

Revision as of 02:18, 31 August 2012

Template:Package Guidelines

This page describes how to package web application which tends to install into /srv/http (for example packages written in php, such as phpmyadmin and phpvirtualbox).

Directory structure

Layout example:

  • /etc/webapps/$pkgname
  • /usr/share/webapps/$pkgname
  • /var/... (according to generic FHS conventions)

/usr/share/webapps/$pkgname files and/or directories should be symlinked into /var and /etc/.

/etc/webapps/$pkgname should contain some examples which helps to setup web-server to run this web application:

  • /etc/webapps/$pkgname/apache.example.conf
  • /etc/webapps/$pkgname/nginx.example.conf
  • /etc/webapps/$pkgname/other-web-server.example.conf