From 70fdfa0ce15ba287b5c5f012e66cb56930fe4b8b Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Thu, 11 Sep 2008 23:57:49 -0400 Subject: [PATCH] added initial FreeBSD packaging from anarcat (via svn from https://lethe.koumbit.net/svn/koumbit/trunk/ports/security/monkeysphere) --- packaging/freebsd/Makefile | 33 +++++++++++++++++++ packaging/freebsd/TODO | 31 +++++++++++++++++ packaging/freebsd/distinfo | 3 ++ .../freebsd/files/patch-src-keytrans-makefile | 11 +++++++ packaging/freebsd/pkg-descr | 5 +++ packaging/freebsd/pkg-plist | 19 +++++++++++ 6 files changed, 102 insertions(+) create mode 100644 packaging/freebsd/Makefile create mode 100644 packaging/freebsd/TODO create mode 100644 packaging/freebsd/distinfo create mode 100644 packaging/freebsd/files/patch-src-keytrans-makefile create mode 100644 packaging/freebsd/pkg-descr create mode 100644 packaging/freebsd/pkg-plist diff --git a/packaging/freebsd/Makefile b/packaging/freebsd/Makefile new file mode 100644 index 0000000..c142f70 --- /dev/null +++ b/packaging/freebsd/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: oneko +# Date created: 5 December 1994 +# Whom: asami +# +# $FreeBSD$ +# + +PORTNAME= monkeysphere +PORTVERSION= 0.14 +CATEGORIES= security +MASTER_SITES= http://archive.monkeysphere.info/debian/pool/monkeysphere/m/monkeysphere/ +# hack for debian orig tarballs +DISTFILES= ${PORTNAME}_${DISTVERSION}.orig.tar.gz + +# comment this out to test the port +IGNORE= this port is not finished yet + +MAINTAINER= anarcat@anarcat.ath.cx +COMMENT= use the OpenPGP web of trust to verify ssh connections + +LIB_DEPENDS= gnutls.26:${PORTSDIR}/security/gnutls +RUN_DEPENDS= base64:${PORTSDIR}/converters/base64 \ + gpg:${PORTSDIR}/security/gnupg \ + nc:${PORTSDIR}/net/netcat \ + bash:${PORTSDIR}/shells/bash + +MAN1= monkeysphere.1 openpgp2ssh.1 monkeysphere-ssh-proxycommand.1 +MAN5= monkeysphere.5 +MAN8= monkeysphere-server.8 +MANCOMPRESSED= yes +USE_GMAKE= yes + +.include diff --git a/packaging/freebsd/TODO b/packaging/freebsd/TODO new file mode 100644 index 0000000..c726aeb --- /dev/null +++ b/packaging/freebsd/TODO @@ -0,0 +1,31 @@ +This port is not ready yet. Upstream needs to change a few things (or we +need patches) to work around some dependencies, most notably: + + * lockfile-progs (they may use procmail's lockfile prog) + * moreutils (for sponge) + * an install target that also respects PREFIX + +We also need to create the monkeysphere user in the pkg-install and +remove it in pkg-deinstall. To do this, this page has useful tips: + +http://www.freebsd.org/doc/en/books/porters-handbook/dads-uid-and-gids.html + +and we'll have to copy scripts from existing ports that are suggested +above, see: + +http://www.freebsd.org/cgi/cvsweb.cgi/ports/japanese/Wnn6/pkg-install +http://www.freebsd.org/cgi/cvsweb.cgi/ports/net/cvsup-mirror/pkg-install + +or just look around the ports tree for pkg-install files, they are +usually for adding users. + +There is also the usual crappy work involved with installing a .defaults +file instead of straight files in /usr/local/etc: + +http://www.freebsd.org/doc/en/books/porters-handbook/plist-config.html + +Finally the pkg-plist needs to be checked. The package hasn't been +installed at all once yet, it only patches and builds. + +The port is therefore marked as IGNORE, which makes it unusable, comment +out the IGNORE line in the Makefile to test. diff --git a/packaging/freebsd/distinfo b/packaging/freebsd/distinfo new file mode 100644 index 0000000..21c7532 --- /dev/null +++ b/packaging/freebsd/distinfo @@ -0,0 +1,3 @@ +MD5 (monkeysphere_0.14.orig.tar.gz) = cff32444de1b327fa18ec4acd64c1406 +SHA256 (monkeysphere_0.14.orig.tar.gz) = 5b27e0c4a21ede0afe682491ddfbdd70eeddae759287d9eb34e51397ced984cb +SIZE (monkeysphere_0.14.orig.tar.gz) = 55291 diff --git a/packaging/freebsd/files/patch-src-keytrans-makefile b/packaging/freebsd/files/patch-src-keytrans-makefile new file mode 100644 index 0000000..f6b21fc --- /dev/null +++ b/packaging/freebsd/files/patch-src-keytrans-makefile @@ -0,0 +1,11 @@ +--- src/keytrans/Makefile.orig 2008-08-04 10:52:54.000000000 -0400 ++++ src/keytrans/Makefile 2008-09-04 17:31:18.000000000 -0400 +@@ -4,7 +4,7 @@ + gcc -g -Wall --pedantic -o openpgp2ssh openpgp2ssh.c `libgnutls-config --libs --cflags` gnutls-helpers.o + + %.o: %.c +- gcc -g -Wall --pedantic -o $@ -c $< ++ gcc -g -Wall --pedantic `libgnutls-config --cflags` -o $@ -c $< + + clean: + rm -f openpgp2ssh *.o diff --git a/packaging/freebsd/pkg-descr b/packaging/freebsd/pkg-descr new file mode 100644 index 0000000..a63fcd3 --- /dev/null +++ b/packaging/freebsd/pkg-descr @@ -0,0 +1,5 @@ +SSH key-based authentication is tried-and-true, but it lacks a true Public Key Infrastructure for key certification, revocation and +expiration. MonkeySphere is a framework that uses the OpenPGP web of trust for these PKI functions. It can be used in both directions: for +users to get validated host keys, and for hosts to manage user permissions. + +WWW: http://web.monkeysphere.info/ diff --git a/packaging/freebsd/pkg-plist b/packaging/freebsd/pkg-plist new file mode 100644 index 0000000..48d6395 --- /dev/null +++ b/packaging/freebsd/pkg-plist @@ -0,0 +1,19 @@ +sbin/monkeysphere-server +share/doc/monkeysphere/MonkeySpec +share/doc/monkeysphere/getting-started-user.mdwn +share/doc/monkeysphere/getting-started-admin.mdwn +share/man/man5/monkeysphere.5.gz +share/man/man1/openpgp2ssh.1.gz +share/man/man1/monkeysphere-ssh-proxycommand.1.gz +share/man/man1/monkeysphere.1.gz +share/man/man8/monkeysphere-server.8.gz +bin/openpgp2ssh +bin/monkeysphere-ssh-proxycommand +bin/monkeysphere +etc/monkeysphere/monkeysphere-server.conf +etc/monkeysphere/monkeysphere.conf +@dirrm share/doc/monkeysphere +@dirrm share/monkeysphere/common +@dirrm etc/monkeysphere +#@dirrm var/lib/monkeysphere +#lib/monkeysphere/authorized_keys -- 2.25.1