Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Mar 2007 12:47:50 +0100
From:      Martin Kaiser <martin@kaiser.cx>
To:        ports@freebsd.org
Subject:   Re: asmail 2.0, FreeBSD port mail/asmail
Message-ID:  <20070303114750.GA3920@kaiser.cx>
In-Reply-To: <20070302224216.GA3613@kaiser.cx>
References:  <20070302224216.GA3613@kaiser.cx>

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

--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi again,

first of all, thanks for your quick responses.

Thus wrote Martin Kaiser (martin@kaiser.cx):

> I realized there's no maintainer for the mail/asmail port on FreeBSD so
> I had a play myself. Nothing to do really, it ran out of the box on 5.x
> (i386) and 6.x (amd64).

Today, I tried a 4.x box also - and the build fails because of undefined
socklen_t :-(

I tried checking the OSVERSION in the Makefile and use sed inplace to
replace socklen_t with int (see attached patch). This socklen_t issue
has certainly been dealt with before on other occasions. I'm not sure if
my approach is ok and I have no clue at which version socklen_t was
introduced.

Could you have a look and commit the patch if it's ok?

Thanks,

   Martin

--PNTmBPCT7hxwcZjr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="asmail.freebsd4.patch"

--- Makefile.orig	Sat Mar  3 12:37:35 2007
+++ Makefile	Sat Mar  3 11:37:23 2007
@@ -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
@@ -36,6 +38,9 @@
 		 s|-lpthread -lrt|@LDFLAGS@|g' ${WRKSRC}/autoconf/Makefile.defines.in
 	@${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)

--PNTmBPCT7hxwcZjr--



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