summaryrefslogtreecommitdiff
path: root/security/newpg
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2003-01-30 22:40:03 +0000
committerWill Andrews <will@FreeBSD.org>2003-01-30 22:40:03 +0000
commitdf636b713d1dd83492809d6faebdccc2ff211c36 (patch)
treeaf3a6deee14973c8833833fa4451f5c4dcf40591 /security/newpg
parentAdd pinentry 0.6.7, a collection of simple PIN or passphrase entry (diff)
Add newpg 0.9.4, a prerelease package of GnuPG extensions for GnuPG 2.0.
Diffstat (limited to 'security/newpg')
-rw-r--r--security/newpg/Makefile52
-rw-r--r--security/newpg/distinfo1
-rw-r--r--security/newpg/files/patch-agent::Makefile.in11
-rw-r--r--security/newpg/files/patch-agent::gpg-agent.c12
-rw-r--r--security/newpg/files/patch-assuan::assuan-socket-connect.c10
-rw-r--r--security/newpg/files/patch-assuan::assuan-socket-server.c10
-rw-r--r--security/newpg/files/patch-configure.ac12
-rw-r--r--security/newpg/files/patch-kbx::Makefile.in11
-rw-r--r--security/newpg/files/patch-kbx::keybox-blob.c12
-rw-r--r--security/newpg/files/patch-kbx::keybox-dump.c10
-rw-r--r--security/newpg/files/patch-scd::Makefile.in11
-rw-r--r--security/newpg/files/patch-sm::Makefile.in11
-rw-r--r--security/newpg/pkg-comment1
-rw-r--r--security/newpg/pkg-descr6
-rw-r--r--security/newpg/pkg-plist12
15 files changed, 182 insertions, 0 deletions
diff --git a/security/newpg/Makefile b/security/newpg/Makefile
new file mode 100644
index 000000000000..c18803509a8a
--- /dev/null
+++ b/security/newpg/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: newpg
+# Date created: 29 Jan 2003
+# Whom: michaelnottebrock@gmx.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= newpg
+PORTVERSION= 0.9.4
+CATEGORIES= security
+MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/aegypten/
+
+MAINTAINER= michaelnottebrock@gmx.net
+
+BUILD_DEPENDS= autoconf:${PORTSDIR}/devel/autoconf
+LIB_DEPENDS= gcrypt.6:${PORTSDIR}/security/libgcrypt \
+ iconv.3:${PORTSDIR}/converters/libiconv \
+ intl.4:${PORTSDIR}/devel/gettext \
+ ksba.7:${PORTSDIR}/security/libksba \
+ pth.14:${PORTSDIR}/devel/pth
+RUN_DEPENDS= pinentry-curses:${PORTSDIR}/security/pinentry
+
+USE_LIBTOOL= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+USE_REINPLACE= yes
+CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
+LDFLAGS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include
+CONFIGURE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
+CONFIGURE_ARGS+=--with-included-gettext=no
+
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/bin/opensc-config)
+WITH_OPENSC= yes
+.endif
+
+.if defined(WITH_OPENSC)
+BUILD_DEPENDS+= opensc-config:${PORTSDIR}/security/opensc
+PLIST_SUB+= WITH_OPENSC=""
+.else
+CONFIGURE_ARGS+= --disable-scdaemon
+PLIST_SUB+= WITH_OPENSC="@comment "
+.endif
+
+pre-configure:
+ ${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@g" \
+ ${WRKSRC}/acinclude.m4 ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure
+ cd ${WRKSRC}; autoconf
+
+.include <bsd.port.post.mk>
diff --git a/security/newpg/distinfo b/security/newpg/distinfo
new file mode 100644
index 000000000000..f6d2a682c96a
--- /dev/null
+++ b/security/newpg/distinfo
@@ -0,0 +1 @@
+MD5 (newpg-0.9.4.tar.gz) = 6b478f1ce8e37a55064ffc69b7325ea8
diff --git a/security/newpg/files/patch-agent::Makefile.in b/security/newpg/files/patch-agent::Makefile.in
new file mode 100644
index 000000000000..df952017e8f2
--- /dev/null
+++ b/security/newpg/files/patch-agent::Makefile.in
@@ -0,0 +1,11 @@
+--- agent/Makefile.in Wed Dec 4 14:13:12 2002
++++ agent/Makefile.in.new Wed Jan 29 19:37:03 2003
+@@ -137,7 +137,7 @@
+ pkglib_PROGRAMS = gpg-protect-tool
+
+ AM_CPPFLAGS = -I$(top_srcdir)/common $(LIBGCRYPT_CFLAGS) $(PTH_CFLAGS)
+-LDFLAGS = @LDFLAGS@
++LDFLAGS = @LDFLAGS@ $(INTLLIBS)
+
+ gpg_agent_SOURCES = \
+ gpg-agent.c agent.h \
diff --git a/security/newpg/files/patch-agent::gpg-agent.c b/security/newpg/files/patch-agent::gpg-agent.c
new file mode 100644
index 000000000000..8d3871dce07a
--- /dev/null
+++ b/security/newpg/files/patch-agent::gpg-agent.c
@@ -0,0 +1,12 @@
+--- agent/gpg-agent.c Wed Dec 4 13:08:25 2002
++++ agent/gpg-agent.c.new Wed Jan 29 19:34:14 2003
+@@ -37,6 +37,9 @@
+ # include <pth.h>
+ #endif
+
++#include <sys/types.h>
++#include <sys/stat.h>
++
+ #include <gcrypt.h>
+
+ #define JNLIB_NEED_LOG_LOGV
diff --git a/security/newpg/files/patch-assuan::assuan-socket-connect.c b/security/newpg/files/patch-assuan::assuan-socket-connect.c
new file mode 100644
index 000000000000..74acc38ea626
--- /dev/null
+++ b/security/newpg/files/patch-assuan::assuan-socket-connect.c
@@ -0,0 +1,10 @@
+--- assuan/assuan-socket-connect.c.orig Wed Jan 29 15:30:12 2003
++++ assuan/assuan-socket-connect.c Wed Jan 29 15:30:28 2003
+@@ -23,6 +23,7 @@
+ #include <stddef.h>
+ #include <stdio.h>
+ #include <errno.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <unistd.h>
diff --git a/security/newpg/files/patch-assuan::assuan-socket-server.c b/security/newpg/files/patch-assuan::assuan-socket-server.c
new file mode 100644
index 000000000000..af8a39751c34
--- /dev/null
+++ b/security/newpg/files/patch-assuan::assuan-socket-server.c
@@ -0,0 +1,10 @@
+--- assuan/assuan-socket-server.c.orig Wed Jan 29 15:27:13 2003
++++ assuan/assuan-socket-server.c Wed Jan 29 15:27:38 2003
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <errno.h>
++#include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <unistd.h>
diff --git a/security/newpg/files/patch-configure.ac b/security/newpg/files/patch-configure.ac
new file mode 100644
index 000000000000..00bdf48f7959
--- /dev/null
+++ b/security/newpg/files/patch-configure.ac
@@ -0,0 +1,12 @@
+--- configure.ac.orig Thu Jan 30 00:43:39 2003
++++ configure.ac Thu Jan 30 00:44:25 2003
+@@ -303,7 +303,7 @@
+ AC_REPLACE_FUNCS(mkdtemp)
+ AC_REPLACE_FUNCS(fseeko ftello)
+ AC_REPLACE_FUNCS(isascii)
+-AC_REPLACE_FUNCS(putc_unlocked)
++AC_DEFINE(HAVE_PUTC_UNLOCKED, 1, [FreeBSD has it, trust me])
+
+ # We use jnlib, so tell other modules about it
+ AC_DEFINE(HAVE_JNLIB_LOGGING, 1,
+
diff --git a/security/newpg/files/patch-kbx::Makefile.in b/security/newpg/files/patch-kbx::Makefile.in
new file mode 100644
index 000000000000..8dbdaa51bef4
--- /dev/null
+++ b/security/newpg/files/patch-kbx::Makefile.in
@@ -0,0 +1,11 @@
+--- kbx/Makefile.in.orig Wed Jan 29 17:09:39 2003
++++ kbx/Makefile.in Wed Jan 29 17:10:18 2003
+@@ -156,7 +156,7 @@
+ libkeybox_a_SOURCES = $(common_sources)
+
+ kbxutil_SOURCES = kbxutil.c $(common_sources)
+-kbxutil_LDADD = ../jnlib/libjnlib.a $(KSBA_LIBS) $(LIBGCRYPT_LIBS)
++kbxutil_LDADD = ../jnlib/libjnlib.a $(KSBA_LIBS) $(LIBGCRYPT_LIBS) $(INTLLIBS)
+ subdir = kbx
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_HEADER = $(top_builddir)/config.h
diff --git a/security/newpg/files/patch-kbx::keybox-blob.c b/security/newpg/files/patch-kbx::keybox-blob.c
new file mode 100644
index 000000000000..44b70594b82b
--- /dev/null
+++ b/security/newpg/files/patch-kbx::keybox-blob.c
@@ -0,0 +1,12 @@
+--- kbx/keybox-blob.c.orig Mon Jul 22 11:26:51 2002
++++ kbx/keybox-blob.c Wed Jan 29 17:00:14 2003
+@@ -119,8 +119,8 @@
+ #include <ksba.h>
+ #endif
+
++#include "../jnlib/types.h"
+ #include "keybox-defs.h"
+-
+
+ /* special values of the signature status */
+ #define SF_NONE(a) ( !(a) )
diff --git a/security/newpg/files/patch-kbx::keybox-dump.c b/security/newpg/files/patch-kbx::keybox-dump.c
new file mode 100644
index 000000000000..b165dd48f30c
--- /dev/null
+++ b/security/newpg/files/patch-kbx::keybox-dump.c
@@ -0,0 +1,10 @@
+--- kbx/keybox-dump.c.orig Mon Jul 22 10:33:48 2002
++++ kbx/keybox-dump.c Wed Jan 29 17:00:08 2003
+@@ -24,6 +24,7 @@
+ #include <string.h>
+ #include <errno.h>
+
++#include "../jnlib/types.h"
+ #include "keybox-defs.h"
+
+ static ulong
diff --git a/security/newpg/files/patch-scd::Makefile.in b/security/newpg/files/patch-scd::Makefile.in
new file mode 100644
index 000000000000..7d0202eedc3e
--- /dev/null
+++ b/security/newpg/files/patch-scd::Makefile.in
@@ -0,0 +1,11 @@
+--- scd/Makefile.in Wed Dec 4 14:13:18 2002
++++ scd/Makefile.in.new Wed Jan 29 19:46:49 2003
+@@ -138,7 +138,7 @@
+ AM_CPPFLAGS = -I$(top_srcdir)/common $(OPENSC_CFLAGS) $(LIBGCRYPT_CFLAGS) \
+ $(KSBA_CFLAGS)
+
+-LDFLAGS = @LDFLAGS@
++LDFLAGS = @LDFLAGS@ $(INTLLIBS)
+
+ scdaemon_SOURCES = \
+ scdaemon.c scdaemon.h \
diff --git a/security/newpg/files/patch-sm::Makefile.in b/security/newpg/files/patch-sm::Makefile.in
new file mode 100644
index 000000000000..0e5aa678b463
--- /dev/null
+++ b/security/newpg/files/patch-sm::Makefile.in
@@ -0,0 +1,11 @@
+--- sm/Makefile.in.orig Wed Jan 29 17:15:33 2003
++++ sm/Makefile.in Wed Jan 29 17:15:59 2003
+@@ -165,7 +165,7 @@
+
+
+ gpgsm_LDADD = ../jnlib/libjnlib.a ../assuan/libassuan.a ../kbx/libkeybox.a \
+- ../common/libcommon.a $(LIBGCRYPT_LIBS) $(KSBA_LIBS)
++ ../common/libcommon.a $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(INTLLIBS)
+
+ subdir = sm
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/security/newpg/pkg-comment b/security/newpg/pkg-comment
new file mode 100644
index 000000000000..292ae5e6af53
--- /dev/null
+++ b/security/newpg/pkg-comment
@@ -0,0 +1 @@
+Prerelease package of GnuPG extensions for GnuPG 2.0
diff --git a/security/newpg/pkg-descr b/security/newpg/pkg-descr
new file mode 100644
index 000000000000..63c15b04223f
--- /dev/null
+++ b/security/newpg/pkg-descr
@@ -0,0 +1,6 @@
+NewPG is a temporary protect to work on GnuPG extensions. It will be
+merged into the regular GnuPG sources for a GnuPG 2.0 release.
+
+WWW: http://www.gnupg.org/aegypten
+
+michaelnottebrock@gmx.net
diff --git a/security/newpg/pkg-plist b/security/newpg/pkg-plist
new file mode 100644
index 000000000000..061b5d10f34e
--- /dev/null
+++ b/security/newpg/pkg-plist
@@ -0,0 +1,12 @@
+bin/gpg-agent
+bin/gpgsm
+bin/kbxutil
+%%WITH_OPENSC%%bin/scdaemon
+@unexec install-info --delete %D/info/gnupg.info %D/info/dir
+info/gnupg.info
+info/gnupg.info-1
+info/gnupg.info-2
+info/gnupg.info-3
+@exec install-info %D/info/gnupg.info %D/info/dir
+lib/newpg/gpg-protect-tool
+share/locale/de/LC_MESSAGES/newpg.mo