[arch-commits] Commit in snapd/repos (8 files)

Timothy Redaelli tredaelli at archlinux.org
Wed May 10 09:19:55 UTC 2017


    Date: Wednesday, May 10, 2017 @ 09:19:55
  Author: tredaelli
Revision: 227670

archrelease: copy trunk to community-i686, community-x86_64

Added:
  snapd/repos/community-i686/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch
    (from rev 227669, snapd/trunk/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch)
  snapd/repos/community-i686/PKGBUILD
    (from rev 227669, snapd/trunk/PKGBUILD)
  snapd/repos/community-i686/snapd.install
    (from rev 227669, snapd/trunk/snapd.install)
  snapd/repos/community-i686/snapd.sh
    (from rev 227669, snapd/trunk/snapd.sh)
  snapd/repos/community-x86_64/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch
    (from rev 227669, snapd/trunk/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch)
  snapd/repos/community-x86_64/PKGBUILD
    (from rev 227669, snapd/trunk/PKGBUILD)
  snapd/repos/community-x86_64/snapd.install
    (from rev 227669, snapd/trunk/snapd.install)
  snapd/repos/community-x86_64/snapd.sh
    (from rev 227669, snapd/trunk/snapd.sh)

---------------------------------------------------------------------------------+
 community-i686/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch   |   26 ++
 community-i686/PKGBUILD                                                         |  109 ++++++++++
 community-i686/snapd.install                                                    |   15 +
 community-i686/snapd.sh                                                         |   10 
 community-x86_64/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch |   26 ++
 community-x86_64/PKGBUILD                                                       |  109 ++++++++++
 community-x86_64/snapd.install                                                  |   15 +
 community-x86_64/snapd.sh                                                       |   10 
 8 files changed, 320 insertions(+)

Copied: snapd/repos/community-i686/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch (from rev 227669, snapd/trunk/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch)
===================================================================
--- community-i686/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch	                        (rev 0)
+++ community-i686/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,26 @@
+From 529c77918eab0742e645db3d97b62b55e9f6888a Mon Sep 17 00:00:00 2001
+From: Timothy Redaelli <tredaelli at archlinux.info>
+Date: Tue, 21 Feb 2017 11:38:00 +0000
+Subject: [PATCH] debian: ARCHLINUX: use alternate snap mount directory
+
+Signed-off-by: Timothy Redaelli <tredaelli at archlinux.info>
+---
+ debian/snapd.refresh.service | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/debian/snapd.refresh.service b/debian/snapd.refresh.service
+index 4c3375786..dda02de0e 100644
+--- a/debian/snapd.refresh.service
++++ b/debian/snapd.refresh.service
+@@ -2,7 +2,7 @@
+ Description=Automatically refresh installed snaps
+ After=network-online.target snapd.socket
+ Requires=snapd.socket
+-ConditionPathExistsGlob=/snap/*/current
++ConditionPathExistsGlob=/var/lib/snapd/snap/*/current
+ Documentation=man:snap(1)
+ 
+ [Service]
+-- 
+2.11.1
+

Copied: snapd/repos/community-i686/PKGBUILD (from rev 227669, snapd/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,109 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Zygmunt Krynicki <me at zygoon dot pl>
+
+pkgbase=snapd
+pkgname=(snapd snap-confine)
+pkgver=2.25
+pkgrel=1
+arch=('i686' 'x86_64')
+url="https://github.com/snapcore/snapd"
+license=('GPL3')
+makedepends=('git' 'go' 'go-tools' 'bzr')
+checkdepends=('python' 'squashfs-tools')
+
+# snap-confine
+makedepends+=('libcap' 'python-docutils' 'systemd' 'xfsprogs')
+checkdepends+=('indent' 'shellcheck')
+
+options=('!strip' 'emptydirs')
+install=snapd.install
+source=("git+https://github.com/snapcore/$pkgname.git#tag=$pkgver"
+        'snapd.sh')
+md5sums=('SKIP'
+         '8e9b8108165d5b2ae911de9caefb37ce')
+
+_gourl=github.com/snapcore/snapd
+
+prepare() {
+  cd "$pkgname"
+
+  # Use $srcdir/go as our GOPATH
+  export GOPATH="$srcdir/go"
+  mkdir -p "$GOPATH"
+  # Have snapd checkout appear in a place suitable for subsequent GOPATH This
+  # way we don't have to go get it again and it is exactly what the tag/hash
+  # above describes.
+  mkdir -p "$(dirname "$GOPATH/src/${_gourl}")"
+  ln --no-target-directory -fs "$srcdir/$pkgname" "$GOPATH/src/${_gourl}"
+}
+
+build() {
+  export GOPATH="$srcdir/go"
+  # Use get-deps.sh provided by upstream to fetch go dependencies using the
+  # godeps tool and dependencies.tsv (maintained upstream).
+  cd "$GOPATH/src/${_gourl}"
+  XDG_CONFIG_HOME="$srcdir" ./get-deps.sh
+  # Build/install snap and snapd
+  go install "${_gourl}/cmd/snap"
+  go install "${_gourl}/cmd/snapd"
+
+  # Generate the real systemd units out of the available templates
+  make -C data/systemd all
+
+  # Build snap-confine
+  ./mkversion.sh
+  cd cmd
+  autoreconf -i -f
+  ./configure \
+    --prefix=/usr \
+    --libexecdir=/usr/lib/snapd \
+    --with-snap-mount-dir=/var/lib/snapd/snap \
+    --disable-apparmor \
+    --enable-nvidia-arch \
+    --enable-merged-usr
+  make
+}
+
+# FIXME
+check() {
+  return
+  export GOPATH="$srcdir/go"
+  cd "$GOPATH/src/${_gourl}"
+
+  ./run-checks --unit
+  ./run-checks --static
+
+   cd cmd
+   make -k check
+}
+
+package_snapd() {
+  pkgdesc="Service and tools for management of snap packages."
+  depends=('snap-confine' 'squashfs-tools')
+
+  export GOPATH="$srcdir/go"
+  # Ensure that we have /var/lib/snapd/{hostfs,lib/gl}/ as they are required by snap-confine
+  # for constructing some bind mounts around.
+  install -d -m 755 "$pkgdir/var/lib/snapd/hostfs/" "$pkgdir/var/lib/snapd/lib/gl/"
+  # Install the refresh timer and service for updating snaps
+  install -d -m 755 "$pkgdir/usr/lib/systemd/system/"
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.refresh.service" "$pkgdir/usr/lib/systemd/system"
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.refresh.timer" "$pkgdir/usr/lib/systemd/system"
+  # Install the snapd socket and service for the main daemon
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.service" "$pkgdir/usr/lib/systemd/system"
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.socket" "$pkgdir/usr/lib/systemd/system"
+  # Install snap and snapd executables
+  install -d -m 755 "$pkgdir/usr/bin/"
+  install -m 755 "$GOPATH/bin/snap" "$pkgdir/usr/bin/"
+  install -d -m 755 "$pkgdir/usr/lib/snapd"
+  install -m 755 "$GOPATH/bin/snapd" "$pkgdir/usr/lib/snapd/"
+  # Install script to export binaries paths of snaps
+  install -Dm 755 "$srcdir/snapd.sh" "$pkgdir/etc/profile.d/apps-bin-path.sh"
+}
+
+package_snap-confine() {
+  pkgdesc="Confinement system for snap applications"
+  depends=('libseccomp' 'libsystemd')
+  make -C "$srcdir/$pkgbase/cmd" install DESTDIR="$pkgdir/"
+}

Copied: snapd/repos/community-i686/snapd.install (from rev 227669, snapd/trunk/snapd.install)
===================================================================
--- community-i686/snapd.install	                        (rev 0)
+++ community-i686/snapd.install	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,15 @@
+## arg 1:  the new package version
+post_install() {
+  echo
+  echo 'To use snapd start/enable the snapd.socket'
+  echo
+  echo 'If you want your apps to be automatically updated'
+  echo 'from the store start/enable the snapd.refresh.timer'
+  echo
+  echo 'NOTE: Desktop entries show up after logging in again'
+  echo ' or rebooting after snapd installation'
+  echo
+  echo 'For more informations, see https://wiki.archlinux.org/index.php/Snapd'
+}
+
+# vim:set ts=2 sw=2 et:

Copied: snapd/repos/community-i686/snapd.sh (from rev 227669, snapd/trunk/snapd.sh)
===================================================================
--- community-i686/snapd.sh	                        (rev 0)
+++ community-i686/snapd.sh	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,10 @@
+# Expand the $PATH to include /snaps/bin which is what snappy applications
+# use
+PATH=$PATH:/var/lib/snapd/snap/bin
+
+if [ -z "$XDG_DATA_DIRS" ]; then
+    XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
+else
+    XDG_DATA_DIRS="$XDG_DATA_DIRS":/var/lib/snapd/desktop
+fi
+export XDG_DATA_DIRS

Copied: snapd/repos/community-x86_64/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch (from rev 227669, snapd/trunk/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch)
===================================================================
--- community-x86_64/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch	                        (rev 0)
+++ community-x86_64/0001-debian-ARCHLINUX-use-alternate-snap-mount-directory.patch	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,26 @@
+From 529c77918eab0742e645db3d97b62b55e9f6888a Mon Sep 17 00:00:00 2001
+From: Timothy Redaelli <tredaelli at archlinux.info>
+Date: Tue, 21 Feb 2017 11:38:00 +0000
+Subject: [PATCH] debian: ARCHLINUX: use alternate snap mount directory
+
+Signed-off-by: Timothy Redaelli <tredaelli at archlinux.info>
+---
+ debian/snapd.refresh.service | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/debian/snapd.refresh.service b/debian/snapd.refresh.service
+index 4c3375786..dda02de0e 100644
+--- a/debian/snapd.refresh.service
++++ b/debian/snapd.refresh.service
+@@ -2,7 +2,7 @@
+ Description=Automatically refresh installed snaps
+ After=network-online.target snapd.socket
+ Requires=snapd.socket
+-ConditionPathExistsGlob=/snap/*/current
++ConditionPathExistsGlob=/var/lib/snapd/snap/*/current
+ Documentation=man:snap(1)
+ 
+ [Service]
+-- 
+2.11.1
+

Copied: snapd/repos/community-x86_64/PKGBUILD (from rev 227669, snapd/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,109 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Zygmunt Krynicki <me at zygoon dot pl>
+
+pkgbase=snapd
+pkgname=(snapd snap-confine)
+pkgver=2.25
+pkgrel=1
+arch=('i686' 'x86_64')
+url="https://github.com/snapcore/snapd"
+license=('GPL3')
+makedepends=('git' 'go' 'go-tools' 'bzr')
+checkdepends=('python' 'squashfs-tools')
+
+# snap-confine
+makedepends+=('libcap' 'python-docutils' 'systemd' 'xfsprogs')
+checkdepends+=('indent' 'shellcheck')
+
+options=('!strip' 'emptydirs')
+install=snapd.install
+source=("git+https://github.com/snapcore/$pkgname.git#tag=$pkgver"
+        'snapd.sh')
+md5sums=('SKIP'
+         '8e9b8108165d5b2ae911de9caefb37ce')
+
+_gourl=github.com/snapcore/snapd
+
+prepare() {
+  cd "$pkgname"
+
+  # Use $srcdir/go as our GOPATH
+  export GOPATH="$srcdir/go"
+  mkdir -p "$GOPATH"
+  # Have snapd checkout appear in a place suitable for subsequent GOPATH This
+  # way we don't have to go get it again and it is exactly what the tag/hash
+  # above describes.
+  mkdir -p "$(dirname "$GOPATH/src/${_gourl}")"
+  ln --no-target-directory -fs "$srcdir/$pkgname" "$GOPATH/src/${_gourl}"
+}
+
+build() {
+  export GOPATH="$srcdir/go"
+  # Use get-deps.sh provided by upstream to fetch go dependencies using the
+  # godeps tool and dependencies.tsv (maintained upstream).
+  cd "$GOPATH/src/${_gourl}"
+  XDG_CONFIG_HOME="$srcdir" ./get-deps.sh
+  # Build/install snap and snapd
+  go install "${_gourl}/cmd/snap"
+  go install "${_gourl}/cmd/snapd"
+
+  # Generate the real systemd units out of the available templates
+  make -C data/systemd all
+
+  # Build snap-confine
+  ./mkversion.sh
+  cd cmd
+  autoreconf -i -f
+  ./configure \
+    --prefix=/usr \
+    --libexecdir=/usr/lib/snapd \
+    --with-snap-mount-dir=/var/lib/snapd/snap \
+    --disable-apparmor \
+    --enable-nvidia-arch \
+    --enable-merged-usr
+  make
+}
+
+# FIXME
+check() {
+  return
+  export GOPATH="$srcdir/go"
+  cd "$GOPATH/src/${_gourl}"
+
+  ./run-checks --unit
+  ./run-checks --static
+
+   cd cmd
+   make -k check
+}
+
+package_snapd() {
+  pkgdesc="Service and tools for management of snap packages."
+  depends=('snap-confine' 'squashfs-tools')
+
+  export GOPATH="$srcdir/go"
+  # Ensure that we have /var/lib/snapd/{hostfs,lib/gl}/ as they are required by snap-confine
+  # for constructing some bind mounts around.
+  install -d -m 755 "$pkgdir/var/lib/snapd/hostfs/" "$pkgdir/var/lib/snapd/lib/gl/"
+  # Install the refresh timer and service for updating snaps
+  install -d -m 755 "$pkgdir/usr/lib/systemd/system/"
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.refresh.service" "$pkgdir/usr/lib/systemd/system"
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.refresh.timer" "$pkgdir/usr/lib/systemd/system"
+  # Install the snapd socket and service for the main daemon
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.service" "$pkgdir/usr/lib/systemd/system"
+  install -m 644 "$GOPATH/src/${_gourl}/data/systemd/snapd.socket" "$pkgdir/usr/lib/systemd/system"
+  # Install snap and snapd executables
+  install -d -m 755 "$pkgdir/usr/bin/"
+  install -m 755 "$GOPATH/bin/snap" "$pkgdir/usr/bin/"
+  install -d -m 755 "$pkgdir/usr/lib/snapd"
+  install -m 755 "$GOPATH/bin/snapd" "$pkgdir/usr/lib/snapd/"
+  # Install script to export binaries paths of snaps
+  install -Dm 755 "$srcdir/snapd.sh" "$pkgdir/etc/profile.d/apps-bin-path.sh"
+}
+
+package_snap-confine() {
+  pkgdesc="Confinement system for snap applications"
+  depends=('libseccomp' 'libsystemd')
+  make -C "$srcdir/$pkgbase/cmd" install DESTDIR="$pkgdir/"
+}

Copied: snapd/repos/community-x86_64/snapd.install (from rev 227669, snapd/trunk/snapd.install)
===================================================================
--- community-x86_64/snapd.install	                        (rev 0)
+++ community-x86_64/snapd.install	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,15 @@
+## arg 1:  the new package version
+post_install() {
+  echo
+  echo 'To use snapd start/enable the snapd.socket'
+  echo
+  echo 'If you want your apps to be automatically updated'
+  echo 'from the store start/enable the snapd.refresh.timer'
+  echo
+  echo 'NOTE: Desktop entries show up after logging in again'
+  echo ' or rebooting after snapd installation'
+  echo
+  echo 'For more informations, see https://wiki.archlinux.org/index.php/Snapd'
+}
+
+# vim:set ts=2 sw=2 et:

Copied: snapd/repos/community-x86_64/snapd.sh (from rev 227669, snapd/trunk/snapd.sh)
===================================================================
--- community-x86_64/snapd.sh	                        (rev 0)
+++ community-x86_64/snapd.sh	2017-05-10 09:19:55 UTC (rev 227670)
@@ -0,0 +1,10 @@
+# Expand the $PATH to include /snaps/bin which is what snappy applications
+# use
+PATH=$PATH:/var/lib/snapd/snap/bin
+
+if [ -z "$XDG_DATA_DIRS" ]; then
+    XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
+else
+    XDG_DATA_DIRS="$XDG_DATA_DIRS":/var/lib/snapd/desktop
+fi
+export XDG_DATA_DIRS



More information about the arch-commits mailing list