source: trunk/dports/net/makuosan/Portfile

Last change on this file was 146517, checked in by raimue@…, 21 months ago

Mass rev-bump dependents of port openssl due to ABI change

Disabling SSLv2 in r146162 changed the ABI of the library, leading to loading
errors for binaries with references to SSLv2 symbols.

https://lists.macosforge.org/pipermail/macports-dev/2016-March/032531.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# $Id: Portfile 146517 2016-03-10 17:49:28Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    makuosan
6version                 1.2.1
7revision        2
8homepage                http://lab.klab.org/wiki/Makuosan
9categories              net
10platforms               darwin
11maintainers             gmail.com:naoya.n
12use_parallel_build      yes
13
14description \
15    Makuosan(MAKUO for short) is a software which transfer files to multiple servers simultaneously using UDP multicast.
16
17long_description \
18    Makuosan(MAKUO for short) is a software which transfer files to multiple servers simultaneously using UDP multicast. \
19(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\; \
20 Scalability: \
21The 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. \
22 Simultaneous update on every server. \
23The makuosan transfers files simultaneously using IP multicast. Therefore, there should not be any out of sync server. \
24 Simple configuration: \
25Each makuosan daemon maintains available server list by periodically checking existence of other makuosan daemons on different servers. \
26The makuosan transfers files only to those servers where makuosan daemon is also alive. Therefore, it never stalls waiting for a dead server, or timeouts.
27
28master_sites \
29    sourceforge
30
31checksums \
32    md5     d3968953320e3e3ff6f8707257545bfd \
33    sha1    6f600b2b5f9e76649b1b89fa0279fe005c8688fd \
34    rmd160  a54673a46f9c6d79c5c4d024e391d065ff37c2af
35
36depends_lib \
37    path:lib/libssl.dylib:openssl
38
39
40variant server description {add a startup item} {
41    set pidfile       ${prefix}/var/run/${name}.pid
42    set makuosan_sbin ${prefix}/sbin/${name}
43
44    # Create a startupitem to start/stop the server
45    startupitem.create  yes
46    startupitem.init    "PIDFILE=${pidfile}"
47    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}"
48    startupitem.stop    "\[ -r \${PIDFILE} \] && /bin/kill \$(cat \${PIDFILE}) && /bin/rm -f \${PIDFILE}"
49}
50
51pre-destroot {
52    xinstall -m 755 ${filespath}/makuosanrc.in ${destroot}${prefix}/etc/makuosanrc.sample
53}
54
55post-install {
56    if { [variant_isset server] } {
57        ui_msg "******************************************************"
58        ui_msg "*"
59        ui_msg "* First, copy makuosan's base directory setting."
60        ui_msg "* \$ sudo cp ${prefix}/etc/makuosanrc.sample ${prefix}/etc/makuosanrc"
61        ui_msg "*"
62        ui_msg "******************************************************"
63    }
64}
Note: See TracBrowser for help on using the repository browser.