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

Collapse All | Expand All

(-)devel/Makefile (+1 lines)
Lines 6819-6824 Link Here
6819
    SUBDIR += vera++
6819
    SUBDIR += vera++
6820
    SUBDIR += vexcl
6820
    SUBDIR += vexcl
6821
    SUBDIR += viewvc
6821
    SUBDIR += viewvc
6822
    SUBDIR += viewvc-devel
6822
    SUBDIR += violet
6823
    SUBDIR += violet
6823
    SUBDIR += vitables
6824
    SUBDIR += vitables
6824
    SUBDIR += volk
6825
    SUBDIR += volk
(-)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 (+165 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/accept.pyc
12
viewvc/lib/blame.py
13
viewvc/lib/blame.pyc
14
viewvc/lib/common.py
15
viewvc/lib/common.pyc
16
viewvc/lib/config.py
17
viewvc/lib/config.pyc
18
viewvc/lib/cvsdb.py
19
viewvc/lib/cvsdb.pyc
20
viewvc/lib/dbi.py
21
viewvc/lib/dbi.pyc
22
viewvc/lib/ezt.py
23
viewvc/lib/ezt.pyc
24
viewvc/lib/idiff.py
25
viewvc/lib/idiff.pyc
26
viewvc/lib/popen.py
27
viewvc/lib/popen.pyc
28
viewvc/lib/sapi.py
29
viewvc/lib/sapi.pyc
30
viewvc/lib/vcauth/__init__.py
31
viewvc/lib/vcauth/__init__.pyc
32
viewvc/lib/vcauth/forbidden/__init__.py
33
viewvc/lib/vcauth/forbidden/__init__.pyc
34
viewvc/lib/vcauth/forbiddenre/__init__.py
35
viewvc/lib/vcauth/forbiddenre/__init__.pyc
36
viewvc/lib/vcauth/svnauthz/__init__.py
37
viewvc/lib/vcauth/svnauthz/__init__.pyc
38
viewvc/lib/vclib/__init__.py
39
viewvc/lib/vclib/__init__.pyc
40
viewvc/lib/vclib/ccvs/__init__.py
41
viewvc/lib/vclib/ccvs/__init__.pyc
42
viewvc/lib/vclib/ccvs/bincvs.py
43
viewvc/lib/vclib/ccvs/bincvs.pyc
44
viewvc/lib/vclib/ccvs/blame.py
45
viewvc/lib/vclib/ccvs/blame.pyc
46
viewvc/lib/vclib/ccvs/ccvs.py
47
viewvc/lib/vclib/ccvs/ccvs.pyc
48
viewvc/lib/vclib/ccvs/rcsparse/__init__.py
49
viewvc/lib/vclib/ccvs/rcsparse/__init__.pyc
50
viewvc/lib/vclib/ccvs/rcsparse/common.py
51
viewvc/lib/vclib/ccvs/rcsparse/common.pyc
52
viewvc/lib/vclib/ccvs/rcsparse/debug.py
53
viewvc/lib/vclib/ccvs/rcsparse/debug.pyc
54
viewvc/lib/vclib/ccvs/rcsparse/default.py
55
viewvc/lib/vclib/ccvs/rcsparse/default.pyc
56
viewvc/lib/vclib/ccvs/rcsparse/parse_rcs_file.py
57
viewvc/lib/vclib/ccvs/rcsparse/parse_rcs_file.pyc
58
viewvc/lib/vclib/ccvs/rcsparse/run-tests.py
59
viewvc/lib/vclib/ccvs/rcsparse/run-tests.pyc
60
viewvc/lib/vclib/ccvs/rcsparse/test-data/default,v
61
viewvc/lib/vclib/ccvs/rcsparse/test-data/default.out
62
viewvc/lib/vclib/ccvs/rcsparse/test-data/empty-file,v
63
viewvc/lib/vclib/ccvs/rcsparse/test-data/empty-file.out
64
viewvc/lib/vclib/svn/__init__.py
65
viewvc/lib/vclib/svn/__init__.pyc
66
viewvc/lib/vclib/svn/svn_ra.py
67
viewvc/lib/vclib/svn/svn_ra.pyc
68
viewvc/lib/vclib/svn/svn_repos.py
69
viewvc/lib/vclib/svn/svn_repos.pyc
70
viewvc/lib/viewvc.py
71
viewvc/lib/viewvc.pyc
72
@sample viewvc/mimetypes.conf.sample
73
viewvc/templates/classic/_diff_display.ezt
74
viewvc/templates/classic/_diff_form.ezt
75
viewvc/templates/classic/_dir_footer.ezt
76
viewvc/templates/classic/_dir_header.ezt
77
viewvc/templates/classic/_file_header.ezt
78
viewvc/templates/classic/_footer.ezt
79
viewvc/templates/classic/_header.ezt
80
viewvc/templates/classic/_log_footer.ezt
81
viewvc/templates/classic/_log_header.ezt
82
viewvc/templates/classic/_paging.ezt
83
viewvc/templates/classic/_pathrev_form.ezt
84
viewvc/templates/classic/_props.ezt
85
viewvc/templates/classic/_sort.ezt
86
viewvc/templates/classic/diff.ezt
87
viewvc/templates/classic/dir_new.ezt
88
viewvc/templates/classic/directory.ezt
89
viewvc/templates/classic/docroot/help.css
90
viewvc/templates/classic/docroot/help_dirview.html
91
viewvc/templates/classic/docroot/help_log.html
92
viewvc/templates/classic/docroot/help_rootview.html
93
viewvc/templates/classic/docroot/images/annotate.png
94
viewvc/templates/classic/docroot/images/back.png
95
viewvc/templates/classic/docroot/images/back_small.png
96
viewvc/templates/classic/docroot/images/binary.png
97
viewvc/templates/classic/docroot/images/broken.png
98
viewvc/templates/classic/docroot/images/chalk.jpg
99
viewvc/templates/classic/docroot/images/cvsgraph_16x16.png
100
viewvc/templates/classic/docroot/images/cvsgraph_32x32.png
101
viewvc/templates/classic/docroot/images/diff.png
102
viewvc/templates/classic/docroot/images/dir.png
103
viewvc/templates/classic/docroot/images/down.png
104
viewvc/templates/classic/docroot/images/download.png
105
viewvc/templates/classic/docroot/images/favicon.ico
106
viewvc/templates/classic/docroot/images/feed-icon-16x16.jpg
107
viewvc/templates/classic/docroot/images/forward.png
108
viewvc/templates/classic/docroot/images/image.png
109
viewvc/templates/classic/docroot/images/list.png
110
viewvc/templates/classic/docroot/images/lock.png
111
viewvc/templates/classic/docroot/images/log.png
112
viewvc/templates/classic/docroot/images/text.png
113
viewvc/templates/classic/docroot/images/up.png
114
viewvc/templates/classic/docroot/images/view.png
115
viewvc/templates/classic/docroot/images/viewvc-logo.png
116
viewvc/templates/classic/docroot/styles.css
117
viewvc/templates/classic/error.ezt
118
viewvc/templates/classic/file.ezt
119
viewvc/templates/classic/graph.ezt
120
viewvc/templates/classic/log.ezt
121
viewvc/templates/classic/log_table.ezt
122
viewvc/templates/classic/query_form.ezt
123
viewvc/templates/classic/query_results.ezt
124
viewvc/templates/classic/revision.ezt
125
viewvc/templates/classic/roots.ezt
126
viewvc/templates/classic/rss.ezt
127
viewvc/templates/default/_diff_display.ezt
128
viewvc/templates/default/_diff_form.ezt
129
viewvc/templates/default/_footer.ezt
130
viewvc/templates/default/_header.ezt
131
viewvc/templates/default/_pathrev_form.ezt
132
viewvc/templates/default/_props.ezt
133
viewvc/templates/default/diff.ezt
134
viewvc/templates/default/directory.ezt
135
viewvc/templates/default/docroot/help.css
136
viewvc/templates/default/docroot/help_dirview.html
137
viewvc/templates/default/docroot/help_log.html
138
viewvc/templates/default/docroot/help_rootview.html
139
viewvc/templates/default/docroot/images/back.png
140
viewvc/templates/default/docroot/images/back_small.png
141
viewvc/templates/default/docroot/images/binary.png
142
viewvc/templates/default/docroot/images/broken.png
143
viewvc/templates/default/docroot/images/cvs-logo.png
144
viewvc/templates/default/docroot/images/dir.png
145
viewvc/templates/default/docroot/images/down.png
146
viewvc/templates/default/docroot/images/feed-icon-16x16.jpg
147
viewvc/templates/default/docroot/images/forward.png
148
viewvc/templates/default/docroot/images/image.png
149
viewvc/templates/default/docroot/images/lock-icon.gif
150
viewvc/templates/default/docroot/images/svn-logo.png
151
viewvc/templates/default/docroot/images/text.png
152
viewvc/templates/default/docroot/images/up.png
153
viewvc/templates/default/docroot/images/viewvc-logo.png
154
viewvc/templates/default/docroot/scripts.js
155
viewvc/templates/default/docroot/styles.css
156
viewvc/templates/default/error.ezt
157
viewvc/templates/default/file.ezt
158
viewvc/templates/default/graph.ezt
159
viewvc/templates/default/log.ezt
160
viewvc/templates/default/query_form.ezt
161
viewvc/templates/default/query_results.ezt
162
viewvc/templates/default/revision.ezt
163
viewvc/templates/default/roots.ezt
164
viewvc/templates/default/rss.ezt
165
@sample viewvc/viewvc.conf.sample

Return to bug 247161