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

Pierre Schmitz pierre at archlinux.org
Sat Sep 19 12:27:22 UTC 2020


    Date: Saturday, September 19, 2020 @ 12:27:21
  Author: pierre
Revision: 396317

archrelease: copy trunk to testing-x86_64

Added:
  hefur/repos/testing-x86_64/
  hefur/repos/testing-x86_64/PKGBUILD
    (from rev 396316, hefur/trunk/PKGBUILD)
  hefur/repos/testing-x86_64/hefurd.service
    (from rev 396316, hefur/trunk/hefurd.service)
  hefur/repos/testing-x86_64/sysusers.conf
    (from rev 396316, hefur/trunk/sysusers.conf)
  hefur/repos/testing-x86_64/tmpfiles.conf
    (from rev 396316, hefur/trunk/tmpfiles.conf)

----------------+
 PKGBUILD       |   43 +++++++++++++++++++++++++++++++++++++++++++
 hefurd.service |   12 ++++++++++++
 sysusers.conf  |    1 +
 tmpfiles.conf  |    2 ++
 4 files changed, 58 insertions(+)

Copied: hefur/repos/testing-x86_64/PKGBUILD (from rev 396316, hefur/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-09-19 12:27:21 UTC (rev 396317)
@@ -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=1
+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/testing-x86_64/hefurd.service (from rev 396316, hefur/trunk/hefurd.service)
===================================================================
--- testing-x86_64/hefurd.service	                        (rev 0)
+++ testing-x86_64/hefurd.service	2020-09-19 12:27:21 UTC (rev 396317)
@@ -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/testing-x86_64/sysusers.conf (from rev 396316, hefur/trunk/sysusers.conf)
===================================================================
--- testing-x86_64/sysusers.conf	                        (rev 0)
+++ testing-x86_64/sysusers.conf	2020-09-19 12:27:21 UTC (rev 396317)
@@ -0,0 +1 @@
+u hefur - - /var/lib/hefurd

Copied: hefur/repos/testing-x86_64/tmpfiles.conf (from rev 396316, hefur/trunk/tmpfiles.conf)
===================================================================
--- testing-x86_64/tmpfiles.conf	                        (rev 0)
+++ testing-x86_64/tmpfiles.conf	2020-09-19 12:27:21 UTC (rev 396317)
@@ -0,0 +1,2 @@
+d /run/hefur - hefur hefur -
+d /var/lib/hefurd - hefur hefur -



More information about the arch-commits mailing list