Changeset 50350


Ignore:
Timestamp:
Apr 29, 2009, 5:14:58 PM (11 years ago)
Author:
ryandesign@…
Message:

redis:

  • use correct prefix in sample conf files
  • don't create directory in post-activate; create it in post-destroot and tell MacPorts to keep it even though it's empty
Location:
trunk/dports/databases/redis
Files:
1 edited
2 moved

Legend:

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

    r50349 r50350  
    66name                    redis
    77version                 0.092
     8revision                1
    89categories              databases
    910maintainers             nomaintainer
     
    3637
    3738build.env-append        CC=${configure.cc}
     39post-build {
     40    copy ${filespath}/redis.conf.sample.in ${workpath}/redis.conf.sample
     41    copy ${filespath}/redis-daemon.conf.sample.in ${workpath}/redis-daemon.conf.sample
     42    reinplace "s|@PREFIX@|${prefix}|g" \
     43        ${workpath}/redis.conf.sample \
     44        ${workpath}/redis-daemon.conf.sample
     45}
    3846
     47destroot.keepdirs ${destroot}${prefix}/var/db/redis
    3948destroot {
     49    xinstall -d ${destroot}${prefix}/var/db/redis
    4050    xinstall -m 0755 -W ${worksrcpath} \
    4151        redis-benchmark \
     
    4353        redis-server \
    4454        ${destroot}${prefix}/bin
    45     xinstall -m 0644 ${filespath}/redis.conf \
    46         ${destroot}${prefix}/etc/redis.conf.sample
    47     xinstall -m 0644 ${filespath}/redis-daemon.conf \
    48         ${destroot}${prefix}/etc/redis-daemon.conf.sample
     55    xinstall -m 0644 -W ${workpath} \
     56        redis.conf.sample \
     57        redis-daemon.conf.sample \
     58        ${destroot}${prefix}/etc
    4959}
    5060
     
    5868            ${prefix}/etc/redis.conf
    5969    }
    60     xinstall -d ${prefix}/var/db/redis
    6170    touch ${prefix}/var/log/redis.log
    6271    ui_msg "
  • trunk/dports/databases/redis/files/redis-daemon.conf.sample.in

    r50337 r50350  
    77# When run as a daemon, Redis write a pid file in /var/run/redis.pid by default.
    88# You can specify a custom pid file location here.
    9 pidfile /opt/local/var/run/redis.pid
     9pidfile @PREFIX@/var/run/redis.pid
    1010
    1111# Accept connections on the specified port, default is 6379
     
    3737# For default save/load DB in/from the working directory
    3838# Note that you must specify a directory not a file name.
    39 dir /opt/local/var/db/redis
     39dir @PREFIX@/var/db/redis
    4040
    4141# Set server verbosity to 'debug'
     
    4949# the demon to log on the standard output. Note that if you use standard
    5050# output for logging but daemonize, logs will be sent to /dev/null
    51 logfile /opt/local/var/log/redis.log
     51logfile @PREFIX@/var/log/redis.log
    5252
    5353# Set the number of databases.
  • trunk/dports/databases/redis/files/redis.conf.sample.in

    r50337 r50350  
    77# When run as a daemon, Redis write a pid file in /var/run/redis.pid by default.
    88# You can specify a custom pid file location here.
    9 pidfile /opt/local/var/run/redis.pid
     9pidfile @PREFIX@/var/run/redis.pid
    1010
    1111# Accept connections on the specified port, default is 6379
     
    3737# For default save/load DB in/from the working directory
    3838# Note that you must specify a directory not a file name.
    39 dir /opt/local/var/db/redis
     39dir @PREFIX@/var/db/redis
    4040
    4141# Set server verbosity to 'debug'
Note: See TracChangeset for help on using the changeset viewer.