diff --git a/Manual.md b/Manual.md index 0323de66104..78a6d0a3038 100644 --- a/Manual.md +++ b/Manual.md @@ -187,6 +187,12 @@ The optional 4th argument can be used to change the `file name`. `$DESTDIR`. The optional 2nd argument can be used to change the `file name`. +- *vconf()* `vconf []` + + Installs `file` into `etc` in the pkg + `$DESTDIR`. The optional 2nd argument can be used to change the + `file name`. + - *vsconf()* `vsconf []` Installs `file` into `usr/share/examples/` in the pkg diff --git a/common/helpers/install.sh b/common/helpers/install.sh index 0deaad372a9..70ea4218d80 100644 --- a/common/helpers/install.sh +++ b/common/helpers/install.sh @@ -13,7 +13,7 @@ _noglob_helper() { } # Apply _noglob to v* commands -for cmd in vinstall vcopy vmove vmkdir vbin vman vdoc vsconf vlicense; do +for cmd in vinstall vcopy vmove vmkdir vbin vman vdoc vconf vsconf vlicense; do alias ${cmd}="set -f; _noglob_helper _${cmd}" done @@ -67,6 +67,17 @@ _vdoc() { vinstall "$file" 644 "usr/share/doc/${pkgname}" "$targetfile" } +_vconf() { + local file="$1" targetfile="$2" + + if [ $# -lt 1 ]; then + msg_red "$pkgver: vconf: 1 argument expected: \n" + return 1 + fi + + vinstall "$file" 644 "etc/${pkgname}" "$targetfile" +} + _vsconf() { local file="$1" targetfile="$2"