From c740d1cf85e35ef664e77960a07652a3b380fa0b Mon Sep 17 00:00:00 2001 From: hfrenzel-guest Date: Tue, 28 Aug 2007 20:38:17 +0000 Subject: [PATCH] Used ucf for installing/updating nagvis' apache.conf git-svn-id: svn://svn.debian.org/svn/pkg-nagios/nagvis/trunk@1213 98d490a6-b407-0410-aaaa-fdee166ba3f5 --- debian/changelog | 1 + debian/examples | 1 - debian/postinst | 4 ++++ debian/rules | 4 ++++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index fe7b25d..9a25daf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ nagvis (1.1rc3-2) unstable; urgency=low * Moved from misc to net section * Removed unneeded stuff in debian/rules + * Installed apache.conf with ucf -- Hendrik Frenzel Tue, 28 Aug 2007 21:09:01 +0200 diff --git a/debian/examples b/debian/examples index f7d4e5e..fa0fd9b 100644 --- a/debian/examples +++ b/debian/examples @@ -1,4 +1,3 @@ dist/class.GlobalBackend-html.php dist/class.GlobalBackend-html.readme debian/tmp/demo -debian/apache.conf diff --git a/debian/postinst b/debian/postinst index 31e91d2..924f94b 100644 --- a/debian/postinst +++ b/debian/postinst @@ -38,6 +38,8 @@ setperm() { # thx 2 nagios2/debian/nagios2-common.postinst chown "$user":"$group" "$file" chmod "$mode" "$file" fi + + } case "$1" in @@ -48,6 +50,8 @@ case "$1" in done setperm www-data www-data 0775 /usr/share/nagvis/htdocs/nagvis/images/maps setperm www-data www-data 0775 /usr/share/nagvis/htdocs/nagvis/etc/maps + + ucf /usr/share/nagvis/debian/apache.conf /etc/nagvis/apache.conf ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/rules b/debian/rules index 1590cd1..4ed8781 100755 --- a/debian/rules +++ b/debian/rules @@ -64,6 +64,10 @@ install: build mv $(DEST)/usr/share/nagvis/htdocs/nagvis/images/maps/nagvis-demo.png \ $(DEST)/demo/nagvis/images/maps/ + # config templates + mkdir -p $(DEST)/usr/share/nagvis/debian + cp debian/apache.conf $(DEST)/usr/share/nagvis/debian/ + dh_installdirs dh_install dh_link -- 2.30.2