1 | # $Id: # |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name makuosan |
---|
6 | version 1.2.1 |
---|
7 | homepage http://lab.klab.org/wiki/Makuosan |
---|
8 | categories net |
---|
9 | platforms darwin |
---|
10 | maintainers naoya.n@gmail.com |
---|
11 | use_parallel_build yes |
---|
12 | |
---|
13 | description \ |
---|
14 | Makuosan(MAKUO for short) is a software which transfer files to multiple servers simultaneously using UDP multicast. |
---|
15 | |
---|
16 | long_description \ |
---|
17 | Makuosan(MAKUO for short) is a software which transfer files to multiple servers simultaneously using UDP multicast. \ |
---|
18 | (MAKUO consists of makuosan daemon and command line utility msync. The makuosan should be run on every server in a cluster. The makuo talk to makuosan daemon.) MAKUO has following features\; \ |
---|
19 | Scalability: \ |
---|
20 | The time required to transfer files to multiple servers does not depend on the number of the target servers. It takes almost as same amount of time to transfer files to 20 servers as it does to 10 servers. However, it is desirable to use MAKUO among servers with similar performance, because transfer speed is limited by the slowest server. \ |
---|
21 | Simultaneous update on every server. \ |
---|
22 | The makuosan transfers files simultaneously using IP multicast. Therefore, there should not be any out of sync server. \ |
---|
23 | Simple configuration: \ |
---|
24 | Each makuosan daemon maintains available server list by periodically checking existence of other makuosan daemons on different servers. \ |
---|
25 | The makuosan transfers files only to those servers where makuosan daemon is also alive. Therefore, it never stalls waiting for a dead server, or timeouts. |
---|
26 | |
---|
27 | master_sites \ |
---|
28 | http://downloads.sourceforge.net/makuosan/makuosan-${version}.tar.gz |
---|
29 | |
---|
30 | checksums \ |
---|
31 | md5 d3968953320e3e3ff6f8707257545bfd \ |
---|
32 | sha1 6f600b2b5f9e76649b1b89fa0279fe005c8688fd \ |
---|
33 | rmd160 a54673a46f9c6d79c5c4d024e391d065ff37c2af |
---|
34 | |
---|
35 | depends_lib \ |
---|
36 | port:openssl |
---|
37 | |
---|
38 | |
---|
39 | variant server description {add a startup item} { |
---|
40 | set pidfile ${prefix}/var/run/${name}.pid |
---|
41 | set makuosan_sbin ${prefix}/sbin/${name} |
---|
42 | |
---|
43 | # Create a startupitem to start/stop the server |
---|
44 | startupitem.create yes |
---|
45 | startupitem.init "PIDFILE=${pidfile}" |
---|
46 | startupitem.start "\[ -f ${prefix}/etc/makuosanrc \] && . ${prefix}/etc/makuosanrc && ${makuosan_sbin} -b \${BASE_DIR} -p \${PORT} -l \${IP_ADDRESS} && /bin/ps -ax | /usr/bin/grep ${makuosan_sbin} | /usr/bin/grep -v grep | /usr/bin/awk '{ print \$1 }' > \${PIDFILE}" |
---|
47 | startupitem.stop "\[ -r \${PIDFILE} \] && /bin/kill \$(cat \${PIDFILE}) && /bin/rm -f \${PIDFILE}" |
---|
48 | } |
---|
49 | |
---|
50 | pre-destroot { |
---|
51 | xinstall -m 755 ${filespath}/makuosanrc.in ${destroot}${prefix}/etc/makuosanrc.sample |
---|
52 | } |
---|
53 | |
---|
54 | post-install { |
---|
55 | if { [variant_isset server] } { |
---|
56 | ui_msg "******************************************************" |
---|
57 | ui_msg "*" |
---|
58 | ui_msg "* First, copy makusaon's base directory setting." |
---|
59 | ui_msg "* \$ sudo cp ${prefix}/etc/makuosanrc.smaple ${prefix}/etc/" |
---|
60 | ui_msg "*" |
---|
61 | ui_msg "******************************************************" |
---|
62 | } |
---|
63 | } |
---|