summaryrefslogtreecommitdiff
path: root/www/crawl/Makefile
diff options
context:
space:
mode:
authorpeter <peter@pkgsrc.org>2005-01-18 17:46:31 +0000
committerpeter <peter@pkgsrc.org>2005-01-18 17:46:31 +0000
commit32047739fe7311f437c2ad717d6f2d729968f297 (patch)
tree567d63160e9c0a97b1563f6dbf544c6d13ba52aa /www/crawl/Makefile
parentcc4a074fe91572d1fcf28f6d084e9e14b4c3b71d (diff)
downloadpkgsrc-32047739fe7311f437c2ad717d6f2d729968f297.tar.gz
Initial import of crawl-0.4 into the NetBSD Packages Collection.
The crawl utility starts a depth-first traversal of the web at the specified URLs. It stores all JPEG images that match the configured constraints. Crawl is fairly fast and allows for graceful termination. After terminating crawl, it is possible to restart it at exactly the same spot where it was terminated. Crawl keeps a persistent database that allows multiple crawls without revisiting sites. The main features of crawl are: * Saves encountered images or other media types * Media selection based on regular expressions and size contraints * Resume previous crawl after graceful termination * Persistent database of visited URLs * Very small and efficient code * Asynchronous DNS lookups * Supports robots.txt
Diffstat (limited to 'www/crawl/Makefile')
-rw-r--r--www/crawl/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/www/crawl/Makefile b/www/crawl/Makefile
new file mode 100644
index 00000000000..17166b1a98e
--- /dev/null
+++ b/www/crawl/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/01/18 17:46:31 peter Exp $
+
+DISTNAME= crawl-0.4
+CATEGORIES= www
+MASTER_SITES= http://monkey.org/~provos/
+
+MAINTAINER= peter@pointless.nl
+HOMEPAGE= http://monkey.org/~provos/crawl/
+COMMENT= Small and efficient HTTP crawler
+
+GNU_CONFIGURE= yes
+USE_PKGINSTALL= yes
+USE_BUILDLINK3= yes
+USE_DB185= yes
+
+CONF_FILES= ${PREFIX}/share/examples/${PKGBASE}/crawl.conf ${PKG_SYSCONFDIR}/crawl.conf
+
+post-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/${PKGBASE}
+ ${INSTALL_DATA} ${WRKSRC}/crawl.conf ${PREFIX}/share/examples/${PKGBASE}/crawl.conf
+
+SUBST_CLASSES= path
+SUBST_STAGE.path= post-patch
+SUBST_FILES.path= cfg.h
+SUBST_SED.path= -e 's,crawl.conf,${PKG_SYSCONFDIR}/crawl.conf,g'
+SUBST_MESSAGE.path= "Fixing hardcoded path."
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../mk/bdb.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"