diff options
| author | Yuval Adam <yuval@y3xz.com> | 2016-02-02 00:12:04 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2016-02-02 00:12:04 +0200 |
| commit | 92c9cb7425812e62ae568c6ee0f9f9d1e1953f3d (patch) | |
| tree | d087e0fd17ec88b0a7fbc56ecba5425b8a91fc0c | |
| parent | 0d9d4dcfd5ba9962a552c3dc654070f75d7c49c9 (diff) | |
| parent | 7fc0b18386e7ee7b7e840d9a697f748d411a7ab4 (diff) | |
Add 'aur/rkt-git/' from commit '7fc0b18386e7ee7b7e840d9a697f748d411a7ab4'
git-subtree-dir: aur/rkt-git
git-subtree-mainline: 0d9d4dcfd5ba9962a552c3dc654070f75d7c49c9
git-subtree-split: 7fc0b18386e7ee7b7e840d9a697f748d411a7ab4
| -rw-r--r-- | aur/rkt-git/.SRCINFO | 25 | ||||
| -rw-r--r-- | aur/rkt-git/PKGBUILD | 53 | ||||
| -rw-r--r-- | aur/rkt-git/rkt.install | 11 |
3 files changed, 89 insertions, 0 deletions
diff --git a/aur/rkt-git/.SRCINFO b/aur/rkt-git/.SRCINFO new file mode 100644 index 0000000..f8cc835 --- /dev/null +++ b/aur/rkt-git/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = rkt-git + pkgdesc = App container runtime + pkgver = 0.11.0.r12.gfad1cb1 + pkgrel = 1 + url = https://github.com/coreos/rkt + install = rkt.install + arch = x86_64 + license = apache + makedepends = cpio + makedepends = go + makedepends = wget + makedepends = squashfs-tools + makedepends = perl-capture-tiny + makedepends = intltool + makedepends = bc + provides = rkt + conflicts = rocket + conflicts = rkt + replaces = rocket + replaces = rkt + source = rkt-git::git+https://github.com/coreos/rkt + md5sums = SKIP + +pkgname = rkt-git + diff --git a/aur/rkt-git/PKGBUILD b/aur/rkt-git/PKGBUILD new file mode 100644 index 0000000..c733477 --- /dev/null +++ b/aur/rkt-git/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer: Yuval Adam <yuval at y3xz dot com> PGP-Key: 271386AA2EB7672F +# Contributor: Kenny Rasschaert <kenny dot rasschaert at gmail dot com> PGP-Key: 1F70454121E41419 +# Contributor: Adrián Pérez de Castro <adrian at perezdecastro dor org> PGP-Key: 91C559DBE4C9123B +# Contributor: Boohbah <boohbah at gmail dot com> + +pkgname=rkt-git +pkgver=0.11.0.r12.gfad1cb1 +pkgrel=1 +pkgdesc="App container runtime" +arch=('x86_64') +url="https://github.com/coreos/rkt" +license=(apache) +makedepends=('cpio' 'go' 'wget' 'squashfs-tools' 'perl-capture-tiny' 'intltool' 'bc') +provides=('rkt') +replaces=('rocket' 'rkt') +conflicts=('rocket' 'rkt') +source=("$pkgname::git+$url") +md5sums=('SKIP') +install="rkt.install" + +pkgver() { + cd "$pkgname" + git describe --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd "${pkgname}" + ./autogen.sh +} + +build() { + cd "$pkgname" + ./configure --prefix=/usr \ + --with-stage1-flavors=coreos \ + --with-stage1-default-location=/usr/lib/rkt/stage1.aci + make -s +} + +package() { + cd "${pkgname}" + local unit + for unit in rkt-gc.{timer,service} rkt-metadata.{socket,service} + do + install -Dm644 "dist/init/systemd/${unit}" \ + "${pkgdir}/usr/lib/systemd/system/${unit}" + done + + cd build-rkt-*+git + install -Dm755 bin/rkt "$pkgdir/usr/bin/rkt" + install -Dm644 bin/stage1-coreos.aci "$pkgdir/usr/lib/rkt/stage1.aci" +} + +# vim:set ts=2 sw=2 et: diff --git a/aur/rkt-git/rkt.install b/aur/rkt-git/rkt.install new file mode 100644 index 0000000..2f696ac --- /dev/null +++ b/aur/rkt-git/rkt.install @@ -0,0 +1,11 @@ +post_install () { + # Create users/groups + getent group rkt >/dev/null || groupadd -r rkt + rkt install &>/dev/null +} + +post_upgrade () { + post_install "$@" +} + +# vim:ts=2 sw=2 et ft=sh: |
