add support for GNUPG to mail/sylpheed using GPGME. If defined WITH_GNIPG, enable support for gnupg.
On Tue, Sep 04, 2001 at 05:27:39PM +0900, TERAMOTO Masahiro wrote: > > >Number: 30302 > >Category: ports > >Synopsis: add support for GNUPG to mail/sylpheed using GPGME > >Originator: TERAMOTO Masahiro > >Release: FreeBSD 4.4-RC i386 > >Organization: > Dept. of Communication Engineering, Osaka-U > >Environment: > System: FreeBSD malchut 4.4-RC FreeBSD 4.4-RC #3: Sat Sep 1 10:45:31 JST 2001 root@:/usr/src/sys/compile/MALCHUT i386 > > >Description: > add support for GNUPG to mail/sylpheed using GPGME. > If defined WITH_GNIPG, enable support for gnupg. > >How-To-Repeat: > > >Fix: > > --- Makefile.orig Mon Sep 3 10:20:53 2001 > +++ Makefile Tue Sep 4 17:07:30 2001 > @@ -22,6 +22,18 @@ > > PORTDOCS= ChangeLog INSTALL README TODO > > +.include <bsd.port.pre.mk> > + > +.if defined(WITH_GNUPG) > +LIB_DEPENDS+= gpgme.3:${PORTSDIR}/security/gpgme > +CONFIGURE_ARGS+= --enable-gpgme > +.endif > + > +pre-extract: > +.if !defined(WITH_GNUPG) > + @${ECHO_MSG} "You can enable support for gnupg by defining WITH_GNUPG." > +.endif > + > post-install: > .if !defined(NOPORTDOCS) > ${MKDIR} ${PREFIX}/share/doc/sylpheed > @@ -31,4 +43,4 @@ > .endfor > .endif > > -.include <bsd.port.mk> > +.include <bsd.port.post.mk> Is it really necessary to use bsd.port.pre/post.mk? G'luck, Peter -- This sentence contradicts itself - or rather - well, no, actually it doesn't!
Oops. There is no need to use bsd.port.{pre|post}.mk. --- Makefile.orig Mon Sep 3 10:20:53 2001 +++ Makefile Tue Sep 4 17:45:09 2001 @@ -22,6 +22,16 @@ PORTDOCS= ChangeLog INSTALL README TODO +.if defined(WITH_GNUPG) +LIB_DEPENDS+= gpgme.3:${PORTSDIR}/security/gpgme +CONFIGURE_ARGS+= --enable-gpgme +.endif + +pre-extract: +.if !defined(WITH_GNUPG) + @${ECHO_MSG} "You can enable support for gnupg by defining WITH_GNUPG." +.endif + post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/doc/sylpheed
Ok.. i had plans to do these with the next version, because there release versions verry often, and i would'nt "spam" the PR database ;). But ok... - add PGP support - add SSL support - fix the local spool directory Thanks to SASAKI Katuhiro Patch: diff -ruN sylpheed.old/Makefile sylpheed/Makefile --- sylpheed.old/Makefile Tue Sep 4 15:46:37 2001 +++ sylpheed/Makefile Tue Sep 4 15:48:46 2001 @@ -7,6 +7,7 @@ PORTNAME= sylpheed PORTVERSION= 0.6.1 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= http://sylpheed.good-day.net/sylpheed/ @@ -20,7 +21,32 @@ LIBS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --disable-compface --disable-gdk-pixbuf --enable-ipv6 +.if defined(WITH_GPGME) +LIB_DEPENDS+= gpgme.3:${PORTSDIR}/security/gpgme +RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg +CONFIGURE_ARGS+=--enable-gpgme +.endif +.if !defined(WITHOUT_SSL) +USE_OPENSSL= yes +CONFIGURE_ARGS+=--enable-ssl +.endif + PORTDOCS= ChangeLog INSTALL README TODO + +pre-extract: +.if defined(WITH_GPGME) + @${ECHO_MSG} + @${ECHO_MSG} "WARNING: GnuPG support using GPGME is still experimental." +.else + @${ECHO_MSG} + @${ECHO_MSG} "You can enable GnuPG support using GPGME by defining WITH_GPGME." + @${ECHO_MSG} "WARNING: GnuPG support is still experimental." +.endif +.if !defined(WITHOUT_SSL) + @${ECHO_MSG} + @${ECHO_MSG} "You can disable OpenSSL support by defining WITHOUT_SSL." +.endif + @${ECHO_MSG} post-install: .if !defined(NOPORTDOCS) diff -ruN sylpheed.old/files/patch-ac sylpheed/files/patch-ac --- sylpheed.old/files/patch-ac Tue Sep 4 15:46:37 2001 +++ sylpheed/files/patch-ac Tue Sep 4 15:48:46 2001 @@ -1,6 +1,6 @@ ---- src/defs.h.orig Thu Nov 9 01:28:14 2000 -+++ src/defs.h Thu Nov 9 01:28:24 2000 -@@ -57,8 +57,8 @@ +--- src/defs.h.orig Mon Sep 3 01:07:32 2001 ++++ src/defs.h Mon Sep 3 04:50:35 2001 +@@ -58,8 +58,8 @@ #define MARK_VERSION 2 #define DEFAULT_SIGNATURE ".signature" @@ -10,4 +10,13 @@ +#define DEFAULT_INC_PROGRAM "" /* #define DEFAULT_INC_PATH "/usr/bin/imget" */ /* #define DEFAULT_INC_PROGRAM "imget" */ + #define DEFAULT_SENDMAIL_CMD "/usr/sbin/sendmail -t" +@@ -67,7 +67,7 @@ + #ifdef _PATH_MAILDIR + # define DEFAULT_SPOOL_PATH _PATH_MAILDIR + #else +-# define DEFAULT_SPOOL_PATH "/var/spool/mail" ++# define DEFAULT_SPOOL_PATH "/var/mail" + #endif + #define BUFFSIZE 8192
State Changed From-To: open->closed Committed, thanks