From 4ff59715d972f8841481987878e6aa8bf966f5d8 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Sat, 4 Feb 2006 22:51:47 +0000 Subject: * added a postrm/prerm script * added the watch file git-svn-id: file:///home/lennart/svn/public/mod_mime_xattr/trunk@22 f01872de-66d6-0310-9185-fc3b30f50adc --- debian/libapache2-mod-mime-xattr.postinst | 20 ++++++++++++++++++++ debian/libapache2-mod-mime-xattr.prerm | 15 +++++++++++++++ debian/watch | 2 ++ 3 files changed, 37 insertions(+) create mode 100644 debian/libapache2-mod-mime-xattr.postinst create mode 100644 debian/libapache2-mod-mime-xattr.prerm create mode 100644 debian/watch diff --git a/debian/libapache2-mod-mime-xattr.postinst b/debian/libapache2-mod-mime-xattr.postinst new file mode 100644 index 0000000..3a9670c --- /dev/null +++ b/debian/libapache2-mod-mime-xattr.postinst @@ -0,0 +1,20 @@ +#!/bin/sh -e + +set -e + +#DEBHELPER# + +if [ "$1" != "configure" ]; then + exit 0 +fi + +if [ -n "$2" ]; then +# we're upgrading, don't ask again + exit 0 +fi + +if [ -e /etc/apache2/apache2.conf ]; then + /usr/sbin/a2enmod mod_mime_xattr || true +fi + +exit 0 diff --git a/debian/libapache2-mod-mime-xattr.prerm b/debian/libapache2-mod-mime-xattr.prerm new file mode 100644 index 0000000..2d9dd5f --- /dev/null +++ b/debian/libapache2-mod-mime-xattr.prerm @@ -0,0 +1,15 @@ +#!/bin/bash + +set -e + +#DEBHELPER# + +if [ "$1" != "remove" -a "$1" != "purge" ]; then + exit 0 +fi + +if [ -e /etc/apache2/apache2.conf ]; then + /usr/sbin/a2dismod mod_mime_xattr || true +fi + +exit 0 diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..da12fb0 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://0pointer.de/lennart/projects/mod_mime_xattr/mod_mime_xattr-(.*)\.tar\.gz \ No newline at end of file -- cgit