mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
packaging: build debian packages
Simple example configuration, quick & dirty but functional. Didn't care about a config, as that will be handled by the setup wizard. refs #6402
This commit is contained in:
parent
1ebab3e5c1
commit
6e6df999dd
4
.gitignore
vendored
4
.gitignore
vendored
@ -37,3 +37,7 @@ config/preferences/*.ini
|
||||
|
||||
# Application logfiles
|
||||
var/log/*.log
|
||||
|
||||
/debian
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
icingaweb (2.0.0~beta1) unstable; urgency=low
|
||||
icingaweb (2.0.0~alpha1) unstable; urgency=low
|
||||
|
||||
* First beta release (Closes: #0000)
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
Source: icingaweb
|
||||
Section: main
|
||||
Section: upstream
|
||||
Maintainer: Icinga Development Team <info@icinga.org>
|
||||
Priority: optional
|
||||
Build-Depends: debhelper (>=9)
|
||||
Standards-Version: 3.9.4
|
||||
@ -13,9 +14,21 @@ Suggests: php5-pgsql
|
||||
Description: Icinga PHP libraries
|
||||
PHP libraries
|
||||
|
||||
Package: libicinga-vendor-php
|
||||
Architecture: any
|
||||
Depends: libicinga-php
|
||||
Description: Icinga PHP vendor libraries
|
||||
PHP vendor libraries
|
||||
|
||||
Package: libicinga-common-php
|
||||
Architecture: any
|
||||
Depends: libicinga-php, libicinga-vendor-php
|
||||
Description: Icinga PHP common libraries
|
||||
PHP common libraries, application and modules
|
||||
|
||||
Package: icingacli
|
||||
Architecture: any
|
||||
Depends: libicingaweb-php (>= 2.0.0~beta1)
|
||||
Depends: libicinga-common-php (>= 2.0.0~alpha1)
|
||||
Description: Icinga CLI tool
|
||||
The Icinga CLI allows one to access it's Icinga monitoring
|
||||
system from a terminal.
|
||||
@ -24,8 +37,8 @@ Description: Icinga CLI tool
|
||||
|
||||
Package: icingaweb
|
||||
Architecture: any
|
||||
Depends: libicingaweb-php (>= 2.0.0~beta1)
|
||||
Depends: libicinga-common-php (>= 2.0.0~alpha1), libapache2-mod-php5
|
||||
Recommends: php5-gd, icingacli
|
||||
Suggests: php5-ldap
|
||||
Description: Icinga Web Frontend
|
||||
Icinga Web is a modular web frontend designed
|
||||
Icinga Web is a modular web frontend
|
||||
|
@ -1 +1,2 @@
|
||||
bin/icingacli /usr/bin/
|
||||
packages/files/bin/icingacli usr/bin
|
||||
etc/bash_completion.d etc/bash_completion.d
|
||||
|
@ -1 +1,5 @@
|
||||
public /usr/share/icingaweb/
|
||||
public/css usr/share/icingaweb/public
|
||||
public/img usr/share/icingaweb/public
|
||||
public/js usr/share/icingaweb/public
|
||||
packages/files/public/index.php usr/share/icingaweb/public
|
||||
packages/files/icingaweb-apache2.conf etc/apache2/conf.d
|
||||
|
1
packages/debian/libicinga-common-php.dirs
Normal file
1
packages/debian/libicinga-common-php.dirs
Normal file
@ -0,0 +1 @@
|
||||
etc/icingaweb
|
2
packages/debian/libicinga-common-php.install
Normal file
2
packages/debian/libicinga-common-php.install
Normal file
@ -0,0 +1,2 @@
|
||||
application usr/share/icingaweb
|
||||
modules usr/share/icingaweb
|
@ -1,3 +1 @@
|
||||
library/Icinga /usr/share/php/
|
||||
application /usr/share/icingaweb/
|
||||
modules /usr/share/icingaweb/
|
||||
library/Icinga usr/share/php
|
||||
|
1
packages/debian/libicinga-vendor-php.install
Normal file
1
packages/debian/libicinga-vendor-php.install
Normal file
@ -0,0 +1 @@
|
||||
library/IcingaVendor usr/share/php
|
@ -4,3 +4,32 @@
|
||||
%:
|
||||
dh $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_clean
|
||||
|
||||
build:
|
||||
dh_testdir
|
||||
|
||||
binary:
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
dh_install
|
||||
dh_installchangelogs
|
||||
dh_installexamples
|
||||
dh_installman
|
||||
dh_installcron
|
||||
dh_installdebconf
|
||||
dh_installinfo
|
||||
dh_installinit
|
||||
dpkg-statoverride --force --add root www-data 2775 /etc/icingaweb
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_strip
|
||||
dh_shlibdeps
|
||||
dh_installdeb
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
|
6
packages/files/bin/icingacli
Executable file
6
packages/files/bin/icingacli
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
|
||||
define('ICINGAWEB_APPDIR', '/usr/share/icingaweb/application');
|
||||
require_once 'Icinga/Application/Cli.php';
|
||||
Icinga\Application\Cli::start()->dispatch();
|
19
packages/files/icingaweb-apache2.conf
Normal file
19
packages/files/icingaweb-apache2.conf
Normal file
@ -0,0 +1,19 @@
|
||||
Alias /icingaweb "/usr/share/icingaweb/public"
|
||||
|
||||
<Directory "/usr/share/icingaweb/public">
|
||||
Options SymLinksIfOwnerMatch
|
||||
AllowOverride None
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
|
||||
# SetEnv ICINGAWEB_CONFIGDIR /etc/icingaweb
|
||||
|
||||
RewriteEngine on
|
||||
RewriteBase /icingaweb/
|
||||
RewriteCond %{REQUEST_FILENAME} -s [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^.*$ - [NC,L]
|
||||
RewriteRule ^.*$ index.php [NC,L]
|
||||
</Directory>
|
||||
|
4
packages/files/public/index.php
Normal file
4
packages/files/public/index.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
define('ICINGAWEB_APPDIR', dirname(__DIR__) . '/application');
|
||||
require_once 'Icinga/Application/webrouter.php';
|
Loading…
x
Reference in New Issue
Block a user