From: Sven Velt Date: Sun, 17 Oct 2010 13:51:47 +0000 (+0200) Subject: Rename check-mk-web to check-mk-multisite X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=41f44a39d2e883e70037085d8b33acd8e88494a4;p=pkg-check_mk.git Rename check-mk-web to check-mk-multisite --- diff --git a/debian/check-mk-multisite.dirs b/debian/check-mk-multisite.dirs new file mode 100644 index 0000000..0376e88 --- /dev/null +++ b/debian/check-mk-multisite.dirs @@ -0,0 +1,2 @@ +etc/check_mk +var/lib/check_mk/ diff --git a/debian/check-mk-multisite.install b/debian/check-mk-multisite.install new file mode 100644 index 0000000..c122903 --- /dev/null +++ b/debian/check-mk-multisite.install @@ -0,0 +1,4 @@ +usr/share/check_mk/web +etc/apache2/conf.d/zzz_check_mk.conf +etc/check_mk/multisite.mk +var/lib/check_mk/web diff --git a/debian/check-mk-multisite.postinst b/debian/check-mk-multisite.postinst new file mode 100644 index 0000000..a1aa1b3 --- /dev/null +++ b/debian/check-mk-multisite.postinst @@ -0,0 +1,32 @@ +#!/bin/bash + +set -e + +. /usr/share/debconf/confmodule + +setperm() { + local user="$1" + local group="$2" + local mode="$3" + local file="$4" + shift 4 + # only do something when no setting exists + if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then + chown "$user":"$group" "$file" + chmod "$mode" "$file" + fi +} + +case "$1" in + configure) + # explicitly set permissions on some files + setperm www-data www-data 770 /var/lib/check_mk/web + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \$1'" >&2 + exit 1 + ;; +esac + diff --git a/debian/check-mk-web.dirs b/debian/check-mk-web.dirs deleted file mode 100644 index 0376e88..0000000 --- a/debian/check-mk-web.dirs +++ /dev/null @@ -1,2 +0,0 @@ -etc/check_mk -var/lib/check_mk/ diff --git a/debian/check-mk-web.install b/debian/check-mk-web.install deleted file mode 100644 index c122903..0000000 --- a/debian/check-mk-web.install +++ /dev/null @@ -1,4 +0,0 @@ -usr/share/check_mk/web -etc/apache2/conf.d/zzz_check_mk.conf -etc/check_mk/multisite.mk -var/lib/check_mk/web diff --git a/debian/check-mk-web.postinst b/debian/check-mk-web.postinst deleted file mode 100644 index a1aa1b3..0000000 --- a/debian/check-mk-web.postinst +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -set -e - -. /usr/share/debconf/confmodule - -setperm() { - local user="$1" - local group="$2" - local mode="$3" - local file="$4" - shift 4 - # only do something when no setting exists - if ! dpkg-statoverride --list "$file" >/dev/null 2>&1; then - chown "$user":"$group" "$file" - chmod "$mode" "$file" - fi -} - -case "$1" in - configure) - # explicitly set permissions on some files - setperm www-data www-data 770 /var/lib/check_mk/web - ;; - abort-upgrade|abort-remove|abort-deconfigure) - ;; - *) - echo "postinst called with unknown argument \$1'" >&2 - exit 1 - ;; -esac - diff --git a/debian/control b/debian/control index 83c5c96..ee2e796 100644 --- a/debian/control +++ b/debian/control @@ -74,7 +74,7 @@ Description: general purpose nagios-plugin for retrieving data . This package contains livestatus -Package: check-mk-web +Package: check-mk-multisite Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libapache2-mod-python Suggests: check-mk-livestatus