[arch-commits] Commit in hefur/repos (5 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 22 21:03:45 UTC 2021


    Date: Wednesday, December 22, 2021 @ 21:03:45
  Author: felixonmars
Revision: 432937

archrelease: copy trunk to staging-x86_64

Added:
  hefur/repos/staging-x86_64/
  hefur/repos/staging-x86_64/PKGBUILD
    (from rev 432935, hefur/trunk/PKGBUILD)
  hefur/repos/staging-x86_64/hefurd.service
    (from rev 432935, hefur/trunk/hefurd.service)
  hefur/repos/staging-x86_64/sysusers.conf
    (from rev 432936, hefur/trunk/sysusers.conf)
  hefur/repos/staging-x86_64/tmpfiles.conf
    (from rev 432936, 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 432935, hefur/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-12-22 21:03:45 UTC (rev 432937)
@@ -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=5
+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 432935, hefur/trunk/hefurd.service)
===================================================================
--- staging-x86_64/hefurd.service	                        (rev 0)
+++ staging-x86_64/hefurd.service	2021-12-22 21:03:45 UTC (rev 432937)
@@ -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 432936, hefur/trunk/sysusers.conf)
===================================================================
--- staging-x86_64/sysusers.conf	                        (rev 0)
+++ staging-x86_64/sysusers.conf	2021-12-22 21:03:45 UTC (rev 432937)
@@ -0,0 +1 @@
+u hefur - - /var/lib/hefurd

Copied: hefur/repos/staging-x86_64/tmpfiles.conf (from rev 432936, hefur/trunk/tmpfiles.conf)
===================================================================
--- staging-x86_64/tmpfiles.conf	                        (rev 0)
+++ staging-x86_64/tmpfiles.conf	2021-12-22 21:03:45 UTC (rev 432937)
@@ -0,0 +1,2 @@
+d /run/hefur - hefur hefur -
+d /var/lib/hefurd - hefur hefur -



More information about the arch-commits mailing list