diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-29 09:06:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-29 09:06:43 +0000 |
commit | 21cd6680eee14cb6ab89ff95d8ca2413833800c7 (patch) | |
tree | fc0888eb5323e41fa09a05d71ce11bb150de7f9e /sample.install | |
parent | 81f8737a6aa13c1d6944f061a1f21e5549ff4003 (diff) | |
download | abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.gz abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.bz2 abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.tar.xz abuild-21cd6680eee14cb6ab89ff95d8ca2413833800c7.zip |
abuild: support for creation of new APKBUILD from template
abuild [-c] -n PKGNAME[-PKGVER]
creates a directory with new APKBUILD. If -c is specified will sample init.d,
conf.d and install script be copied as well.
Diffstat (limited to 'sample.install')
-rw-r--r-- | sample.install | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sample.install b/sample.install new file mode 100644 index 0000000..a05d28b --- /dev/null +++ b/sample.install @@ -0,0 +1,30 @@ +#!/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 |