Ticket #27456: Portfile-mongodb.diff
File Portfile-mongodb.diff, 1.1 KB (added by toy, 14 years ago) |
---|
-
databases/mongodb/Portfile
old new 53 53 destroot.args ${build.args} 54 54 destroot.destdir --prefix=${destroot}${prefix} 55 55 56 set dbdir ${prefix}/var/db/mongodb 57 set logdir ${prefix}/var/log/mongodb 58 59 if {"darwin" == ${os.platform} && ${os.major} > 8} { 60 set mongouser _mongo 61 } else { 62 set mongouser mongo 63 } 64 56 65 post-destroot { 57 66 xinstall -W ${worksrcpath} mongobridge ${destroot}${prefix}/bin 67 68 addgroup ${mongouser} 69 set gid [existsgroup ${mongouser}] 70 adduser ${mongouser} gid=${gid} realname=MongoDB\ Server 71 72 xinstall -m 755 -o ${mongouser} -g ${mongouser} -d \ 73 ${destroot}${dbdir} \ 74 ${destroot}${logdir} 75 destroot.keepdirs-append \ 76 ${destroot}${dbdir} \ 77 ${destroot}${logdir} 58 78 } 59 79 80 startupitem.create yes 81 startupitem.executable sudo -u ${mongouser} ${prefix}/bin/mongod --dbpath ${dbdir} --logpath ${logdir}/mongodb.log --logappend 82 60 83 variant universal { 61 84 build.env-append \ 62 85 CFLAGS="${configure.universal_cflags}" \