2007-04-16 11:16:16 +00:00
|
|
|
# New ports collection makefile for: scloader
|
|
|
|
# Date created: 2007-04-13
|
|
|
|
# Whom: Radim Kolar <hsn@sanatana.dharma>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scloader
|
2007-08-17 09:28:33 +00:00
|
|
|
PORTVERSION= 0.31
|
2008-06-06 14:17:21 +00:00
|
|
|
PORTREVISION= 2
|
2007-04-16 11:16:16 +00:00
|
|
|
CATEGORIES= www java
|
2007-07-26 08:41:15 +00:00
|
|
|
MASTER_SITES= SF
|
2007-04-16 11:16:16 +00:00
|
|
|
DISTNAME= loader${PORTVERSION:C/\.//}
|
|
|
|
|
|
|
|
MAINTAINER= hsn@sendmail.cz
|
2007-07-26 08:41:15 +00:00
|
|
|
COMMENT= Configurable web graber/spider
|
2007-04-16 11:16:16 +00:00
|
|
|
|
|
|
|
USE_ZIP= yes
|
|
|
|
USE_JAVA= yes
|
2007-08-17 09:28:33 +00:00
|
|
|
JAVA_VERSION= 1.5+
|
2007-04-16 11:16:16 +00:00
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
PLIST_FILES= bin/${PORTNAME} %%JAVAJARDIR%%/scloader.jar
|
|
|
|
PORTDOCS= README history todo
|
|
|
|
|
|
|
|
DOS2UNIX_REGEX= .+\.[^j][^a][^r]$
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
${SED} -e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \
|
|
|
|
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \
|
|
|
|
${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/scloader.jar ${JAVAJARDIR}
|
|
|
|
.ifndef NOPORTDOCS
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/samples/loader.cnf ${DOCSDIR}
|
|
|
|
PORTDOCS+= manual.html loader.cnf
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|