freebsd-ports/devel/viewcvs/files/patch-viewcvs-install
Edwin Groothuis 51fcfef1ce i[Patch Port] devel/viewcvs (unforbidden)
This patch solves two problems of the actual ViewCVs port:
	1. it is forbidden as it is CSS-vulnerable, ViewCVS's CVS
	contains a patch but a new release was still not created
	by the authors 2. it overwrites the configuration files on
	installation

	To solve problem 1 I "back-ported" the patch 1.117 to
	lib/viewcvs.py
	http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/viewcvs/viewcvs/lib/viewcvs.py#rev1.117
	as the author itself says, it solves the problem:
	http://mailman.lyra.org/pipermail/viewcvs-dev/2002-July/000776.html

	To solve problem 2 I changed the install script to install
	viewcvs.conf.dist directly instead of renaming it to
	viewcvs.conf, leaving it up to the user and specifying it
	in the pkg-message.

PR:		 ports/51464
Submitted by:	Lapo Luchini <lapo@m4d.sm>
2003-08-24 12:40:03 +00:00

49 lines
1.7 KiB
Text

--- viewcvs-install.orig Fri Dec 21 03:59:45 2001
+++ viewcvs-install Sun Aug 24 05:38:29 2003
@@ -51,7 +51,7 @@
""" % version
## installer defaults
-ROOT_DIR = "/usr/local/viewcvs-" + version
+ROOT_DIR = os.environ['INSTDIR']
## list of files for installation
@@ -65,11 +65,11 @@
("cgi/query.cgi", "cgi/query.cgi", 0755, 1, 0, 0),
("standalone.py", "standalone.py", 0755, 1, 0, 0),
- ("cgi/viewcvs.conf.dist", "viewcvs.conf", 0644, 1,
+ ("cgi/viewcvs.conf.dist", "viewcvs.conf.dist", 0644, 1,
"""Note: If you are upgrading from viewcvs-0.7 or earlier:
The section [text] has been removed from viewcvs.conf. The functionality
went into the new files in subdirectory templates.""", 0),
- ("cgi/cvsgraph.conf.dist", "cvsgraph.conf", 0644, 0, 1, 0),
+ ("cgi/cvsgraph.conf.dist", "cvsgraph.conf.dist", 0644, 0, 1, 0),
("lib/PyFontify.py", "lib/PyFontify.py", 0644, 0, 0, 1),
("lib/blame.py", "lib/blame.py", 0644, 0, 0, 1),
@@ -192,7 +192,7 @@
if type(prompt_replace) == type(""):
print prompt_replace
while 1:
- temp = raw_input("\n File %s\n exists and is different from source file.\n DO YOU WANT TO,\n overwrite [o]\n do not overwrite [d]\n view differences [v]: " % (dest_path))
+ temp = 'o'
print
temp = string.lower(temp[0])
@@ -245,10 +245,10 @@
print INFO_TEXT
## get the install path
- temp = raw_input("Installation Path [%s]: " % ROOT_DIR)
- temp = string.strip(temp)
- if len(temp):
- ROOT_DIR = temp
+ #temp = raw_input("Installation Path [%s]: " % ROOT_DIR)
+ #temp = string.strip(temp)
+ #if len(temp):
+ # ROOT_DIR = temp
## install the files
print