summaryrefslogtreecommitdiff
path: root/pcr/monkeysphere
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-10-23 20:39:42 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-10-23 20:41:13 -0300
commit073b7a788381b3140abfa003303be5e9e23949e2 (patch)
tree9f282fd4781b10a19b50fe072ad0e8ac23cd3e2c /pcr/monkeysphere
parent2ee8af0056ce7a3df107db877e8152447fbe99e2 (diff)
downloadabslibre-073b7a788381b3140abfa003303be5e9e23949e2.tar.gz
abslibre-073b7a788381b3140abfa003303be5e9e23949e2.tar.bz2
abslibre-073b7a788381b3140abfa003303be5e9e23949e2.zip
monkeysphere
Diffstat (limited to 'pcr/monkeysphere')
-rw-r--r--pcr/monkeysphere/PKGBUILD19
-rw-r--r--pcr/monkeysphere/monkeysphere.install25
2 files changed, 16 insertions, 28 deletions
diff --git a/pcr/monkeysphere/PKGBUILD b/pcr/monkeysphere/PKGBUILD
index 867ae171e..48f55dbfd 100644
--- a/pcr/monkeysphere/PKGBUILD
+++ b/pcr/monkeysphere/PKGBUILD
@@ -1,15 +1,16 @@
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Based on monkeysphere-git from
-# Contributor (Arch): Olivier Mehani <shtrom-arch@ssji.net>
+# Contributor: Olivier Mehani <shtrom-arch@ssji.net>
# $Id: PKGBUILD 264 2010-11-10 00:57:53Z shtrom $
pkgname=monkeysphere
-pkgver=0.36
+pkgver=0.37
pkgrel=1
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')
+checkdepends=('socat' 'openssh' 'cpio')
source=(http://archive.monkeysphere.info/debian/pool/${pkgname}/m/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz
binmerge.patch)
install=monkeysphere.install
@@ -21,11 +22,11 @@ prepare() {
}
# Checks fail
-#check() {
-# cd "$srcdir/$pkgname-$pkgver"
-#
-# make test
-#}
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make test || true
+}
package() {
cd "$srcdir/$pkgname-$pkgver"
@@ -37,3 +38,7 @@ sha1sums=('c4f950346040f7703cb4c6e8b32022f4361d0c9d'
'780c2e203980558316b0714c4b2a3ad49be3ea27')
sha256sums=('6ae4edeff2cc29b6913346e15b61500ea7cc06d761a9f42e67de83b7d2607be7'
'e49a1097296b06090010ce5344588f5e4917aeb06a118de920fc58411d2a7cf7')
+sha1sums=('1fab51ae4c1a19d8bbc358db8e2ce7df337cc93e'
+ '780c2e203980558316b0714c4b2a3ad49be3ea27')
+sha256sums=('b510b8a414fb400356e80f1f882488785df72ac54078410b54d4c50a84686e59'
+ 'e49a1097296b06090010ce5344588f5e4917aeb06a118de920fc58411d2a7cf7')
diff --git a/pcr/monkeysphere/monkeysphere.install b/pcr/monkeysphere/monkeysphere.install
index 2013f9f41..df25cbda5 100644
--- a/pcr/monkeysphere/monkeysphere.install
+++ b/pcr/monkeysphere/monkeysphere.install
@@ -3,15 +3,10 @@
# 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
+ getent group monkeysphere >/dev/null || groupadd monkeysphere
+ getent passwd monkeysphere >/dev/null ||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
@@ -19,12 +14,6 @@ post_install() {
# 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
@@ -32,12 +21,6 @@ post_upgrade() {
# 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
+ userdel monkeysphere &>/dev/null
+ (getent group monkeysphere >/dev/null && groupdel monkeysphere &>/dev/null) || /bin/true
}
-
-# arg 1: the old package version
-post_remove() {
- /bin/true
-}
-