Ticket #29649: yaws.diff
File yaws.diff, 12.5 KB (added by ci42, 13 years ago) |
---|
-
Portfile
diff -ur orig/Portfile new/Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name yaws 7 version 1. 897 version 1.90 8 8 categories www 9 9 maintainers googlemail.com:ciserlohn 10 10 platforms darwin … … 15 15 homepage http://yaws.hyber.org/ 16 16 master_sites http://yaws.hyber.org/download/ 17 17 18 checksums sha1 3f6cc88eb7f154f017f78f1ad07eff5521e7319c \19 rmd160 9 fc274a9ddc82cc83bceeaed133758ee71c2951e18 checksums sha1 85ce8a738e9691dfc2b9280e313458eafe441bdc \ 19 rmd160 92d7ed2fdec826cbca3084dd18816f6bb329ef37 20 20 21 21 depends_build port:erlang 22 22 -
files/patch-configure.in
diff -ur orig/files/patch-configure.in new/files/patch-configure.in
old new 1 --- configure.in.orig 201 0-03-18 16:02:47.000000000 -05002 +++ configure.in 201 0-08-29 04:04:04.000000000 -05003 @@ -2 35,17 +235,6 @@4 *darwin*)1 --- configure.in.orig 2011-05-31 23:06:43.000000000 +0200 2 +++ configure.in 2011-05-31 23:08:41.000000000 +0200 3 @@ -255,17 +255,6 @@ 4 AC_LANG(C) 5 5 AC_CHECK_LIB([c],[sendfile],[HAVE_SENDFILE=true]) 6 case "$ target_os" in6 case "$host_os" in 7 7 - darwin10*) 8 8 - AC_LANG(Erlang) 9 9 - AC_RUN_IFELSE( -
files/patch-man-yaws.1
Only in new/files: patch-configure.in.orig diff -ur orig/files/patch-man-yaws.1 new/files/patch-man-yaws.1
old new 1 --- man/yaws.1.orig 2009-11-09 10:01:46.000000000 +0200 2 +++ man/yaws.1 2009-11-09 10:01:51.000000000 +0200 3 @@ -54,9 +54,9 @@ 4 .TP 1 --- man/yaws.1.orig 2011-05-30 23:07:05.000000000 +0200 2 +++ man/yaws.1 2011-05-30 23:09:45.000000000 +0200 3 @@ -55,10 +55,10 @@ 5 4 \fB\--conf file\fR 6 Use a different configuration file than the default. The default configuration file 7 -when running as root is /etc/yaws/yaws.conf. When running as a non priviliged user, yaws 8 +when running as root is __PREFIX/etc/yaws/yaws.conf. When running as a non priviliged user, yaws 9 will search for its configuration file in the following order. First in 10 -$HOME/yaws.conf, then in ./yaws.conf and finally in /etc/yaws/yaws.conf 11 +$HOME/yaws.conf, then in ./yaws.conf and finally in __PREFIX/etc/yaws/yaws.conf 5 Use a different configuration file than the default. If the configuration 6 parameter \fIconfig\fR is set, yaws use it as default configuration file. Else, 7 -The default configuration file when running as root is /etc/yaws/yaws.conf. When 8 +The default configuration file when running as root is __PREFIX/etc/yaws/yaws.conf. When 9 running as a non priviliged user, yaws will search for its configuration file in 10 the following order. First in $HOME/yaws.conf, then in ./yaws.conf and finally 11 -in /etc/yaws/yaws.conf. 12 +in __PREFIX/etc/yaws/yaws.conf. 12 13 .TP 13 14 \fB\--runmod module\fR 14 15 Tells yaws to call \fImodule:start/0\fR at startup. This makes it possible -
files/patch-man-yaws.conf.5
diff -ur orig/files/patch-man-yaws.conf.5 new/files/patch-man-yaws.conf.5
old new 1 --- man/yaws.conf.5.orig 201 0-03-18 16:02:47.000000000 -05002 +++ man/yaws.conf.5 201 0-08-29 03:54:35.000000000 -05001 --- man/yaws.conf.5.orig 2011-05-30 23:07:43.000000000 +0200 2 +++ man/yaws.conf.5 2011-05-30 23:13:30.000000000 +0200 3 3 @@ -1,6 +1,6 @@ 4 4 .TH YAWS.CONF "5" "" "" "User Commands" 5 5 .SH NAME … … 8 8 .SH DESCRIPTION 9 9 .\" Add any additional description here 10 10 .PP 11 @@ - 743,7 +743,7 @@11 @@ -1057,7 +1057,7 @@ 12 12 dir = secret/dir1 13 13 </auth> 14 14 <opaque> … … 17 17 </opaque> 18 18 </server> 19 19 20 @@ - 785,8 +785,8 @@20 @@ -1099,8 +1099,8 @@ 21 21 listen = 192.168.128.32 22 22 docroot = /var/yaws/www_funky_org 23 23 <ssl> -
files/patch-man-yaws_api.5
diff -ur orig/files/patch-man-yaws_api.5 new/files/patch-man-yaws_api.5
old new 1 --- man/yaws_api.5.orig 20 09-11-09 10:04:05.000000000 +02002 +++ man/yaws_api.5 20 09-11-09 10:04:21.000000000 +02003 @@ -3 79,7 +379,7 @@1 --- man/yaws_api.5.orig 2011-05-30 23:08:14.000000000 +0200 2 +++ man/yaws_api.5 2011-05-30 23:11:32.000000000 +0200 3 @@ -388,7 +388,7 @@ 4 4 .TP 5 5 \fBsetconf(Gconf, Groups)\fR 6 6 This function is intended for embedded mode in yaws. It makes it possible -
files/patch-scripts-Install
diff -ur orig/files/patch-scripts-Install new/files/patch-scripts-Install
old new 1 --- scripts/Install.orig 2009-11-09 10:04:44.000000000 +0200 2 +++ scripts/Install 2009-11-09 10:08:54.000000000 +0200 3 @@ -37,58 +37,58 @@ 1 --- scripts/Install.orig 2011-05-30 23:15:13.000000000 +0200 2 +++ scripts/Install 2011-05-30 23:20:40.000000000 +0200 3 @@ -35,61 +35,6 @@ 4 install -d ${destdir}${prefix}/lib/yaws/examples/ebin 5 install -d ${destdir}${prefix}/lib/yaws/examples/include 4 6 5 6 7 -## seems gentoo don't like to be installed in /usr/local/etc 8 -## since /sbin/runscript still reads /etc/conf.d 7 9 -if [ -f /etc/gentoo-release ]; then 8 10 - install -d ${destdir}${etcdir}/init.d/ 9 11 - install -d ${destdir}${etcdir}/conf.d/ … … 51 53 - sed -e "s;%prefix%;$p;g" -e "s;%etcdir%;$e;g" freebsd/yaws.sh > ${destdir}${etcdir}/rc.d/yaws.sh 52 54 -elif [ "`uname -s`" = "NetBSD" ]; then 53 55 - sed -e "s;%prefix%;$p;g" -e "s;%etcdir%;$e;g" netbsd/yaws.sh > /etc/rc.d/yaws 54 -else 55 - install -d ${destdir}${etcdir} 56 - echo "Don't know how to make /etc/init scrip s for this system"56 -else 57 - install -d ${destdir}${etcdir} 58 - echo "Don't know how to make /etc/init scripts for this system" 57 59 - echo "possibly add ${prefix}/bin/yaws --daemon --heart to your /etc/rc.local manually" 58 60 -fi 59 +# if [ -f /etc/gentoo-release ]; then 60 +# install -d ${destdir}${etcdir}/init.d/ 61 +# install -d ${destdir}${etcdir}/conf.d/ 62 +# install -d ${destdir}${vardir}/run/yaws 63 +# chmod a+rwx ${destdir}${vardir}/run/yaws 64 +# sed -e "s;%prefix%;$p;g" \ 65 +# -e "s;%etcdir%;$e;g" gentoo/init.d.yaws > ${destdir}${etcdir}/init.d/yaws 66 +# chmod +x ${destdir}${etcdir}/init.d/yaws 67 +# elif [ -f /etc/redhat-release ]; then 68 +# install -d ${destdir}${etcdir}/init.d 69 +# sed -e "s;%prefix%;$p;g" \ 70 +# -e "s;%etcdir%;$e;g" redhat/yaws.init.d > ${destdir}${etcdir}/init.d/yaws 71 +# chmod +x ${destdir}${etcdir}/init.d/yaws 72 +# install -d ${destdir}${vardir}/run/yaws 73 +# chmod a+rwx ${destdir}${vardir}/run/yaws 74 +# elif [ -f /etc/suseservers ]; then 75 +# install -d ${destdir}${etcdir}/init.d 76 +# sed -e "s;%prefix%;$p;g" \ 77 +# -e "s;%etcdir%;$e;g" suse/yaws.init.d/ > ${destdir}${etcdir}/init.d/yaws 78 +# chmod +x ${destdir}${etcdir}/init.d/yaws 79 +# install -d ${destdir}${vardir}/run/yaws 80 +# chmod a+rwx ${destdir}${vardir}/run/yaws 81 +# elif [ -f /etc/debian_version ]; then 82 +# install -d ${destdir}${etcdir}/init.d 83 +# sed -e "s;%prefix%;$p;g" \ 84 +# -e "s;%etcdir%;$e;g" debian/yaws.init.d > ${destdir}${etcdir}/init.d/yaws 85 +# chmod +x ${destdir}${etcdir}/init.d/yaws 86 +# install -d ${destdir}${vardir}/run/yaws 87 +# chmod a+rwx ${destdir}${vardir}/run/yaws 88 +# 89 +# elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then 90 +# startupdir="/Library/StartupItems/Yaws" 91 +# if [ ! -e ${startupdir} ]; then 92 +# mkdir ${startupdir}; 93 +# elif [ ! -d ${startupdir} ]; then 94 +# echo "${startupdir} exists but is not a directory, bailing out ..." 95 +# exit 1 96 +# fi 97 +# sed -e "s;%prefix%;$p;g" darwin/Yaws.StartupItem > ${startupdir}/Yaws 98 +# chmod +x ${startupdir}/Yaws 99 +# cp darwin/Yaws.plist ${startupdir}/StartupParameters.plist 100 +# # MacOS is particular about the ownership of startup items. 101 +# chown -R root:wheel ${startupdir} 102 +# elif [ "`uname -s`" = "FreeBSD" ]; then 103 +# sed -e "s;%prefix%;$p;g" -e "s;%etcdir%;$e;g" freebsd/yaws.sh > ${destdir}${etcdir}/rc.d/yaws.sh 104 +# elif [ "`uname -s`" = "NetBSD" ]; then 105 +# sed -e "s;%prefix%;$p;g" -e "s;%etcdir%;$e;g" netbsd/yaws.sh > /etc/rc.d/yaws 106 +# else 107 +# install -d ${destdir}${etcdir} 108 +# echo "Don't know how to make /etc/init scrips for this system" 109 +# echo "possibly add ${prefix}/bin/yaws --daemon --heart to your /etc/rc.local manually" 110 +# fi 61 - 111 62 112 63 113 64 -
files/patch-scripts-yaws.conf.template
diff -ur orig/files/patch-scripts-yaws.conf.template new/files/patch-scripts-yaws.conf.template
old new 1 --- scripts/yaws.conf.template.orig 201 0-03-18 16:02:47.000000000 -05002 +++ scripts/yaws.conf.template 201 0-08-29 03:57:15.000000000 -05003 @@ -1 5,7 +15,7@@4 # beam code can be placed. The daemon will add this5 # directory to its search path6 1 --- scripts/yaws.conf.template.orig 2011-05-30 23:16:15.000000000 +0200 2 +++ scripts/yaws.conf.template 2011-05-30 23:31:41.000000000 +0200 3 @@ -10,13 +10,13 @@ 4 # These are the paths to directories where additional 5 # beam code can be placed. The daemon will add these 6 # directories to its search path. 7 7 -ebin_dir = %yawsdir%/examples/ebin 8 8 +ebin_dir = %yawsdir%/ebin 9 9 ebin_dir = %vardir%/yaws/ebin 10 10 11 12 @@ -23,7 +23,7 @@ 13 # files can be placed. application specifig .yaws code can 14 # then include these .hrl files 15 11 # This is a directory where application specific .hrl 12 # files can be placed. Application-specific .yaws code can 13 # then include these .hrl files. 16 14 -include_dir = %yawsdir%/examples/include 17 15 +include_dir = %yawsdir%/include 18 16 19 17 # Set this to an integer value to control 20 # max number of connections from clients into the server 21 @@ -1 30,35 +130,35@@22 appmods = <cgi-bin, yaws_appmod_cgi> 18 # max number of connections from clients into the server. 19 @@ -113,32 +113,32 @@ 20 appmods = <cgi-bin, yaws_appmod_cgi> 23 21 </server> 24 22 25 23 -<server localhost> … … 27 25 - listen = 0.0.0.0 28 26 - docroot = /tmp 29 27 - dir_listings = true 28 - auth_log = true 30 29 - statistics = true 31 30 - <auth> 32 31 - realm = foobar … … 35 34 - user = baz:bar 36 35 - </auth> 37 36 -</server> 38 +# <server localhost> 39 +# port = %port% 40 +# listen = 0.0.0.0 41 +# docroot = __PREFIX/tmp 42 +# dir_listings = true 43 +# statistics = true 44 +# <auth> 45 +# realm = foobar 46 +# dir = / 47 +# user = foo:bar 48 +# user = baz:bar 49 +# </auth> 50 +# </server> 37 +#<server localhost> 38 +# port = %port% 39 +# listen = 0.0.0.0 40 +# docroot = /tmp 41 +# dir_listings = true 42 +# auth_log = true 43 +# statistics = true 44 +# <auth> 45 +# realm = foobar 46 +# dir = / 47 +# user = foo:bar 48 +# user = baz:bar 49 +# </auth> 50 +#</server> 51 51 52 53 54 # And then an ssl server 52 # Now an SSL server 55 53 56 54 -<server %host%> 57 55 - port = %sslport% 58 56 - docroot = /tmp 59 57 - listen = 0.0.0.0 60 58 - dir_listings = true 61 - <ssl> 59 - auth_log = true 60 - <ssl> 62 61 - keyfile = %certdir%/yaws-key.pem 63 62 - certfile = %certdir%/yaws-cert.pem 64 63 - depth = 0 65 64 - </ssl> 66 65 -</server> 67 +# <server %host%> 68 +# port = %sslport% 69 +# docroot = __PREFIX/tmp 70 +# listen = 0.0.0.0 71 +# dir_listings = true 72 +# <ssl> 73 +# keyfile = %certdir%/yaws-key.pem 74 +# certfile = %certdir%/yaws-cert.pem 75 +# depth = 0 76 +# </ssl> 77 +# </server> 78 79 80 66 +#<server %host%> 67 +# port = %sslport% 68 +# docroot = /tmp 69 +# listen = 0.0.0.0 70 +# dir_listings = true 71 +# auth_log = true 72 +# <ssl> 73 +# keyfile = %certdir%/yaws-key.pem 74 +# certfile = %certdir%/yaws-cert.pem 75 +# depth = 0 76 +# </ssl> 77 +#</server>