diff options
author | knu <knu@FreeBSD.org> | 2001-09-02 05:37:20 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-09-02 05:37:20 +0800 |
commit | 88721e2508cafd11e0b05fe83f65d5ccba034a8c (patch) | |
tree | 26dee22b5e06ed00ae736a3cf11f5bc7abdc633f /devel/p4db/Makefile | |
parent | 202ffe69cb54ef6ef7ff04702d3a579d80d51b10 (diff) | |
download | freebsd-ports-gnome-88721e2508cafd11e0b05fe83f65d5ccba034a8c.tar.gz freebsd-ports-gnome-88721e2508cafd11e0b05fe83f65d5ccba034a8c.tar.zst freebsd-ports-gnome-88721e2508cafd11e0b05fe83f65d5ccba034a8c.zip |
Add devel/p4db, a Web/Perforce Browser which allows you to browse
Perforce depots via the web as CVSweb does for CVS.
Diffstat (limited to 'devel/p4db/Makefile')
-rw-r--r-- | devel/p4db/Makefile | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/devel/p4db/Makefile b/devel/p4db/Makefile new file mode 100644 index 000000000000..e98828d38f82 --- /dev/null +++ b/devel/p4db/Makefile @@ -0,0 +1,70 @@ +# New ports collection makefile for: P4DB +# Date created: 2 September 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= p4db +PORTVERSION= 2.01 +CATEGORIES= devel www +MASTER_SITES= http://www.mydata.se/ftp/P4DB/ +DISTNAME= ${PORTNAME:U}_${PORTVERSION} + +MAINTAINER= knu@FreeBSD.org + +RUN_DEPENDS= p4:${.CURDIR}/../perforce + +USE_PERL5= yes + +NO_BUILD= yes +NO_WRKSUBDIR= yes +PATCH_WRKSRC= ${WRKSRC}/${PORTNAME} + +FQDN!= hostname +P4DB_HOME= ${LOCALBASE}/perforce/${PORTNAME} + +# These variables are all configurable. +PERFORCE_USER?= p4admin +PERFORCE_GROUP?= p4admin +PERFORCE_HOME?= ${LOCALBASE}/perforce +PERFORCE_PORT?= 1666 + +post-extract: + ${MKDIR} ${WRKSRC}/${PORTNAME}/www + ${TAR} -xf ${WRKSRC}/cgi_files.tar -C ${WRKSRC}/${PORTNAME}/www/ + ${RM} -f ${WRKSRC}/${PORTNAME}/www/Makefile ${WRKSRC}/${PORTNAME}/www/p4jdb/*.java + ${CP} -p ${WRKSRC}/README.html ${WRKSRC}/${PORTNAME}/www/ + ${CP} ${WRKSRC}/P4DB.conf.txt ${WRKSRC}/${PORTNAME}/P4DB.conf.sample + cd ${WRKSRC}; for f in P4DB.shortcuts*.txt; do \ + ${CP} $${f} ${PORTNAME}/$${f}.sample; \ + done + +post-patch: + ${PERL} -pi \ + -e 's,!!PREFIX!!,${PREFIX},g;' \ + -e 's,!!PERFORCE_USER!!,${PERFORCE_USER},g;' \ + -e 's,!!PERFORCE_GROUP!!,${PERFORCE_GROUP},g;' \ + -e 's,!!PERFORCE_PORT!!,${PERFORCE_PORT},g;' \ + -e 's,!!FQDN!!,${FQDN},g;' \ + ${WRKSRC}/${PORTNAME}/P4DB.conf.sample + find ${WRKSRC}/${PORTNAME} -name '*.orig' -delete + +do-install: + ${MKDIR} ${P4DB_HOME}/www + ${CP} -Rp ${WRKSRC}/${PORTNAME}/* ${P4DB_HOME}/ + ${CHOWN} -R ${PERFORCE_USER}:${PERFORCE_GROUP} ${P4DB_HOME} +.for f in P4DB.conf P4DB.shortcuts.txt P4DB.shortcuts2.txt + if [ ! -f ${P4DB_HOME}/${f} ]; then \ + ${CP} -p ${P4DB_HOME}/${f}.sample ${P4DB_HOME}/${f}; \ + fi +.endfor +.if !defined(NOPORTDOCS) + ${MKDIR} ${P4DB_HOME}/doc + cd ${WRKSRC}; ${INSTALL_DATA} P4CGI.html README.html ${P4DB_HOME}/doc/ +.endif + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> |