source: trunk/dports/databases/simplevoc-open/Portfile

Last change on this file was 84297, checked in by jmr@…, 6 years ago

simplevoc-open: add autoconf and automake deps, which it wants to regenerate the configure script from the makefile for some reason

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.5 KB
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: Portfile 84297 2011-09-22 03:35:24Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    simplevoc-open
7version                 1.8.0
8revision                1
9set branch              [join [lrange [split ${version} .] 0 1] .]
10categories              databases
11platforms               darwin
12maintainers             triagens.de:f.celler \
13                        triagens.de:k.salewski \
14                        triagens.de:w.helisch
15
16description             Versatile object cache
17
18long_description        SimpleVoc-OPEN is an open source version of a \
19                        key/value based in memory object cache software. \
20                        (See the WWW page for details.)
21                       
22supported_archs         i386 x86_64
23
24homepage                http://www.worldofvoc.com/
25master_sites            ${homepage}downloads/SimpleVoc/OPEN/${branch}/
26
27distname                SimpleVoc-${version}-OPEN
28
29checksums               md5     bf94886c73f08f6361860543873a9576 \
30                        sha1    f5c5ea5f0143e0036af6a719416e5a5cf014410b
31
32depends_build           port:boost \
33                        port:libev \
34                        port:autoconf \
35                        port:automake
36
37configure.args          --enable-static-libev \
38                        --enable-static-boost
39
40build.target            touch all
41
42post-destroot {
43    xinstall -m 755 -d \
44        ${destroot}${prefix}/share/simplevoc \
45        ${destroot}${prefix}/share/doc/simplevoc \
46        ${destroot}${prefix}/Library/LaunchDaemons
47   
48    xinstall -m 644 -W ${worksrcpath} NOTICE NOTICE.boost NOTICE.getaddrinfo NOTICE.libev \
49        ${destroot}${prefix}/share/doc/simplevoc
50       
51    xinstall -m 644 ${worksrcpath}/NOTICE.jquery ${destroot}${prefix}/share/doc/simplevoc/NOTICE.json
52   
53    xinstall -m 755 ${worksrcpath}/Demo/exampleRequest.sh ${destroot}${prefix}/share/doc/simplevoc/exampleRequest.sh
54    xinstall -m 755 ${worksrcpath}/SimpleVoc/simplevoc ${destroot}${prefix}/sbin/simplevoc
55    xinstall -m 644 ${worksrcpath}/initscripts/simplevoc.conf ${destroot}${prefix}/etc/simplevoc.conf.sample
56    xinstall -m 644 ${worksrcpath}/initscripts/de.triagens.simplevoc.plist ${destroot}${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample
57   
58    file copy ${worksrcpath}/WebAdmin ${destroot}${prefix}/share/simplevoc
59   
60    reinplace "s|/usr/sbin|${prefix}/sbin|g"   ${destroot}${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample
61    reinplace "s|/etc|${prefix}/etc|g"         ${destroot}${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample
62    reinplace "s|/usr/share|${prefix}/share|g" ${destroot}${prefix}/etc/simplevoc.conf.sample
63    reinplace "s|/var/log|${prefix}/var/log|g" ${destroot}${prefix}/etc/simplevoc.conf.sample
64}
65
66post-activate {
67    if {![file exists ${prefix}/etc/simplevoc.conf]} {
68        file copy ${prefix}/etc/simplevoc.conf.sample \
69            ${prefix}/etc/simplevoc.conf
70    }
71    if {![file exists ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist]} {
72        file copy ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist.sample \
73            ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist
74    }
75}
76
77notes "
78To start up the simplevoc-open server instance, use
79
80    launchctl load ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist
81
82To stop up the simplevoc-open server instance, use
83
84    launchctl unload ${prefix}/Library/LaunchDaemons/org.macports.simplevoc.plist
85"
Note: See TracBrowser for help on using the repository browser.