Hi all,

another release of asmail (2.1) was published recently. Like last time,
I prepared a little patch to update the port. I tested on
6.1-RELEASE-p10 (amd64), 5.4-RELEASE-p9 (i386) and 4.11-RELEASE-p25 (i386).

The 4.11 has no socklen_t, so this will be replaced with int, depending
on OSVERSION.

Could you do me a favour and commit this?

I'd volunteer to maintain this port but unfortunately I'll lose access
to the 6.x and 5.x boxes this week :-(

Cheers,

   Martin
diff -ru asmail.orig/Makefile asmail/Makefile
--- asmail.orig/Makefile        Tue Apr 10 21:42:50 2007
+++ asmail/Makefile     Tue Apr 10 21:48:13 2007
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=      asmail
-PORTVERSION=   2.0
+PORTVERSION=   2.1
 CATEGORIES=    mail afterstep
 MASTER_SITES=  http://www.tigr.net/afterstep/download/asmail/
 
@@ -29,6 +29,8 @@
 CPPFLAGS+=     ${PTHREAD_CFLAGS}
 LDFLAGS+=      ${PTHREAD_LIBS} -lssl -lcrypto
 
+.include <bsd.port.pre.mk>
+
 post-patch:
        @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
                 s|machine/soundcard|sys/soundcard|g' ${WRKSRC}/configure
@@ -37,6 +39,11 @@
        @${REINPLACE_CMD} -e \
                's|/usr/local|${PREFIX}|g' ${WRKSRC}/asmailrc.sample
 
+.if ${OSVERSION} < 500000
+       @${REINPLACE_CMD} -e 's|socklen_t|int|g' ${WRKSRC}/socklib.h
+.endif
+
+
 post-install:
 .if !defined(NOPORTDOCS)
        @${MKDIR} ${DOCSDIR}
@@ -45,4 +52,4 @@
        ${INSTALL_DATA} ${WRKSRC}/asmailrc.sample ${EXAMPLESDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -ru asmail.orig/distinfo asmail/distinfo
--- asmail.orig/distinfo        Tue Apr 10 21:42:50 2007
+++ asmail/distinfo     Tue Apr 10 21:33:58 2007
@@ -1,3 +1,3 @@
-MD5 (asmail-2.0.tar.gz) = 58873242a953f3b4fbbe6cf517f3a51a
-SHA1 (asmail-2.0.tar.gz) = d54d00d744dce674007bb96a6772129ada2e1980
-SIZE (asmail-2.0.tar.gz) = 270924
+MD5 (asmail-2.1.tar.gz) = 10d1460353f5773c8d211003a07312df
+SHA256 (asmail-2.1.tar.gz) = 
9b20aff43d61511e9c24af5603a546e3709bad35c769074e2b66d818f33e8191
+SIZE (asmail-2.1.tar.gz) = 271164
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to