Commit 2dfd3ec7 authored by Valo's avatar Valo

Initial import

parents
pkgbase = monkeysphere
pkgdesc = Leverage the OpenPGP web of trust for OpenSSH and Web authentication
pkgver = 0.37
pkgrel = 2
url = http://web.monkeysphere.info/
install = monkeysphere.install
arch = any
license = GPL3
checkdepends = socat
checkdepends = openssh
checkdepends = cpio
checkdepends = gnupg
depends = gnupg1
depends = lockfile-progs
depends = perl-crypt-openssl-rsa
depends = perl-digest-sha1
source = http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_0.37.orig.tar.gz
source = binmerge.patch
source = ms.patch
source = mshost.patch
source = msauth.patch
sha256sums = b510b8a414fb400356e80f1f882488785df72ac54078410b54d4c50a84686e59
sha256sums = e49a1097296b06090010ce5344588f5e4917aeb06a118de920fc58411d2a7cf7
sha256sums = ce490eebfbf92b9a9abaf77d43489b0cdd7ebab427262e9eb7fbefdb67cdf289
sha256sums = 4ddad85f6a9998f8f8869cef4f2f6d7bf9f04171fb3b5ae6c6621bfc8dc2bcbe
sha256sums = bcad168603c2afd4db6b54edd61c8c9cdd1e08bcea7de3b936a3269f271e3de6
pkgname = monkeysphere
# Maintainer: svalo <valo@eigenlab.org>
# Contributor: David Costa <david@zarel.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Based on monkeysphere-git from
# Contributor: Olivier Mehani <shtrom-arch@ssji.net>
pkgname=monkeysphere
pkgver=0.37
pkgrel=2
pkgdesc="Leverage the OpenPGP web of trust for OpenSSH and Web authentication"
arch=('any')
url="http://web.monkeysphere.info/"
license=('GPL3')
depends=('gnupg1' 'lockfile-progs' 'perl-crypt-openssl-rsa' 'perl-digest-sha1')
checkdepends=('socat' 'openssh' 'cpio' 'gnupg')
source=(http://archive.monkeysphere.info/debian/pool/${pkgname}/m/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz
binmerge.patch
ms.patch
mshost.patch
msauth.patch)
sha256sums=('b510b8a414fb400356e80f1f882488785df72ac54078410b54d4c50a84686e59'
'e49a1097296b06090010ce5344588f5e4917aeb06a118de920fc58411d2a7cf7'
'ce490eebfbf92b9a9abaf77d43489b0cdd7ebab427262e9eb7fbefdb67cdf289'
'4ddad85f6a9998f8f8869cef4f2f6d7bf9f04171fb3b5ae6c6621bfc8dc2bcbe'
'bcad168603c2afd4db6b54edd61c8c9cdd1e08bcea7de3b936a3269f271e3de6')
install=monkeysphere.install
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -Ni "${srcdir}/binmerge.patch"
patch -p1 -Ni "${srcdir}/ms.patch"
patch -p1 -Ni "${srcdir}/msauth.patch"
patch -p1 -Ni "${srcdir}/mshost.patch"
}
# Checks fail
#check() {
# cd "$srcdir/$pkgname-$pkgver"
#
# make test
#}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
mkdir -p "$pkgdir/var/lib/monkeysphere"
}
--- Makefile.orig 2013-06-07 13:02:23.123944233 -0300
+++ Makefile 2013-06-07 13:02:43.351065809 -0300
@@ -36,17 +36,17 @@
# this target is to be called from the tarball, not from the git
# working dir!
install: all installman
- mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/sbin
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/share/monkeysphere/m $(DESTDIR)$(PREFIX)/share/monkeysphere/mh $(DESTDIR)$(PREFIX)/share/monkeysphere/ma $(DESTDIR)$(PREFIX)/share/monkeysphere/transitions
mkdir -p $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere
mkdir -p $(DESTDIR)$(PREFIX)/share/doc/monkeysphere
printf "Monkeysphere %s\n" $(MONKEYSPHERE_VERSION) > $(DESTDIR)$(PREFIX)/share/monkeysphere/VERSION
install src/monkeysphere $(DESTDIR)$(PREFIX)/bin
sed -i 's:__SYSSHAREDIR_PREFIX__:$(PREFIX):' $(DESTDIR)$(PREFIX)/bin/monkeysphere
- install src/monkeysphere-host $(DESTDIR)$(PREFIX)/sbin
- sed -i 's:__SYSSHAREDIR_PREFIX__:$(PREFIX):' $(DESTDIR)$(PREFIX)/sbin/monkeysphere-host
- install src/monkeysphere-authentication $(DESTDIR)$(PREFIX)/sbin
- sed -i 's:__SYSSHAREDIR_PREFIX__:$(PREFIX):' $(DESTDIR)$(PREFIX)/sbin/monkeysphere-authentication
+ install src/monkeysphere-host $(DESTDIR)$(PREFIX)/bin
+ sed -i 's:__SYSSHAREDIR_PREFIX__:$(PREFIX):' $(DESTDIR)$(PREFIX)/bin/monkeysphere-host
+ install src/monkeysphere-authentication $(DESTDIR)$(PREFIX)/bin
+ sed -i 's:__SYSSHAREDIR_PREFIX__:$(PREFIX):' $(DESTDIR)$(PREFIX)/bin/monkeysphere-authentication
install src/monkeysphere-authentication-keys-for-user $(DESTDIR)$(PREFIX)/share/monkeysphere
install -m 0644 src/share/common $(DESTDIR)$(PREFIX)/share/monkeysphere
install -m 0644 src/share/defaultenv $(DESTDIR)$(PREFIX)/share/monkeysphere
#!/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
post_install() {
echo ">>> Creating monkeysphere user and group and setting permissions..."
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
}
# 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() {
userdel monkeysphere &>/dev/null
(getent group monkeysphere >/dev/null && groupdel monkeysphere &>/dev/null) || /bin/true
}
--- a/src/monkeysphere 2014-08-06 19:27:38.000000000 +0200
+++ b/src/monkeysphere 2014-12-07 23:22:52.903467885 +0100
@@ -62,7 +62,7 @@
# user gpg command to define common options
gpg_user() {
- LC_ALL=C gpg --fixed-list-mode --no-greeting --quiet --no-tty "$@"
+ LC_ALL=C gpg1 --fixed-list-mode --no-greeting --quiet --no-tty "$@"
}
# output the ssh fingerprint of a gpg key
--- a/src/monkeysphere-authentication 2014-08-06 19:27:38.000000000 +0200
+++ b/src/monkeysphere-authentication 2014-12-07 23:23:37.770134940 +0100
@@ -73,7 +73,7 @@
GNUPGHOME="$GNUPGHOME_CORE"
export GNUPGHOME
- gpg --fixed-list-mode --no-greeting --quiet --no-tty "$@"
+ gpg1 --fixed-list-mode --no-greeting --quiet --no-tty "$@"
}
# function to interact with the gpg sphere keyring
@@ -81,7 +81,7 @@
GNUPGHOME="$GNUPGHOME_SPHERE"
export GNUPGHOME
- su_monkeysphere_user gpg --fixed-list-mode --no-greeting --quiet --no-tty "$@"
+ su_monkeysphere_user gpg1 --fixed-list-mode --no-greeting --quiet --no-tty "$@"
}
check_openpgp2ssh_sanity() {
--- a/src/monkeysphere-host 2014-08-06 19:27:38.000000000 +0200
+++ b/src/monkeysphere-host.new 2014-12-07 23:23:07.306801343 +0100
@@ -71,7 +71,7 @@
# function to interact with the gpg keyring
gpg_host() {
- GNUPGHOME="$GNUPGHOME_HOST" LC_ALL=C gpg --no-auto-check-trustdb --trust-model=always --no-greeting --quiet --no-tty --fixed-list-mode "$@"
+ GNUPGHOME="$GNUPGHOME_HOST" LC_ALL=C gpg1 --no-auto-check-trustdb --trust-model=always --no-greeting --quiet --no-tty --fixed-list-mode "$@"
}
# list the info about the a key, in colon format, to stdout
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment