blob: aa2167901bfc60250bd421246d6eb9d6a5fd081b (
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
|
# New ports collection makefile for: scloader
# Date created: 2007-04-13
# Whom: Radim Kolar <hsn@sanatana.dharma>
#
# $FreeBSD$
#
PORTNAME= scloader
PORTVERSION= 0.31
CATEGORIES= www java
MASTER_SITES= SF
DISTNAME= loader${PORTVERSION:C/\.//}
MAINTAINER= hsn@sendmail.cz
COMMENT= Configurable web graber/spider
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
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>
|