diff --git a/srcpkgs/chef-client/template b/srcpkgs/chef-client/template index 3589051f670..0d13a2a0942 100644 --- a/srcpkgs/chef-client/template +++ b/srcpkgs/chef-client/template @@ -2,10 +2,8 @@ pkgname=chef-client version=12.5.1 revision=1 -#create_wrksrc=yes only_for_archs="x86_64 i686" build_style=fetch -makedepends="dpkg" short_desc="Client for the Chef Systems Integration Framework" maintainer="bougyman " license="apache2" @@ -20,8 +18,8 @@ fi distfiles="https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/10.04/${XBPS_TARGET_MACHINE}/chef_${version}-1_${_debarch}.deb" do_install() { - dpkg-deb --extract chef_${version}-1_${_debarch}.deb "$DESTDIR" - mkdir -p "$DESTDIR/usr/bin" + ar p chef_${version}-1_${_debarch}.deb data.tar.gz | tar xzf - -C "${DESTDIR}" + mkdir -p "$DESTDIR"/usr/bin for bin in chef-apply chef-client chef-shell chef-solo knife ohai;do ln -s /opt/chef/bin/${bin} "$DESTDIR"/usr/bin/${bin} done