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