Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DIST packer_0.8.6_linux_386.zip 124025425 SHA256 d1385af26ea42560ddc4f4958c88cb00c3e4a9f8a2d88a81c96b4bf1cb60369b SHA512 7db42956e3cb6bc1d9e776b30b9452f3d82fc35e3df57492526d39c5a436da974664e0255859cf9d1d907afe0249e19e3a5a69138da8a8de178a468fc39edc75 WHIRLPOOL 57273ebf7f32ccfdb6d0e5efd18b6cf503c67649c6c99a0edda2593131728f511b374e0336bc28a95a750b099ac7a0072414c996e782fab3b449dd4ececb4b2e | ||
DIST packer_0.8.6_linux_amd64.zip 132616691 SHA256 2f1ca794e51de831ace30792ab0886aca516bf6b407f6027e816ba7ca79703b5 SHA512 e7a27c6c434742f488e5960af9d767bfddf0aecbd39a53392866000e71054c904a0a425bf292a27df764d53d67cb7bbddfb32256f22e11f9b5dd57cf18332a09 WHIRLPOOL 108b102ad37a33df323b4d650129ebe73f312dd9fa7cc76cd80077a9048f3ef3c1a1946934fd3524a42b84d8d8b264cb18777a1bfa3727a402990d9e89301e21 | ||
EBUILD packer-bin-0.8.6.ebuild 845 SHA256 9704349d4fce318b7965eb4789008f8e4bd956a005943293ad8fd87bb32e326b SHA512 4abab8e630f12eb206b9c069a7094aaec1b0b6c592bcbe427869ff0fbd30c4396d4d55b98d27408aedcb9c3901af41fabddfffc2e7ac9d27c85af87eb89f0702 WHIRLPOOL 94a5ee9c7d9c668e396171bf279031efa4eb2eb2e78f46c832d168c1bbb1e0e9606c654b83bfa0edc550f6b2063b8e890325895fa65edb69a46d840142771e09 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Header: $ | ||
|
||
EAPI=5 | ||
|
||
MY_PN=${PN/-bin/} | ||
inherit unpacker eutils | ||
|
||
DESCRIPTION="Packer is a tool for creating machine and container images for multiple platforms from a single source configuration" | ||
HOMEPAGE="https://packer.io/" | ||
|
||
SRC_URI_AMD64="https://dl.bintray.com/mitchellh/${MY_PN}/${MY_PN}_${PV}_linux_amd64.zip" | ||
SRC_URI_X86="https://dl.bintray.com/mitchellh/${MY_PN}/${MY_PN}_${PV}_linux_386.zip" | ||
SRC_URI=" | ||
amd64? ( ${SRC_URI_AMD64} ) | ||
x86? ( ${SRC_URI_X86} ) | ||
" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
IUSE="" | ||
|
||
S=$WORKDIR | ||
|
||
DEPEND="" | ||
RDEPEND="" | ||
|
||
RESTRICT="mirror" | ||
|
||
src_install() { | ||
local dir="/opt/${MY_PN}" | ||
dodir ${dir} | ||
cp -ar ./* "${ED}${dir}" || die "copy files failed" | ||
|
||
make_wrapper "${MY_PN}" "${dir}/${MY_PN}" | ||
} |