mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-25 00:12:19 +00:00
31 lines
683 B
Plaintext
31 lines
683 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
case "$1" in
|
||
|
pre_install)
|
||
|
# add something which happends before install
|
||
|
# $2 contains package version
|
||
|
;;
|
||
|
post_install)
|
||
|
# add something which happends after install
|
||
|
# $2 contains package version
|
||
|
;;
|
||
|
pre_upgrade)
|
||
|
# add something which happends before update
|
||
|
# $2 contains new package version
|
||
|
# $3 contains old package version
|
||
|
;;
|
||
|
post_upgrade)
|
||
|
# add something which happends after update
|
||
|
# $2 contains new package version
|
||
|
# $3 contains old package version
|
||
|
;;
|
||
|
pre_deinstall)
|
||
|
# add something which happends before delete
|
||
|
# $2 contains package version
|
||
|
;;
|
||
|
post_deinstall)
|
||
|
# add something which happends after delete
|
||
|
# $2 contains package version
|
||
|
;;
|
||
|
esac
|