[Alpine-info] S/MIME

Sean C. Farley scf at FreeBSD.org
Thu Sep 4 12:05:39 PDT 2008


On Wed, 3 Sep 2008, Dan Mahoney, System Admin wrote:


> On Wed, 3 Sep 2008, David Forrest wrote:

>> On Wed, 3 Sep 2008, Dan Mahoney, System Admin wrote:

>>

>> Look for some of these in the (S)etup - (C)onfig menus --normally

>> hidden features, configurations some under "disable these drivers"


*snip*


> FreeBSD prime.gushi.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Thu Jan 18

> 02:05:07 EST 2007 danm at prime.gushi.org:/usr/src/sys/i386/compile/PRIME6 i386

>

> Just let me know.


I assume you are building Alpine from ports. Here is a patch to have
S/MIME build on FreeBSD. Basically, the port would not find
/etc/ssl/certs (or equivalent) and disable S/MIME.

Doug, does this look good? I did not test the functionality, but the
S/MIME configuration menu is available with this. On a side note, I
think EXTRA_OPTS could be translated into CONFIGURE_ARGS where the patch
touches. I had to use CONFIGURE_ARGS because the certs directory has to
be set before the environment variables would be processed.

Sean
--
scf at FreeBSD.org
-------------- next part --------------
--- Makefile.orig 2008-09-01 21:34:54.000000000 -0500
+++ Makefile 2008-09-04 13:49:35.000000000 -0500
@@ -124,6 +124,8 @@
MAKE_ARGS+= SSLTYPE=none
.else
EXTRA_OPTS+= SSLINCLUDE=${OPENSSLINC} SSLLIB=${OPENSSLLIB}
+CONFIGURE_ARGS+= --with-ssl-dir=${OPENSSLDIR} \
+ --with-ssl-certs-dir=${OPENSSLDIR}/certs
.if defined(WITH_SSL_AND_PLAINTEXT)
EXTRA_OPTS+= SSLTYPE=nopwd
.else
@@ -137,6 +139,8 @@
@${CHMOD} -R u+w ${WRKSRC}

post-patch:
+ @${REINPLACE_CMD} -e 's/ -a -d "$$alpine_SSLCERTS"//' \
+ ${WRKSRC}/configure
@${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed
@${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \
${WRKSRC}/imap/Makefile.presed > ${WRKSRC}/imap/Makefile


More information about the Alpine-info mailing list