diff -u -Nr trafshow/Makefile trafshow.new/Makefile --- trafshow/Makefile 2009-02-18 17:29:17.000000000 +0300 +++ trafshow.new/Makefile 2009-03-30 00:23:19.000000000 +0400 @@ -7,6 +7,7 @@ PORTNAME= trafshow PORTVERSION= 5.2.3 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.nsk.su/pub/RinetSoftware/ @@ -21,10 +22,15 @@ MAN1= trafshow.1 +.include + post-patch: @${REINPLACE_CMD} -e 's|-D_THREAD_SAFE||' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \ ${WRKSRC}/colormask.c ${WRKSRC}/trafshow.1 ${WRKSRC}/trafshow.c +.if ${OSVERSION} >= 800074 + @${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-800074+ +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/trafshow ${PREFIX}/bin @@ -34,4 +40,4 @@ ${CP} -p ${PREFIX}/etc/trafshow.dist ${PREFIX}/etc/trafshow; \ fi -.include +.include diff -u -Nr trafshow/files/extra-patch-800074+ trafshow.new/files/extra-patch-800074+ --- trafshow/files/extra-patch-800074+ 1970-01-01 03:00:00.000000000 +0300 +++ trafshow.new/files/extra-patch-800074+ 2009-03-29 23:47:56.000000000 +0400 @@ -0,0 +1,23 @@ +# +# http://lists.freebsd.org/pipermail/freebsd-ports/2009-March/053823.html +# +--- show_dump.c.orig 2009-03-29 23:18:16.000000000 +0400 ++++ show_dump.c 2009-03-29 23:18:24.000000000 +0400 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- trafshow.c.orig 2009-03-29 23:18:49.000000000 +0400 ++++ trafshow.c 2009-03-29 23:18:58.000000000 +0400 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #include + #include