[arch-commits] Commit in hefur/repos (5 files)
Antonio Rojas
arojas at archlinux.org
Wed May 20 07:11:14 UTC 2020
Date: Wednesday, May 20, 2020 @ 07:11:14
Author: arojas
Revision: 386988
archrelease: copy trunk to staging-x86_64
Added:
hefur/repos/staging-x86_64/
hefur/repos/staging-x86_64/PKGBUILD
(from rev 386987, hefur/trunk/PKGBUILD)
hefur/repos/staging-x86_64/hefurd.service
(from rev 386987, hefur/trunk/hefurd.service)
hefur/repos/staging-x86_64/sysusers.conf
(from rev 386987, hefur/trunk/sysusers.conf)
hefur/repos/staging-x86_64/tmpfiles.conf
(from rev 386987, hefur/trunk/tmpfiles.conf)
----------------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
hefurd.service | 12 ++++++++++++
sysusers.conf | 1 +
tmpfiles.conf | 2 ++
4 files changed, 60 insertions(+)
Copied: hefur/repos/staging-x86_64/PKGBUILD (from rev 386987, hefur/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-20 07:11:14 UTC (rev 386988)
@@ -0,0 +1,45 @@
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+
+pkgname=hefur
+pkgver=0.6
+pkgrel=11
+pkgdesc='A standalone and lightweight BitTorrent tracker'
+arch=('x86_64')
+url='https://github.com/abique/hefur'
+license=('MIT')
+makedepends=('git' 'cmake' 'docbook-xsl')
+depends=('gnutls' 'xz' 'protobuf')
+source=("git+https://github.com/abique/${pkgname}.git#tag=${pkgver}"
+ 'hefurd.service' 'tmpfiles.conf' 'sysusers.conf')
+md5sums=('SKIP'
+ '3107be29769b8afde3574dc6e31d5b6a'
+ 'b884385d6c87c350172427da4ba2688f'
+ '7971708a1fe25c1b51e0a05e812f17c9')
+
+prepare() {
+ cd ${srcdir}/${pkgname}
+ git submodule init
+ git submodule update
+ sed -i "s/PROJECT_NUMBER.*/PROJECT_NUMBER=${pkgver}/g" Doxyfile
+}
+
+build() {
+ cd ${srcdir}/${pkgname}/manual
+ xsltproc -o manual.html /usr/share/xml/docbook/xsl-stylesheets-*/html/docbook.xsl manual.xml
+
+ 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 ${pkgdir}/usr/share/licenses/hefur/LICENSE
+}
Copied: hefur/repos/staging-x86_64/hefurd.service (from rev 386987, hefur/trunk/hefurd.service)
===================================================================
--- staging-x86_64/hefurd.service (rev 0)
+++ staging-x86_64/hefurd.service 2020-05-20 07:11:14 UTC (rev 386988)
@@ -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 386987, hefur/trunk/sysusers.conf)
===================================================================
--- staging-x86_64/sysusers.conf (rev 0)
+++ staging-x86_64/sysusers.conf 2020-05-20 07:11:14 UTC (rev 386988)
@@ -0,0 +1 @@
+u hefur - - /var/lib/hefurd
Copied: hefur/repos/staging-x86_64/tmpfiles.conf (from rev 386987, hefur/trunk/tmpfiles.conf)
===================================================================
--- staging-x86_64/tmpfiles.conf (rev 0)
+++ staging-x86_64/tmpfiles.conf 2020-05-20 07:11:14 UTC (rev 386988)
@@ -0,0 +1,2 @@
+d /run/hefur - hefur hefur -
+d /var/lib/hefurd - hefur hefur -
More information about the arch-commits
mailing list