[Midnightbsd-cvs] mports: mports/security: Add pinentry for gnupg

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Nov 14 15:30:18 EST 2007


Log Message:
-----------
Add pinentry for gnupg

Modified Files:
--------------
    mports/security:
        Makefile (r1.67 -> r1.68)

Added Files:
-----------
    mports/security/pinentry:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)

-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/security/Makefile,v
retrieving revision 1.67
retrieving revision 1.68
diff -L security/Makefile -L security/Makefile -u -r1.67 -r1.68
--- security/Makefile
+++ security/Makefile
@@ -61,6 +61,7 @@
     SUBDIR += php5-mcrypt
     SUBDIR += php5-mhash
     SUBDIR += php5-openssl
+    SUBDIR += pinentry
     SUBDIR += qca-tls
     SUBDIR += saint
     SUBDIR += secpwgen
--- /dev/null
+++ security/pinentry/pkg-descr
@@ -0,0 +1,4 @@
+This is a collection of simple PIN or passphrase entry dialogs which
+utilize the Assuan protocol as described by the aegypten project.
+
+WWW: http://www.gnupg.org/aegypten2
--- /dev/null
+++ security/pinentry/pkg-plist
@@ -0,0 +1,5 @@
+%%WITH_CURSES%%bin/pinentry-curses
+%%WITH_GTK%%bin/pinentry-gtk
+%%WITH_GTK2%%bin/pinentry-gtk-2
+%%WITH_QT%%bin/pinentry-qt
+bin/pinentry
--- /dev/null
+++ security/pinentry/Makefile
@@ -0,0 +1,82 @@
+# New ports collection makefile for:	pinentry
+# Date created:		14 Nov 2007
+# Whom:			ports at MidnightBSD.org
+#
+# $MidnightBSD: mports/security/pinentry/Makefile,v 1.1 2007/11/14 20:30:16 laffer1 Exp $
+#
+
+PORTNAME=	pinentry
+PORTVERSION=	0.7.3
+PORTREVISION=	0
+CATEGORIES=	security
+MASTER_SITES=	${MASTER_SITE_GNUPG}
+MASTER_SITE_SUBDIR=	pinentry
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT?=	A collection of simple PIN or passphrase entry dialogs
+LICENSE=	gpl2
+
+LIB_DEPENDS=	gcrypt.13:${PORTSDIR}/security/libgcrypt \
+		ksba.17:${PORTSDIR}/security/libksba
+
+CONFLICTS?=	pinentry-[a-z]*-[0.9]*
+
+USE_GETOPT_LONG=yes
+USE_ICONV=	yes
+WANT_GNOME=	yes
+GNU_CONFIGURE=	yes
+USE_GMAKE=	yes
+INSTALLS_SHLIB=	yes
+INFO=		pinentry
+
+CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE}
+
+.if defined(PINENTRY_QT) || defined(PINENTRY_GTK) || defined(PINENTRY_GTK2) || defined(PINENTRY_CURSES)
+.if defined(PINENTRY_QT)
+USE_QT_VER=	3
+PLIST_SUB+=	WITH_QT=""
+
+pre-configure:
+	@${REINPLACE_CMD} -e "s at -lpthread@${PTHREAD_LIBS}@g" \
+		${WRKSRC}/acinclude.m4 ${WRKSRC}/configure
+
+.else
+CONFIGURE_ARGS+=--disable-pinentry-qt
+PLIST_SUB+=	WITH_QT="@comment "
+.endif
+
+.if defined(PINENTRY_GTK)
+USE_GNOME+=	gtk12
+PLIST_SUB+=	WITH_GTK=""
+CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include
+.else
+CONFIGURE_ARGS+=--disable-pinentry-gtk
+PLIST_SUB+=	WITH_GTK="@comment "
+.endif
+
+.if defined(PINENTRY_GTK2)
+USE_GNOME+=	gtk20
+PLIST_SUB+=	WITH_GTK2=""
+CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include
+.else
+CONFIGURE_ARGS+=--disable-pinentry-gtk2
+PLIST_SUB+=	WITH_GTK2="@comment "
+.endif
+
+.if defined(PINENTRY_CURSES)
+PLIST_SUB+=	WITH_CURSES=""
+CONFIGURE_ENV+=	CFLAGS=-I${LOCALBASE}/include LDFLAGS=-L${LOCALBASE}/lib
+.else
+CONFIGURE_ARGS+=--disable-pinentry-curses
+PLIST_SUB+=	WITH_CURSES="@comment "
+.endif
+.else
+USE_QT_VER=	3
+USE_GNOME+=	gtk12 gtk20
+PLIST_SUB+=	WITH_QT=""
+PLIST_SUB+=	WITH_GTK=""
+PLIST_SUB+=	WITH_GTK2=""
+PLIST_SUB+=	WITH_CURSES=""
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ security/pinentry/distinfo
@@ -0,0 +1,3 @@
+MD5 (pinentry-0.7.3.tar.gz) = 59282278405a8264b39ea28678c78cf4
+SHA256 (pinentry-0.7.3.tar.gz) = df1d2c47d501031b4c995cee3e464e62578b8959559121a207a8046e2cd9a5bf
+SIZE (pinentry-0.7.3.tar.gz) = 417000


More information about the Midnightbsd-cvs mailing list