51 kx #!/bin/sh
51 kx
51 kx # arg 1: the new package version
51 kx pre_install() {
51 kx /bin/true
51 kx }
51 kx
51 kx # arg 1: the new package version
51 kx post_install() {
51 kx /bin/true
51 kx }
51 kx
51 kx # arg 1: the new package version
51 kx # arg 2: the old package version
51 kx pre_update() {
51 kx /bin/true
51 kx }
51 kx
51 kx # arg 1: the new package version
51 kx # arg 2: the old package version
51 kx post_update() {
51 kx post_install
51 kx }
51 kx
51 kx # arg 1: the old package version
51 kx pre_remove() {
51 kx /bin/true
51 kx }
51 kx
51 kx # arg 1: the old package version
51 kx post_remove() {
51 kx /bin/true
51 kx }
51 kx
51 kx
51 kx operation=$1
51 kx shift
51 kx
51 kx $operation $*