--- devel/Makefile (revision 556295) +++ devel/Makefile (working copy) @@ -6819,6 +6819,7 @@ SUBDIR += vera++ SUBDIR += vexcl SUBDIR += viewvc + SUBDIR += viewvc-devel SUBDIR += violet SUBDIR += vitables SUBDIR += volk --- devel/viewvc/Makefile (revision 556295) +++ devel/viewvc/Makefile (working copy) @@ -9,6 +9,8 @@ MAINTAINER= ohauer@FreeBSD.org COMMENT= Web-based Version Control Repository Browsing +CONFLICTS_INSTALL= py[23][6-8]-viewvc-1.3* + LICENSE= BSD2CLAUSE USES= cpe python:2.7 --- devel/viewvc-devel/Makefile (nonexistent) +++ devel/viewvc-devel/Makefile (working copy) @@ -0,0 +1,76 @@ +# Created by: will +# $FreeBSD$ + +PORTNAME= viewvc +DISTVERSION= 1.3.0-20201006 +PKGNAMESUFFIX= -devel +CATEGORIES= devel python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ohauer@FreeBSD.org +COMMENT= Web-based Version Control Repository Browsing + +CONFLICTS_INSTALL= viewvc-1.[12].[0-9]* + +LICENSE= BSD2CLAUSE + +USES= cpe python:3.6+ +USE_PYTHON= flavors +USE_GITHUB= yes +GH_TAGNAME= c93d9da79c31457ecb0a771ff52d28353dc6e878 +USE_RC_SUBR= viewvc + +NO_BUILD= yes +NO_OPTIONS_SORT= yes +OPTIONS_DEFINE= WEBSRV APMOD SVN MYSQL +OPTIONS_DEFAULT= WEBSRV APACHE SVN + +OPTIONS_SINGLE= WEBSRV APMOD +OPTIONS_SINGLE_WEBSRV= APACHE LIGHTTPD +OPTIONS_SINGLE_APMOD= MODWSGI + +WEBSRV_DESC= Enable web server support +APMOD_DESC= depend on Apache module + +MODWSGI_DESC= Add mod_wsgi to the list of package dependencies +MYSQL_DESC= Bonsai-like repository query facilities + +APACHE_USE= APACHE_RUN=24+ +LIGHTTPD_RUN_DEPENDS= lighttpd:www/lighttpd +MODWSGI_RUN_DEPENDS= ${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}mod_wsgi>=4.4.13:www/mod_wsgi4@${PY_FLAVOR} +MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb@${PY_FLAVOR} + +SVN_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}subversion>=0:devel/py-subversion@${PY_FLAVOR} + +RUN_DEPENDS+= ${PY_PYGMENTS} + +.include + +SUB_FILES= pkg-message +SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \ + ECHO=${ECHO} EGREP=${EGREP} TOUCH=${TOUCH} \ + CHOWN=${CHOWN} RM=${RM:Q} + +pre-everything:: +.if ${PORT_OPTIONS:MAPMOD} && !${PORT_OPTIONS:MAPACHE} +IGNORE= apache module needs Apache server, please re-run 'make config' then choose WEBSRV and APACHE +.endif + +post-patch: +.for i in cvsgraph.conf mimetypes.conf viewvc.conf + ${MV} ${WRKSRC}/conf/${i}.dist ${WRKSRC}/conf/${i}.sample + ${REINPLACE_CMD} -e '/"${i}"/d' ${WRKSRC}/viewvc-install +.endfor + ${REINPLACE_CMD} -e 's/conf.dist/conf.sample/g' \ + ${WRKSRC}/viewvc-install \ + ${WRKSRC}/bin/standalone.py +# to much files, use own shebangfix + ${FIND} ${WRKSRC} -type f | ${GREP} -v -e 'png' -e 'images' \ + | ${XARGS} ${SED} -i '' \ + -e '1s|^\#![[:space:]]*/usr/bin/env python|\#!${PYTHON_CMD}|' \ + -e '1s|^\#![[:space:]]*/usr/bin/python|\#!${PYTHON_CMD}|' + +do-install: + @(cd ${WRKSRC} && ${PYTHON_CMD} viewvc-install --prefix=${PREFIX}/${PORTNAME} --destdir="${STAGEDIR}" --clean-mode=false) + +.include --- devel/viewvc-devel/distinfo (nonexistent) +++ devel/viewvc-devel/distinfo (working copy) @@ -0,0 +1,3 @@ +TIMESTAMP = 1602044238 +SHA256 (viewvc-viewvc-1.3.0-20201006-c93d9da79c31457ecb0a771ff52d28353dc6e878_GH0.tar.gz) = 8ed4212283a327eaff2e5badcd20106e07377a26fd959d52027179cfd1f19824 +SIZE (viewvc-viewvc-1.3.0-20201006-c93d9da79c31457ecb0a771ff52d28353dc6e878_GH0.tar.gz) = 338905 --- devel/viewvc-devel/files/pkg-message.in (nonexistent) +++ devel/viewvc-devel/files/pkg-message.in (working copy) @@ -0,0 +1,84 @@ +[ +{ type: install + message: < + WSGIRestrictSignal Off + + + + ScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/cgi/viewvc.cgi" + + + + WSGIScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/wsgi/viewvc.wsgi" + + + + Options NONE +ExecCGI + + + Example config lines for lighttpd + ================================= + server.modules = ( + "mod_alias", + "mod_access" + ) + + alias.url += ( "/viewvc" => "%%PREFIX%%/viewvc/bin/cgi" ) + + $HTTP["url"] =~ "^/viewvc/" { + index-file.names = ( "viewvc.cgi" ) + cgi.assign = ( + ".cgi" => "%%PYTHON_CMD%%", + ) + } + + Note: Cvsdb (Bonsai-like repository query) feature is not stable and + have some incompatibility on DB data with any released version, + (and it may be also incompatible with any feature release). +EOM +} +{ + type: upgrade + maximum_version: "1.3.0" + message: <&1 > /dev/null + if [ $? -eq 0 ]; then + %%ECHO%% "Please remove parameter -d from viewvc_flags" + %%ECHO%% + return 1 + fi +} + +viewvc_start() { + echo "Starting viewvc." + %%TOUCH%% ${pidfile} && %%CHOWN%% ${viewvc_user} ${pidfile} + /usr/sbin/daemon -cf -p ${pidfile} -u ${viewvc_user} ${standalone} ${viewvc_flags} +} + +viewvc_cleanup() { + [ -f ${pidfile} ] && %%RM%% ${pidfile} +} + +run_rc_command "$1" --- devel/viewvc-devel/pkg-descr (nonexistent) +++ devel/viewvc-devel/pkg-descr (working copy) @@ -0,0 +1,8 @@ +ViewVC is a browser interface for CVS and Subversion version control +repositories. It generates templatized HTML to present navigable directory, +revision, and change log listings. It can display specific versions of files as +well as diffs between those versions. Basically, ViewVC provides the bulk of the +report-like functionality you expect out of your version control tool, but much +more prettily than the average textual command-line program output. + +WWW: http://www.viewvc.org/ --- devel/viewvc-devel/pkg-plist (nonexistent) +++ devel/viewvc-devel/pkg-plist (working copy) @@ -0,0 +1,165 @@ +viewvc/bin/cgi/viewvc.cgi +viewvc/bin/cvsdbadmin +viewvc/bin/loginfo-handler +viewvc/bin/make-database +viewvc/bin/standalone.py +viewvc/bin/svndbadmin +viewvc/bin/wsgi/viewvc.fcgi +viewvc/bin/wsgi/viewvc.wsgi +@sample viewvc/cvsgraph.conf.sample +viewvc/lib/accept.py +viewvc/lib/accept.pyc +viewvc/lib/blame.py +viewvc/lib/blame.pyc +viewvc/lib/common.py +viewvc/lib/common.pyc +viewvc/lib/config.py +viewvc/lib/config.pyc +viewvc/lib/cvsdb.py +viewvc/lib/cvsdb.pyc +viewvc/lib/dbi.py +viewvc/lib/dbi.pyc +viewvc/lib/ezt.py +viewvc/lib/ezt.pyc +viewvc/lib/idiff.py +viewvc/lib/idiff.pyc +viewvc/lib/popen.py +viewvc/lib/popen.pyc +viewvc/lib/sapi.py +viewvc/lib/sapi.pyc +viewvc/lib/vcauth/__init__.py +viewvc/lib/vcauth/__init__.pyc +viewvc/lib/vcauth/forbidden/__init__.py +viewvc/lib/vcauth/forbidden/__init__.pyc +viewvc/lib/vcauth/forbiddenre/__init__.py +viewvc/lib/vcauth/forbiddenre/__init__.pyc +viewvc/lib/vcauth/svnauthz/__init__.py +viewvc/lib/vcauth/svnauthz/__init__.pyc +viewvc/lib/vclib/__init__.py +viewvc/lib/vclib/__init__.pyc +viewvc/lib/vclib/ccvs/__init__.py +viewvc/lib/vclib/ccvs/__init__.pyc +viewvc/lib/vclib/ccvs/bincvs.py +viewvc/lib/vclib/ccvs/bincvs.pyc +viewvc/lib/vclib/ccvs/blame.py +viewvc/lib/vclib/ccvs/blame.pyc +viewvc/lib/vclib/ccvs/ccvs.py +viewvc/lib/vclib/ccvs/ccvs.pyc +viewvc/lib/vclib/ccvs/rcsparse/__init__.py +viewvc/lib/vclib/ccvs/rcsparse/__init__.pyc +viewvc/lib/vclib/ccvs/rcsparse/common.py +viewvc/lib/vclib/ccvs/rcsparse/common.pyc +viewvc/lib/vclib/ccvs/rcsparse/debug.py +viewvc/lib/vclib/ccvs/rcsparse/debug.pyc +viewvc/lib/vclib/ccvs/rcsparse/default.py +viewvc/lib/vclib/ccvs/rcsparse/default.pyc +viewvc/lib/vclib/ccvs/rcsparse/parse_rcs_file.py +viewvc/lib/vclib/ccvs/rcsparse/parse_rcs_file.pyc +viewvc/lib/vclib/ccvs/rcsparse/run-tests.py +viewvc/lib/vclib/ccvs/rcsparse/run-tests.pyc +viewvc/lib/vclib/ccvs/rcsparse/test-data/default,v +viewvc/lib/vclib/ccvs/rcsparse/test-data/default.out +viewvc/lib/vclib/ccvs/rcsparse/test-data/empty-file,v +viewvc/lib/vclib/ccvs/rcsparse/test-data/empty-file.out +viewvc/lib/vclib/svn/__init__.py +viewvc/lib/vclib/svn/__init__.pyc +viewvc/lib/vclib/svn/svn_ra.py +viewvc/lib/vclib/svn/svn_ra.pyc +viewvc/lib/vclib/svn/svn_repos.py +viewvc/lib/vclib/svn/svn_repos.pyc +viewvc/lib/viewvc.py +viewvc/lib/viewvc.pyc +@sample viewvc/mimetypes.conf.sample +viewvc/templates/classic/_diff_display.ezt +viewvc/templates/classic/_diff_form.ezt +viewvc/templates/classic/_dir_footer.ezt +viewvc/templates/classic/_dir_header.ezt +viewvc/templates/classic/_file_header.ezt +viewvc/templates/classic/_footer.ezt +viewvc/templates/classic/_header.ezt +viewvc/templates/classic/_log_footer.ezt +viewvc/templates/classic/_log_header.ezt +viewvc/templates/classic/_paging.ezt +viewvc/templates/classic/_pathrev_form.ezt +viewvc/templates/classic/_props.ezt +viewvc/templates/classic/_sort.ezt +viewvc/templates/classic/diff.ezt +viewvc/templates/classic/dir_new.ezt +viewvc/templates/classic/directory.ezt +viewvc/templates/classic/docroot/help.css +viewvc/templates/classic/docroot/help_dirview.html +viewvc/templates/classic/docroot/help_log.html +viewvc/templates/classic/docroot/help_rootview.html +viewvc/templates/classic/docroot/images/annotate.png +viewvc/templates/classic/docroot/images/back.png +viewvc/templates/classic/docroot/images/back_small.png +viewvc/templates/classic/docroot/images/binary.png +viewvc/templates/classic/docroot/images/broken.png +viewvc/templates/classic/docroot/images/chalk.jpg +viewvc/templates/classic/docroot/images/cvsgraph_16x16.png +viewvc/templates/classic/docroot/images/cvsgraph_32x32.png +viewvc/templates/classic/docroot/images/diff.png +viewvc/templates/classic/docroot/images/dir.png +viewvc/templates/classic/docroot/images/down.png +viewvc/templates/classic/docroot/images/download.png +viewvc/templates/classic/docroot/images/favicon.ico +viewvc/templates/classic/docroot/images/feed-icon-16x16.jpg +viewvc/templates/classic/docroot/images/forward.png +viewvc/templates/classic/docroot/images/image.png +viewvc/templates/classic/docroot/images/list.png +viewvc/templates/classic/docroot/images/lock.png +viewvc/templates/classic/docroot/images/log.png +viewvc/templates/classic/docroot/images/text.png +viewvc/templates/classic/docroot/images/up.png +viewvc/templates/classic/docroot/images/view.png +viewvc/templates/classic/docroot/images/viewvc-logo.png +viewvc/templates/classic/docroot/styles.css +viewvc/templates/classic/error.ezt +viewvc/templates/classic/file.ezt +viewvc/templates/classic/graph.ezt +viewvc/templates/classic/log.ezt +viewvc/templates/classic/log_table.ezt +viewvc/templates/classic/query_form.ezt +viewvc/templates/classic/query_results.ezt +viewvc/templates/classic/revision.ezt +viewvc/templates/classic/roots.ezt +viewvc/templates/classic/rss.ezt +viewvc/templates/default/_diff_display.ezt +viewvc/templates/default/_diff_form.ezt +viewvc/templates/default/_footer.ezt +viewvc/templates/default/_header.ezt +viewvc/templates/default/_pathrev_form.ezt +viewvc/templates/default/_props.ezt +viewvc/templates/default/diff.ezt +viewvc/templates/default/directory.ezt +viewvc/templates/default/docroot/help.css +viewvc/templates/default/docroot/help_dirview.html +viewvc/templates/default/docroot/help_log.html +viewvc/templates/default/docroot/help_rootview.html +viewvc/templates/default/docroot/images/back.png +viewvc/templates/default/docroot/images/back_small.png +viewvc/templates/default/docroot/images/binary.png +viewvc/templates/default/docroot/images/broken.png +viewvc/templates/default/docroot/images/cvs-logo.png +viewvc/templates/default/docroot/images/dir.png +viewvc/templates/default/docroot/images/down.png +viewvc/templates/default/docroot/images/feed-icon-16x16.jpg +viewvc/templates/default/docroot/images/forward.png +viewvc/templates/default/docroot/images/image.png +viewvc/templates/default/docroot/images/lock-icon.gif +viewvc/templates/default/docroot/images/svn-logo.png +viewvc/templates/default/docroot/images/text.png +viewvc/templates/default/docroot/images/up.png +viewvc/templates/default/docroot/images/viewvc-logo.png +viewvc/templates/default/docroot/scripts.js +viewvc/templates/default/docroot/styles.css +viewvc/templates/default/error.ezt +viewvc/templates/default/file.ezt +viewvc/templates/default/graph.ezt +viewvc/templates/default/log.ezt +viewvc/templates/default/query_form.ezt +viewvc/templates/default/query_results.ezt +viewvc/templates/default/revision.ezt +viewvc/templates/default/roots.ezt +viewvc/templates/default/rss.ezt +@sample viewvc/viewvc.conf.sample