summaryrefslogtreecommitdiff
path: root/habitat/plan.sh
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-05-02 14:51:30 +0100
committerThom May <thom@chef.io>2018-05-02 15:20:11 +0100
commitcf9fa5c5d903c8b81728d53281b3eef70913fd45 (patch)
tree79f1b6ad6238e31eb6cc23a6b1a77baad7af6a31 /habitat/plan.sh
parenta83949542458218908db56256add2f3da3618006 (diff)
downloadchef-cf9fa5c5d903c8b81728d53281b3eef70913fd45.tar.gz
Update hab plan to current standardselliott/update_hab_plan
Also tidy up the config a bit Signed-off-by: Thom May <thom@chef.io>
Diffstat (limited to 'habitat/plan.sh')
-rw-r--r--habitat/plan.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/habitat/plan.sh b/habitat/plan.sh
index 9c9b5b19c8..26fcd5dad6 100644
--- a/habitat/plan.sh
+++ b/habitat/plan.sh
@@ -3,14 +3,18 @@ pkg_origin=chef
pkg_maintainer="The Chef Maintainers <humans@chef.io>"
pkg_description="The Chef Client"
pkg_version=$(cat ../VERSION)
-pkg_source=nosuchfile.tar.gz
-pkg_filename=${pkg_dirname}.tar.gz
pkg_license=('Apache-2.0')
+pkg_filename=${pkg_dirname}.tar.gz
pkg_bin_dirs=(bin)
pkg_build_deps=(core/make core/gcc core/git)
-pkg_deps=(core/glibc core/ruby core/libxml2 core/libxslt core/libiconv core/xz core/zlib core/bundler core/openssl core/cacerts core/libffi core/coreutils)
+pkg_deps=(core/glibc core/ruby core/libxml2 core/libxslt core/libiconv core/xz core/zlib core/bundler core/openssl core/cacerts core/libffi core/coreutils core/libarchive)
pkg_svc_user=root
+do_before() {
+ do_default_before
+ update_pkg_version
+}
+
do_download() {
build_line "Fake download! Creating archive of latest repository commit."
# source is in this repo, so we're going to create an archive from the
@@ -86,6 +90,10 @@ do_end() {
fi
}
+do_strip() {
+ return 0
+}
+
# Helper function to wrap up some repetitive bundle install flags
_bundle_install() {
local path