Changeset 98577


Ignore:
Timestamp:
Oct 9, 2012, 8:43:20 AM (12 years ago)
Author:
ryandesign@…
Message:

redis:

  • the launchd plist now uses startupitem.executable to launch redis-server in non-daemonized mode directly, thus fixing problems stopping the server (#33476)
  • redis.conf.sample is now based on redis.conf included in redis source, instead of an out of date copy in our files directory (#32951); one less thing we have to remember to update when we update the port
  • only redis.conf.sample is now installed; redis-daemon.conf.sample is gone; if you want to run redis-server as a daemon (which is unusual on OS X, since we use launchd) then you can modify redis.conf manually
  • adjust port notes to clarify that the presented "redis-server" command is an alternative to the usual "port load" mechanism
Location:
trunk/dports/databases/redis
Files:
1 added
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/redis/Portfile

    r98576 r98577  
    66name                redis
    77version             2.4.17
    8 revision            0
     8revision            1
    99categories          databases
    1010license             BSD
     
    2222                    sha256  3fae7c47ef84886ff65073593c91586bb675babaf702eb6f3b37855ab3066ebd
    2323
     24patchfiles          patch-redis.conf.diff
     25
     26post-patch {
     27    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf
     28}
     29
    2430use_configure       no
    2531
     
    2733
    2834build.env-append    CC="${configure.cc} [get_canonical_archflags]"
    29 
    30 post-build {
    31     copy ${filespath}/redis.conf.sample.in ${workpath}/redis.conf.sample
    32     copy ${filespath}/redis-daemon.conf.sample.in ${workpath}/redis-daemon.conf.sample
    33     reinplace "s|@PREFIX@|${prefix}|g" \
    34         ${workpath}/redis.conf.sample \
    35         ${workpath}/redis-daemon.conf.sample
    36 }
    3735
    3836destroot.keepdirs   ${destroot}${prefix}/var/db/redis
     
    4745        redis-server \
    4846        ${destroot}${prefix}/bin
    49     xinstall -m 0644 -W ${workpath} \
    50         redis.conf.sample \
    51         redis-daemon.conf.sample \
    52         ${destroot}${prefix}/etc
     47    xinstall -m 0644 ${worksrcpath}/redis.conf \
     48        ${destroot}${prefix}/etc/redis.conf.sample
    5349}
    5450
    5551post-activate {
    56     if {![file exists ${prefix}/etc/redis-daemon.conf]} {
    57         file copy ${prefix}/etc/redis-daemon.conf.sample \
    58             ${prefix}/etc/redis-daemon.conf
    59     }
    6052    if {![file exists ${prefix}/etc/redis.conf]} {
    61         file copy ${prefix}/etc/redis.conf.sample \
    62             ${prefix}/etc/redis.conf
     53        file copy ${prefix}/etc/redis.conf.sample ${prefix}/etc/redis.conf
    6354    }
    6455    xinstall -d ${prefix}/var/log
     
    6758
    6859startupitem.create  yes
    69 startupitem.start   "${prefix}/bin/redis-server ${prefix}/etc/redis-daemon.conf"
    70 startupitem.stop    "echo \"SHUTDOWN\" | nc localhost 6379"
     60startupitem.executable  ${prefix}/bin/redis-server ${prefix}/etc/redis.conf
    7161
    7262notes "
    73 To start up a redis server instance use this command:
     63If you prefer to start a redis server manually, rather than using 'port load', then use this command:
    7464
    7565    redis-server ${prefix}/etc/redis.conf
Note: See TracChangeset for help on using the changeset viewer.