[arch-commits] Commit in snap-confine/repos (6 files)

Timothy Redaelli tredaelli at archlinux.org
Mon Jul 25 09:51:41 UTC 2016


    Date: Monday, July 25, 2016 @ 09:51:41
  Author: tredaelli
Revision: 183956

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

Added:
  snap-confine/repos/community-i686/PKGBUILD
    (from rev 183955, snap-confine/trunk/PKGBUILD)
  snap-confine/repos/community-i686/dont-mount-media.patch
    (from rev 183955, snap-confine/trunk/dont-mount-media.patch)
  snap-confine/repos/community-x86_64/PKGBUILD
    (from rev 183955, snap-confine/trunk/PKGBUILD)
  snap-confine/repos/community-x86_64/dont-mount-media.patch
    (from rev 183955, snap-confine/trunk/dont-mount-media.patch)
Deleted:
  snap-confine/repos/community-i686/PKGBUILD
  snap-confine/repos/community-x86_64/PKGBUILD

-----------------------------------------+
 /PKGBUILD                               |  104 ++++++++++++++++++++++++++++++
 community-i686/PKGBUILD                 |   42 ------------
 community-i686/dont-mount-media.patch   |   10 ++
 community-x86_64/PKGBUILD               |   42 ------------
 community-x86_64/dont-mount-media.patch |   10 ++
 5 files changed, 124 insertions(+), 84 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2016-07-25 09:51:32 UTC (rev 183955)
+++ community-i686/PKGBUILD	2016-07-25 09:51:41 UTC (rev 183956)
@@ -1,42 +0,0 @@
-# $Id$
-# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
-# Contributor: Zygmunt Krynicki <me at zygoon dot pl>
-
-pkgname=snap-confine
-pkgver=1.0.35
-pkgrel=1
-pkgdesc="Confinement system for snap applications"
-arch=('i686' 'x86_64')
-url="git://github.com/snapcore/snap-confine"
-license=('GPL3')
-depends=('bash' 'libseccomp' 'libsystemd')
-makedepends=('python-docutils' 'systemd')
-checkdepends=('indent' 'shellcheck')
-source=("https://github.com/snapcore/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('d4e1f8e978d4ce07eb07f394174af185')
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  # Confinement is disabled because arch doesn't yet have all the supporting
-  # kernel patches. Rootfs is core snap is enabled because that is the
-  # preferred way to create runtime environment for snaps. Nvidia support is
-  # enabled to support proprietary nvidia drivers.
-  ./configure \
-    --prefix=/usr \
-    --libexecdir=/usr/lib/snap-confine \
-    --disable-apparmor \
-    --enable-rootfs-is-core-snap \
-    --enable-nvidia-arch
-  make
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  make -k check
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  make DESTDIR="$pkgdir/" install
-}

Copied: snap-confine/repos/community-i686/PKGBUILD (from rev 183955, snap-confine/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2016-07-25 09:51:41 UTC (rev 183956)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Zygmunt Krynicki <me at zygoon dot pl>
+
+pkgname=snap-confine
+pkgver=1.0.38
+pkgrel=1
+pkgdesc="Confinement system for snap applications"
+arch=('i686' 'x86_64')
+url="git://github.com/snapcore/snap-confine"
+license=('GPL3')
+depends=('bash' 'libseccomp' 'libsystemd')
+makedepends=('python-docutils' 'systemd')
+checkdepends=('indent' 'shellcheck')
+source=("https://github.com/snapcore/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
+        "dont-mount-media.patch")
+md5sums=('1ab7bcb5074f47b3dc818c0d06c1eb37'
+         '89b887eccd0bf96b7b88f2f86329e085')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # Revert "add /media to source_mounts to allow access to mounted devices"
+  # since Arch Linux doesn't have /media directory anymore
+  patch -Np1 -i "$srcdir"/dont-mount-media.patch
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  # Confinement is disabled because arch doesn't yet have all the supporting
+  # kernel patches. Rootfs is core snap is enabled because that is the
+  # preferred way to create runtime environment for snaps. Nvidia support is
+  # enabled to support proprietary nvidia drivers.
+  ./configure \
+    --prefix=/usr \
+    --libexecdir=/usr/lib/snap-confine \
+    --disable-apparmor \
+    --enable-rootfs-is-core-snap \
+    --enable-nvidia-arch
+  make
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  make -k check
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" install
+}

Copied: snap-confine/repos/community-i686/dont-mount-media.patch (from rev 183955, snap-confine/trunk/dont-mount-media.patch)
===================================================================
--- community-i686/dont-mount-media.patch	                        (rev 0)
+++ community-i686/dont-mount-media.patch	2016-07-25 09:51:41 UTC (rev 183956)
@@ -0,0 +1,10 @@
+--- a/src/mount-support.c
++++ b/src/mount-support.c
+@@ -205,7 +205,6 @@ void setup_snappy_os_mounts()
+ 		"/var/lib/snapd",	// to get access to snapd state and seccomp profiles
+ 		"/var/tmp",	// to get access to the other temporary directory
+ 		"/run",		// to get /run with sockets and what not
+-		"/media",	// access to the users removable devices
+ 		"/lib/modules",	// access to the modules of the running kernel
+ 	};
+ 	for (int i = 0; i < sizeof(source_mounts) / sizeof *source_mounts; i++) {

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2016-07-25 09:51:32 UTC (rev 183955)
+++ community-x86_64/PKGBUILD	2016-07-25 09:51:41 UTC (rev 183956)
@@ -1,42 +0,0 @@
-# $Id$
-# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
-# Contributor: Zygmunt Krynicki <me at zygoon dot pl>
-
-pkgname=snap-confine
-pkgver=1.0.35
-pkgrel=1
-pkgdesc="Confinement system for snap applications"
-arch=('i686' 'x86_64')
-url="git://github.com/snapcore/snap-confine"
-license=('GPL3')
-depends=('bash' 'libseccomp' 'libsystemd')
-makedepends=('python-docutils' 'systemd')
-checkdepends=('indent' 'shellcheck')
-source=("https://github.com/snapcore/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('d4e1f8e978d4ce07eb07f394174af185')
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  # Confinement is disabled because arch doesn't yet have all the supporting
-  # kernel patches. Rootfs is core snap is enabled because that is the
-  # preferred way to create runtime environment for snaps. Nvidia support is
-  # enabled to support proprietary nvidia drivers.
-  ./configure \
-    --prefix=/usr \
-    --libexecdir=/usr/lib/snap-confine \
-    --disable-apparmor \
-    --enable-rootfs-is-core-snap \
-    --enable-nvidia-arch
-  make
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  make -k check
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  make DESTDIR="$pkgdir/" install
-}

Copied: snap-confine/repos/community-x86_64/PKGBUILD (from rev 183955, snap-confine/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2016-07-25 09:51:41 UTC (rev 183956)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Zygmunt Krynicki <me at zygoon dot pl>
+
+pkgname=snap-confine
+pkgver=1.0.38
+pkgrel=1
+pkgdesc="Confinement system for snap applications"
+arch=('i686' 'x86_64')
+url="git://github.com/snapcore/snap-confine"
+license=('GPL3')
+depends=('bash' 'libseccomp' 'libsystemd')
+makedepends=('python-docutils' 'systemd')
+checkdepends=('indent' 'shellcheck')
+source=("https://github.com/snapcore/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"
+        "dont-mount-media.patch")
+md5sums=('1ab7bcb5074f47b3dc818c0d06c1eb37'
+         '89b887eccd0bf96b7b88f2f86329e085')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+
+  # Revert "add /media to source_mounts to allow access to mounted devices"
+  # since Arch Linux doesn't have /media directory anymore
+  patch -Np1 -i "$srcdir"/dont-mount-media.patch
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  # Confinement is disabled because arch doesn't yet have all the supporting
+  # kernel patches. Rootfs is core snap is enabled because that is the
+  # preferred way to create runtime environment for snaps. Nvidia support is
+  # enabled to support proprietary nvidia drivers.
+  ./configure \
+    --prefix=/usr \
+    --libexecdir=/usr/lib/snap-confine \
+    --disable-apparmor \
+    --enable-rootfs-is-core-snap \
+    --enable-nvidia-arch
+  make
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  make -k check
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" install
+}

Copied: snap-confine/repos/community-x86_64/dont-mount-media.patch (from rev 183955, snap-confine/trunk/dont-mount-media.patch)
===================================================================
--- community-x86_64/dont-mount-media.patch	                        (rev 0)
+++ community-x86_64/dont-mount-media.patch	2016-07-25 09:51:41 UTC (rev 183956)
@@ -0,0 +1,10 @@
+--- a/src/mount-support.c
++++ b/src/mount-support.c
+@@ -205,7 +205,6 @@ void setup_snappy_os_mounts()
+ 		"/var/lib/snapd",	// to get access to snapd state and seccomp profiles
+ 		"/var/tmp",	// to get access to the other temporary directory
+ 		"/run",		// to get /run with sockets and what not
+-		"/media",	// access to the users removable devices
+ 		"/lib/modules",	// access to the modules of the running kernel
+ 	};
+ 	for (int i = 0; i < sizeof(source_mounts) / sizeof *source_mounts; i++) {



More information about the arch-commits mailing list