aboutsummaryrefslogtreecommitdiff
path: root/devel/p4db
diff options
context:
space:
mode:
Diffstat (limited to 'devel/p4db')
-rw-r--r--devel/p4db/Makefile70
-rw-r--r--devel/p4db/distinfo1
-rw-r--r--devel/p4db/files/patch-P4CGI.pm11
-rw-r--r--devel/p4db/files/patch-P4DB.conf.sample44
-rw-r--r--devel/p4db/pkg-comment1
-rw-r--r--devel/p4db/pkg-descr7
-rw-r--r--devel/p4db/pkg-message17
-rw-r--r--devel/p4db/pkg-plist75
8 files changed, 226 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>
diff --git a/devel/p4db/distinfo b/devel/p4db/distinfo
new file mode 100644
index 000000000000..51fb8cb41849
--- /dev/null
+++ b/devel/p4db/distinfo
@@ -0,0 +1 @@
+MD5 (P4DB_2.01.tar.gz) = d47117a1a0ca485dae02faaeef00da08
diff --git a/devel/p4db/files/patch-P4CGI.pm b/devel/p4db/files/patch-P4CGI.pm
new file mode 100644
index 000000000000..70bd6c6c20d4
--- /dev/null
+++ b/devel/p4db/files/patch-P4CGI.pm
@@ -0,0 +1,11 @@
+--- www/P4CGI.pm.orig Wed Dec 13 08:30:28 2000
++++ www/P4CGI.pm Sun Sep 2 04:17:42 2001
+@@ -13,7 +13,7 @@
+
+ sub ConfigFileName()
+ {
+- return "./P4DB.conf" ; # Change here to rename configuration file
++ return "../P4DB.conf" ; # Change here to rename configuration file
+ }
+
+ use CGI ;
diff --git a/devel/p4db/files/patch-P4DB.conf.sample b/devel/p4db/files/patch-P4DB.conf.sample
new file mode 100644
index 000000000000..d2217c2497a1
--- /dev/null
+++ b/devel/p4db/files/patch-P4DB.conf.sample
@@ -0,0 +1,44 @@
+--- P4DB.conf.sample.orig Wed Dec 13 08:08:37 2000
++++ P4DB.conf.sample Sun Sep 2 04:22:55 2001
+@@ -16,7 +16,7 @@
+ ### ###
+
+ ### Specify path to p4 program
+- P4PATH: /home/fredric/bin/p4
++ P4PATH: !!PREFIX!!/bin/p4
+
+ ### Specify path to icons (well, icon for 2.0)
+ # If this is modified, be sure to move image as well
+@@ -30,8 +30,7 @@
+ ### Set administrator(s) for P4DB.
+ # Data Format: <email address> <full name>
+ # One or more administrators can be specified.
+- P4DB_ADMIN: MrDDuck@disney.com Donald Duck
+- P4DB_ADMIN: MrMMouse@disney.com M. Mouse
++ P4DB_ADMIN: !!PERFORCE_USER!!@!!FQDN!! P4 admin
+
+ ### ###
+ ### Variables to facilitate ports ###
+@@ -71,8 +70,8 @@
+ # See README.html for details about shortcut files
+
+ SHORTCUT_FILE: ; No shortcuts
+- SHORTCUT_FILE: ./P4DB.shortcuts.txt ; Sample shortcuts
+- SHORTCUT_FILE: ./P4DB.shortcuts2.txt; Sample shortcuts 2
++ SHORTCUT_FILE: ../P4DB.shortcuts.txt ; Sample shortcuts
++ SHORTCUT_FILE: ../P4DB.shortcuts2.txt; Sample shortcuts 2
+
+ ### ###
+ ### Specify depots ###
+@@ -82,10 +81,8 @@
+ # (no spaces in password, user or client).
+ # For password: '*' equals no password
+ # One depot per line
+- DEPOT: localhost:1666 fredric fredric_client * ; My local depot
+- DEPOT: p4:1666 fredric fredric_client1 passwrd ; At work
++ DEPOT: localhost:!!PERFORCE_PORT!! fredric fredric_client * ; My local depot
+ DEPOT: public.perforce.com:1666 fredric none * ; Perforce Public Depot
+- DEPOT: NoSuch:1666 Anyuser anyClient aPassword ; Nonexisting, for test
+
+ ### ###
+ ### Color schemes ###
diff --git a/devel/p4db/pkg-comment b/devel/p4db/pkg-comment
new file mode 100644
index 000000000000..ea95e653fcdc
--- /dev/null
+++ b/devel/p4db/pkg-comment
@@ -0,0 +1 @@
+Web/Perforce Browser
diff --git a/devel/p4db/pkg-descr b/devel/p4db/pkg-descr
new file mode 100644
index 000000000000..ae88263ebcb8
--- /dev/null
+++ b/devel/p4db/pkg-descr
@@ -0,0 +1,7 @@
+P4DB - Web/Perforce Browser
+
+P4DB allows you to browse Perforce depots via the web as CVSweb does
+for CVS.
+
+WWW: http://www.perforce.com/perforce/loadsupp.html
+Author: Fredric Fredricson <fredric@mydata.se>
diff --git a/devel/p4db/pkg-message b/devel/p4db/pkg-message
new file mode 100644
index 000000000000..dec91a1f5ca6
--- /dev/null
+++ b/devel/p4db/pkg-message
@@ -0,0 +1,17 @@
+************************************************************************
+To launch your p4db site, edit /usr/local/perforce/p4db/P4DB.conf and
+configure the web server to make /usr/local/perforce/p4db/www
+viewable. For example:
+
+ Alias /p4db/ "/usr/local/perforce/p4db/www/"
+ <Directory "/usr/local/perforce/p4db/www">
+ AddHandler cgi-script .cgi
+ DirectoryIndex index.cgi
+ Options ExecCGI
+ AllowOverride None
+ Order allow,deny
+ Allow from all
+ </Directory>
+
+(Replace /usr/local with your ${PREFIX} as appropriate)
+************************************************************************
diff --git a/devel/p4db/pkg-plist b/devel/p4db/pkg-plist
new file mode 100644
index 000000000000..4886893c14d2
--- /dev/null
+++ b/devel/p4db/pkg-plist
@@ -0,0 +1,75 @@
+@unexec if cmp -s %D/perforce/p4db/P4DB.conf %D/perforce/p4db/P4DB.conf.sample; then rm -f %D/perforce/p4db/P4DB.conf; fi
+perforce/p4db/P4DB.conf.sample
+@exec [ ! -f %B/P4DB.conf ] && cp -p %B/%f %B/P4DB.conf || true
+@unexec if cmp -s %D/perforce/p4db/P4DB.shortcuts.txt %D/perforce/p4db/P4DB.shortcuts.txt.sample; then rm -f %D/perforce/p4db/P4DB.shortcuts.txt; fi
+perforce/p4db/P4DB.shortcuts.txt.sample
+@exec [ ! -f %B/P4DB.shortcuts.txt ] && cp -p %B/%f %B/P4DB.shortcuts.txt || true
+@unexec if cmp -s %D/perforce/p4db/P4DB.shortcuts2.txt %D/perforce/p4db/P4DB.shortcuts2.txt.sample; then rm -f %D/perforce/p4db/P4DB.shortcuts2.txt; fi
+perforce/p4db/P4DB.shortcuts2.txt.sample
+@exec [ ! -f %B/P4DB.shortcuts2.txt ] && cp -p %B/%f %B/P4DB.shortcuts2.txt || true
+perforce/p4db/www/P4CGI.pm
+perforce/p4db/www/P4DB_Help.html
+perforce/p4db/www/README.html
+perforce/p4db/www/SetPreferences.cgi
+perforce/p4db/www/branchList.cgi
+perforce/p4db/www/branchView.cgi
+perforce/p4db/www/changeByUsers.cgi
+perforce/p4db/www/changeList.cgi
+perforce/p4db/www/changeView.cgi
+perforce/p4db/www/clientList.cgi
+perforce/p4db/www/clientView.cgi
+perforce/p4db/www/colorC.pl
+perforce/p4db/www/colorHtml.pl
+perforce/p4db/www/colorPerl.pl
+perforce/p4db/www/colorView.pm
+perforce/p4db/www/depotStats.cgi
+perforce/p4db/www/depotTreeBrowser.cgi
+perforce/p4db/www/fileDiffView.cgi
+perforce/p4db/www/fileDownLoad.cgi
+perforce/p4db/www/fileLogView.cgi
+perforce/p4db/www/fileOpen.cgi
+perforce/p4db/www/fileSearch.cgi
+perforce/p4db/www/fileViewer.cgi
+perforce/p4db/www/filesChangedSince.cgi
+perforce/p4db/www/groupView.cgi
+perforce/p4db/www/htmlFileView.cgi
+perforce/p4db/www/icons/back.gif
+perforce/p4db/www/index.cgi
+perforce/p4db/www/javaDataView.cgi
+perforce/p4db/www/jobList.cgi
+perforce/p4db/www/jobView.cgi
+perforce/p4db/www/labelDiffView.cgi
+perforce/p4db/www/labelList.cgi
+perforce/p4db/www/labelView.cgi
+perforce/p4db/www/p4jdb/P4DirTree$1.class
+perforce/p4db/www/p4jdb/P4DirTree$2.class
+perforce/p4db/www/p4jdb/P4DirTree$3.class
+perforce/p4db/www/p4jdb/P4DirTree$Manager.class
+perforce/p4db/www/p4jdb/P4DirTree.class
+perforce/p4db/www/p4jdb/P4DirTreeApplet$1.class
+perforce/p4db/www/p4jdb/P4DirTreeApplet.class
+perforce/p4db/www/p4jdb/P4File$1.class
+perforce/p4db/www/p4jdb/P4File.class
+perforce/p4db/www/p4jdb/P4Folder$1.class
+perforce/p4db/www/p4jdb/P4Folder.class
+perforce/p4db/www/p4jdb/TreeDisplay$1.class
+perforce/p4db/www/p4jdb/TreeDisplay$Data.class
+perforce/p4db/www/p4jdb/TreeDisplay$DataManager.class
+perforce/p4db/www/p4jdb/TreeDisplay$LineData.class
+perforce/p4db/www/p4jdb/TreeDisplay$MyPanel.class
+perforce/p4db/www/p4jdb/TreeDisplay.class
+perforce/p4db/www/p4pr.perl
+perforce/p4db/www/p4race.cgi
+perforce/p4db/www/searchPattern.cgi
+perforce/p4db/www/specialFileView.cgi
+perforce/p4db/www/userList.cgi
+perforce/p4db/www/userView.cgi
+perforce/p4db/www/viewConfig.pm
+@dirrm perforce/p4db/www/p4jdb
+@dirrm perforce/p4db/www/icons
+@dirrm perforce/p4db/www
+%%PORTDOCS%%perforce/p4db/doc/P4CGI.html
+%%PORTDOCS%%perforce/p4db/doc/README.html
+%%PORTDOCS%%@dirrm perforce/p4db/doc
+@dirrm perforce/p4db
+@unexec /bin/rmdir %D/perforce 2>/dev/null || true