summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIwan Timmer2015-06-12 16:14:47 +0200
committerIwan Timmer2015-06-12 16:14:47 +0200
commit5699e3224e0edde3fc2e0e074c5a230963aebacb (patch)
tree1ecfc4c72d48484ebe70d226098c74e3eccd5d72
downloadaur-5699e3224e0edde3fc2e0e074c5a230963aebacb.tar.gz
Initial commit of flannel
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD28
-rw-r--r--flannel.service9
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..721cc247186
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = flannel
+ pkgdesc = Etcd backed network fabric for containers
+ pkgver = 0.4.1
+ pkgrel = 1
+ url = https://github.com/coreos/flannel
+ arch = x86_64
+ arch = i686
+ license = APACHE
+ makedepends = go
+ depends = glibc
+ source = https://github.com/coreos/flannel/archive/v0.4.1.tar.gz
+ source = flannel.service
+ sha256sums = 1bbd399cb511070e61606d741d91607d3b3abc9a45bd00faee23929722aa4d53
+ sha256sums = 3ec927a5a545293541e800057c3c0b85fcd5161071526a8fc9666caa0801c80f
+
+pkgname = flannel
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c0da3dfb95d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+#Maintainer: Iwan Timmer <irtimmer@gmail.com>
+
+pkgname=flannel
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="Etcd backed network fabric for containers"
+depends=('glibc')
+makedepends=('go')
+arch=('x86_64' 'i686')
+source=("https://github.com/coreos/flannel/archive/v$pkgver.tar.gz"
+ "flannel.service")
+url="https://github.com/coreos/flannel"
+license="APACHE"
+sha256sums=('1bbd399cb511070e61606d741d91607d3b3abc9a45bd00faee23929722aa4d53'
+ '3ec927a5a545293541e800057c3c0b85fcd5161071526a8fc9666caa0801c80f')
+
+build() {
+ cd $srcdir/flannel-$pkgver
+
+ ./build
+}
+
+package() {
+ cd $srcdir/flannel-$pkgver
+
+ install -Dm755 bin/flanneld $pkgdir/usr/bin/flannel
+ install -Dm644 $srcdir/flannel.service $pkgdir/usr/lib/systemd/system/flannel.service
+}
diff --git a/flannel.service b/flannel.service
new file mode 100644
index 00000000000..d3629a28224
--- /dev/null
+++ b/flannel.service
@@ -0,0 +1,9 @@
+[Unit]
+Requires=etcd.service
+After=etcd.service
+
+[Service]
+ExecStart=/usr/bin/flannel
+
+[Install]
+WantedBy=multi-user.target