Changeset 98577
- Timestamp:
- Oct 9, 2012, 8:43:20 AM (12 years ago)
- Location:
- trunk/dports/databases/redis
- Files:
-
- 1 added
- 2 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/databases/redis/Portfile
r98576 r98577 6 6 name redis 7 7 version 2.4.17 8 revision 08 revision 1 9 9 categories databases 10 10 license BSD … … 22 22 sha256 3fae7c47ef84886ff65073593c91586bb675babaf702eb6f3b37855ab3066ebd 23 23 24 patchfiles patch-redis.conf.diff 25 26 post-patch { 27 reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/redis.conf 28 } 29 24 30 use_configure no 25 31 … … 27 33 28 34 build.env-append CC="${configure.cc} [get_canonical_archflags]" 29 30 post-build {31 copy ${filespath}/redis.conf.sample.in ${workpath}/redis.conf.sample32 copy ${filespath}/redis-daemon.conf.sample.in ${workpath}/redis-daemon.conf.sample33 reinplace "s|@PREFIX@|${prefix}|g" \34 ${workpath}/redis.conf.sample \35 ${workpath}/redis-daemon.conf.sample36 }37 35 38 36 destroot.keepdirs ${destroot}${prefix}/var/db/redis … … 47 45 redis-server \ 48 46 ${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 53 49 } 54 50 55 51 post-activate { 56 if {![file exists ${prefix}/etc/redis-daemon.conf]} {57 file copy ${prefix}/etc/redis-daemon.conf.sample \58 ${prefix}/etc/redis-daemon.conf59 }60 52 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 63 54 } 64 55 xinstall -d ${prefix}/var/log … … 67 58 68 59 startupitem.create yes 69 startupitem.start "${prefix}/bin/redis-server ${prefix}/etc/redis-daemon.conf" 70 startupitem.stop "echo \"SHUTDOWN\" | nc localhost 6379" 60 startupitem.executable ${prefix}/bin/redis-server ${prefix}/etc/redis.conf 71 61 72 62 notes " 73 To start up a redis server instanceuse this command:63 If you prefer to start a redis server manually, rather than using 'port load', then use this command: 74 64 75 65 redis-server ${prefix}/etc/redis.conf
Note: See TracChangeset
for help on using the changeset viewer.