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

Pierre Schmitz pierre at archlinux.org
Sat Jul 26 05:52:59 UTC 2014


    Date: Saturday, July 26, 2014 @ 07:52:58
  Author: pierre
Revision: 218187

archrelease: copy trunk to testing-i686, testing-x86_64

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

-------------------------------+
 testing-i686/PKGBUILD         |   36 ++++++++++++++++++++++++++++++++++++
 testing-i686/hefur.install    |   17 +++++++++++++++++
 testing-i686/hefurd.service   |   12 ++++++++++++
 testing-i686/tmpfiles.conf    |    1 +
 testing-x86_64/PKGBUILD       |   36 ++++++++++++++++++++++++++++++++++++
 testing-x86_64/hefur.install  |   17 +++++++++++++++++
 testing-x86_64/hefurd.service |   12 ++++++++++++
 testing-x86_64/tmpfiles.conf  |    1 +
 8 files changed, 132 insertions(+)

Copied: hefur/repos/testing-i686/PKGBUILD (from rev 218186, hefur/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2014-07-26 05:52:58 UTC (rev 218187)
@@ -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=3
+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/testing-i686/hefur.install (from rev 218186, hefur/trunk/hefur.install)
===================================================================
--- testing-i686/hefur.install	                        (rev 0)
+++ testing-i686/hefur.install	2014-07-26 05:52:58 UTC (rev 218187)
@@ -0,0 +1,17 @@
+post_install() {
+	if [ ! `grep hefur /etc/group` ]; then
+		groupadd hefur &>/dev/null;
+	fi
+
+	id hefur &>/dev/null || \
+		useradd -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/testing-i686/hefurd.service (from rev 218186, hefur/trunk/hefurd.service)
===================================================================
--- testing-i686/hefurd.service	                        (rev 0)
+++ testing-i686/hefurd.service	2014-07-26 05:52:58 UTC (rev 218187)
@@ -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/testing-i686/tmpfiles.conf (from rev 218186, hefur/trunk/tmpfiles.conf)
===================================================================
--- testing-i686/tmpfiles.conf	                        (rev 0)
+++ testing-i686/tmpfiles.conf	2014-07-26 05:52:58 UTC (rev 218187)
@@ -0,0 +1 @@
+d /run/hefur - hefur hefur -

Copied: hefur/repos/testing-x86_64/PKGBUILD (from rev 218186, hefur/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2014-07-26 05:52:58 UTC (rev 218187)
@@ -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=3
+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/testing-x86_64/hefur.install (from rev 218186, hefur/trunk/hefur.install)
===================================================================
--- testing-x86_64/hefur.install	                        (rev 0)
+++ testing-x86_64/hefur.install	2014-07-26 05:52:58 UTC (rev 218187)
@@ -0,0 +1,17 @@
+post_install() {
+	if [ ! `grep hefur /etc/group` ]; then
+		groupadd hefur &>/dev/null;
+	fi
+
+	id hefur &>/dev/null || \
+		useradd -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/testing-x86_64/hefurd.service (from rev 218186, hefur/trunk/hefurd.service)
===================================================================
--- testing-x86_64/hefurd.service	                        (rev 0)
+++ testing-x86_64/hefurd.service	2014-07-26 05:52:58 UTC (rev 218187)
@@ -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/testing-x86_64/tmpfiles.conf (from rev 218186, hefur/trunk/tmpfiles.conf)
===================================================================
--- testing-x86_64/tmpfiles.conf	                        (rev 0)
+++ testing-x86_64/tmpfiles.conf	2014-07-26 05:52:58 UTC (rev 218187)
@@ -0,0 +1 @@
+d /run/hefur - hefur hefur -




More information about the arch-commits mailing list