summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-15 14:22:35 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-15 14:22:35 -0600
commit2bf9b831c67cef6f6081df7f11757bb803b9afd1 (patch)
tree504125de0d145fcdbf84fbd83e57392b6e212559
parentcd46dbd744413178f284dbef7cf0f1df1033f907 (diff)
downloadabuild-2bf9b831c67cef6f6081df7f11757bb803b9afd1.tar.gz
abuild-2bf9b831c67cef6f6081df7f11757bb803b9afd1.tar.bz2
abuild-2bf9b831c67cef6f6081df7f11757bb803b9afd1.tar.xz
abuild-2bf9b831c67cef6f6081df7f11757bb803b9afd1.zip
man: Better document install scripts
-rw-r--r--APKBUILD.511
1 files changed, 9 insertions, 2 deletions
diff --git a/APKBUILD.5 b/APKBUILD.5
index 5e6aa0d..fdb2a9f 100644
--- a/APKBUILD.5
+++ b/APKBUILD.5
@@ -515,8 +515,15 @@ An install script must be written in shell and must have a
.Li Dq #!/bin/sh
interpreter declaration as the first line. The
.Cm install
-variable must contain the install scripts needed by the package. The different
-actions available are as follows:
+variable must contain the install scripts needed by the package.
+
+The install script will be run inside the root filesystem where the package is
+being installed. A single argument will be passed to all scripts, which is the
+version of the package being installed. The pre-upgrade and post-upgrade
+scripts will have an additional second argument, which is the old version that
+is currently installed on the system.
+
+The different actions that may have install scripts specified are as follows:
.Bl -tag -width Ds
.It Ic $pkgname.pre-install