ports/154643: [PATCH] mail/elmo-devel: Fix gpgme support, update MASTER_SITES
Jason E. Hale
bsdkaffee at gmail.com
Thu Feb 10 07:50:10 UTC 2011
>Number: 154643
>Category: ports
>Synopsis: [PATCH] mail/elmo-devel: Fix gpgme support, update MASTER_SITES
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 10 07:50:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Jason E. Hale
>Release: FreeBSD 8.1-RELEASE-p1 i386
>Organization:
none
>Environment:
System: FreeBSD mocha.verizon.net 8.1-RELEASE-p1 FreeBSD 8.1-RELEASE-p1 #0: Wed Oct 6 21:42:52 EDT 2010 root at mocha.verizon.net:/usr/obj/usr/src/sys/MOCHA8 i386
>Description:
mail/elmo-devel currently depends on the ancient security/gpgme03 for gpgme
support.
Gpgme support is also broken as it is due to '==' instead of '=' being used
with 'test' in the configure script.
The provided patch allows mail/elmo-devel to use the latest gpgme library.
Bump PORTREVISION due to library change.
While here:
- Update MASTER_SITES
- Remove MD5
- Add LICENSE
- Mark MAKE_JOBS_SAFE
Side note:
I have also sent a PR to fix the same problem in the mail/elmo port.
Since this project appears abandoned in 2004, it seems like the mail/elmo port
could be updated to 1.3.2 and the mail/elmo-devel be removed.
>How-To-Repeat:
Use attached diff.
>Fix:
--- 2011-02-10-elmo-devel.diff begins here ---
diff -ruN elmo-devel.orig/Makefile elmo-devel/Makefile
--- elmo-devel.orig/Makefile 2010-05-30 21:59:39.000000000 -0400
+++ elmo-devel/Makefile 2011-02-10 02:01:39.000000000 -0500
@@ -7,9 +7,9 @@
PORTNAME= elmo
PORTVERSION= 1.3.2
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= mail
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20devel/${PORTVERSION}
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGNAMESUFFIX= -devel
MAINTAINER= dhn at FreeBSD.org
@@ -22,10 +22,14 @@
USE_OPENSSL= yes
USE_PERL5_RUN= yes
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
-CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
+MAKE_JOBS_SAFE= yes
MAN1= elmo.1 elmoconf.pl.1
@@ -39,8 +43,8 @@
.include <bsd.port.pre.mk>
-.if exists(${LOCALBASE}/lib/libgpgme03.so) || defined(WITH_GPGME)
-LIB_DEPENDS+= gpgme03:${PORTSDIR}/security/gpgme03
+.if exists(${LOCALBASE}/lib/libgpgme.so) || defined(WITH_GPGME)
+LIB_DEPENDS+= gpgme.18:${PORTSDIR}/security/gpgme
.else
pre-everything::
@${ECHO_CMD}
@@ -51,6 +55,8 @@
post-patch:
@${REINPLACE_CMD} -e "s|/usr/bin/env perl|${PERL} -w|" \
${WRKSRC}/src/elmoconf.pl
+ @${REINPLACE_CMD} -e 's|gpgme4|gpgme|g' -e 's|== "|= "|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|gpgme4|gpgme|g' ${WRKSRC}/src/pgp.c
post-install:
@${CAT} ${PKGMESSAGE}
diff -ruN elmo-devel.orig/distinfo elmo-devel/distinfo
--- elmo-devel.orig/distinfo 2005-11-25 10:30:47.000000000 -0500
+++ elmo-devel/distinfo 2011-02-10 01:51:20.000000000 -0500
@@ -1,3 +1,2 @@
-MD5 (elmo-1.3.2.tar.gz) = bc3836a276b092fde8555e42532d4bc8
SHA256 (elmo-1.3.2.tar.gz) = 96fa20b171e3c24262b3af150e89141a2a59883075b5e6a0f9a40ff60830fcbd
SIZE (elmo-1.3.2.tar.gz) = 536768
--- 2011-02-10-elmo-devel.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list