diff options
Diffstat (limited to 'extra/hefur')
-rw-r--r-- | extra/hefur/PKGBUILD | 33 | ||||
-rw-r--r-- | extra/hefur/hefurd.service | 11 |
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 |