Browse Source

Prototype Debian maintainer scripts

rpm
J. King 3 years ago
parent
commit
93bcf93685
  1. 2
      dist/debian/.gitignore
  2. 18
      dist/debian/arsse.config
  3. 27
      dist/debian/arsse.postinst
  4. 20
      dist/debian/arsse.postrm
  5. 16
      dist/debian/arsse.prerm

2
dist/debian/.gitignore

@ -1,6 +1,6 @@
*
!.gitignore
!arsse.install
!arsse.*
!compat
!control
!copyright

18
dist/debian/arsse.config

@ -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

@ -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

@ -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

@ -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…
Cancel
Save