summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-06-07 13:12:32 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-06-07 13:12:32 -0300
commit3e011bd4d08856b22438e9771b5fce2fa5e1b6d1 (patch)
tree0d732db5cae6f5a9a842eb86a0af2b4d1d1f64bd /pcr
parentd563a1aeaaf69b504ff3a3da338caf1ea26b5240 (diff)
monkeysphere: added binmerge.patch
Diffstat (limited to 'pcr')
-rw-r--r--pcr/monkeysphere/PKGBUILD20
-rw-r--r--pcr/monkeysphere/binmerge.patch25
2 files changed, 42 insertions, 3 deletions
diff --git a/pcr/monkeysphere/PKGBUILD b/pcr/monkeysphere/PKGBUILD
index d274631eb..f83e05741 100644
--- a/pcr/monkeysphere/PKGBUILD
+++ b/pcr/monkeysphere/PKGBUILD
@@ -4,15 +4,27 @@
# $Id: PKGBUILD 264 2010-11-10 00:57:53Z shtrom $
pkgname=monkeysphere
pkgver=0.35
-pkgrel=4
+pkgrel=5
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)
+source=(http://archive.monkeysphere.info/debian/pool/${pkgname}/m/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz
+ binmerge.patch)
install=monkeysphere.install
-md5sums=('481ac14c9fdef0ccd1944c593bd4f517')
+
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ patch -Ni "${srcdir}/binmerge.patch"
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make test
+}
package() {
cd "$srcdir/$pkgname-$pkgver"
@@ -20,3 +32,5 @@ package() {
make DESTDIR="$pkgdir/" install
mkdir -p $pkgdir/var/lib/monkeysphere
}
+md5sums=('481ac14c9fdef0ccd1944c593bd4f517'
+ 'a8bd35dc7dd58b5952beeecafe5045a7')
diff --git a/pcr/monkeysphere/binmerge.patch b/pcr/monkeysphere/binmerge.patch
new file mode 100644
index 000000000..48d945511
--- /dev/null
+++ b/pcr/monkeysphere/binmerge.patch
@@ -0,0 +1,25 @@
+--- 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