Skip to content

Commit

Permalink
added snapd-2.14.2_p1 for upstream 2.14.2.16.04
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.28
Manifest-Sign-Key: 59920B0F2399A4D8
  • Loading branch information
Clayton Dobbs committed Sep 16, 2016
1 parent 8dfc70c commit 58c4e7c
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app-emulation/snapd/Manifest
@@ -1,7 +1,23 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

DIST snapd-2.0.9.tar.gz 506990 SHA256 cb5742e7468152ff530de4e6d4335c00f58863ff4e6a4cf43ca48b5f95044be0 SHA512 2d873810ca708b64f921589a370be01a34a1311d3a3f4bae4ec5ef3188edb3e5985cbb855772fc011fc8e657e81281f388136de77e818d4407d771bed55c228f WHIRLPOOL f1761c071a671ff6365c9d7b193d438b1a128a441f07de397d62f77e9252cab94dddbbe0044dd224649e0f6f81b4492ab69d49edc30b21634cb04bb00bb92991
DIST snapd-2.13.tar.gz 640312 SHA256 47e6811a875284a417e16dd0cbe33edeb3e1a64ec2768c6405b20082b4904a84 SHA512 c42b1f6ef281b4090ad8cb213fd4682324e1e9d2450b35cfda4164281fce63fb3761dc4cdc3313c09d5af51184862b7219bc570d366f33902e8476fbc11c573d WHIRLPOOL c6f7a64483e50d413ff9bdaa8490d7a4c9a1886fdd4391238655cd95a2b32721d4351fe8d39222c004e76264ac1848703761417bb49f34f5df92240ad277a0f0
DIST snapd-2.14.1.tar.gz 627401 SHA256 9793c2c12167dfd880c1bac9f35d0518b8d633e38ee618b6bf725c20c27cb30a SHA512 32cab4f4e52ff6961f2a516d1538f807c4f697623bb83be6a4ee0f28fa18752d744c965d6288990b0af3612ac1c3405ffe796bca147ceeb179556ccb6fcb031a WHIRLPOOL e2c4f424eb6d1746f6560bace8a8f791bc9beccee8a1f73d70b1190ec9ddaf44a3131ec2bd0fba3f74351be43743136365163a8d24e0b956129d75aefb15fda3
DIST snapd-2.14.2_p1.tar.gz 641768 SHA256 efc6c6b55d8fb6d79818750373ce173f3bc1d7063d3cf8e33c4689399e02a40c SHA512 67d5d5d387779f85a1b7eabd912e101341548e49ec92364e7379b2fb38346f0376e4cd69de87dae10974f0c2b481636b9915c8bc51b126ffabd5e6cd94787a79 WHIRLPOOL 12d4fbb4f81024506c89e5956d210b0d17d433afebb493943c2324bea731e920b5fece33dc3edcdc1ab0809f59a4c0291ab81b049c651da1cb49617c16fa97f2
EBUILD snapd-2.0.9.ebuild 2824 SHA256 4c17c1b80fd3bf233bded4d57273daedf0952b9c038341cc4389dd37c545cf68 SHA512 600c2f3d3cb37314f402b582a5164b4988e6716c3cfe2c1e7cc43d584a3a3241eeef110da57ed2d81d61efc553e0cfe9fd95274b6fafa8a7e106b6098a7d883c WHIRLPOOL 07ed7ac20fcb997da295907edbd6cf40e6f3edaf39342d1462616216f3191a6daa86d2bda2577b671a1bd8d39227219795c9fdf24858fc30428cb29a1e155e56
EBUILD snapd-2.13.ebuild 2898 SHA256 5d949d870a80ccd9aa1a6f24853ec1232dfc8b7f3616c5d196a305ecec765abd SHA512 9bfe7d42dd205fffbf584a4d1c872bb1452ca8599e0ef823d78f011780d0f397dadc87ec557524b6e4bf72080778fc19618b5ee8d18664c643d79e20c848092e WHIRLPOOL 23a51305f2feb8f657b55320698a7e7a21a0b37a1be2638f59ac3427e9fd25cd211e6048f30837503e176c1a11eea4d2c340a3f957db0d30e54aa7f047f2ea5a
EBUILD snapd-2.14.1.ebuild 2841 SHA256 dd02b0138d2d76a67aa70ca8f70c9fd59021d04330567027f1c815550dd9a020 SHA512 99f3bfadb277ed27b02512dcd6fbbed30a9bc3cc31fe47d77722aac9c485d4d720fedfbf01fd1269fb248897a93aa930f291d6eebebf45365fe9caa1890fd35b WHIRLPOOL 196beac28975d154a71a1907a78aebc6cc9c83d43de4ee3f46bf41548ca7d5784141706eb3be28e6cc1989fa818c0979e5a69f4497835deaa89a7343ad3819e8
EBUILD snapd-2.14.2_p1.ebuild 2933 SHA256 9299752a83988fc871e6638d1228e1f0f570316843013d45e71bc18020fed5a7 SHA512 2d5854ffdba7c1971cc5a409ae60126e60b0bbe7d9ab1293d0cbea035450912055477b4cd2d00cefb0cf9c4dabb6dd035f60fe490fe2130b34e8fa16d545260f WHIRLPOOL c47ad02de8ab908f7cbc571405c4f70f059e41e250092481878227e2a9bda6a7e96366f56afc9b721dcb0f792e60e0ce24ebcc555a22f87f1f0760c6c0dd64ae
MISC metadata.xml 559 SHA256 dca8bb735be22924cf63b6a68325ee341216f1e3cd2a6bc0f6a486fe70f14427 SHA512 190cd4e3580e220706210e6a9695c113a0d08e9c30f252a86dafb0ecdb35667014301e3576f8c41018d1b0731cfb02b2ab7f077454e94bed0640c035830f6a55 WHIRLPOOL 851c8d9db5e904a9bc1ba6eff0755c2d02b3d9626144897388f8a6bcca8add667b86b32b689f4163a7b96e791a6aea811a14bc154a9ca9a966a57a7e3c3cc0f2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJX20FfAAoJEFmSCw8jmaTYkz0H/1SYvFyNZ+xzIYrnEF8NB+Gl
7M0hpod3NbNiHNgdw0R34UDYvozqOvt2lugqvr29joM1QPgbIOw3gZM4tnFwIrtj
91xmoGqs9PQdWX/CjjW5ihGeKoJ5M8/suK1hM5uZr5dGgTs5YDEL/rv0sWDkIlor
Ul+8z2zy+eIZ2TQCB9DesG2FmGbQ5+cZZ8+G9JdPX15T6CXCrdUTLRknMTZ/7LyV
DL/C2H/yiEsMtWH94IGWMte/oKJql9OcLQydHYKYtOpGV2fQHcuYM352J6EtVzyH
Ws+Stqsk4Oq9LOHg7JdgyTeoFgpxOI9QcXLeg8lBpKhqI00Loj9aa4yzc4wkhbg=
=S8Mx
-----END PGP SIGNATURE-----
84 changes: 84 additions & 0 deletions app-emulation/snapd/snapd-2.14.2_p1.ebuild
@@ -0,0 +1,84 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

inherit golang-vcs-snapshot
inherit systemd

EGO_PN=github.com/snapcore/snapd
EGO_SRC=github.com/snapcore/snapd/...
EGIT_COMMIT="50d0aceb6d98845f6ddf3cb914d766f8e8687694"

# Upstream package version numbering is non-standard for this version
UPV="2.14.2.16.04"

DESCRIPTION="Service and tools for management of snap packages"
HOMEPAGE="http://snapcraft.io/"
# rather than reference the git commit, it is better to src_uri to the package version (if possible) for future compatibility and ease of reading
# non-standard versioning upstream makes package renaming (below) prudent
SRC_URI="https://github.com/snapcore/${PN}/archive/${UPV}.tar.gz -> ${PF}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

# mirrors are restricted for unofficial packages
RESTRICT="mirror"

RDEPEND="sys-apps/snap-confine
sys-fs/squashfs-tools:*"
# Not sure if the runtime dependencies need to be duplicated in the build dependencies, but added them to be safe
DEPEND="${RDEPEND}
dev-vcs/git
dev-vcs/bzr"
# Original ebuild had blank list of IUSE, so line was removed

# TODO: package all the upstream dependencies
# TODO: ensure that used kernel supports xz compression for squashfs
# TODO: enable tests
# TODO: ship man page for snap
# TODO: use more of the gentoo golang packaging helpers
# TODO: put /var/lib/snpad/desktop on XDG_DATA_DIRS

src_compile() {
# Create a writable GOROOT in order to avoid sandbox violations.
cp -sR "$(go env GOROOT)" "${T}/goroot" || die
rm -rf "${T}/goroot/src/${EGO_SRC}" || die
rm -rf "${T}/goroot/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_SRC}" || die
export GOROOT="${T}/goroot"
# Exclude $(get_golibdir_gopath) from GOPATH, for bug 577908 which may
# or may not manifest, depending on what libraries are installed.
export GOPATH="${WORKDIR}/${P}"
cd src/${EGO_PN} && ./get-deps.sh
go install -v "${EGO_PN}/cmd/snapd" || die
go install -v "${EGO_PN}/cmd/snap" || die
# go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}/cmd/snapd" || die
}

src_install() {
# Install snap and snapd
export GOPATH="${WORKDIR}/${P}"
exeinto /usr/bin
dobin "$GOPATH/bin/snap"
exeinto /usr/lib/snapd/
doexe "$GOPATH/bin/snapd"
cd "src/${EGO_PN}" || die
# Install systemd units
systemd_dounit debian/snapd.{service,socket}
systemd_dounit debian/snapd.refresh.{service,timer}
# Work around https://github.com/zyga/snapd-gentoo/issues/1
sed -i -e 's/RandomizedDelaySec=/#RandomizedDelaySec=/' debian/snapd.refresh.timer
# NOTE: the two "frameworks" units should be dropped upstream soon
systemd_dounit debian/snapd.frameworks.target
systemd_dounit debian/snapd.frameworks-pre.target
# Put /snap/bin on PATH
dodir /etc/profile.d/
echo 'PATH=$PATH:/snap/bin' > ${D}/etc/profile.d/snapd.sh
}

pkg_postinst() {
systemctl enable snapd.socket
systemctl enable snapd.refresh.timer
}

0 comments on commit 58c4e7c

Please sign in to comment.