mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Clean up maintainer scripts
This commit is contained in:
parent
c936ecc1af
commit
5412eb348f
6 changed files with 25 additions and 27 deletions
10
dist/debian/arsse.config
vendored
10
dist/debian/arsse.config
vendored
|
@ -4,15 +4,13 @@ set -e
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
# Settings for dbconfig-common
|
# Set up dbconfig-common
|
||||||
dbc_authmethod_user=password
|
|
||||||
dbc_dbtypes="sqlite3, pgsql, mysql"
|
|
||||||
|
|
||||||
# Do dbconfig-common magic
|
|
||||||
if test -f /usr/share/dbconfig-common/dpkg/config; then
|
if test -f /usr/share/dbconfig-common/dpkg/config; then
|
||||||
. /usr/share/dbconfig-common/dpkg/config
|
. /usr/share/dbconfig-common/dpkg/config
|
||||||
|
dbc_dbtypes="sqlite3, pgsql, mysql"
|
||||||
|
dbc_authmethod_user="password"
|
||||||
dbc_go arsse "$@"
|
dbc_go arsse "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ask all the questions
|
# Prompt for dbconfig-common configuration
|
||||||
db_go || true
|
db_go || true
|
||||||
|
|
18
dist/debian/arsse.postinst
vendored
18
dist/debian/arsse.postinst
vendored
|
@ -4,18 +4,16 @@ set -e
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
# Settings for dbconfig-common
|
# Set up dbconfig-common
|
||||||
dbc_generate_include_owner=root:www-data
|
|
||||||
dbc_generate_include_perms=0640
|
|
||||||
dbc_generate_include=php:/var/lib/arsse/dbconfig.inc
|
|
||||||
dbc_pgsql_createdb_encoding="UTF8' lc_collate='C"
|
|
||||||
dbc_mysql_createdb_encoding="UTF8"
|
|
||||||
dbc_dbfile_owner=root:www-data
|
|
||||||
dbc_dbfile_perms=0660
|
|
||||||
|
|
||||||
# Do dbconfig-common installation stuff
|
|
||||||
if test -f /usr/share/dbconfig-common/dpkg/postinst; then
|
if test -f /usr/share/dbconfig-common/dpkg/postinst; then
|
||||||
. /usr/share/dbconfig-common/dpkg/postinst
|
. /usr/share/dbconfig-common/dpkg/postinst
|
||||||
|
dbc_generate_include_owner="root:www-data"
|
||||||
|
dbc_generate_include_perms="0640"
|
||||||
|
dbc_generate_include="php:/var/lib/arsse/dbconfig.inc"
|
||||||
|
dbc_pgsql_createdb_encoding="UTF8' lc_collate='C"
|
||||||
|
dbc_mysql_createdb_encoding="UTF8"
|
||||||
|
dbc_dbfile_owner="root:www-data"
|
||||||
|
dbc_dbfile_perms="0660"
|
||||||
dbc_go arsse "$@"
|
dbc_go arsse "$@"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
2
dist/debian/arsse.postrm
vendored
2
dist/debian/arsse.postrm
vendored
|
@ -6,7 +6,7 @@ if test -f /usr/share/debconf/confmodule; then
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do dbconfig-common removal stuff
|
# Set up dbconfig-common
|
||||||
if test -f /usr/share/dbconfig-common/dpkg/postrm; then
|
if test -f /usr/share/dbconfig-common/dpkg/postrm; then
|
||||||
. /usr/share/dbconfig-common/dpkg/postrm
|
. /usr/share/dbconfig-common/dpkg/postrm
|
||||||
dbc_go arsse "$@"
|
dbc_go arsse "$@"
|
||||||
|
|
2
dist/debian/arsse.prerm
vendored
2
dist/debian/arsse.prerm
vendored
|
@ -4,7 +4,7 @@ set -e
|
||||||
|
|
||||||
. /usr/share/debconf/confmodule
|
. /usr/share/debconf/confmodule
|
||||||
|
|
||||||
# Do dbconfig-common prerm stuff
|
# Set up dbconfig-common
|
||||||
. /usr/share/dbconfig-common/dpkg/prerm
|
. /usr/share/dbconfig-common/dpkg/prerm
|
||||||
dbc_go arsse "$@"
|
dbc_go arsse "$@"
|
||||||
|
|
||||||
|
|
2
dist/debian/lintian-overrides
vendored
2
dist/debian/lintian-overrides
vendored
|
@ -2,3 +2,5 @@
|
||||||
spelling-error-in-description Tiny Tiny (duplicate word) Tiny
|
spelling-error-in-description Tiny Tiny (duplicate word) Tiny
|
||||||
# The manual for DrUUID (a dependency) includes a harmless "up" link
|
# The manual for DrUUID (a dependency) includes a harmless "up" link
|
||||||
privacy-breach-generic usr/share/arsse/vendor/jkingweb/druuid/documentation/manual.html [<link rel="up" href="http://jkingweb.ca/code/">] (http://jkingweb.ca/code/)
|
privacy-breach-generic usr/share/arsse/vendor/jkingweb/druuid/documentation/manual.html [<link rel="up" href="http://jkingweb.ca/code/">] (http://jkingweb.ca/code/)
|
||||||
|
# We only ask dbconfig-common questions, which don't seem to require templates
|
||||||
|
no-debconf-templates
|
||||||
|
|
Loading…
Reference in a new issue