mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
devel/cvsweb3: support stage
PR: 191282 Submitted by: joe thrallingpenguin com Approved by: maintainer (timeout)
This commit is contained in:
parent
59c989e5a1
commit
39c9311928
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363099
@ -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 <freebsd-cvsweb@FreeBSD.org> 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 <bsd.port.pre.mk>
|
||||
|
||||
# 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 <bsd.port.post.mk>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user