Date: 2 May 2003 19:57:37 -0000 From: Rui Lopes <rui@ruilopes.com> To: FreeBSD-gnats-submit@FreeBSD.org Cc: petef@FreeBSD.org Subject: ports/51696: [PATCH] for making www/crawl compile Message-ID: <20030502195737.88522.qmail@ns.webtt.biz> Resent-Message-ID: <200305022000.h42K0QCE066264@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 51696 >Category: ports >Synopsis: [PATCH] for making www/crawl compile >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 02 13:00:26 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Rui Lopes >Release: FreeBSD 5.0-RELEASE-p2 i386 >Organization: >Environment: System: FreeBSD disty 5.0-RELEASE-p2 FreeBSD 5.0-RELEASE-p2 #7: Sun Feb 23 17:54:25 WET 2003 root@disty:/usr/obj/usr/src/sys/DEBUGGER i386 >Description: Patch for making www/crawl compile. I also add crawl.conf into user example directory. gcc outputs many warnings about __FUNCTION__ usage, i.e.: http.c:1012: warning: concatenation of string literals with __FUNCTION__ is deprecated I added a simple cludge for hidding them. >How-To-Repeat: >Fix: --- Makefile.diff begins here --- --- Makefile.orig Fri May 2 17:09:57 2003 +++ Makefile Fri May 2 20:23:48 2003 @@ -7,7 +7,7 @@ PORTNAME= crawl PORTVERSION= 0.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MASTER_SITES= http://www.monkey.org/~provos/ @@ -15,20 +15,27 @@ COMMENT= A small, efficient web crawler with advanced features BUILD_DEPENDS= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent -LIB_DEPENDS= md5.1:${PORTSDIR}/www/libwww \ - db3.3:${PORTSDIR}/databases/db3 +LIB_DEPENDS= db3.3:${PORTSDIR}/databases/db3 WRKSRC= ${WRKDIR}/${PORTNAME} USE_REINPLACE= yes USE_AUTOCONF= yes CONFIGURE_ARGS= --with-libevent=${LOCALBASE} -CONFIGURE_ENV= LIBS="${LDFLAGS} -L${LOCALBASE}/lib -lmd5" +CONFIGURE_ENV= LIBS="${LDFLAGS} -lmd" +CFLAGS+= -D__FUNCTION__='""' MAN1= crawl.1 post-patch: - @${REINPLACE_CMD} -e 's,-ldb,-ldb3,g' ${WRKSRC}/configure.in + @${REINPLACE_CMD} -e 's,/usr/include/db2,${LOCALBASE}/include/db3,g ; \ + s,db2,db3,g' ${WRKSRC}/configure.in ${CHMOD} u+w ${WRKSRC}/* + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/crawl.conf ${EXAMPLESDIR} +.endif .include <bsd.port.mk> --- Makefile.diff ends here --- --- pkg-plist.diff begins here --- --- pkg-plist.orig Sat Jun 23 17:09:49 2001 +++ pkg-plist Fri May 2 19:57:19 2003 @@ -1 +1,3 @@ bin/crawl +%%PORTDOCS%%share/examples/crawl/crawl.conf +%%PORTDOCS%%@dirrm share/examples/crawl --- pkg-plist.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030502195737.88522.qmail>