diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-01-01 23:51:22 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-01-01 23:51:22 +0000 |
commit | 4701f83604b27d8fb17ce825ca3d5e6859792c84 (patch) | |
tree | 805a5bde3486b827c8b73eddcf4ca0c3b7b665d1 /devel/cvsweb3/Makefile | |
parent | 2f7c6bd9f54f91992f507d3432c6b73922e72421 (diff) | |
download | ports-4701f83604b27d8fb17ce825ca3d5e6859792c84.tar.gz ports-4701f83604b27d8fb17ce825ca3d5e6859792c84.zip |
Notes
Diffstat (limited to 'devel/cvsweb3/Makefile')
-rw-r--r-- | devel/cvsweb3/Makefile | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/devel/cvsweb3/Makefile b/devel/cvsweb3/Makefile index 0fd0a118113a..2b933e186dbd 100644 --- a/devel/cvsweb3/Makefile +++ b/devel/cvsweb3/Makefile @@ -19,7 +19,7 @@ USE_PERL5= yes # This version of cvsweb is Zeller's version + knu's enhancements. REV_ZELLER= 1.104 -REV_KNU= 1.52 +REV_KNU= 1.54 # Specify where your repository belongs. # (You can reconfigure it after installation anyway) @@ -39,22 +39,34 @@ CGIDIR?= www/cgi-bin ICONSDIR?= www/icons .endif +CONFFILES= cvsweb.conf \ + cvsweb.conf-freebsd \ + cvsweb.conf-openbsd \ + cvsweb.conf-netbsd \ + cvsweb.conf-ruby + PLIST_SUB= CGIDIR="${CGIDIR}" ICONSDIR="${ICONSDIR}" WRKSRC= ${WRKDIR}/${PORTNAME} -do-configure: - cd ${WRKSRC} && ${PERL} -i -pe "\ - s;/usr/bin/perl5;${PERL};g; \ - s;/usr/local;${PREFIX};g; \ - s;/home/cvs;${CVSROOT};g; \ - s;'Local Repository';'${TITLE}';g; \ - " cvsweb.cgi cvsweb.conf +post-patch: + ${PERL} -i -pe "\ + s;!!PERL!!;${PERL};g; \ + s;!!PREFIX!!;${PREFIX};g;" \ + ${WRKSRC}/cvsweb.cgi + ${PERL} -i -pe "\ + s;!!PREFIX!!;${PREFIX};g; \ + s;!!CVSROOT!!;${CVSROOT};g; \ + s;!!TITLE!!;${TITLE};g;" \ + ${WRKSRC}/cvsweb.conf do-install: ${MKDIR} ${PREFIX}/${CGIDIR} ${INSTALL_SCRIPT} ${WRKSRC}/cvsweb.cgi ${PREFIX}/${CGIDIR}/ - ${INSTALL_DATA} ${WRKSRC}/cvsweb.conf ${PREFIX}/etc/cvsweb.conf.sample + ${MKDIR} ${PREFIX}/etc/cvsweb +.for f in ${CONFFILES} + ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/etc/cvsweb/${f}.dist +.endfor ${MKDIR} ${PREFIX}/${ICONSDIR}/cvsweb cd ${WRKSRC}/icons && ${INSTALL_DATA} * ${PREFIX}/${ICONSDIR}/cvsweb/ .if !defined(NOPORTDOCS) |