Prototype Debian maintainer scripts
This commit is contained in:
parent
46e20be983
commit
93bcf93685
5 changed files with 82 additions and 1 deletions
2
dist/debian/.gitignore
vendored
2
dist/debian/.gitignore
vendored
|
@ -1,6 +1,6 @@
|
|||
*
|
||||
!.gitignore
|
||||
!arsse.install
|
||||
!arsse.*
|
||||
!compat
|
||||
!control
|
||||
!copyright
|
||||
|
|
18
dist/debian/arsse.config
vendored
Normal file
18
dist/debian/arsse.config
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
# Settings for 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
|
||||
. /usr/share/dbconfig-common/dpkg/config
|
||||
dbc_go arsse "$@"
|
||||
fi
|
||||
|
||||
# Ask all the questions
|
||||
db_go || true
|
27
dist/debian/arsse.postinst
vendored
Normal file
27
dist/debian/arsse.postinst
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
# Settings for 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
|
||||
. /usr/share/dbconfig-common/dpkg/postinst
|
||||
dbc_go arsse "$@"
|
||||
fi
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
20
dist/debian/arsse.postrm
vendored
Normal file
20
dist/debian/arsse.postrm
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if test -f /usr/share/debconf/confmodule; then
|
||||
. /usr/share/debconf/confmodule
|
||||
fi
|
||||
|
||||
# Do dbconfig-common removal stuff
|
||||
if test -f /usr/share/dbconfig-common/dpkg/postrm; then
|
||||
. /usr/share/dbconfig-common/dpkg/postrm
|
||||
dbc_go arsse "$@"
|
||||
fi
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
16
dist/debian/arsse.prerm
vendored
Normal file
16
dist/debian/arsse.prerm
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
# Do dbconfig-common prerm stuff
|
||||
. /usr/share/dbconfig-common/dpkg/prerm
|
||||
dbc_go arsse "$@"
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
Loading…
Reference in a new issue