|
Lines 150-155
src_configure() {
Link Here
|
| 150 |
fi |
150 |
fi |
| 151 |
|
151 |
|
| 152 |
mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\"" |
152 |
mycc="${mycc} -DDEF_DAEMON_DIR=\\\"/usr/$(get_libdir)/postfix\\\"" |
|
|
153 |
mycc="${mycc} -DDEF_CONFIG_DIR=\\\"/etc/postfix\\\"" |
| 154 |
mycc="${mycc} -DDEF_COMMAND_DIR=\\\"/usr/sbin\\\"" |
| 155 |
mycc="${mycc} -DDEF_SENDMAIL_PATH=\\\"/usr/sbin/sendmail\\\"" |
| 156 |
mycc="${mycc} -DDEF_NEWALIS_PATH=\\\"/usr/bin/newaliases\\\"" |
| 157 |
mycc="${mycc} -DDEF_MAILQ_PATH=\\\"/usr/bin/mailq\\\"" |
| 158 |
mycc="${mycc} -DDEF_MANPAGE_DIR=\\\"/usr/share/man\\\"" |
| 159 |
mycc="${mycc} -DDEF_README_DIR=\\\"/usr/share/doc/${PF}/readme\\\"" |
| 160 |
mycc="${mycc} -DDEF_HTML_DIR=\\\"/usr/share/doc/${PF}/html\\\"" |
| 161 |
mycc="${mycc} -DDEF_QUEUE_DIR=\\\"/var/spool/postfix\\\"" |
| 162 |
mycc="${mycc} -DDEF_DATA_DIR=\\\"/var/lib/postfix\\\"" |
| 163 |
mycc="${mycc} -DDEF_MAIL_OWNER=\\\"postfix\\\"" |
| 164 |
mycc="${mycc} -DDEF_SGID_GROUP=\\\"postdrop\\\"" |
| 153 |
|
165 |
|
| 154 |
# Robin H. Johnson <robbat2@gentoo.org> 17/Nov/2006 |
166 |
# Robin H. Johnson <robbat2@gentoo.org> 17/Nov/2006 |
| 155 |
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
167 |
# Fix because infra boxes hit 2Gb .db files that fail a 32-bit fstat signed check. |
|
Lines 165-180
src_configure() {
Link Here
|
| 165 |
} |
177 |
} |
| 166 |
|
178 |
|
| 167 |
src_install () { |
179 |
src_install () { |
| 168 |
local myconf |
|
|
| 169 |
use doc && myconf="readme_directory=\"/usr/share/doc/${PF}/readme\" \ |
| 170 |
html_directory=\"/usr/share/doc/${PF}/html\"" |
| 171 |
|
| 172 |
/bin/sh postfix-install \ |
180 |
/bin/sh postfix-install \ |
| 173 |
-non-interactive \ |
181 |
-non-interactive \ |
| 174 |
install_root="${D}" \ |
182 |
install_root="${D}" \ |
| 175 |
config_directory="/usr/share/doc/${PF}/defaults" \ |
183 |
config_directory="/etc/postfix" \ |
| 176 |
manpage_directory="/usr/share/man" \ |
184 |
manpage_directory="/usr/share/man" \ |
| 177 |
${myconf} \ |
185 |
readme_directory="/usr/share/doc/${PF}/readme" \ |
|
|
186 |
html_directory="/usr/share/doc/${PF}/html" \ |
| 187 |
command_directory="/usr/sbin" \ |
| 188 |
daemon_directory="/usr/$(get_libdir)/postfix" \ |
| 189 |
mailq_path="/usr/bin/mailq" \ |
| 190 |
newaliases_path="/usr/bin/newaliases" \ |
| 191 |
sendmail_path="/usr/sbin/sendmail" \ |
| 178 |
|| die "postfix-install failed" |
192 |
|| die "postfix-install failed" |
| 179 |
|
193 |
|
| 180 |
# Fix spool removal on upgrade |
194 |
# Fix spool removal on upgrade |
|
Lines 205-211
src_install () {
Link Here
|
| 205 |
fperms 02711 /usr/sbin/post{drop,queue} |
219 |
fperms 02711 /usr/sbin/post{drop,queue} |
| 206 |
|
220 |
|
| 207 |
keepdir /etc/postfix |
221 |
keepdir /etc/postfix |
| 208 |
mv "${D}"/usr/share/doc/${PF}/defaults/*.cf "${D}"/etc/postfix |
|
|
| 209 |
if use mbox ; then |
222 |
if use mbox ; then |
| 210 |
mypostconf="mail_spool_directory=/var/spool/mail" |
223 |
mypostconf="mail_spool_directory=/var/spool/mail" |
| 211 |
else |
224 |
else |