From 2f938c20375fe87aa30b999a05de3c7b2d97cbbf Mon Sep 17 00:00:00 2001 From: William Grzybowski Date: Tue, 24 Jun 2014 18:14:49 +0000 Subject: [PATCH] www/scloader: add options a license PR: 190825 Submitted by: maintainer --- www/scloader/Makefile | 20 ++++++++++++-------- www/scloader/pkg-descr | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/www/scloader/Makefile b/www/scloader/Makefile index cc597d3b15f3..4c226438099c 100644 --- a/www/scloader/Makefile +++ b/www/scloader/Makefile @@ -3,6 +3,7 @@ PORTNAME= scloader PORTVERSION= 0.32 +PORTREVISION= 1 CATEGORIES= www java MASTER_SITES= SF DISTNAME= loader${PORTVERSION:C/\.//} @@ -10,6 +11,8 @@ 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+ @@ -18,10 +21,14 @@ NO_WRKSUBDIR= yes NO_BUILD= yes PLIST_FILES= bin/${PORTNAME} %%JAVAJARDIR%%/scloader.jar -PORTDOCS= README history todo 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}|" \ @@ -29,16 +36,13 @@ do-configure: do-install: ${INSTALL} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - ${MKDIR} ${STAGEDIR}${JAVAJARDIR} ${INSTALL_DATA} ${WRKSRC}/scloader.jar ${STAGEDIR}${JAVAJARDIR} -.ifndef NOPORTDOCS - ${MKDIR} ${STAGEDIR}${DOCSDIR} -.for i in ${PORTDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in README history todo ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor ${INSTALL_DATA} ${WRKSRC}/doc/manual.html ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/samples/loader.cnf ${STAGEDIR}${DOCSDIR} -PORTDOCS+= manual.html loader.cnf -.endif + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/samples/loader.cnf ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/www/scloader/pkg-descr b/www/scloader/pkg-descr index 37d40ff7ce0e..e5e681ccfeca 100644 --- a/www/scloader/pkg-descr +++ b/www/scloader/pkg-descr @@ -4,4 +4,4 @@ right tool for you! This program can be also used as web crawler if you need to crawl defined parts of www site(s). -WWW: http://scloader.sourceforge.net/ +WWW: http://scloader.sourceforge.net