View | Details | Raw Unified | Return to bug 247161 | Differences between
and this patch

Collapse All | Expand All

(-)devel/viewvc/Makefile (+2 lines)
Lines 9-14 Link Here
9
MAINTAINER=	ohauer@FreeBSD.org
9
MAINTAINER=	ohauer@FreeBSD.org
10
COMMENT=	Web-based Version Control Repository Browsing
10
COMMENT=	Web-based Version Control Repository Browsing
11
11
12
CONFLICTS_INSTALL=      py[23][6-8]-viewvc-1.3*
13
12
LICENSE=	BSD2CLAUSE
14
LICENSE=	BSD2CLAUSE
13
15
14
USES=		cpe python:2.7
16
USES=		cpe python:2.7
(-)devel/viewvc-devel/Makefile (+76 lines)
Line 0 Link Here
1
# Created by: will
2
# $FreeBSD$
3
4
PORTNAME=	viewvc
5
DISTVERSION=	1.3.0-20201006
6
PKGNAMESUFFIX=  -devel
7
CATEGORIES=	devel python
8
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
9
10
MAINTAINER=	ohauer@FreeBSD.org
11
COMMENT=	Web-based Version Control Repository Browsing
12
13
CONFLICTS_INSTALL=      viewvc-1.[12].[0-9]*
14
15
LICENSE=	BSD2CLAUSE
16
17
USES=		cpe python:3.6+
18
USE_PYTHON=	flavors
19
USE_GITHUB=	yes
20
GH_TAGNAME=	c93d9da79c31457ecb0a771ff52d28353dc6e878
21
USE_RC_SUBR=	viewvc
22
23
NO_BUILD=		yes
24
NO_OPTIONS_SORT=	yes
25
OPTIONS_DEFINE=		WEBSRV APMOD SVN MYSQL
26
OPTIONS_DEFAULT=	WEBSRV APACHE SVN
27
28
OPTIONS_SINGLE=		WEBSRV APMOD
29
OPTIONS_SINGLE_WEBSRV=	APACHE LIGHTTPD
30
OPTIONS_SINGLE_APMOD=	MODWSGI
31
32
WEBSRV_DESC=		Enable web server support
33
APMOD_DESC=		depend on Apache module
34
35
MODWSGI_DESC=		Add mod_wsgi to the list of package dependencies
36
MYSQL_DESC=		Bonsai-like repository query facilities
37
38
APACHE_USE=		APACHE_RUN=24+
39
LIGHTTPD_RUN_DEPENDS=	lighttpd:www/lighttpd
40
MODWSGI_RUN_DEPENDS=	${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX}mod_wsgi>=4.4.13:www/mod_wsgi4@${PY_FLAVOR}
41
MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}MySQLdb>=0:databases/py-MySQLdb@${PY_FLAVOR}
42
43
SVN_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}subversion>=0:devel/py-subversion@${PY_FLAVOR}
44
45
RUN_DEPENDS+=		${PY_PYGMENTS}
46
47
.include <bsd.port.options.mk>
48
49
SUB_FILES=	pkg-message
50
SUB_LIST=	PYTHON_CMD=${PYTHON_CMD} \
51
		ECHO=${ECHO} EGREP=${EGREP} TOUCH=${TOUCH} \
52
		CHOWN=${CHOWN} RM=${RM:Q}
53
54
pre-everything::
55
.if ${PORT_OPTIONS:MAPMOD} && !${PORT_OPTIONS:MAPACHE}
56
IGNORE=	apache module needs Apache server, please re-run 'make config' then choose WEBSRV and APACHE
57
.endif
58
59
post-patch:
60
.for i in cvsgraph.conf mimetypes.conf viewvc.conf
61
	${MV} ${WRKSRC}/conf/${i}.dist ${WRKSRC}/conf/${i}.sample
62
	${REINPLACE_CMD} -e '/"${i}"/d' ${WRKSRC}/viewvc-install
63
.endfor
64
	${REINPLACE_CMD} -e 's/conf.dist/conf.sample/g' \
65
		${WRKSRC}/viewvc-install \
66
		${WRKSRC}/bin/standalone.py
67
# to much files, use own shebangfix
68
	${FIND} ${WRKSRC} -type f | ${GREP} -v -e 'png' -e 'images' \
69
		| ${XARGS} ${SED} -i '' \
70
		-e '1s|^\#![[:space:]]*/usr/bin/env python|\#!${PYTHON_CMD}|' \
71
		-e '1s|^\#![[:space:]]*/usr/bin/python|\#!${PYTHON_CMD}|'
72
73
do-install:
74
	@(cd ${WRKSRC} && ${PYTHON_CMD} viewvc-install --prefix=${PREFIX}/${PORTNAME} --destdir="${STAGEDIR}" --clean-mode=false)
75
76
.include <bsd.port.mk>
(-)devel/viewvc-devel/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1602044238
2
SHA256 (viewvc-viewvc-1.3.0-20201006-c93d9da79c31457ecb0a771ff52d28353dc6e878_GH0.tar.gz) = 8ed4212283a327eaff2e5badcd20106e07377a26fd959d52027179cfd1f19824
3
SIZE (viewvc-viewvc-1.3.0-20201006-c93d9da79c31457ecb0a771ff52d28353dc6e878_GH0.tar.gz) = 338905
(-)devel/viewvc-devel/files/pkg-message.in (+84 lines)
Line 0 Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
 To use ViewVC, modify the configuration file located at
5
 %%PREFIX%%/viewvc/viewvc.conf.
6
7
 If no webserver was selected during installation, then
8
 a rc script for running ViewVC standalone is installed.
9
 To enable the standalone ViewVC server in rc.conf use
10
 parameter viewvc_enable="YES".
11
12
 You can also adjust the user which runs the ViewVC standalone
13
 server with the parameter "viewvc_user".
14
15
 If you want to run the ViewVC standalone server with another
16
 IP/PORT, use the parameter "viewvc_flags".
17
18
 To see all available parameters, use the command
19
 %%PREFIX%%/viewvc/bin/standalone.py --help
20
21
22
 To use ViewVC with Apache or lighttpd as a CGI script,
23
 see the following config examples.
24
25
 Example config lines for Apache 2.4
26
 ===================================
27
 <IfModule wsgi_module>
28
   WSGIRestrictSignal Off
29
 </IfModule>
30
31
 <IfModule !wsgi_module>
32
   ScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/cgi/viewvc.cgi"
33
 </IfModule>
34
35
 <IfModule wsgi_module>
36
   WSGIScriptAlias "/viewvc" "%%PREFIX%%/viewvc/bin/wsgi/viewvc.wsgi"
37
 </IfModule>
38
39
 <Location /viewvc>
40
     Options NONE +ExecCGI
41
 </Location>
42
43
 Example config lines for lighttpd
44
 =================================
45
 server.modules = (
46
   "mod_alias",
47
   "mod_access"
48
 )
49
50
 alias.url += ( "/viewvc" => "%%PREFIX%%/viewvc/bin/cgi" )
51
52
 $HTTP["url"] =~ "^/viewvc/" {
53
   index-file.names  = ( "viewvc.cgi" )
54
     cgi.assign = (
55
       ".cgi" => "%%PYTHON_CMD%%",
56
     )
57
 }
58
59
 Note: Cvsdb (Bonsai-like repository query) feature is not stable and
60
       have some incompatibility on DB data with any released version,
61
       (and it may be also incompatible with any feature release). 
62
EOM
63
}
64
{
65
  type: upgrade
66
  maximum_version: "1.3.0"
67
  message: <<EOM
68
  Please review your vievc.conf, see viewvc.sample.conf
69
  ======================================================
70
   - the template path has changed
71
   - the vhost notation has changed
72
73
  Additional upgrade informations:
74
  https://github.com/viewvc/viewvc/blob/master/docs/upgrading-howto.html
75
76
  Note: Cvsdb (Bonsai-like repository query) feature is not stable and
77
        have some incompatibility on DB data with any released version,
78
        (and it may be also incompatible with any feature release). 
79
        So if you want to use this feature, make sure to make back up
80
        of existing DB and then rebuild your DB data with
81
        cvsdbadmin/svndbadmin.
82
EOM
83
}
84
]
(-)devel/viewvc-devel/files/viewvc.in (+70 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/devel/viewvc/files/viewvc.in 340872 2014-01-24 00:14:07Z mat $
4
#
5
# PROVIDE: viewvc
6
# REQUIRE: LOGIN
7
# KEYWORD: shutdown
8
#
9
# Add the following line(s) to /etc/rc.conf to enable ViewVC:
10
#
11
#  viewvc_enable="YES"
12
#  # optional
13
#  viewvc_flags="-h localhost -p PORT"
14
#  viewvc_user="www"
15
#
16
# To get available parameters and the default values, use the
17
# command %%PREFIX%%/viewvc/bin/standalone.py --help
18
# for more info.
19
#
20
# Note:
21
# If you choose a listen port less then 1024 then you have
22
# to use a privileged user.
23
# If the user www cannot access your cvs/svn repository,
24
# adjust the parameter viewvc_user and it should work.
25
#
26
# INFO:
27
# ViewVC default tcp port: 49152
28
# see http://viewvc.tigris.org/issues/show_bug.cgi?id=234
29
30
. /etc/rc.subr
31
32
name=viewvc
33
rcvar=viewvc_enable
34
load_rc_config $name
35
36
# Set defaults
37
viewvc_enable=${viewvc_enable:-"NO"}
38
viewvc_flags=${viewvc_flags:-"-p 49152"}
39
viewvc_user=${viewvc_user:-"www"}
40
41
pidfile=/var/run/viewvc.pid
42
command=%%PYTHON_CMD%%
43
standalone=%%PREFIX%%/viewvc/bin/standalone.py
44
45
start_precmd=viewvc_precmd
46
start_cmd=viewvc_start
47
stop_postcmd=viewvc_cleanup
48
49
viewvc_precmd()
50
{
51
    # with param -d we get another pid so prevent this
52
    %%ECHO%% "${viewvc_flags}" | %%EGREP%% -q "(^\-d| \-d)" 2>&1 > /dev/null
53
    if [ $? -eq 0 ]; then
54
        %%ECHO%% "Please remove parameter -d from viewvc_flags"
55
        %%ECHO%%
56
        return 1
57
    fi
58
}
59
60
viewvc_start() {
61
    echo "Starting viewvc."
62
    %%TOUCH%% ${pidfile} && %%CHOWN%% ${viewvc_user} ${pidfile}
63
    /usr/sbin/daemon -cf -p ${pidfile} -u ${viewvc_user} ${standalone} ${viewvc_flags}
64
}
65
66
viewvc_cleanup() {
67
    [ -f ${pidfile} ] && %%RM%% ${pidfile}
68
}
69
70
run_rc_command "$1"
(-)devel/viewvc-devel/pkg-descr (+8 lines)
Line 0 Link Here
1
ViewVC is a browser interface for CVS and Subversion version control
2
repositories. It generates templatized HTML to present navigable directory,
3
revision, and change log listings. It can display specific versions of files as
4
well as diffs between those versions. Basically, ViewVC provides the bulk of the
5
report-like functionality you expect out of your version control tool, but much
6
more prettily than the average textual command-line program output.
7
8
WWW: http://www.viewvc.org/
(-)devel/viewvc-devel/pkg-plist (+136 lines)
Line 0 Link Here
1
viewvc/bin/cgi/viewvc.cgi
2
viewvc/bin/cvsdbadmin
3
viewvc/bin/loginfo-handler
4
viewvc/bin/make-database
5
viewvc/bin/standalone.py
6
viewvc/bin/svndbadmin
7
viewvc/bin/wsgi/viewvc.fcgi
8
viewvc/bin/wsgi/viewvc.wsgi
9
@sample viewvc/cvsgraph.conf.sample
10
viewvc/lib/accept.py
11
viewvc/lib/blame.py
12
viewvc/lib/common.py
13
viewvc/lib/config.py
14
viewvc/lib/cvsdb.py
15
viewvc/lib/dbi.py
16
viewvc/lib/ezt.py
17
viewvc/lib/idiff.py
18
viewvc/lib/popen.py
19
viewvc/lib/sapi.py
20
viewvc/lib/vcauth/__init__.py
21
viewvc/lib/vcauth/forbidden/__init__.py
22
viewvc/lib/vcauth/forbiddenre/__init__.py
23
viewvc/lib/vcauth/svnauthz/__init__.py
24
viewvc/lib/vclib/__init__.py
25
viewvc/lib/vclib/ccvs/__init__.py
26
viewvc/lib/vclib/ccvs/bincvs.py
27
viewvc/lib/vclib/ccvs/blame.py
28
viewvc/lib/vclib/ccvs/ccvs.py
29
viewvc/lib/vclib/ccvs/rcsparse/__init__.py
30
viewvc/lib/vclib/ccvs/rcsparse/common.py
31
viewvc/lib/vclib/ccvs/rcsparse/debug.py
32
viewvc/lib/vclib/ccvs/rcsparse/default.py
33
viewvc/lib/vclib/ccvs/rcsparse/parse_rcs_file.py
34
viewvc/lib/vclib/ccvs/rcsparse/run-tests.py
35
viewvc/lib/vclib/ccvs/rcsparse/test-data/default,v
36
viewvc/lib/vclib/ccvs/rcsparse/test-data/default.out
37
viewvc/lib/vclib/ccvs/rcsparse/test-data/empty-file,v
38
viewvc/lib/vclib/ccvs/rcsparse/test-data/empty-file.out
39
viewvc/lib/vclib/svn/__init__.py
40
viewvc/lib/vclib/svn/svn_ra.py
41
viewvc/lib/vclib/svn/svn_repos.py
42
viewvc/lib/viewvc.py
43
@sample viewvc/mimetypes.conf.sample
44
viewvc/templates/classic/diff.ezt
45
viewvc/templates/classic/dir_new.ezt
46
viewvc/templates/classic/directory.ezt
47
viewvc/templates/classic/docroot/help.css
48
viewvc/templates/classic/docroot/help_dirview.html
49
viewvc/templates/classic/docroot/help_log.html
50
viewvc/templates/classic/docroot/help_rootview.html
51
viewvc/templates/classic/docroot/images/annotate.png
52
viewvc/templates/classic/docroot/images/back.png
53
viewvc/templates/classic/docroot/images/back_small.png
54
viewvc/templates/classic/docroot/images/binary.png
55
viewvc/templates/classic/docroot/images/broken.png
56
viewvc/templates/classic/docroot/images/chalk.jpg
57
viewvc/templates/classic/docroot/images/cvsgraph_16x16.png
58
viewvc/templates/classic/docroot/images/cvsgraph_32x32.png
59
viewvc/templates/classic/docroot/images/diff.png
60
viewvc/templates/classic/docroot/images/dir.png
61
viewvc/templates/classic/docroot/images/down.png
62
viewvc/templates/classic/docroot/images/download.png
63
viewvc/templates/classic/docroot/images/favicon.ico
64
viewvc/templates/classic/docroot/images/feed-icon-16x16.jpg
65
viewvc/templates/classic/docroot/images/forward.png
66
viewvc/templates/classic/docroot/images/image.png
67
viewvc/templates/classic/docroot/images/list.png
68
viewvc/templates/classic/docroot/images/lock.png
69
viewvc/templates/classic/docroot/images/log.png
70
viewvc/templates/classic/docroot/images/text.png
71
viewvc/templates/classic/docroot/images/up.png
72
viewvc/templates/classic/docroot/images/view.png
73
viewvc/templates/classic/docroot/images/viewvc-logo.png
74
viewvc/templates/classic/docroot/styles.css
75
viewvc/templates/classic/error.ezt
76
viewvc/templates/classic/file.ezt
77
viewvc/templates/classic/graph.ezt
78
viewvc/templates/classic/log.ezt
79
viewvc/templates/classic/log_table.ezt
80
viewvc/templates/classic/query_form.ezt
81
viewvc/templates/classic/query_results.ezt
82
viewvc/templates/classic/revision.ezt
83
viewvc/templates/classic/roots.ezt
84
viewvc/templates/classic/_diff_display.ezt
85
viewvc/templates/classic/_diff_form.ezt
86
viewvc/templates/classic/_dir_footer.ezt
87
viewvc/templates/classic/_dir_header.ezt
88
viewvc/templates/classic/_file_header.ezt
89
viewvc/templates/classic/_footer.ezt
90
viewvc/templates/classic/_header.ezt
91
viewvc/templates/classic/_log_footer.ezt
92
viewvc/templates/classic/_log_header.ezt
93
viewvc/templates/classic/_paging.ezt
94
viewvc/templates/classic/_pathrev_form.ezt
95
viewvc/templates/classic/_props.ezt
96
viewvc/templates/classic/_sort.ezt
97
viewvc/templates/classic/rss.ezt
98
viewvc/templates/default/diff.ezt
99
viewvc/templates/default/directory.ezt
100
viewvc/templates/default/docroot/help.css
101
viewvc/templates/default/docroot/help_dirview.html
102
viewvc/templates/default/docroot/help_log.html
103
viewvc/templates/default/docroot/help_rootview.html
104
viewvc/templates/default/docroot/images/back.png
105
viewvc/templates/default/docroot/images/back_small.png
106
viewvc/templates/default/docroot/images/binary.png
107
viewvc/templates/default/docroot/images/broken.png
108
viewvc/templates/default/docroot/images/cvs-logo.png
109
viewvc/templates/default/docroot/images/dir.png
110
viewvc/templates/default/docroot/images/down.png
111
viewvc/templates/default/docroot/images/feed-icon-16x16.jpg
112
viewvc/templates/default/docroot/images/forward.png
113
viewvc/templates/default/docroot/images/image.png
114
viewvc/templates/default/docroot/images/lock-icon.gif
115
viewvc/templates/default/docroot/images/svn-logo.png
116
viewvc/templates/default/docroot/images/text.png
117
viewvc/templates/default/docroot/images/up.png
118
viewvc/templates/default/docroot/images/viewvc-logo.png
119
viewvc/templates/default/docroot/scripts.js
120
viewvc/templates/default/docroot/styles.css
121
viewvc/templates/default/error.ezt
122
viewvc/templates/default/file.ezt
123
viewvc/templates/default/graph.ezt
124
viewvc/templates/default/log.ezt
125
viewvc/templates/default/query_form.ezt
126
viewvc/templates/default/query_results.ezt
127
viewvc/templates/default/revision.ezt
128
viewvc/templates/default/roots.ezt
129
viewvc/templates/default/rss.ezt
130
viewvc/templates/default/_diff_display.ezt
131
viewvc/templates/default/_diff_form.ezt
132
viewvc/templates/default/_footer.ezt
133
viewvc/templates/default/_header.ezt
134
viewvc/templates/default/_pathrev_form.ezt
135
viewvc/templates/default/_props.ezt
136
@sample viewvc/viewvc.conf.sample

Return to bug 247161