diff options
author | intrigeri <intrigeri@boum.org> | 2013-05-29 13:29:46 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2013-05-29 13:30:48 +0200 |
commit | acf1d04488605989dbf105fa966a144abc5a6b7b (patch) | |
tree | 1f8aebde18527321ae875883b2733d2f12d06923 | |
parent | 3c55acfa36c9c4d79638c7a17ee4952c5e00647a (diff) |
Install default configuration file to /usr/share/metche/config, postinst may not rely on /usr/share/doc/metche (Policy 12.3).
-rw-r--r-- | debian/dirs | 1 | ||||
-rw-r--r-- | debian/examples | 1 | ||||
-rw-r--r-- | debian/postinst | 2 | ||||
-rwxr-xr-x | debian/rules | 1 |
4 files changed, 3 insertions, 2 deletions
diff --git a/debian/dirs b/debian/dirs index eecc945..00b09f6 100644 --- a/debian/dirs +++ b/debian/dirs @@ -2,4 +2,5 @@ etc etc/cron.d usr/sbin usr/share/man/man8 +usr/share/metche/config var/lib/metche diff --git a/debian/examples b/debian/examples deleted file mode 100644 index 6ed023a..0000000 --- a/debian/examples +++ /dev/null @@ -1 +0,0 @@ -metche.conf.default diff --git a/debian/postinst b/debian/postinst index 06b1c82..54cf100 100644 --- a/debian/postinst +++ b/debian/postinst @@ -7,7 +7,7 @@ set -e case "$1" in configure) TEMPFILE=`tempfile` - cat "/usr/share/doc/metche/examples/metche.conf.default" > "$TEMPFILE" + cat "/usr/share/metche/config/metche.conf.default" > "$TEMPFILE" db_get metche/email EMAIL_ADDRESS="$RET" diff --git a/debian/rules b/debian/rules index ef735fb..d5650e4 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,7 @@ override_dh_install: dh_install cp $(CURDIR)/metche $(DESTDIR)/usr/sbin cp $(CURDIR)/metche.8 $(DESTDIR)/usr/share/man/man8 + install -m 0644 $(CURDIR)/metche.conf.default $(DESTDIR)/usr/share/metche/config/ chown root:staff $(DESTDIR)/var/lib/metche chmod 750 $(DESTDIR)/var/lib/metche |