summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaoki Kawakami2015-08-16 01:35:44 +0900
committerNaoki Kawakami2015-08-16 01:35:44 +0900
commit201ec70952779ae5c00dabe58bf6c3d92514db10 (patch)
treee1b1c8b70d31f77c18d8e87203a256fa32f94510
downloadaur-201ec70952779ae5c00dabe58bf6c3d92514db10.tar.gz
New AUR import
-rw-r--r--.SRCINFO35
-rw-r--r--PKGBUILD78
-rw-r--r--lxc.service11
-rw-r--r--lxc.tmpfiles.d1
4 files changed, 125 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fb11bc745f3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,35 @@
+pkgbase = lxc-git
+ pkgdesc = Linux Containers from git
+ pkgver = 1.1.0.89.g83828d6
+ pkgrel = 1
+ epoch = 1
+ url = http://linuxcontainers.org
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ makedepends = docbook2x
+ makedepends = lua
+ depends = bash
+ depends = perl
+ depends = libseccomp
+ depends = libcap
+ depends = python
+ depends = cgmanager
+ optdepends = arch-install-scripts: for archlinux template
+ optdepends = lua
+ optdepends = lua-filesystem: lxc-top
+ optdepends = lua-alt-getopt: lxc-top
+ provides = lxc
+ conflicts = lxc
+ options = emptydirs
+ backup = etc/lxc/default.conf
+ source = git://github.com/lxc/lxc
+ source = lxc.tmpfiles.d
+ source = lxc.service
+ md5sums = SKIP
+ md5sums = df94c9fb8a753011c86ee664e9f521ff
+ md5sums = 32db4ef06b27f36e15ff4b67c049dfeb
+
+pkgname = lxc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b229fd13273
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,78 @@
+# Maintainer: Naoki Kawakami <nkawakami atto parallels dotto com>
+# Contributor: tuxce.net <tuxce.net@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Andrea Zucchelli <zukka77@gmail.com>
+# Contributor: Daniel Micay <danielmicay@gmail.com>
+# Contributor: Jonathan Liu <net147@gmail.com>
+# Contributor: Jon Nordby <jononor@gmail.com>
+
+pkgname=lxc-git
+pkgver=1.1.0.89.g83828d6
+epoch=1
+_pkgname=lxc
+_gitname=${_pkgname}
+pkgrel=1
+pkgdesc="Linux Containers from git"
+arch=('i686' 'x86_64')
+url="http://linuxcontainers.org"
+depends=('bash' 'perl' 'libseccomp' 'libcap' 'python' 'cgmanager')
+makedepends=('git' 'docbook2x' 'lua')
+optdepends=('arch-install-scripts: for archlinux template'
+ 'lua'
+ 'lua-filesystem: lxc-top'
+ 'lua-alt-getopt: lxc-top')
+license=('LGPL')
+options=('emptydirs')
+backup=('etc/lxc/default.conf')
+provides=($_pkgname)
+conflicts=($_pkgname)
+source=("git://github.com/lxc/lxc"
+ "lxc.tmpfiles.d"
+ "lxc.service")
+md5sums=("SKIP"
+ 'df94c9fb8a753011c86ee664e9f521ff'
+ '32db4ef06b27f36e15ff4b67c049dfeb')
+
+prepare() {
+ cd "$_gitname"
+ 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
+}
+
+pkgver() {
+ cd "$_gitname"
+# git --no-pager describe --tags | sed 's:-:.:g'
+ git --no-pager describe --tags | sed 's:^lxc-::' | sed 's:-:.:g'
+}
+
+build() {
+ cd "$_gitname"
+ ./autogen.sh
+ ./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --localstatedir=/var \
+ --libexecdir=/usr/lib \
+ --sysconfdir=/etc \
+ --disable-apparmor \
+ --enable-seccomp \
+ --enable-cgmanager \
+ --enable-capabilities \
+ --enable-lua
+ make
+}
+
+package() {
+ cd "$_gitname"
+ 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@.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/{}" \;
+}
diff --git a/lxc.service b/lxc.service
new file mode 100644
index 00000000000..4c0c34e3ea1
--- /dev/null
+++ b/lxc.service
@@ -0,0 +1,11 @@
+[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
+
+[Install]
+WantedBy=multi-user.target
diff --git a/lxc.tmpfiles.d b/lxc.tmpfiles.d
new file mode 100644
index 00000000000..04bac4db458
--- /dev/null
+++ b/lxc.tmpfiles.d
@@ -0,0 +1 @@
+w /sys/fs/cgroup/memory/memory.use_hierarchy - - - - 1