RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/mail/dovecot/Portfile,v
retrieving revision 1.6
diff -u -r1.6 Portfile
|
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | name dovecot |
5 | | version 0.99.10.5 |
| 5 | version 0.99.14 |
6 | 6 | categories mail |
7 | 7 | description (more) secure imap server |
8 | 8 | maintainers yeled@opendarwin.org |
… |
… |
|
12 | 12 | avoid most of the common pitfalls. |
13 | 13 | homepage http://dovecot.org/ |
14 | 14 | platforms darwin |
15 | | master_sites ${homepage} |
16 | | checksums ${name}-${version}.tar.gz md5 \ |
17 | | acda02c8bdcff5e194a8b9227ccb74b5 |
18 | | configure.args --sysconfdir=${prefix}/etc/${name} |
| 15 | master_sites ${homepage}releases |
| 16 | checksums ${distname}.tar.gz md5 a12e26fd378a46c31ec3a81ab7b55b5b |
| 17 | |
| 18 | configure.args --sysconfdir=${prefix}/etc/${name} \ |
| 19 | --with-ssldir=${prefix}/etc/ssl \ |
| 20 | --localstatedir=${prefix}/var |
19 | 21 | |
20 | 22 | post-destroot { |
21 | | set rcDir ${destroot}${prefix}/etc/rc.d |
22 | | xinstall -m 755 -d ${rcDir} |
23 | | xinstall -m 755 -c ${filespath}/dovecot.sh ${rcDir} |
24 | | reinplace "s|__PREFIX|${prefix}|g" \ |
25 | | ${rcDir}/dovecot.sh |
| 23 | # Create the dovecot user and group |
| 24 | addgroup dovecot |
| 25 | set gid [existsgroup dovecot] |
| 26 | adduser dovecot gid=${gid} realname=Dovecot |
| 27 | |
| 28 | # The rc script has been replaced by startupitem code |
| 29 | # (it didn't really work right anyway) |
| 30 | #set rcDir ${destroot}${prefix}/etc/rc.d |
| 31 | #xinstall -m 755 -d ${rcDir} |
| 32 | #xinstall -m 755 -c ${filespath}/dovecot.sh ${rcDir} |
| 33 | #reinplace "s|__PREFIX|${prefix}|g" ${rcDir}/dovecot.sh |
26 | 34 | } |
27 | 35 | |
28 | 36 | variant postgres { |
… |
… |
|
40 | 48 | checksums-append ${name}-${version}.tar.gz md5 \ |
41 | 49 | 0808b403979272c64a23b65ee9575e53 |
42 | 50 | } |
| 51 | |
| 52 | startupitem.create yes |
| 53 | startupitem.name Dovecot |
| 54 | startupitem.start ${prefix}/sbin/dovecot |
| 55 | startupitem.stop " |
| 56 | pidfile=${prefix}/var/run/${name}/master.pid |
| 57 | if \[ -r \${pidfile} \]; then |
| 58 | kill `cat \${pidfile}` && rm \${pidfile} |
| 59 | fi |
| 60 | " |