2015-11-11 11:50:42 +00:00
|
|
|
# Template file for 'chefdk'
|
|
|
|
pkgname=chef-client
|
|
|
|
version=12.5.1
|
|
|
|
revision=1
|
|
|
|
only_for_archs="x86_64 i686"
|
|
|
|
build_style=fetch
|
|
|
|
short_desc="Client for the Chef Systems Integration Framework"
|
|
|
|
maintainer="bougyman <bougyman@voidlinux.eu>"
|
|
|
|
license="apache2"
|
|
|
|
homepage="https://github.com/chef/chef"
|
|
|
|
if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ];then
|
|
|
|
_debarch=amd64
|
2015-11-11 12:10:22 +00:00
|
|
|
checksum=656a4c4a8fd64d74d1d970fb0d07076d6f1d8230d37d751f2c3698a52d82c070
|
2015-11-11 11:50:42 +00:00
|
|
|
else
|
|
|
|
_debarch=i386
|
2015-11-11 12:10:22 +00:00
|
|
|
checksum=d2e82528eca2b247cd59998bb9e0ac3df41614c97337c7d52f69051cafa83bd4
|
2015-11-11 11:50:42 +00:00
|
|
|
fi
|
|
|
|
distfiles="https://opscode-omnibus-packages.s3.amazonaws.com/ubuntu/10.04/${XBPS_TARGET_MACHINE}/chef_${version}-1_${_debarch}.deb"
|
|
|
|
|
|
|
|
do_install() {
|
2015-11-11 12:18:17 +00:00
|
|
|
ar p chef_${version}-1_${_debarch}.deb data.tar.gz | tar xzf - -C "${DESTDIR}"
|
|
|
|
mkdir -p "$DESTDIR"/usr/bin
|
2015-11-11 11:50:42 +00:00
|
|
|
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
|
|
|
|
}
|