aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog4
-rw-r--r--debian/control2
-rw-r--r--debian/sitesummary.links1
-rw-r--r--debian/sitesummary.postinst2
4 files changed, 7 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index 54eb06e..726ae80 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,10 @@ sitesummary (0.0.14~1) unstable; urgency=low
* Correct typo in recommends list for sitesummary-client;
dmidecide->dmidecode. (Closes: #391255)
+ * Add symlink from /etc/apache/conf.d/sitesummary to
+ /etc/apache2/conf.d/sitesummary, to work with both apache and
+ apache2. Adjust dependency accordingly, and rewrite postinst to
+ continue working when apache2-common isn't installed.
-- Petter Reinholdtsen <pere@debian.org> Fri, 6 Oct 2006 17:17:17 +0200
diff --git a/debian/control b/debian/control
index d2cb0b1..7645912 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Standards-Version: 3.7.2
Package: sitesummary
Architecture: all
-Depends: gnupg, apache2-common
+Depends: gnupg
Recommends: ${misc:Depends}, apache2-mpm-worker | httpd, sitesummary-client
Description: Generate site summary of submitting hosts (server part)
The sitesummary system makes it easier to keep track of a lot of
diff --git a/debian/sitesummary.links b/debian/sitesummary.links
new file mode 100644
index 0000000..5d00c2f
--- /dev/null
+++ b/debian/sitesummary.links
@@ -0,0 +1 @@
+/etc/apache2/conf.d/sitesummary /etc/apache/conf.d/sitesummary
diff --git a/debian/sitesummary.postinst b/debian/sitesummary.postinst
index 84b3f88..7a77533 100644
--- a/debian/sitesummary.postinst
+++ b/debian/sitesummary.postinst
@@ -4,7 +4,7 @@ set -e
# Adjust to the new config location, in /etc/apache2/conf.d/sitesummary
if [ -f /etc/apache2/sites-available/sitesummary ]; then
- a2dissite sitesummary
+ [ -x /usr/sbin/a2dissite ] && a2dissite sitesummary
rm /etc/apache2/sites-available/sitesummary
fi