summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD35
-rw-r--r--mongodb.conf8
-rw-r--r--mongodb.service10
-rw-r--r--mongodb.sysusers2
-rw-r--r--mongodb.tmpfiles2
6 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8496051ba4c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = mongodb34-bin
+ pkgdesc = Scalable and flexible document database
+ pkgver = 3.4.16
+ pkgrel = 1
+ url = https://www.mongodb.com/
+ arch = x86_64
+ license = AGPLv3
+ provides = mongodb=3.4.16
+ provides = mongodb-tools=3.4.16
+ conflicts = mongodb
+ conflicts = mongodb-tools
+ backup = etc/mongodb.conf
+ source = https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.4.16.tgz
+ source = mongodb.service
+ source = mongodb.conf
+ source = mongodb.sysusers
+ source = mongodb.tmpfiles
+ md5sums = 16c7a42623b5f5d798708dd44915dd1f
+ md5sums = 96ab4517b48974ce0e566d9746a75a4f
+ md5sums = 4839fe1d638187ca3226e8267b947318
+ md5sums = ff773b723f7bf217c2a8176e3b143498
+ md5sums = c599936e8858aeba31dc06cc3ff88612
+
+pkgname = mongodb34-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8261bb63ffb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+#Maintainer: Viktor Semykin thesame.ml@gmail.com
+
+pkgname="mongodb34-bin"
+pkgver="3.4.16"
+pkgrel="1"
+pkgdesc="Scalable and flexible document database"
+arch=("x86_64")
+url="https://www.mongodb.com/"
+license=("AGPLv3")
+provides=("mongodb=$pkgver" "mongodb-tools=$pkgver")
+conflicts=("mongodb" "mongodb-tools")
+source=(
+ "https://fastdl.mongodb.org/linux/mongodb-linux-$arch-$pkgver.tgz"
+ "mongodb.service"
+ "mongodb.conf"
+ "mongodb.sysusers"
+ "mongodb.tmpfiles"
+ )
+
+md5sums=('16c7a42623b5f5d798708dd44915dd1f'
+ '96ab4517b48974ce0e566d9746a75a4f'
+ '4839fe1d638187ca3226e8267b947318'
+ 'ff773b723f7bf217c2a8176e3b143498'
+ 'c599936e8858aeba31dc06cc3ff88612')
+
+backup=("etc/mongodb.conf")
+
+package() {
+ mkdir -p "$pkgdir/usr"
+ cp -r "$srcdir/mongodb-linux-$arch-$pkgver/bin" "$pkgdir/usr/"
+ install -Dm644 "$srcdir/mongodb.conf" "$pkgdir/etc/mongodb.conf"
+ install -Dm644 "$srcdir/mongodb.service" "$pkgdir/usr/lib/systemd/system/mongodb.service"
+ install -Dm644 "$srcdir/mongodb.sysusers" "$pkgdir/usr/lib/sysusers.d/mongodb.conf"
+ install -Dm644 "$srcdir/mongodb.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/mongodb.conf"
+}
diff --git a/mongodb.conf b/mongodb.conf
new file mode 100644
index 00000000000..c5272b7f2df
--- /dev/null
+++ b/mongodb.conf
@@ -0,0 +1,8 @@
+# See http://www.mongodb.org/display/DOCS/File+Based+Configuration for format details
+# Run mongod --help to see a list of options
+
+bind_ip = 127.0.0.1
+quiet = true
+dbpath = /var/lib/mongodb
+logpath = /var/log/mongodb/mongod.log
+logappend = true
diff --git a/mongodb.service b/mongodb.service
new file mode 100644
index 00000000000..78d55118383
--- /dev/null
+++ b/mongodb.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=High-performance, schema-free document-oriented database
+After=network.target
+
+[Service]
+User=mongodb
+ExecStart=/usr/bin/mongod --quiet --config /etc/mongodb.conf
+
+[Install]
+WantedBy=multi-user.target
diff --git a/mongodb.sysusers b/mongodb.sysusers
new file mode 100644
index 00000000000..e733c84003c
--- /dev/null
+++ b/mongodb.sysusers
@@ -0,0 +1,2 @@
+u mongodb - - /var/lib/mongodb
+m mongodb daemon
diff --git a/mongodb.tmpfiles b/mongodb.tmpfiles
new file mode 100644
index 00000000000..636e0c3f74a
--- /dev/null
+++ b/mongodb.tmpfiles
@@ -0,0 +1,2 @@
+d /var/lib//mongodb 0700 mongodb daemon - -
+d /var/log//mongodb 0755 mongodb daemon - -