Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Oct 2004 16:53:29 +0200 (CEST)
From:      Jean-Yves Lefort <jylefort@brutele.be>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        lofi@FreeBSD.org
Subject:   ports/73199: New port: security/pinentry-gtk2, a GTK+ 2.0 passphrase dialog for GnuPG
Message-ID:  <20041027145329.4520622E09@jsite.lefort.net>
Resent-Message-ID: <200410271500.i9RF0U6a066065@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         73199
>Category:       ports
>Synopsis:       New port: security/pinentry-gtk2, a GTK+ 2.0 passphrase dialog for GnuPG
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 27 15:00:29 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 5.3-BETA6 i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 5.3-BETA6 FreeBSD 5.3-BETA6 #0: Tue Oct 26 11:26:46 CEST 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
>How-To-Repeat:
>Fix:
The new port:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pinentry-gtk2
#	pinentry-gtk2/Makefile
#
echo c - pinentry-gtk2
mkdir -p pinentry-gtk2 > /dev/null 2>&1
echo x - pinentry-gtk2/Makefile
sed 's/^X//' >pinentry-gtk2/Makefile << 'END-of-pinentry-gtk2/Makefile'
X# New ports collection makefile for:	pinentry-gtk2
X# Date created:			27 Oct 2004
X# Whom:				Jean-Yves Lefort <jylefort@brutele.be>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pinentry
X
XCOMMENT=	GTK+ 2.0 version of the GnuPG password dialog
X
XCONFLICTS=	pinentry-0.7.1
X
XPINENTRY_GTK2=	yes
X
XPKGNAMESUFFIX=	-gtk2
X
XMASTERDIR=	${.CURDIR}/../pinentry
X
X.include "${MASTERDIR}/Makefile"
END-of-pinentry-gtk2/Makefile
exit

And the patch for security/pinentry:

diff -ruN /usr/ports/security/pinentry/Makefile pinentry/Makefile
--- /usr/ports/security/pinentry/Makefile	Thu Aug  5 12:28:06 2004
+++ pinentry/Makefile	Wed Oct 27 16:30:42 2004
@@ -30,7 +30,7 @@
 
 CONFIGURE_ARGS+=--with-libiconv-prefix=${LOCALBASE}
 
-.if defined(PINENTRY_QT) || defined(PINENTRY_GTK) || defined(PINENTRY_CURSES)
+.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=""
@@ -47,6 +47,23 @@
 PLIST_SUB+=	WITH_GTK="@comment "
 .endif
 
+.if defined(PINENTRY_GTK2)
+USE_GNOME+=	gtk20
+PLIST_SUB+=	WITH_GTK2=""
+
+PATCH_SITES=		http://home.arcor.de/dralbrecht.dress/GnuPG/
+PATCHFILES=		pinentry-0.7.1-gtk+-2.4.diff.bz2
+PATCH_DIST_STRIP=	-p1
+
+USE_AUTOCONF_VER=	259
+USE_AUTOMAKE_VER=	19
+
+pre-configure:
+	@cd ${WRKSRC}; ${ACLOCAL}
+.else
+CONFIGURE_ARGS+=--disable-pinentry-gtk2
+.endif
+
 .if defined(PINENTRY_CURSES)
 PLIST_SUB+=	WITH_CURSES=""
 .else
@@ -61,7 +78,7 @@
 PLIST_SUB+=	WITH_CURSES=""
 .endif
 
-pre-configure:
+post-patch:
 	${REINPLACE_CMD} -e "s@-lpthread@${PTHREAD_LIBS}@g" \
 		${WRKSRC}/acinclude.m4 ${WRKSRC}/aclocal.m4 ${WRKSRC}/configure
 
diff -ruN /usr/ports/security/pinentry/distinfo pinentry/distinfo
--- /usr/ports/security/pinentry/distinfo	Fri May  7 05:08:13 2004
+++ pinentry/distinfo	Wed Oct 27 16:12:52 2004
@@ -1,2 +1,4 @@
 MD5 (pinentry-0.7.1.tar.gz) = 7861d63dea6434a5a05da84e83f209e6
 SIZE (pinentry-0.7.1.tar.gz) = 347047
+MD5 (pinentry-0.7.1-gtk+-2.4.diff.bz2) = 824144322bcfbba4d291e293b352610a
+SIZE (pinentry-0.7.1-gtk+-2.4.diff.bz2) = 26267
diff -ruN /usr/ports/security/pinentry/pkg-plist pinentry/pkg-plist
--- /usr/ports/security/pinentry/pkg-plist	Fri May  7 05:08:19 2004
+++ pinentry/pkg-plist	Wed Oct 27 16:33:36 2004
@@ -1,3 +1,4 @@
 %%WITH_CURSES%%bin/pinentry-curses
 %%WITH_GTK%%bin/pinentry-gtk
+%%WITH_GTK2%%bin/pinentry-gtk-2
 %%WITH_QT%%bin/pinentry-qt
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041027145329.4520622E09>