summaryrefslogtreecommitdiff
path: root/extra/hefur
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-29 01:22:22 -0700
committerroot <root@rshg054.dnsready.net>2012-10-29 01:22:22 -0700
commit29665004d902f751dedb1a4baaa896f9ed74c6b6 (patch)
treeba77436c66f0c84623a590444828c578a38b60e8 /extra/hefur
parent24d0263a0ac516ccc86df09146449fb040fb3689 (diff)
Mon Oct 29 01:22:06 PDT 2012
Diffstat (limited to 'extra/hefur')
-rw-r--r--extra/hefur/PKGBUILD33
-rw-r--r--extra/hefur/hefurd.service11
2 files changed, 44 insertions, 0 deletions
diff --git a/extra/hefur/PKGBUILD b/extra/hefur/PKGBUILD
new file mode 100644
index 000000000..60d6f3ff1
--- /dev/null
+++ b/extra/hefur/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 169775 2012-10-28 11:34:10Z pierre $
+# Maintainer: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: Alexandre Bique <bique.alexandre@gmail.com>
+
+pkgname=hefur
+pkgver=0.3
+pkgrel=2
+pkgdesc='A standalone and lightweight BitTorrent tracker'
+arch=('i686' 'x86_64')
+url='http://github.com/abique/hefur'
+license=('MIT')
+makedepends=('cmake')
+depends=('gnutls' 'xz')
+source=("https://github.com/downloads/abique/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+ 'hefurd.service')
+md5sums=('446ca4e659ce0ca3c8f32b0990ee7f5f'
+ '79f947bb934fd5784ab59bcb0bc1345a')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}/build
+ DESTDIR=${pkgdir} make install
+ install -D -m644 ${srcdir}/hefurd.service ${pkgdir}/usr/lib/systemd/system/hefurd.service
+ install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/hefur/LICENSE
+ install -d -m755 ${pkgdir}/var/lib/herfurd
+}
diff --git a/extra/hefur/hefurd.service b/extra/hefur/hefurd.service
new file mode 100644
index 000000000..b91e1009d
--- /dev/null
+++ b/extra/hefur/hefurd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=A standalone and lightweight BitTorrent tracker
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/hefurd -torrent-dir /var/lib/herfurd
+User=nobody
+Group=nobody
+
+[Install]
+WantedBy=multi-user.target