[arch-commits] Commit in lxc/repos (12 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:34:01 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:34:01
  Author: foutrelis
Revision: 140948

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

Added:
  lxc/repos/community-staging-i686/
  lxc/repos/community-staging-i686/PKGBUILD
    (from rev 140947, lxc/trunk/PKGBUILD)
  lxc/repos/community-staging-i686/lxc-auto.service
    (from rev 140947, lxc/trunk/lxc-auto.service)
  lxc/repos/community-staging-i686/lxc.install
    (from rev 140947, lxc/trunk/lxc.install)
  lxc/repos/community-staging-i686/lxc.service
    (from rev 140947, lxc/trunk/lxc.service)
  lxc/repos/community-staging-i686/lxc.tmpfiles.d
    (from rev 140947, lxc/trunk/lxc.tmpfiles.d)
  lxc/repos/community-staging-x86_64/
  lxc/repos/community-staging-x86_64/PKGBUILD
    (from rev 140947, lxc/trunk/PKGBUILD)
  lxc/repos/community-staging-x86_64/lxc-auto.service
    (from rev 140947, lxc/trunk/lxc-auto.service)
  lxc/repos/community-staging-x86_64/lxc.install
    (from rev 140947, lxc/trunk/lxc.install)
  lxc/repos/community-staging-x86_64/lxc.service
    (from rev 140947, lxc/trunk/lxc.service)
  lxc/repos/community-staging-x86_64/lxc.tmpfiles.d
    (from rev 140947, lxc/trunk/lxc.tmpfiles.d)

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   77 ++++++++++++++++++++++++++++
 community-staging-i686/lxc-auto.service   |   12 ++++
 community-staging-i686/lxc.install        |    8 ++
 community-staging-i686/lxc.service        |   12 ++++
 community-staging-i686/lxc.tmpfiles.d     |    1 
 community-staging-x86_64/PKGBUILD         |   77 ++++++++++++++++++++++++++++
 community-staging-x86_64/lxc-auto.service |   12 ++++
 community-staging-x86_64/lxc.install      |    8 ++
 community-staging-x86_64/lxc.service      |   12 ++++
 community-staging-x86_64/lxc.tmpfiles.d   |    1 
 10 files changed, 220 insertions(+)

Copied: lxc/repos/community-staging-i686/PKGBUILD (from rev 140947, lxc/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,77 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Andrea Zucchelli <zukka77 at gmail.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Jonathan Liu <net147 at gmail.com>
+# Contributor: Jon Nordby <jononor at gmail.com>
+
+pkgname=lxc
+pkgver=1.1.3
+epoch=1
+pkgrel=2
+pkgdesc="Linux Containers"
+arch=('i686' 'x86_64')
+url="http://linuxcontainers.org"
+depends=('bash' 'perl' 'libseccomp' 'libcap' 'python' 'cgmanager' 'rsync')
+makedepends=('docbook2x' 'lua')
+optdepends=('arch-install-scripts: for archlinux template'
+	    'lua'
+	    'lua-filesystem: lxc-top'
+	    'lua-alt-getopt: lxc-top')
+license=('LGPL')
+install=lxc.install
+options=('emptydirs')
+backup=('etc/lxc/default.conf')
+validpgpkeys=('602F567663E593BCBD14F338C638974D64792D67')
+source=("http://linuxcontainers.org/downloads/$pkgname-${pkgver}.tar.gz"{,.asc}
+	"lxc.tmpfiles.d"
+	"lxc.service"
+	"lxc-auto.service")
+md5sums=('197abb5a28ab0b689c737eb1951023fb'
+         'SKIP'
+         'df94c9fb8a753011c86ee664e9f521ff'
+         '4b41aa53ee714c60f0309541d2e9ea15'
+         '5566d9bd868adf26b19d59f9f77bec95')
+
+prepare() {
+  cd "$srcdir/$pkgname-${pkgver/_/-}"
+  sed -i \
+    -e 's|"\\"-//Davenport//DTD DocBook V3.0//EN\\""|"\\"-//OASIS//DTD DocBook XML\\" \\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\""|' \
+    configure.ac
+}
+
+build() {
+  cd "$srcdir/$pkgname-${pkgver/_/-}"
+  ./autogen.sh
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --localstatedir=/var \
+    --libexecdir=/usr/lib \
+    --libdir=/usr/lib \
+    --sysconfdir=/etc \
+    --disable-apparmor \
+    --enable-seccomp \
+    --enable-cgmanager \
+    --enable-capabilities \
+    --enable-lua \
+    --with-init-script=systemd \
+    --with-systemdsystemunitdir=/usr/lib/systemd/system
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-${pkgver/_/-}"
+
+  make DESTDIR="$pkgdir" install
+  install -d -m755 "$pkgdir/var/lib/lxc"
+  install -d -m755 "$pkgdir/usr/lib/lxc/rootfs/dev"
+  install -D -m644 ${srcdir}/lxc.service ${pkgdir}/usr/lib/systemd/system/lxc at .service
+  install -D -m644 ${srcdir}/lxc-auto.service ${pkgdir}/usr/lib/systemd/system/lxc-auto.service
+  install -D -m644 ${srcdir}/lxc.tmpfiles.d ${pkgdir}/usr/lib/tmpfiles.d/lxc.conf
+
+  cd doc
+  find . -type f -name '*.1' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man1/{}" \;
+  find . -type f -name '*.5' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man5/{}" \;
+  find . -type f -name '*.7' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man7/{}" \;
+}

Copied: lxc/repos/community-staging-i686/lxc-auto.service (from rev 140947, lxc/trunk/lxc-auto.service)
===================================================================
--- community-staging-i686/lxc-auto.service	                        (rev 0)
+++ community-staging-i686/lxc-auto.service	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Autostart LXC Container
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/lxc-autostart
+ExecStop=/usr/bin/lxc-autostart -s
+Delegate=true
+
+[Install]
+WantedBy=multi-user.target

Copied: lxc/repos/community-staging-i686/lxc.install (from rev 140947, lxc/trunk/lxc.install)
===================================================================
--- community-staging-i686/lxc.install	                        (rev 0)
+++ community-staging-i686/lxc.install	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,8 @@
+post_upgrade() {
+  [[ $(vercmp "$1" 1:1) -le 0 ]] && return 0
+  cat << EOF
+* Since v1.0, lxc-shutdown(1) is gone and its functionality is provided by
+* lxc-stop(1) by default. The old lxc-stop(1) behavior can be recovered
+* with 'lxc-stop --kill'.
+EOF
+}

Copied: lxc/repos/community-staging-i686/lxc.service (from rev 140947, lxc/trunk/lxc.service)
===================================================================
--- community-staging-i686/lxc.service	                        (rev 0)
+++ community-staging-i686/lxc.service	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,12 @@
+[Unit]
+Description=%i LXC
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/lxc-start -d -n %i
+ExecStop=/usr/bin/lxc-stop -n %i
+Delegate=true
+
+[Install]
+WantedBy=multi-user.target

Copied: lxc/repos/community-staging-i686/lxc.tmpfiles.d (from rev 140947, lxc/trunk/lxc.tmpfiles.d)
===================================================================
--- community-staging-i686/lxc.tmpfiles.d	                        (rev 0)
+++ community-staging-i686/lxc.tmpfiles.d	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1 @@
+w /sys/fs/cgroup/memory/memory.use_hierarchy - - - - 1

Copied: lxc/repos/community-staging-x86_64/PKGBUILD (from rev 140947, lxc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,77 @@
+# $Id$
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Andrea Zucchelli <zukka77 at gmail.com>
+# Contributor: Daniel Micay <danielmicay at gmail.com>
+# Contributor: Jonathan Liu <net147 at gmail.com>
+# Contributor: Jon Nordby <jononor at gmail.com>
+
+pkgname=lxc
+pkgver=1.1.3
+epoch=1
+pkgrel=2
+pkgdesc="Linux Containers"
+arch=('i686' 'x86_64')
+url="http://linuxcontainers.org"
+depends=('bash' 'perl' 'libseccomp' 'libcap' 'python' 'cgmanager' 'rsync')
+makedepends=('docbook2x' 'lua')
+optdepends=('arch-install-scripts: for archlinux template'
+	    'lua'
+	    'lua-filesystem: lxc-top'
+	    'lua-alt-getopt: lxc-top')
+license=('LGPL')
+install=lxc.install
+options=('emptydirs')
+backup=('etc/lxc/default.conf')
+validpgpkeys=('602F567663E593BCBD14F338C638974D64792D67')
+source=("http://linuxcontainers.org/downloads/$pkgname-${pkgver}.tar.gz"{,.asc}
+	"lxc.tmpfiles.d"
+	"lxc.service"
+	"lxc-auto.service")
+md5sums=('197abb5a28ab0b689c737eb1951023fb'
+         'SKIP'
+         'df94c9fb8a753011c86ee664e9f521ff'
+         '4b41aa53ee714c60f0309541d2e9ea15'
+         '5566d9bd868adf26b19d59f9f77bec95')
+
+prepare() {
+  cd "$srcdir/$pkgname-${pkgver/_/-}"
+  sed -i \
+    -e 's|"\\"-//Davenport//DTD DocBook V3.0//EN\\""|"\\"-//OASIS//DTD DocBook XML\\" \\"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd\\""|' \
+    configure.ac
+}
+
+build() {
+  cd "$srcdir/$pkgname-${pkgver/_/-}"
+  ./autogen.sh
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --localstatedir=/var \
+    --libexecdir=/usr/lib \
+    --libdir=/usr/lib \
+    --sysconfdir=/etc \
+    --disable-apparmor \
+    --enable-seccomp \
+    --enable-cgmanager \
+    --enable-capabilities \
+    --enable-lua \
+    --with-init-script=systemd \
+    --with-systemdsystemunitdir=/usr/lib/systemd/system
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname-${pkgver/_/-}"
+
+  make DESTDIR="$pkgdir" install
+  install -d -m755 "$pkgdir/var/lib/lxc"
+  install -d -m755 "$pkgdir/usr/lib/lxc/rootfs/dev"
+  install -D -m644 ${srcdir}/lxc.service ${pkgdir}/usr/lib/systemd/system/lxc at .service
+  install -D -m644 ${srcdir}/lxc-auto.service ${pkgdir}/usr/lib/systemd/system/lxc-auto.service
+  install -D -m644 ${srcdir}/lxc.tmpfiles.d ${pkgdir}/usr/lib/tmpfiles.d/lxc.conf
+
+  cd doc
+  find . -type f -name '*.1' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man1/{}" \;
+  find . -type f -name '*.5' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man5/{}" \;
+  find . -type f -name '*.7' -exec install -D -m644 "{}" "$pkgdir/usr/share/man/man7/{}" \;
+}

Copied: lxc/repos/community-staging-x86_64/lxc-auto.service (from rev 140947, lxc/trunk/lxc-auto.service)
===================================================================
--- community-staging-x86_64/lxc-auto.service	                        (rev 0)
+++ community-staging-x86_64/lxc-auto.service	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Autostart LXC Container
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/lxc-autostart
+ExecStop=/usr/bin/lxc-autostart -s
+Delegate=true
+
+[Install]
+WantedBy=multi-user.target

Copied: lxc/repos/community-staging-x86_64/lxc.install (from rev 140947, lxc/trunk/lxc.install)
===================================================================
--- community-staging-x86_64/lxc.install	                        (rev 0)
+++ community-staging-x86_64/lxc.install	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,8 @@
+post_upgrade() {
+  [[ $(vercmp "$1" 1:1) -le 0 ]] && return 0
+  cat << EOF
+* Since v1.0, lxc-shutdown(1) is gone and its functionality is provided by
+* lxc-stop(1) by default. The old lxc-stop(1) behavior can be recovered
+* with 'lxc-stop --kill'.
+EOF
+}

Copied: lxc/repos/community-staging-x86_64/lxc.service (from rev 140947, lxc/trunk/lxc.service)
===================================================================
--- community-staging-x86_64/lxc.service	                        (rev 0)
+++ community-staging-x86_64/lxc.service	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1,12 @@
+[Unit]
+Description=%i LXC
+After=network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/lxc-start -d -n %i
+ExecStop=/usr/bin/lxc-stop -n %i
+Delegate=true
+
+[Install]
+WantedBy=multi-user.target

Copied: lxc/repos/community-staging-x86_64/lxc.tmpfiles.d (from rev 140947, lxc/trunk/lxc.tmpfiles.d)
===================================================================
--- community-staging-x86_64/lxc.tmpfiles.d	                        (rev 0)
+++ community-staging-x86_64/lxc.tmpfiles.d	2015-09-19 16:34:01 UTC (rev 140948)
@@ -0,0 +1 @@
+w /sys/fs/cgroup/memory/memory.use_hierarchy - - - - 1



More information about the arch-commits mailing list