Ignore:
Timestamp:
Mar 3, 2009, 10:47:23 PM (11 years ago)
Author:
febeling@…
Message:

databases/couchdb-devel: Fix logging, provide plist in LaunchDaemons.

  • use forground process controlled by launchd/upsteam plist
  • add stdout and stderr log file locations into plist
  • make bin/couchdb honour stdout and stderr path options
  • symlink plist into system location
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/couchdb-devel/Portfile

    r47589 r47693  
    55name                couchdb-devel
    66version             0.9.0a-incubating
    7 revision            1
     7revision            2
    88
    99categories          databases
     
    3131    port:erlang
    3232
    33 set dbgroup couchdb
    34 set dbuser couchdb
    35 set logdir ${prefix}/var/log/couchdb
    36 set dbdir ${prefix}/var/lib/couchdb
     33patchfiles      patch-plist_stdout_stderr.diff
    3734
    3835pre-configure {
     
    4037}
    4138
    42 pre-destroot {
     39set dbgroup couchdb
     40set dbuser couchdb
     41set logdir ${prefix}/var/log/couchdb
     42set dbdir ${prefix}/var/lib/couchdb
     43set plistdir /Library/LaunchDaemons
     44
     45post-destroot {
    4346    addgroup ${dbgroup}
    4447    adduser ${dbuser} gid=[existsgroup ${dbgroup}]
    4548    xinstall -m 755 -o ${dbuser} -g ${dbgroup} -d \
    4649        ${destroot}${dbdir} \
    47         ${destroot}${logdir}
     50        ${destroot}${logdir} \
     51        ${destroot}${plistdir}
    4852    destroot.keepdirs-append \
    4953        ${destroot}${dbdir} \
    5054        ${destroot}${logdir}
     55    set plist org.apache.couchdb.plist
     56    ln -sf ${destroot}${prefix}${plistdir}${plist} \
     57        ${destroot}${plistdir}/${plist}
    5158}
    5259
Note: See TracChangeset for help on using the changeset viewer.