1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name vpopmail |
---|
6 | version 5.4.25 |
---|
7 | categories mail |
---|
8 | maintainers yahoo.com:compconsultant |
---|
9 | platforms darwin |
---|
10 | |
---|
11 | description Manage multiple virtual domains with Qmail |
---|
12 | |
---|
13 | long_description Vpopmail is a set of programs for creating and managing multiple virtual domains on a qmail server, with full support for many POP/IMAP servers. |
---|
14 | |
---|
15 | variant onchange description {Enable use on the ONCHANGE script} { |
---|
16 | configure.args-append --enable-onchange-script |
---|
17 | } |
---|
18 | |
---|
19 | variant mysql5 description {Store vpopmail users and more in MySQL5} { |
---|
20 | configure.args-append --enable-auth-module=mysql \ |
---|
21 | --enable-auth-logging \ |
---|
22 | --enable-sql-logging \ |
---|
23 | --enable-incdir=${prefix}/include/mysql5/mysql \ |
---|
24 | --enable-libdir=${prefix}/lib/mysql5/mysql \ |
---|
25 | --enable-valias |
---|
26 | depends_lib-append port:mysql5 |
---|
27 | } |
---|
28 | |
---|
29 | variant roaming description {Enable POP before SMTP functionality} { |
---|
30 | configure.args-append --enable-roaming-users \ |
---|
31 | --enable-tcpserver-file=${prefix}/var/${name}/etc/tcp.smtp |
---|
32 | } |
---|
33 | |
---|
34 | variant noclearpasswords description {Do not store a cleartext version of the password} { |
---|
35 | configure.args-append --disable-clear-passwd |
---|
36 | } |
---|
37 | |
---|
38 | variant learnpasswords description {If user password is not set, learn it the first time they authenticate} { |
---|
39 | configure.args-append --enable-learn-passwords |
---|
40 | } |
---|
41 | |
---|
42 | variant spamassassin description {Enable spamassassin integration} { |
---|
43 | configure.args-append --enable=spamassassin \ |
---|
44 | --enable-spamc-prog=${prefix}/bin/spamc |
---|
45 | depends_lib-append port:p5-mail-spamassassin |
---|
46 | } |
---|
47 | |
---|
48 | variant maildrop description {Enable maildrop integration} { |
---|
49 | configure.args-append --enable-maildrop \ |
---|
50 | --enable-maildrop-prog=${prefix}/bin/maildrop |
---|
51 | depends_lib-append port:maildrop |
---|
52 | } |
---|
53 | |
---|
54 | variant logverbose conflicts logpwds logall description {Enables verbose logging of all attempts, with passwords} { |
---|
55 | configure.args-append --enable-logging=v |
---|
56 | } |
---|
57 | |
---|
58 | variant logpwds conflicts logverbose logall description {Log errors with passwords} { |
---|
59 | configure.args-append --enable-logging=p |
---|
60 | } |
---|
61 | |
---|
62 | variant logall conflicts logpwds logverbose description {Log all attempts, no passwords} { |
---|
63 | configure.args-append --enable-logging=y |
---|
64 | } |
---|
65 | |
---|
66 | homepage http://www.inter7.com/index.php?page=vpopmail |
---|
67 | |
---|
68 | depends_lib port:qmail-spamcontrol \ |
---|
69 | port:ucspi-tcp |
---|
70 | |
---|
71 | master_sites sourceforge |
---|
72 | |
---|
73 | checksums md5 273c2c25906aed5206e97b01a2593aa6 \ |
---|
74 | sha1 ce62415fbd338b80f1962a477d94276f622756d0 \ |
---|
75 | rmd160 57142cca0617bd95ef2e5f4aa74ab5fa0844d6df |
---|
76 | |
---|
77 | patchfiles patch-configure.diff |
---|
78 | |
---|
79 | configure.args --enable-qmaildir=${prefix}/var/qmail \ |
---|
80 | --enable-tcprules-prog=${prefix}/bin/tcprules \ |
---|
81 | --enable-qmail-ext \ |
---|
82 | --prefix=/opt/local \ |
---|
83 | --exec-prefix=/opt/local |
---|
84 | |
---|
85 | build.target |
---|
86 | |
---|
87 | destroot.target install-strip |
---|
88 | destroot.keepdirs ${destroot}${prefix}/var/${name}/domains |
---|
89 | |
---|
90 | pre-configure { |
---|
91 | |
---|
92 | # The vpopmail users and groups are required before compilation |
---|
93 | addgroup vchkpw gid=2109 |
---|
94 | adduser vpopmail uid=7797 gid=[existsgroup vchkpw] realname=vpopmail home=${prefix}/var/${name} shell=/usr/bin/true |
---|
95 | } |
---|
96 | |
---|
97 | post-destroot { |
---|
98 | if {[variant_isset roaming]} { |
---|
99 | system "echo \"127.:allow,RELAYCLIENT=''\" > ${destroot}${prefix}/var/${name}/etc/tcp.smtp.sample" |
---|
100 | system "echo \"localhost|0|user|password|database\" >${destroot}${prefix}/var/${name}/etc/tcp.smtp.sample" |
---|
101 | system "chown vpopmail:vchkpw ${destroot}${prefix}/var/${name}/etc/tcp.smtp.sample" |
---|
102 | xinstall -m 644 -W ${worksrcpath} README.roamingusers ${destroot}${prefix}/var/${name}/doc |
---|
103 | } |
---|
104 | if {[variant_isset mysql5]} { |
---|
105 | file rename ${destroot}/${prefix}/var/${name}/etc/vpopmail.mysql ${destroot}/${prefix}/var/${name}/etc/vpopmail.mysql.sample |
---|
106 | xinstall -m 644 -W ${worksrcpath} README.mysql ${destroot}${prefix}/var/${name}/doc |
---|
107 | } |
---|
108 | if {[variant_isset maildrop]} { |
---|
109 | xinstall -m 644 -W ${worksrcpath} README.maildrop ${destroot}${prefix}/var/${name}/doc |
---|
110 | } |
---|
111 | if {[variant_isset onchange]} { |
---|
112 | xinstall -m 644 -W ${worksrcpath} README.onchange ${destroot}${prefix}/var/${name}/doc |
---|
113 | } |
---|
114 | if {[variant_isset spamassassin]} { |
---|
115 | xinstall -m 644 -W ${worksrcpath} README.spamassassin ${destroot}${prefix}/var/${name}/doc |
---|
116 | } |
---|
117 | } |
---|
118 | |
---|
119 | post-activate { |
---|
120 | if {[variant_isset roaming]} { |
---|
121 | ui_msg " |
---|
122 | Because you used the roaming variant, you must set up the tcpserver file |
---|
123 | ${prefix}/var/${name}/etc/tcp.smtp, please copy the sample file from |
---|
124 | ${prefix}/var/${name}/etc/tcp.smtp.sample |
---|
125 | " |
---|
126 | } |
---|
127 | if {[variant_isset onchange]} { |
---|
128 | ui_msg " |
---|
129 | Because you used the onchange variant, you must set up a script file at |
---|
130 | ${prefix}/var/${name}/etc/onchange before you can use VPOPMAIL commands |
---|
131 | " |
---|
132 | } |
---|
133 | if {[variant_isset mysql5]} { |
---|
134 | ui_msg " |
---|
135 | Because you used the MySQL5 variant, you must set up a file called |
---|
136 | ${prefix}/var/${name}/etc/vpopmail.mysql so that it points to your database. |
---|
137 | A sample has been created for you at ${prefix}/var/${name}/etc/vpopmail.mysql.sample |
---|
138 | " |
---|
139 | } |
---|
140 | ui_msg "Please review the doc in ${prefix}/var/${name}/doc\n" |
---|
141 | } |
---|
142 | |
---|
143 | livecheck.distname ${name}-stable |
---|