[arch-commits] Commit in hefur/repos (10 files)
Pierre Schmitz
pierre at archlinux.org
Sun Apr 12 06:52:31 UTC 2015
Date: Sunday, April 12, 2015 @ 08:52:30
Author: pierre
Revision: 236283
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
hefur/repos/staging-i686/
hefur/repos/staging-i686/PKGBUILD
(from rev 236282, hefur/trunk/PKGBUILD)
hefur/repos/staging-i686/hefur.install
(from rev 236282, hefur/trunk/hefur.install)
hefur/repos/staging-i686/hefurd.service
(from rev 236282, hefur/trunk/hefurd.service)
hefur/repos/staging-i686/tmpfiles.conf
(from rev 236282, hefur/trunk/tmpfiles.conf)
hefur/repos/staging-x86_64/
hefur/repos/staging-x86_64/PKGBUILD
(from rev 236282, hefur/trunk/PKGBUILD)
hefur/repos/staging-x86_64/hefur.install
(from rev 236282, hefur/trunk/hefur.install)
hefur/repos/staging-x86_64/hefurd.service
(from rev 236282, hefur/trunk/hefurd.service)
hefur/repos/staging-x86_64/tmpfiles.conf
(from rev 236282, hefur/trunk/tmpfiles.conf)
-------------------------------+
staging-i686/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
staging-i686/hefur.install | 17 +++++++++++++++++
staging-i686/hefurd.service | 12 ++++++++++++
staging-i686/tmpfiles.conf | 1 +
staging-x86_64/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
staging-x86_64/hefur.install | 17 +++++++++++++++++
staging-x86_64/hefurd.service | 12 ++++++++++++
staging-x86_64/tmpfiles.conf | 1 +
8 files changed, 132 insertions(+)
Copied: hefur/repos/staging-i686/PKGBUILD (from rev 236282, hefur/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+
+pkgname=hefur
+pkgver=0.4
+pkgrel=6
+pkgdesc='A standalone and lightweight BitTorrent tracker'
+arch=('i686' 'x86_64')
+url='http://github.com/abique/hefur'
+license=('MIT')
+makedepends=('cmake')
+depends=('gnutls' 'xz' 'protobuf')
+install='hefur.install'
+source=("https://github.com/downloads/abique/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+ 'hefurd.service' 'tmpfiles.conf')
+md5sums=('f0461363f38105140a1f119a3b97d818'
+ 'ea3acfe2087c1b46b7cd1002c454312d'
+ '09c64ca9b66f7c7877a5a2ce81c0dcff')
+
+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}/tmpfiles.conf ${pkgdir}/usr/lib/tmpfiles.d/hefurd.conf
+ install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/hefur/LICENSE
+ install -d -m755 ${pkgdir}/var/lib/hefurd
+}
Copied: hefur/repos/staging-i686/hefur.install (from rev 236282, hefur/trunk/hefur.install)
===================================================================
--- staging-i686/hefur.install (rev 0)
+++ staging-i686/hefur.install 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1,17 @@
+post_install() {
+ if [ ! `grep hefur /etc/group` ]; then
+ groupadd -r hefur &>/dev/null;
+ fi
+
+ id hefur &>/dev/null || \
+ useradd -r -g hefur -d /var/lib/hefurd -s /usr/bin/nologin hefur
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ userdel hefur &> /dev/null
+ groupdel hefur &> /dev/null
+}
Copied: hefur/repos/staging-i686/hefurd.service (from rev 236282, hefur/trunk/hefurd.service)
===================================================================
--- staging-i686/hefurd.service (rev 0)
+++ staging-i686/hefurd.service 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1,12 @@
+[Unit]
+Description=A standalone and lightweight 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-i686/tmpfiles.conf (from rev 236282, hefur/trunk/tmpfiles.conf)
===================================================================
--- staging-i686/tmpfiles.conf (rev 0)
+++ staging-i686/tmpfiles.conf 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1 @@
+d /run/hefur - hefur hefur -
Copied: hefur/repos/staging-x86_64/PKGBUILD (from rev 236282, hefur/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Pierre Schmitz <pierre at archlinux.de>
+# Contributor: Alexandre Bique <bique.alexandre at gmail.com>
+
+pkgname=hefur
+pkgver=0.4
+pkgrel=6
+pkgdesc='A standalone and lightweight BitTorrent tracker'
+arch=('i686' 'x86_64')
+url='http://github.com/abique/hefur'
+license=('MIT')
+makedepends=('cmake')
+depends=('gnutls' 'xz' 'protobuf')
+install='hefur.install'
+source=("https://github.com/downloads/abique/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+ 'hefurd.service' 'tmpfiles.conf')
+md5sums=('f0461363f38105140a1f119a3b97d818'
+ 'ea3acfe2087c1b46b7cd1002c454312d'
+ '09c64ca9b66f7c7877a5a2ce81c0dcff')
+
+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}/tmpfiles.conf ${pkgdir}/usr/lib/tmpfiles.d/hefurd.conf
+ install -D -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/hefur/LICENSE
+ install -d -m755 ${pkgdir}/var/lib/hefurd
+}
Copied: hefur/repos/staging-x86_64/hefur.install (from rev 236282, hefur/trunk/hefur.install)
===================================================================
--- staging-x86_64/hefur.install (rev 0)
+++ staging-x86_64/hefur.install 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1,17 @@
+post_install() {
+ if [ ! `grep hefur /etc/group` ]; then
+ groupadd -r hefur &>/dev/null;
+ fi
+
+ id hefur &>/dev/null || \
+ useradd -r -g hefur -d /var/lib/hefurd -s /usr/bin/nologin hefur
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ userdel hefur &> /dev/null
+ groupdel hefur &> /dev/null
+}
Copied: hefur/repos/staging-x86_64/hefurd.service (from rev 236282, hefur/trunk/hefurd.service)
===================================================================
--- staging-x86_64/hefurd.service (rev 0)
+++ staging-x86_64/hefurd.service 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1,12 @@
+[Unit]
+Description=A standalone and lightweight 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/tmpfiles.conf (from rev 236282, hefur/trunk/tmpfiles.conf)
===================================================================
--- staging-x86_64/tmpfiles.conf (rev 0)
+++ staging-x86_64/tmpfiles.conf 2015-04-12 06:52:30 UTC (rev 236283)
@@ -0,0 +1 @@
+d /run/hefur - hefur hefur -
More information about the arch-commits
mailing list