Ticket #28187: database.simplevoc-open.Portfile

File database.simplevoc-open.Portfile, 3.3 KB (added by w.helisch@…, 14 years ago)

simplevoc-open Portfile

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem              1.0
5
6name                    simplevoc-open
7version                 1.7.0
8categories              databases
9platforms               darwin
10maintainers             triagens.de:f.celler \
11                        triagens.de:k.salewski \
12                        triagens.de:w.helisch
13
14description             Versatile object cache
15
16long_description        SimpleVoc-OPEN is an open source version of a \
17                        key/value based in memory object cache software. \
18                        (See the WWW page for details.)
19                       
20supported_archs         i386 x86_64
21
22homepage                http://www.worldofvoc.com/
23master_sites            http://www.worldofvoc.com/wp-content/uploads/2011/01/
24
25distname                SimpleVoc-${version}-OPEN
26
27checksums               md5     a1817eaf3fa2450c5c7d468ad74bda60 \
28                        sha1    154ab772f350e90b397508abe00144b5066de479
29
30depends_build           port:boost \
31                        port:libev
32
33configure.args          --enable-static-libev \
34                        --enable-static-boost
35
36build.target            touch all
37
38post-destroot {
39    xinstall -m 755 -d \
40        ${destroot}${prefix}/share/simplevoc \
41        ${destroot}${prefix}/share/doc/simplevoc \
42        ${destroot}${prefix}/Library/LaunchDaemons
43   
44    xinstall -m 644 -W ${worksrcpath} NOTICE NOTICE.boost NOTICE.getaddrinfo NOTICE.json NOTICE.libev \
45        ${destroot}${prefix}/share/doc/simplevoc
46   
47    xinstall -m 755 ${worksrcpath}/Demo/exampleRequest.sh ${destroot}${prefix}/share/doc/simplevoc/exampleRequest.sh
48    xinstall -m 755 ${worksrcpath}/SimpleVoc/simplevoc ${destroot}${prefix}/sbin/simplevoc
49    xinstall -m 644 ${worksrcpath}/initscripts/simplevoc.conf ${destroot}${prefix}/etc/simplevoc.conf.sample
50    xinstall -m 644 ${worksrcpath}/initscripts/de.triagens.simplevoc.plist ${destroot}${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample
51   
52    file copy ${worksrcpath}/WebAdmin ${destroot}${prefix}/share/simplevoc
53
54    reinplace "s|/usr/sbin|${prefix}/sbin|g"   ${destroot}${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample
55    reinplace "s|/etc|${prefix}/etc|g"         ${destroot}${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample
56    reinplace "s|/usr/share|${prefix}/share|g" ${destroot}${prefix}/etc/simplevoc.conf.sample
57    reinplace "s|/var/log|${prefix}/var/log|g" ${destroot}${prefix}/etc/simplevoc.conf.sample
58}
59
60post-activate {
61    if {![file exists ${prefix}/etc/simplevoc.conf]} {
62        file copy ${prefix}/etc/simplevoc.conf.sample \
63            ${prefix}/etc/simplevoc.conf
64    }
65    if {![file exists ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist]} {
66        file copy ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample \
67            ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist
68    }
69}
70
71notes "
72To start up the simplevoc-open server instance, use
73
74    launchctl load ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist
75   
76To stop up the simplevoc-open server instance, use
77
78    launchctl unload ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist
79"
80