diff --git a/srcpkgs/chef-client/template b/srcpkgs/chef-client/template new file mode 100644 index 00000000000..f8c8bd031f3 --- /dev/null +++ b/srcpkgs/chef-client/template @@ -0,0 +1,28 @@ +# Template file for 'chefdk' +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" +homepage="https://github.com/chef/chef" +if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then + _debarch=amd64 + checksum=656a4c4a8fd64d74d1d970fb0d07076d6f1d8230d37d751f2c3698a52d82c070 +else + _debarch=i386 + checksum=d2e82528eca2b247cd59998bb9e0ac3df41614c97337c7d52f69051cafa83bd4 +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" + 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 +}