From 1df4cdffe12b49c70ca00a1e56287394564832de Mon Sep 17 00:00:00 2001 From: Michael Marineau Date: Wed, 23 Oct 2013 18:29:16 -0700 Subject: [PATCH] bump(sys-apps/efunctions): updates from upstream and eend fix --- .../sys-apps/efunctions/Manifest | 1 + .../efunctions/efunctions-20130722_p1.ebuild | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/efunctions-20130722_p1.ebuild diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/Manifest b/sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/Manifest index 96ead778c0..03ba20a92c 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/Manifest +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/Manifest @@ -1 +1,2 @@ DIST efunctions-1.tar.gz 1903 SHA256 c8f3056accc0406197f6b32c85b4e87ed9ab683392beb99e1fab0d53017fdcd4 SHA512 48250736f27fed8e8d3a91a94d816115a3f971fa6e4df5b31a771a3cd80edc887d7683850c2c4e0bf58675b4dd8a23eb28a04c8b4332a95cfe86b0409ca0843b WHIRLPOOL 331557e81da1f06aeeeec63a306167d3b76e50c70f0cd6ac44eb66f31617df688c182077dc2a01417a119370e555c62d8443dc3160c5193c6a18e6840aac5094 +DIST efunctions-20130722_p1.tar.gz 2391 SHA256 8c8bc46d951ef8285369e42b9d05dfbe5b8b8bcef86d4e0ce20e8b1966642a05 SHA512 9ff7109ff90d37f139ae631c8b9f7a3cb63aa5ea08611479019703f7c06c8f0c8f18c2878070ecc47c4ec0f78fb576525520a40c353050847710f4c4aa7e3806 WHIRLPOOL 2adc686c9405e16436d32d8ee6a06879e03ca844cda0477bbe1c0b913f689dcc0f6a3bcfcd5927a6c8d3c78365e3dcd951ee825289f0c18c5686cd383a127699 diff --git a/sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/efunctions-20130722_p1.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/efunctions-20130722_p1.ebuild new file mode 100644 index 0000000000..a9ad30a5f0 --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/sys-apps/efunctions/efunctions-20130722_p1.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit vcs-snapshot + +# A longish note on versions because I will forget: +# This ebuild fetches tarballs from github instead of using cros-workon +# because having a system-level package using git clone to fetch sources +# adds new ways for bootstrapping to fail. Also ${PN} needs to have a +# one-to-one relationship with git commits to make mirroring/caching work. +# - The version field is the date of the last upstream commit. +# - Use patch (_p) instead of revision (-r) when updating the git hash. +# So: 20130722_p1 includes upstream up through July with one CoreOS patch. + +DESCRIPTION="Stand-alone and portable version of Gentoo's functions.sh" +HOMEPAGE="https://github.com/coreos/efunctions" +GIT_COMMIT=9578f50fd0a87c6b8021025d70eb84297cbb15a0 +SRC_URI="${HOMEPAGE}/tarball/${GIT_COMMIT} -> ${P}.tar.gz" + +# FIXME(marineam): The origional functions.sh claims 2-clause BSD but +# efunctions has no license declared. Assume it is unchanged until I +# contact the author and get that sorted out... +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="" +RDEPEND="!sys-apps/openrc" + +src_install() { + local dst_dir=/usr/lib/${PN} + + dodir etc/init.d + dosym ../..${dst_dir}/functions.sh /etc/init.d/functions.sh + + dodir $dst_dir + insinto $dst_dir + doins ${S}/functions.sh + doins -r ${S}/efunctions + + fperms -R +x $dst_dir +}