summaryrefslogtreecommitdiff
path: root/www/slash/files/patch-bin::install-slashsite
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2003-10-19 08:33:39 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2003-10-19 08:33:39 +0000
commit35ee82db50e058c12bf537cffc3f66e207b5b9d4 (patch)
tree3c01d2db234797b6ba6214879f338a74d144db95 /www/slash/files/patch-bin::install-slashsite
parentRespect CC and CFLAGS (diff)
Revive www/slash port.
Slash -- Slashdot Like Automated Storytelling Homepage -- is the code that runs Slashdot. PR: 57199 Submitted by: Autrijus Tang <autrijus@autrijus.org>
Notes
Notes: svn path=/head/; revision=91628
Diffstat (limited to 'www/slash/files/patch-bin::install-slashsite')
-rw-r--r--www/slash/files/patch-bin::install-slashsite30
1 files changed, 30 insertions, 0 deletions
diff --git a/www/slash/files/patch-bin::install-slashsite b/www/slash/files/patch-bin::install-slashsite
new file mode 100644
index 000000000000..1c0f3ca0c43c
--- /dev/null
+++ b/www/slash/files/patch-bin::install-slashsite
@@ -0,0 +1,30 @@
+--- bin/install-slashsite.orig Mon Mar 18 18:35:35 2002
++++ bin/install-slashsite Mon Mar 18 18:42:08 2002
+@@ -89,7 +89,7 @@
+
+ # THIS IS DANGEROUS ... when run as root on a non-GNU
+ # system, it can blank out the hostname entirely
+-chomp($hostname_f = `hostname -f`);
++chomp($hostname_f = `hostname -f 2> /dev/null` || `hostname 2> /dev/null`);
+ unless ($opts{'H'}) {
+ print "
+ What is hostname of your Slash site
+@@ -431,6 +431,7 @@
+ sub apache_site_conf {
+ my $host_port = $hostname;
+ $host_port .= ":80" unless $host_port =~ /:/;
++ my $log_path = (-d '/usr/local/logs' ? "logs" : "/var/log");
+ my $text = qq|
+ # note that if your site's path is a symlink, the
+ # path listed here is most likely the actual path;
+@@ -446,8 +447,8 @@
+ ServerAdmin $email
+ DocumentRoot $prefix_site/$sitename/htdocs
+ ServerName $host_noport
+- ErrorLog logs/${sitename}_error_log
+- CustomLog logs/${sitename}_access_log common
++ ErrorLog $log_path/${sitename}_error_log
++ CustomLog $log_path/${sitename}_access_log common
+
+ PerlSetupEnv On
+ PerlSetEnv TZ GMT