cfgfoo

git clone https://orangeshoelaces.net/git/cfgfoo.git

e17f2ebe3d8ed10c64b7fd7f37757e17e042535c

Author: Vasilii Kolobkov on 12/31/2018

Committer: Vasilii Kolobkov on 12/31/2018

Install OpenBSD packages

Stats

aliases            | 2 +-
steps/obsd/pkg/add | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)

Patch

diff --git a/aliases b/aliases
index 320904e..c332af5 100644
--- a/aliases
+++ b/aliases
@@ -25,5 +25,5 @@ alias rc_start="cfgfoo ${CFGFOOPATH}/steps/rc/start "
 alias smtpd_check="cfgfoo ${CFGFOOPATH}/steps/smtpd/check -s "
 alias smtpd_newaliases="cfgfoo ${CFGFOOPATH}/steps/smtpd/newaliases "
 
-alias obsd_syspatch="cfgfoo ${CFGFOOPATH}/steps/obsd/syspatch "
+alias obsd_pkg_add="cfgfoo ${CFGFOOPATH}/steps/obsd/pkg/add "
 alias obsd_users_add="cfgfoo ${CFGFOOPATH}/steps/obsd/users/add "
diff --git a/steps/obsd/pkg/add b/steps/obsd/pkg/add
new file mode 100644
index 0000000..9e6864b
--- /dev/null
+++ b/steps/obsd/pkg/add
@@ -0,0 +1,7 @@
+step_taken() {
+	pkg_info -q -e "${1}-*"
+}
+
+take_step() {
+	pkg_add -I "$1"
+}