- diff -u -N -Z -r pkgutils-5.36.orig/pkgmk.conf pkgutils-5.36/pkgmk.conf
- --- pkgutils-5.36.orig/pkgmk.conf 2016-05-28 02:57:54.206594874 +0300
- +++ pkgutils-5.36/pkgmk.conf 2016-05-28 02:58:36.070592377 +0300
- @@ -26,6 +26,7 @@
- # PKGMK_SOURCE_DIR="$PWD"
- # PKGMK_PACKAGE_DIR="$PWD"
- # PKGMK_WORK_DIR="$PWD/work"
- +# PKGMK_CREATE_DIRS="no"
- # PKGMK_DOWNLOAD="no"
- # PKGMK_IGNORE_FOOTPRINT="no"
- # PKGMK_IGNORE_NEW="no"
- diff -u -N -Z -r pkgutils-5.36.orig/pkgmk.conf.5.in pkgutils-5.36/pkgmk.conf.5.in
- --- pkgutils-5.36.orig/pkgmk.conf.5.in 2016-05-28 02:57:54.206594874 +0300
- +++ pkgutils-5.36/pkgmk.conf.5.in 2016-05-28 03:02:46.725577426 +0300
- @@ -44,6 +44,11 @@
- .br
- Default: '\fBfoo\fP/work', where \fBfoo\fP is the directory of the Pkgfile.
- .TP
- +\fBPKGMK_CREATE_DIRS='STRING'\fP
- +Create directories for downloading, building and storing packages if missing.
- +.br
- +Default: 'no'
- +.TP
- \fBPKGMK_DOWNLOAD_PROG='STRING'\fP
- Use specified program to download source archives. Valid strings are curl and wget.
- .br
- diff -u -N -Z -r pkgutils-5.36.orig/pkgmk.in pkgutils-5.36/pkgmk.in
- --- pkgutils-5.36.orig/pkgmk.in 2016-05-28 02:57:54.206594874 +0300
- +++ pkgutils-5.36/pkgmk.in 2016-05-28 03:16:54.021526890 +0300
- @@ -76,8 +76,13 @@
- check_directory() {
- if [ ! -d $1 ]; then
- - error "Directory '$1' does not exist."
- - exit $E_DIR_PERM
- + if [ "$PKGMK_CREATE_DIRS" = "yes" ]; then
- + warning "Creating directory: $1"
- + mkdir -p "$1"
- + else
- + error "Directory '$1' does not exist."
- + exit $E_DIR_PERM
- + fi
- elif [ ! -w $1 ]; then
- error "Directory '$1' not writable."
- exit $E_DIR_PERM
- @@ -734,6 +739,7 @@
- PKGMK_SOURCE_DIR="$PWD"
- PKGMK_PACKAGE_DIR="$PWD"
- PKGMK_WORK_DIR="$PWD/work"
- +PKGMK_CREATE_DIRS="no"
- PKGMK_COMPRESSION_MODE="gz"
create-dirs.patch