Index: head/net-p2p/dcd/Makefile =================================================================== --- head/net-p2p/dcd/Makefile (revision 190819) +++ head/net-p2p/dcd/Makefile (revision 190820) @@ -1,71 +1,71 @@ # New ports collection makefile for: dcd # Date created: 14 May 2005 # Whom: Aleksandr S. Goncharov # # $FreeBSD$ # PORTNAME= dcd PORTVERSION= 1.0.1 CATEGORIES= net-p2p MASTER_SITES= http://www.dc.ds.pg.gda.pl/download/sources/stable/ MAINTAINER= az@freebsd.org COMMENT= Direct Connect Hub clone for Unix USE_BZIP2= yes GNU_CONFIGURE= yes USE_RC_SUBR= dcd.sh CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LDFLAGS="${PTHREAD_LIBS}" MAN8= dcd.8 dcd.console.8 MANLANG= "" pl.ISO8859-2 CONF_FILES= console.allow dcd.banned dcd.conf dcd.motd dcd.penalties \ dcd.rules dcd.users dcd.welcome nicks.allow dcd.hublinks \ dcd.usercommands SUB_FILES= pkg-install pkg-deinstall SUB_LIST= CONF_FILES="${CONF_FILES}" CONF_DIR="${PREFIX}/etc/dcd" .include -.if ${OSVERSION} < 600000 -BROKEN= Does not compile on 5.x +.if ${OSVERSION} < 600020 +EXTRA_PATCHES= ${PATCHDIR}/extra-src-net.h .endif post-patch: .for f in dcd dcd.console @${MV} ${WRKSRC}/doc/${f}.2 ${WRKSRC}/doc/${f}.8 @${MV} ${WRKSRC}/doc/pl/${f}.1 ${WRKSRC}/doc/pl/${f}.8 .endfor .for d in doc doc/pl . for f in dcd.8 dcd.console.8 @${REINPLACE_CMD} -e \ 's|/usr/local|${PREFIX}|g; \ s|^\(\.TH .*\)"[12]"|\1"8"|; \ s|([12])|(8)|' ${WRKSRC}/${d}/${f} . endfor @${REINPLACE_CMD} -e 's|man[12]|man8|g; s|\.[12]|.8|g; s|[12]\*|8*|g' \ ${WRKSRC}/${d}/Makefile.in .endfor @${REINPLACE_CMD} -e 's|$$(mandir)/man8|$$(mandir)/pl.ISO8859-2/man8|' \ ${WRKSRC}/doc/pl/Makefile.in .for f in ${CONF_FILES} @${MV} ${WRKSRC}/conf/${f} ${WRKSRC}/conf/${f}.default @${REINPLACE_CMD} -e 's|${f}|${f}.default|g' ${WRKSRC}/conf/Makefile.in .endfor @${MV} ${WRKSRC}/conf/dcd.conf.in ${WRKSRC}/conf/dcd.conf.default.in @${REINPLACE_CMD} -e 's|\(dcd\.conf\)|\1.default|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|-O2||g; s|-lpthread|${PTHREAD_LIBS}|g' \ ${WRKSRC}/configure post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .include Property changes on: head/net-p2p/dcd/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.10 \ No newline at end of property +1.11 \ No newline at end of property Index: head/net-p2p/dcd/files/extra-src-net.h =================================================================== --- head/net-p2p/dcd/files/extra-src-net.h (nonexistent) +++ head/net-p2p/dcd/files/extra-src-net.h (revision 190820) @@ -0,0 +1,15 @@ +--- src/net.h.orig Wed Aug 30 22:09:02 2006 ++++ src/net.h Wed Apr 25 00:25:29 2007 +@@ -13,6 +13,12 @@ + #if !defined( __vXhz__NET_H__INCLUDED__ ) + #define __vXhz__NET_H__INCLUDED__ + ++// Prior 600020 where no MSG_NOSIGNAL, so we will use SO_NOSIGPIPE ++#if defined (__FreeBSD__) ++ #ifndef MSG_NOSIGNAL ++ #define MSG_NOSIGNAL SO_NOSIGPIPE ++ #endif ++#endif + + + void disttcp(userrec_t *usr, char *msg); Property changes on: head/net-p2p/dcd/files/extra-src-net.h ___________________________________________________________________ Added: cvs2svn:cvs-rev ## -0,0 +1 ## +1.1 \ No newline at end of property Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property