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