[arch-commits] Commit in hefur/repos (5 files)
Felix Yan
felixonmars at archlinux.org
Sat May 8 12:33:24 UTC 2021
Date: Saturday, May 8, 2021 @ 12:33:24
Author: felixonmars
Revision: 414733
archrelease: copy trunk to staging-x86_64
Added:
hefur/repos/staging-x86_64/
hefur/repos/staging-x86_64/PKGBUILD
(from rev 414732, hefur/trunk/PKGBUILD)
hefur/repos/staging-x86_64/hefurd.service
(from rev 414732, hefur/trunk/hefurd.service)
hefur/repos/staging-x86_64/sysusers.conf
(from rev 414732, hefur/trunk/sysusers.conf)
hefur/repos/staging-x86_64/tmpfiles.conf
(from rev 414732, hefur/trunk/tmpfiles.conf)
----------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
hefurd.service | 12 ++++++++++++
sysusers.conf | 1 +
tmpfiles.conf | 2 ++
4 files changed, 58 insertions(+)
Copied: hefur/repos/staging-x86_64/PKGBUILD (from rev 414732, hefur/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2021-05-08 12:33:24 UTC (rev 414733)
@@ -0,0 +1,43 @@
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+
+pkgname=hefur
+pkgver=1.0
+pkgrel=3
+pkgdesc='A standalone and lightweight BitTorrent tracker'
+arch=('x86_64')
+url='https://github.com/abique/hefur'
+license=('MIT')
+makedepends=('git' 'cmake')
+depends=('gnutls' 'xz' 'protobuf')
+source=("git+https://github.com/abique/${pkgname}.git#tag=${pkgver}"
+ 'hefurd.service' 'tmpfiles.conf' 'sysusers.conf')
+sha1sums=('SKIP'
+ 'd9359b0e1c54ef2d286c6161eb742d442ba1b766'
+ 'f482ed1715d5a375c4a8d1906436b946c0b02157'
+ '306db71b24ea5ca3429b6f482ab310fc7cfde63c')
+
+prepare() {
+ cd "${srcdir}/${pkgname}"
+ git submodule init
+ git submodule update
+ sed -i "s/PROJECT_NUMBER.*/PROJECT_NUMBER=${pkgver}/g" Doxyfile
+ sed -i "s/tracker-controller.hh//g" hefur/CMakeLists.txt
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}/build"
+ DESTDIR="${pkgdir}" make install
+ install -D -m644 "${srcdir}/hefurd.service" "${pkgdir}/usr/lib/systemd/system/hefurd.service"
+ install -D -m644 "${srcdir}/tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/hefurd.conf"
+ install -D -m644 "${srcdir}/sysusers.conf" "${pkgdir}/usr/lib/sysusers.d/hefurd.conf"
+ install -D -m644 "${srcdir}/${pkgname}/LICENSE.md" "${pkgdir}/usr/share/licenses/hefur/LICENSE"
+}
Copied: hefur/repos/staging-x86_64/hefurd.service (from rev 414732, hefur/trunk/hefurd.service)
===================================================================
--- staging-x86_64/hefurd.service (rev 0)
+++ staging-x86_64/hefurd.service 2021-05-08 12:33:24 UTC (rev 414733)
@@ -0,0 +1,12 @@
+[Unit]
+Description=Hefur BitTorrent tracker
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/hefurd -torrent-dir /var/lib/hefurd
+User=hefur
+Group=hefur
+CPUSchedulingPolicy=batch
+
+[Install]
+WantedBy=multi-user.target
Copied: hefur/repos/staging-x86_64/sysusers.conf (from rev 414732, hefur/trunk/sysusers.conf)
===================================================================
--- staging-x86_64/sysusers.conf (rev 0)
+++ staging-x86_64/sysusers.conf 2021-05-08 12:33:24 UTC (rev 414733)
@@ -0,0 +1 @@
+u hefur - - /var/lib/hefurd
Copied: hefur/repos/staging-x86_64/tmpfiles.conf (from rev 414732, hefur/trunk/tmpfiles.conf)
===================================================================
--- staging-x86_64/tmpfiles.conf (rev 0)
+++ staging-x86_64/tmpfiles.conf 2021-05-08 12:33:24 UTC (rev 414733)
@@ -0,0 +1,2 @@
+d /run/hefur - hefur hefur -
+d /var/lib/hefurd - hefur hefur -
More information about the arch-commits
mailing list