blob: 4c226438099cbb1f44cd40477394d5cfe74c8920 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Created by: Radim Kolar <hsn@sanatana.dharma>
# $FreeBSD$
PORTNAME= scloader
PORTVERSION= 0.32
PORTREVISION= 1
CATEGORIES= www java
MASTER_SITES= SF
DISTNAME= loader${PORTVERSION:C/\.//}
MAINTAINER= hsn@sendmail.cz
COMMENT= Configurable web graber/spider
LICENSE= GPLv2
USES= dos2unix zip
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_WRKSUBDIR= yes
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME} %%JAVAJARDIR%%/scloader.jar
DOS2UNIX_REGEX= .+\.[^j][^a][^r]$
OPTIONS_DEFINE= DOCS EXAMPLES
PORTDOCS= README history todo manual.html
PORTEXAMPLES= loader.cnf
do-configure:
${SED} -e "s|%%JAVA%%|${LOCALBASE}/bin/java|" \
-e "s|%%JAVAJARDIR%%|${JAVAJARDIR}|" \
${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME}
do-install:
${INSTALL} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/scloader.jar ${STAGEDIR}${JAVAJARDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README history todo
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/loader.cnf ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|