| 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 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name simplevoc-open |
|---|
| 7 | version 1.7.0 |
|---|
| 8 | categories database |
|---|
| 9 | platforms darwin |
|---|
| 10 | maintainers triagens.de:f.celler \ |
|---|
| 11 | triagens.de:k.salewski \ |
|---|
| 12 | triagens.de:w.helisch |
|---|
| 13 | |
|---|
| 14 | description Versatile object cache |
|---|
| 15 | |
|---|
| 16 | long_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 | |
|---|
| 20 | supported_archs i386 x86_64 |
|---|
| 21 | |
|---|
| 22 | homepage http://www.worldofvoc.com/ |
|---|
| 23 | master_sites http://www.worldofvoc.com/wp-content/uploads/2011/01/ |
|---|
| 24 | |
|---|
| 25 | distname SimpleVoc-${version}-OPEN |
|---|
| 26 | |
|---|
| 27 | checksums md5 a1817eaf3fa2450c5c7d468ad74bda60 \ |
|---|
| 28 | sha1 154ab772f350e90b397508abe00144b5066de479 |
|---|
| 29 | |
|---|
| 30 | depends_build port:boost \ |
|---|
| 31 | port:libev |
|---|
| 32 | |
|---|
| 33 | configure.args --enable-static-libev \ |
|---|
| 34 | --enable-static-boost |
|---|
| 35 | |
|---|
| 36 | build.target all |
|---|
| 37 | |
|---|
| 38 | post-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 | |
|---|
| 60 | post-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 | |
|---|
| 71 | notes " |
|---|
| 72 | To start up the simplevoc-open server instance, use these commands: |
|---|
| 73 | |
|---|
| 74 | launchctl load ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist |
|---|
| 75 | |
|---|
| 76 | To stop up the simplevoc-open server instance, use the following command: |
|---|
| 77 | |
|---|
| 78 | launchctl unload ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist |
|---|
| 79 | " |
|---|
| 80 | |
|---|