summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD35
-rw-r--r--agent-transfer.patch70
3 files changed, 127 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b743ce925b0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by mksrcinfo v8
+# Tue Jun 21 12:49:56 UTC 2016
+pkgbase = agent-transfer
+ pkgdesc = Copy a secret key from GnuPG's gpg-agent to OpenSSH's ssh-agent
+ pkgver = 0.38
+ pkgrel = 1
+ url = http://web.monkeysphere.info/
+ arch = amd64
+ arch = x86_64
+ license = GPL3
+ depends = libassuan>=2.0.1
+ depends = gnupg>=2.1.0
+ depends = libgcrypt>=1.7.0
+ depends = libgpg-error>=1.14
+ depends = glibc>=2.14
+ source = http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/monkeysphere_0.38.orig.tar.gz
+ source = agent-transfer.patch
+ sha256sums = 6951821d11ad646e6e7651d677bfab8f800fbc52703a0ab9942d03cd13959073
+ sha256sums = 67d756429f0805c9980d61d2ffac69be56906367e90419f3395a0b8bfca39a95
+
+pkgname = agent-transfer
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dde08118cb6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: svalo <valo@eigenlab.org>
+pkgname=agent-transfer
+_pkgsrcname=monkeysphere
+pkgver=0.38
+pkgrel=1
+pkgdesc="Copy a secret key from GnuPG's gpg-agent to OpenSSH's ssh-agent"
+arch=('amd64' 'x86_64')
+url="http://web.monkeysphere.info/"
+license=('GPL3')
+depends=('libassuan>=2.0.1' 'gnupg>=2.1.0' 'libgcrypt>=1.7.0' 'libgpg-error>=1.14' 'glibc>=2.14')
+makedepens=('gcc')
+source=(http://archive.monkeysphere.info/debian/pool/${_pkgsrcname}/m/${_pkgsrcname}/${_pkgsrcname}_${pkgver}.orig.tar.gz
+ agent-transfer.patch
+ )
+
+sha256sums=('6951821d11ad646e6e7651d677bfab8f800fbc52703a0ab9942d03cd13959073'
+ '67d756429f0805c9980d61d2ffac69be56906367e90419f3395a0b8bfca39a95')
+
+prepare() {
+ cd "$srcdir/$_pkgsrcname-$pkgver"
+ patch -Ni "${srcdir}/agent-transfer.patch"
+
+}
+
+build() {
+ cd "$srcdir/$_pkgsrcname-$pkgver"
+ make DESTDIR="$pkgdir/" all
+}
+
+package() {
+ cd "$srcdir/$_pkgsrcname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+ mkdir -p "$pkgdir/var/lib/monkeysphere"
+}
diff --git a/agent-transfer.patch b/agent-transfer.patch
new file mode 100644
index 00000000000..66347fb939b
--- /dev/null
+++ b/agent-transfer.patch
@@ -0,0 +1,70 @@
+--- Makefile.orig 2016-06-21 14:30:08.405491497 +0200
++++ Makefile 2016-06-21 14:31:23.393041346 +0200
+@@ -43,63 +43,13 @@
+ # 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)/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-authentication-keys-for-user $(DESTDIR)$(PREFIX)/share/monkeysphere
+- install -m 0755 src/share/common $(DESTDIR)$(PREFIX)/share/monkeysphere
+- install -m 0644 src/share/defaultenv $(DESTDIR)$(PREFIX)/share/monkeysphere
+- sed -i 's:__SYSCONFDIR_PREFIX__:$(ETCPREFIX):' $(DESTDIR)$(PREFIX)/share/monkeysphere/defaultenv
+- sed -i 's:__SYSDATADIR_PREFIX__:$(LOCALSTATEDIR):' $(DESTDIR)$(PREFIX)/share/monkeysphere/defaultenv
+- install -m 0755 src/share/checkperms $(DESTDIR)$(PREFIX)/share/monkeysphere
+- install -m 0755 src/share/keytrans $(DESTDIR)$(PREFIX)/share/monkeysphere
+- ln -sf ../share/monkeysphere/keytrans $(DESTDIR)$(PREFIX)/bin/pem2openpgp
+- ln -sf ../share/monkeysphere/keytrans $(DESTDIR)$(PREFIX)/bin/openpgp2ssh
+- ln -sf ../share/monkeysphere/keytrans $(DESTDIR)$(PREFIX)/bin/openpgp2pem
+- ln -sf ../share/monkeysphere/keytrans $(DESTDIR)$(PREFIX)/bin/openpgp2spki
++ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ install -m 0755 src/agent-transfer/agent-transfer $(DESTDIR)$(PREFIX)/bin
+- install -m 0744 src/transitions/* $(DESTDIR)$(PREFIX)/share/monkeysphere/transitions
+- sed -i 's:__SYSSHAREDIR_PREFIX__:$(PREFIX):' $(DESTDIR)$(PREFIX)/share/monkeysphere/transitions/0.23
+- sed -i 's:__SYSSHAREDIR_PREFIX__:$(PREFIX):' $(DESTDIR)$(PREFIX)/share/monkeysphere/transitions/0.28
+- install -m 0644 src/transitions/README.txt $(DESTDIR)$(PREFIX)/share/monkeysphere/transitions
+- install -m 0644 src/share/m/* $(DESTDIR)$(PREFIX)/share/monkeysphere/m
+- install -m 0644 src/share/mh/* $(DESTDIR)$(PREFIX)/share/monkeysphere/mh
+- install -m 0644 src/share/ma/* $(DESTDIR)$(PREFIX)/share/monkeysphere/ma
+- install -m 0644 Changelog $(DESTDIR)$(PREFIX)/share/doc/monkeysphere
+- install -d $(DESTDIR)$(PREFIX)/share/doc/monkeysphere/examples
+- install -m 0644 examples/* $(DESTDIR)$(PREFIX)/share/doc/monkeysphere/examples
+- install -m 0644 etc/monkeysphere.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere.conf$(ETCSUFFIX)
+- install -m 0644 etc/monkeysphere-host.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere-host.conf$(ETCSUFFIX)
+- install -m 0644 etc/monkeysphere-authentication.conf $(DESTDIR)$(ETCPREFIX)/etc/monkeysphere/monkeysphere-authentication.conf$(ETCSUFFIX)
+
+ installman:
+- mkdir -p $(DESTDIR)$(MANPREFIX)/man1 $(DESTDIR)$(MANPREFIX)/man7 $(DESTDIR)$(MANPREFIX)/man8
+- gzip -n man/*/*
+- install man/man1/* $(DESTDIR)$(MANPREFIX)/man1
+- install man/man7/* $(DESTDIR)$(MANPREFIX)/man7
+- install man/man8/* $(DESTDIR)$(MANPREFIX)/man8
+- ln -s openpgp2ssh.1.gz $(DESTDIR)$(MANPREFIX)/man1/openpgp2pem.1.gz
+- ln -s openpgp2ssh.1.gz $(DESTDIR)$(MANPREFIX)/man1/openpgp2spki.1.gz
+- gzip -d man/*/*
+- gzip -d $(DESTDIR)$(MANPREFIX)/man1/monkeysphere.1.gz
+- sed -i 's:__SYSCONFDIR_PREFIX__:$(ETCPREFIX):' $(DESTDIR)$(MANPREFIX)/man1/monkeysphere.1
+- gzip -n $(DESTDIR)$(MANPREFIX)/man1/monkeysphere.1
+- gzip -d $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-host.8.gz
+- sed -i 's:__SYSCONFDIR_PREFIX__:$(ETCPREFIX):' $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-host.8
+- sed -i 's:__SYSDATADIR_PREFIX__:$(LOCALSTATEDIR):' $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-host.8
+- gzip -n $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-host.8
+- gzip -d $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-authentication.8.gz
+- sed -i 's:__SYSCONFDIR_PREFIX__:$(ETCPREFIX):' $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-authentication.8
+- sed -i 's:__SYSDATADIR_PREFIX__:$(LOCALSTATEDIR):' $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-authentication.8
+- gzip -n $(DESTDIR)$(MANPREFIX)/man8/monkeysphere-authentication.8
++ mkdir -p $(DESTDIR)$(MANPREFIX)/man1
++ gzip -n man/man1/agent-transfer.1
++ install man/man1/agent-transfer.1.gz $(DESTDIR)$(MANPREFIX)/man1
+
+ # this target depends on you having the monkeysphere-docs
+ # repo checked out as a peer of your monkeysphere repo.