[arch-commits] Commit in (8 files)
Jelle van der Waa
jelle at archlinux.org
Sun Apr 19 10:52:59 UTC 2020
Date: Sunday, April 19, 2020 @ 10:52:59
Author: jelle
Revision: 616476
initial commit
Added:
meilisearch/
meilisearch/repos/
meilisearch/trunk/
meilisearch/trunk/PKGBUILD
meilisearch/trunk/meilisearch.conf
meilisearch/trunk/meilisearch.service
meilisearch/trunk/meilisearch.sysusers
meilisearch/trunk/meilisearch.tmpfiles
----------------------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
meilisearch.conf | 5 +++++
meilisearch.service | 31 +++++++++++++++++++++++++++++++
meilisearch.sysusers | 2 ++
meilisearch.tmpfiles | 1 +
5 files changed, 80 insertions(+)
Added: meilisearch/trunk/PKGBUILD
===================================================================
--- meilisearch/trunk/PKGBUILD (rev 0)
+++ meilisearch/trunk/PKGBUILD 2020-04-19 10:52:59 UTC (rev 616476)
@@ -0,0 +1,41 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_pkgname=MeiliSearch
+pkgname=meilisearch
+pkgver=0.10.0
+pkgrel=1
+pkgdesc="Lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine"
+arch=(x86_64)
+url="https://docs.meilisearch.com/"
+license=('MIT')
+depends=(gcc-libs)
+makedepends=(rust)
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/meilisearch/MeiliSearch/archive/v${pkgver}.tar.gz
+ ${pkgname}.service ${pkgname}.tmpfiles ${pkgname}.sysusers ${pkgname}.conf)
+sha512sums=('f07622a25b1a7ba97b6a8139b5fa3b61e16ddf4176f9adb870339a4c33fbd1dfb6b41230b8cf220c50f65ca3add7679c160765ce1fd020abb5a45665b5af2eaf'
+ '88c5cf90aca1cc058dffdb19a8fcef2f9232a6458f18190704ede5a165bdedaf7f7ea8a1365cfb34c42f917bbc2354c3fb1f397fc966aaebdce8b5f30040df20'
+ '76284bf4c436a6b3365edd6bd12ffcb186b721d284b29933e77ddc841d333be9eeb2701c89fba1567a8eedda52787be8d3c5f55809a051488b7295fbb6842bce'
+ 'b83518bd61cb587baac784b1b9bbe4a6a12be91c0a5b6cc0b3b631dde9cee1d59d6e43800a0d32b909fb2d90fe3f64e1ab63c3c8028428be3333d39f6c05d60c'
+ '9d63a9cca6cafb248fffcd4a6e5bac0905d4b87f3eb9793576003d3965e35e217c4c1d6b3206b25ef47143e7d538e71c746bc0352bcdf248ed19e12f58aedc12')
+validpgpkeys=()
+
+build() {
+ cd "$_pkgname-$pkgver"
+ cargo build --release --locked --all-features
+}
+
+check() {
+ cd "$_pkgname-$pkgver"
+ cargo test --release --locked
+}
+
+package() {
+ cd "$_pkgname-$pkgver"
+ install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
+
+ install -D -m644 "${srcdir}/meilisearch.service" "${pkgdir}/usr/lib/systemd/system/meilisearch.service"
+ install -D -m644 "${srcdir}/meilisearch.sysusers" "${pkgdir}/usr/lib/sysusers.d/meilisearch.conf"
+ install -D -m644 "${srcdir}/meilisearch.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/meilisearch.conf"
+ install -D -m644 "${srcdir}/meilisearch.conf" "${pkgdir}/etc//meilisearch.conf"
+}
Added: meilisearch/trunk/meilisearch.conf
===================================================================
--- meilisearch/trunk/meilisearch.conf (rev 0)
+++ meilisearch/trunk/meilisearch.conf 2020-04-19 10:52:59 UTC (rev 616476)
@@ -0,0 +1,5 @@
+# Meilisearch configuration
+#MEILI_ENV=
+#MEILI_HTTP_ADDR=
+#MEILI_MASTER_KEY=
+#MEILI_NO_ANALYTICS=no
Added: meilisearch/trunk/meilisearch.service
===================================================================
--- meilisearch/trunk/meilisearch.service (rev 0)
+++ meilisearch/trunk/meilisearch.service 2020-04-19 10:52:59 UTC (rev 616476)
@@ -0,0 +1,31 @@
+[Unit]
+Description=MeiliSearch is a RESTful search API
+Documentation=https://docs.meilisearch.com/
+Requires=network-online.target
+After=network-online.target
+
+[Service]
+User=meilisearch
+Group=meilisearch
+Restart=on-failure
+WorkingDirectory=/var/lib/meilisearch
+ExecStart=/usr/bin/meilisearch --no-analytics true
+EnvironmentFile=/etc/meilisearch.conf
+NoNewPrivileges=true
+ProtectHome=true
+ProtectSystem=full
+ProtectHostname=true
+ProtectControlGroups=true
+ProtectKernelModules=true
+ProtectKernelTunables=true
+ProtectKernelLogs=true
+LockPersonality=true
+RestrictRealtime=yes
+RestrictNamespaces=yes
+MemoryDenyWriteExecute=yes
+PrivateDevices=yes
+PrivateTmp=true
+CapabilityBoundingSet=
+
+[Install]
+WantedBy=multi-user.target
Added: meilisearch/trunk/meilisearch.sysusers
===================================================================
--- meilisearch/trunk/meilisearch.sysusers (rev 0)
+++ meilisearch/trunk/meilisearch.sysusers 2020-04-19 10:52:59 UTC (rev 616476)
@@ -0,0 +1,2 @@
+u meilisearch - "Meilisearch dedicated user" /var/lib/meilisearch
+
Added: meilisearch/trunk/meilisearch.tmpfiles
===================================================================
--- meilisearch/trunk/meilisearch.tmpfiles (rev 0)
+++ meilisearch/trunk/meilisearch.tmpfiles 2020-04-19 10:52:59 UTC (rev 616476)
@@ -0,0 +1 @@
+d /var/lib/meilisearch 0750 meilisearch meilisearch -
More information about the arch-commits
mailing list