Skip to content

Commit

Permalink
Update deb package schema for current composer
Browse files Browse the repository at this point in the history
Upgrade all using apps by composer-global-update in postinst
  • Loading branch information
Vitexus committed Mar 3, 2019
1 parent 135b586 commit 2820d87
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
4 changes: 2 additions & 2 deletions debian/composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ease-core",
"description": "An PHP Framework for Ease of writing Applications (debianized)",
"name": "vitexsoftware/ease-core",
"description": "An Core of PHP Framework for Ease of writing Applications (debianized)",
"version": "0.1",
"authors": [
{
Expand Down
4 changes: 2 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Uploaders: Vitex <[email protected]>
Priority: optional
Homepage: https://github.com/VitexSoftware/ease-core

Package: ease-core
Depends: ${misc:Depends},libjs-jquery (>= 1.4), libjs-jquery-ui, php-mail, php-mail-mime, libjs-bootstrap, php-mdb2-driver-mysql
Package: php-ease-core
Depends: ${misc:Depends},libjs-jquery (>= 1.4), php-mail, php-mail-mime, composer
Architecture: all
Suggests: composer
Section: web
Expand Down
40 changes: 40 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh
# postinst script for ease-core
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
configure)

composer-global-update ease-core

;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

exit 0

0 comments on commit 2820d87

Please sign in to comment.