diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-16 00:18:10 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2013-02-16 00:18:10 -0500 |
commit | 0174f5578fd28a78c48e99e1730fdae27c0fdb1b (patch) | |
tree | a5a2e7697ed94031e7226f7adb508716f3c4b953 /pcr/monkeysphere | |
parent | 49eec46aeb12ce8e0d269ef9a04d48b64b0b5628 (diff) | |
download | abslibre-0174f5578fd28a78c48e99e1730fdae27c0fdb1b.tar.gz abslibre-0174f5578fd28a78c48e99e1730fdae27c0fdb1b.tar.bz2 abslibre-0174f5578fd28a78c48e99e1730fdae27c0fdb1b.zip |
Adding packages to pcr
Diffstat (limited to 'pcr/monkeysphere')
-rw-r--r-- | pcr/monkeysphere/PKGBUILD | 22 | ||||
-rw-r--r-- | pcr/monkeysphere/monkeysphere.install | 43 |
2 files changed, 65 insertions, 0 deletions
diff --git a/pcr/monkeysphere/PKGBUILD b/pcr/monkeysphere/PKGBUILD new file mode 100644 index 000000000..d274631eb --- /dev/null +++ b/pcr/monkeysphere/PKGBUILD @@ -0,0 +1,22 @@ +# Contributor: fauno <fauno@kiwwwi.com.ar> +# Based on monkeysphere-git from +# Contributor: Olivier Mehani <shtrom-arch@ssji.net> +# $Id: PKGBUILD 264 2010-11-10 00:57:53Z shtrom $ +pkgname=monkeysphere +pkgver=0.35 +pkgrel=4 +pkgdesc="Leverage the OpenPGP web of trust for OpenSSH and Web authentication" +arch=('any') +url="http://web.monkeysphere.info/" +license=('GPL3') +depends=('gnupg' 'lockfile-progs' 'perl-crypt-openssl-rsa' 'perl-digest-sha1') +source=(http://archive.monkeysphere.info/debian/pool/${pkgname}/m/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz) +install=monkeysphere.install +md5sums=('481ac14c9fdef0ccd1944c593bd4f517') + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install + mkdir -p $pkgdir/var/lib/monkeysphere +} diff --git a/pcr/monkeysphere/monkeysphere.install b/pcr/monkeysphere/monkeysphere.install new file mode 100644 index 000000000..2013f9f41 --- /dev/null +++ b/pcr/monkeysphere/monkeysphere.install @@ -0,0 +1,43 @@ +#!/bin/sh +# $Id: monkeysphere.install 264 2010-11-10 00:57:53Z shtrom $ +# vim:set ts=2 sw=2 et: + +# arg 1: the new package version +pre_install() { + /bin/true +} + +# arg 1: the new package version +post_install() { + echo ">>> Creating monkeysphere user and group and setting permissions..." + getent group monkeysphere >/dev/null || usr/sbin/groupadd monkeysphere + getent passwd monkeysphere >/dev/null || usr/sbin/useradd -c 'Monkeysphere WoT server identification tool' -g monkeysphere -d '/var/lib/monkeysphere' -s /bin/bash monkeysphere + +# Should be root:root for sshd to work + chown root:root /var/lib/monkeysphere +} + +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + /bin/true +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { +# Should be root:root for sshd to work + chown root:root /var/lib/monkeysphere +} + +# arg 1: the old package version +pre_remove() { + usr/sbin/userdel monkeysphere &>/dev/null + (getent group monkeysphere >/dev/null && usr/sbin/groupdel monkeysphere &>/dev/null) || /bin/true +} + +# arg 1: the old package version +post_remove() { + /bin/true +} + |