diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2006-02-04 22:51:47 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2006-02-04 22:51:47 +0000 |
commit | 4ff59715d972f8841481987878e6aa8bf966f5d8 (patch) | |
tree | e904154f0b8a477e2b6793de44cf5a7c6c8c1275 | |
parent | fd1594b909f49c8e08734d00a7a989d6edd391a8 (diff) |
* 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
-rw-r--r-- | debian/libapache2-mod-mime-xattr.postinst | 20 | ||||
-rw-r--r-- | debian/libapache2-mod-mime-xattr.prerm | 15 | ||||
-rw-r--r-- | debian/watch | 2 |
3 files changed, 37 insertions, 0 deletions
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 |