mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
# Created by: Radim Kolar <hsn@sanatana.dharma>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= scloader
|
|
PORTVERSION= 0.32
|
|
CATEGORIES= www java
|
|
MASTER_SITES= SF
|
|
DISTNAME= loader${PORTVERSION:C/\.//}
|
|
|
|
MAINTAINER= hsn@sendmail.cz
|
|
COMMENT= Configurable web graber/spider
|
|
|
|
USES= dos2unix zip
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.6+
|
|
|
|
NO_WRKSUBDIR= yes
|
|
NO_BUILD= yes
|
|
|
|
PLIST_FILES= bin/${PORTNAME} %%JAVAJARDIR%%/scloader.jar
|
|
PORTDOCS= README history todo
|
|
|
|
DOS2UNIX_REGEX= .+\.[^j][^a][^r]$
|
|
|
|
NO_STAGE= yes
|
|
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>
|