diff --git a/devel/cvsweb3/Makefile b/devel/cvsweb3/Makefile index e88be511ea70..f9a1d0ca6fe1 100644 --- a/devel/cvsweb3/Makefile +++ b/devel/cvsweb3/Makefile @@ -8,6 +8,7 @@ CATEGORIES= devel www MASTER_SITES= ${MASTER_SITE_LOCAL} \ http://people.FreeBSD.org/~scop/cvsweb/ MASTER_SITE_SUBDIR= scop +PKGNAMESUFFIX= 3 # For issues that are not specific to this port/package, please consult # the mailing list. @@ -27,13 +28,11 @@ RUN_DEPENDS+= p5-MIME-Types>=0:${PORTSDIR}/mail/p5-MIME-Types \ PAPERSIZE?= letter RUN_DEPENDS+= enscript:${PORTSDIR}/print/enscript-${PAPERSIZE} -PKGNAMESUFFIX= 3 CONFLICTS= cvsweb-2.* USES= perl5 NO_BUILD= yes -NO_STAGE= yes .include # Specify where your repository belongs. @@ -51,9 +50,9 @@ CGIDIR?= www/cgi-bin ICONSDIR?= www/icons CSSDIR?= www/data/css .elif exists(${PREFIX}/www/apache22/cgi-bin) -CGIDIR?= www/apache22/cgi-bin -ICONSDIR?= www/apache22/icons -CSSDIR?= www/apache22/data/css +CGIDIR?= www/apache22/cgi-bin +ICONSDIR?= www/apache22/icons +CSSDIR?= www/apache22/data/css .elif exists(${PREFIX}/apache/cgi-bin) CGIDIR?= apache/cgi-bin ICONSDIR?= apache/icons @@ -85,31 +84,23 @@ post-patch: ${WRKSRC}/cvsweb.conf do-install: - ${MKDIR} ${PREFIX}/${CGIDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/ - ${MKDIR} ${PREFIX}/etc/cvsweb + @${MKDIR} ${STAGEDIR}${PREFIX}/${CGIDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${STAGEDIR}${PREFIX}/${CGIDIR}/ + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/cvsweb .for f in ${CONFFILES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/cvsweb/${f}.dist + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/etc/cvsweb/${f}.dist .endfor - ${MKDIR} ${PREFIX}/${ICONSDIR}/cvsweb - ${INSTALL_DATA} ${WRKSRC}/icons/* ${PREFIX}/${ICONSDIR}/cvsweb/ - ${MKDIR} ${PREFIX}/${CSSDIR}/cvsweb - ${INSTALL_DATA} ${WRKSRC}/css/*.css ${PREFIX}/${CSSDIR}/cvsweb/ - ${MKDIR} ${PREFIX}/share/enscript/hl - ${INSTALL_DATA} ${WRKSRC}/enscript/*.st ${PREFIX}/share/enscript/hl/ -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/${ICONSDIR}/cvsweb + ${INSTALL_DATA} ${WRKSRC}/icons/* ${STAGEDIR}${PREFIX}/${ICONSDIR}/cvsweb/ + @${MKDIR} ${STAGEDIR}${PREFIX}/${CSSDIR}/cvsweb + ${INSTALL_DATA} ${WRKSRC}/css/*.css ${STAGEDIR}${PREFIX}/${CSSDIR}/cvsweb/ + @${MKDIR} ${STAGEDIR}${PREFIX}/share/enscript/hl + ${INSTALL_DATA} ${WRKSRC}/enscript/*.st ${STAGEDIR}${PREFIX}/share/enscript/hl/ + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ChangeLog INSTALL NEWS README TODO - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor - ${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}/ -.endif - -post-install: -.if defined(PACKAGE_BUILDING) - ${ECHO_CMD} "@unexec rmdir -p %D/${CGIDIR} %D/${ICONSDIR} %D/${CSSDIR} 2>/dev/null || true" >> ${TMPPLIST} -.endif - @${CAT} ${PKGMESSAGE} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}/ .include diff --git a/devel/cvsweb3/pkg-plist b/devel/cvsweb3/pkg-plist index 60190298ce91..437c7e3f745b 100644 --- a/devel/cvsweb3/pkg-plist +++ b/devel/cvsweb3/pkg-plist @@ -10,8 +10,7 @@ etc/cvsweb/cvsweb.conf-ruby.dist %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/TODO %%PORTDOCS%%@dirrm %%DOCSDIR%% -%%PORTDOCS%%%%EXAMPLESDIR%%/cvsweb-httpd.conf -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cvsweb-httpd.conf %%CGIDIR%%/cvsweb.cgi %%ICONSDIR%%/cvsweb/back.gif %%ICONSDIR%%/cvsweb/binary.gif @@ -21,9 +20,14 @@ etc/cvsweb/cvsweb.conf-ruby.dist %%ICONSDIR%%/cvsweb/minigraph.png %%ICONSDIR%%/cvsweb/minitext.gif %%ICONSDIR%%/cvsweb/text.gif +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% @dirrm %%ICONSDIR%%/cvsweb %%CSSDIR%%/cvsweb/cvsweb.css @dirrm %%CSSDIR%%/cvsweb share/enscript/hl/lang_cvsweb.st share/enscript/hl/lang_cvsweb_diff.st -@dirrmtry share/enscript/hl +@dirrmtry %%CGIDIR%% +@dirrmtry %%CSSDIR%% +@dirrmtry share/apache/data +@dirrmtry %%ICONSDIR%% +@dirrmtry share/apache