Skip to content
This repository
Newer
Older
100644 68 lines (60 sloc) 2.367 kb
e315955c »
2002-03-04 ""
1 #!/bin/sh
2
c9778e01 »
2006-04-27 added support for 2 additional configure
3 set -x
4
e315955c »
2002-03-04 ""
5 prefix=$1
c9778e01 »
2006-04-27 added support for 2 additional configure
6 destdir=$2
3a3459ca »
2003-05-04 ""
7 erl=$3
28e4c738 »
2003-09-08 first attempt to run properly under cygwin
8 werl=$4
9 etcdir=$5
1dcb0263 »
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
10 vardir=$6
28972a3c »
2006-05-30 run_erl to_erl support patch from Mats Cronquist
11 bindir=`dirname $erl` ; bindir=`dirname $bindir`/lib/erlang/bin
e315955c »
2002-03-04 ""
12
13 . ../vsn.mk
8104bc6c »
2002-03-04 ""
14 y=yaws-${YAWS_VSN}
3a3459ca »
2003-05-04 ""
15 p=${prefix}
c9778e01 »
2006-04-27 added support for 2 additional configure
16 e=${etcdir}
17 v=${vardir}
e315955c »
2002-03-04 ""
18
c9778e01 »
2006-04-27 added support for 2 additional configure
19 install -d ${destdir}/${prefix}/bin
96243974 »
2004-06-04 patch from Fredrik Linder to make it easier to integrate yaws into ap…
20
1dcb0263 »
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
21 cat yaws.template | \
22 ./Subst %yawsdir% ${prefix}/lib/yaws | \
28972a3c »
2006-05-30 run_erl to_erl support patch from Mats Cronquist
23 ./Subst %vardir% ${vardir} | \
1dcb0263 »
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
24 ./Subst %erl% "${erl}" | \
28972a3c »
2006-05-30 run_erl to_erl support patch from Mats Cronquist
25 ./Subst %run_erl% "${bindir}/run_erl" | \
26 ./Subst %to_erl% "${bindir}/to_erl" | \
c9778e01 »
2006-04-27 added support for 2 additional configure
27 ./Subst %werl% "${werl}" > ${destdir}/${prefix}/bin/yaws
1dcb0263 »
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
28
c9778e01 »
2006-04-27 added support for 2 additional configure
29 chmod +x ${destdir}/${prefix}/bin/yaws
fdfd9e3a »
2003-05-26 cvs fixes + install scripts gentoo/suse/redhat
30
c9778e01 »
2006-04-27 added support for 2 additional configure
31 install -d ${destdir}/${prefix}/lib/yaws/examples/ebin
32 install -d ${destdir}/${prefix}/lib/yaws/examples/include
1dcb0263 »
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
33
90111837 »
2003-05-04 ""
34 if [ -f /etc/gentoo-release ]; then
c9778e01 »
2006-04-27 added support for 2 additional configure
35 install -d ${destdir}/${etcdir}/init.d/
36 install -d ${destdir}/${etcdir}/conf.d/
37 install -d ${destdir}/${vardir}/run/yaws
38 chmod a+rwx ${destdir}/${vardir}/run/yaws
39 cp gentoo/init.d.yaws ${destdir}/${etcdir}/init.d/yaws
40 chmod +x ${destdir}/${etcdir}/init.d/yaws
41 sed -e "s;%prefix%;$p;g" gentoo/conf.d.yaws > ${destdir}/${etcdir}/conf.d/yaws
90111837 »
2003-05-04 ""
42 elif [ -f /etc/redhat-release ]; then
c9778e01 »
2006-04-27 added support for 2 additional configure
43 install -d ${destdir}/${etcdir}/init.d
44 sed -e "s;%prefix%;$p;g" redhat/yaws.init.d > ${destdir}/${etcdir}/init.d/yaws
45 chmod +x ${destdir}/${etcdir}/init.d/yaws
46 install -d ${destdir}/${vardir}/run/yaws
47 chmod a+rwx ${destdir}/${vardir}/run/yaws
fdfd9e3a »
2003-05-26 cvs fixes + install scripts gentoo/suse/redhat
48 elif [ -f /etc/suseservers ]; then
c9778e01 »
2006-04-27 added support for 2 additional configure
49 install -d ${destdir}/${etcdir}/init.d
50 sed -e "s;%prefix%;$p;g" suse/yaws.init.d > ${destdir}/${etcdir}/init.d/yaws
51 chmod +x ${destdir}/${etcdir}/init.d/yaws
52 install -d ${destdir}/${vardir}/run/yaws
53 chmod a+rwx ${destdir}/${vardir}/run/yaws
6e7055a0 »
2003-08-19 Darwin /etc scripts support supplied by Eric Baur
54 elif [ "`uname -s`" = "Darwin" ]; then
55 startupdir="/Library/StartupItems/Yaws"
56 if [ ! -d ${startupdir} ]; then
57 mkdir ${startupdir};
58 fi
59 sed -e "s;%prefix%;$p;g" darwin/Yaws.StartupItem > ${startupdir}/Yaws
60 chmod +x ${startupdir}/Yaws
61 cp darwin/Yaws.plist ${startupdir}/StartupParameters.plist
c9778e01 »
2006-04-27 added support for 2 additional configure
62 elif [ "`uname -s`" = "FreeBSD" ]; then
63 sed -e "s;%prefix%;$p;g" -e "s;%etcdir%;$e;g" freebsd/yaws.sh > ${destdir}/${etcdir}/rc.d/yaws.sh
90111837 »
2003-05-04 ""
64 else
c9778e01 »
2006-04-27 added support for 2 additional configure
65 install -d ${destdir}/${etcdir}
90111837 »
2003-05-04 ""
66 echo "Don't know how to make /etc/init scrips for this system"
c9778e01 »
2006-04-27 added support for 2 additional configure
67 echo "possibly add ${prefix}/bin/yaws --daemon --heart to your /etc/rc.local manually"
63772226 »
2002-06-16 ""
68 fi
e315955c »
2002-03-04 ""
69
e41d79b4 »
2003-05-04 ""
70
90111837 »
2003-05-04 ""
71
72
1dcb0263 »
2004-03-18 New better install procedure, better (more interesting) yaws.conf tem…
73
74
Something went wrong with that request. Please try again.