diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-12-27 23:55:53 +0000 |
commit | 65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch) | |
tree | fbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /community/gearmand | |
parent | d53c44f055929b18d7d1b25f8367ee5836c435fc (diff) |
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'community/gearmand')
-rw-r--r-- | community/gearmand/PKGBUILD | 50 | ||||
-rw-r--r-- | community/gearmand/gearmand.conf | 1 | ||||
-rw-r--r-- | community/gearmand/gearmand.install | 12 | ||||
-rw-r--r-- | community/gearmand/gearmand.service | 12 |
4 files changed, 75 insertions, 0 deletions
diff --git a/community/gearmand/PKGBUILD b/community/gearmand/PKGBUILD new file mode 100644 index 000000000..f0f325628 --- /dev/null +++ b/community/gearmand/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 102452 2013-12-11 14:33:31Z mtorromeo $ +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +# Contributor: Lev Lybin <lev.lybin@gmail.com> +# Contributor: Vadym Abramchuk <abramm@gmail.com> +# Contributor: John Gerritse <reaphsharc@gmail.com> + +pkgname=gearmand +pkgver=1.1.11 +pkgrel=1 +pkgdesc="Distributed job queue server." +arch=('i686' 'x86_64') +depends=('libevent' 'boost-libs' 'libmariadbclient' 'postgresql-libs' 'sqlite') +makedepends=('boost' 'gperf' 'python-sphinx') +conflicts=('gearman') +replaces=('gearman') +provides=("gearman=$pkgver") +url="http://gearman.org/" +license=('CUSTOM') +install=$pkgname.install +backup=('etc/gearmand.conf') +source=(https://launchpad.net/$pkgname/1.2/$pkgver/+download/$pkgname-$pkgver.tar.gz + gearmand.service + gearmand.conf) + +build() { + cd "$srcdir/$pkgname-$pkgver" + export LDFLAGS="$LDFLAGS -lboost_system" + ./configure \ + --prefix=/usr \ + --sbindir=/usr/bin \ + --sysconfdir=/etc \ + --localstatedir=/run \ + --disable-static \ + --enable-ssl + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + + cd "$srcdir" + install -Dm644 gearmand.service "$pkgdir/usr/lib/systemd/system/gearmand.service" + install -Dm644 gearmand.conf "$pkgdir/etc/gearmand.conf" +} + +sha256sums=('a175cbdeabe8102796418a516532adad58abd5e355365c78b6a234e544655825' + 'dee38ad4e614969047253b8c4996b8cdf33c981b0df215b6627356fd4cbafa33' + '6c14fdcd94105338e13bdd59dbed4f9b77430a517b2c125ac2e6d3bc43bdf506') diff --git a/community/gearmand/gearmand.conf b/community/gearmand/gearmand.conf new file mode 100644 index 000000000..2ea39fb2f --- /dev/null +++ b/community/gearmand/gearmand.conf @@ -0,0 +1 @@ +--syslog --log-file stderr diff --git a/community/gearmand/gearmand.install b/community/gearmand/gearmand.install new file mode 100644 index 000000000..56d8ac86b --- /dev/null +++ b/community/gearmand/gearmand.install @@ -0,0 +1,12 @@ +post_install() { + getent group gearmand >/dev/null 2>&1 || groupadd -g 113 gearmand &>/dev/null + getent passwd gearmand >/dev/null 2>&1 || useradd -u 113 -g gearmand -d /dev/null -s /bin/false gearmand &>/dev/null +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + userdel gearmand +} diff --git a/community/gearmand/gearmand.service b/community/gearmand/gearmand.service new file mode 100644 index 000000000..a1a8d5a23 --- /dev/null +++ b/community/gearmand/gearmand.service @@ -0,0 +1,12 @@ +[Unit] +Description=Gearmand distributed job system +After=syslog.target network.target + +[Service] +User=gearmand +Type=forking +ExecStart=/usr/bin/gearmand -d +Restart=on-failure + +[Install] +WantedBy=multi-user.target |