diff options
-rw-r--r-- | meta-networking/recipes-daemons/postfix/postfix.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc index 7781005336..de45e080d0 100644 --- a/meta-networking/recipes-daemons/postfix/postfix.inc +++ b/meta-networking/recipes-daemons/postfix/postfix.inc | |||
@@ -203,7 +203,7 @@ ALTERNATIVE_LINK_NAME[newaliases.1] = "${mandir}/man1/newaliases.1" | |||
203 | ALTERNATIVE_LINK_NAME[sendmail.1] = "${mandir}/man1/sendmail.1" | 203 | ALTERNATIVE_LINK_NAME[sendmail.1] = "${mandir}/man1/sendmail.1" |
204 | 204 | ||
205 | PACKAGE_WRITE_DEPS += "postfix-native" | 205 | PACKAGE_WRITE_DEPS += "postfix-native" |
206 | pkg_postinst_${PN} () { | 206 | pkg_postinst_${PN}-cfg () { |
207 | if [ "x$D" = "x" ]; then | 207 | if [ "x$D" = "x" ]; then |
208 | touch /etc/aliases | 208 | touch /etc/aliases |
209 | newaliases | 209 | newaliases |
@@ -224,7 +224,10 @@ pkg_postinst_${PN} () { | |||
224 | fi | 224 | fi |
225 | } | 225 | } |
226 | 226 | ||
227 | PACKAGES =+ "${PN}-cfg" | ||
228 | RDEPENDS_${PN}_class-target += "${PN}-cfg" | ||
227 | # Exclude .debug directories from the main package | 229 | # Exclude .debug directories from the main package |
228 | FILES_${PN} = "${sysconfdir} ${localstatedir} ${bindir}/* ${sbindir}/* \ | 230 | FILES_${PN} = "${localstatedir} ${bindir}/* ${sbindir}/* \ |
229 | ${libexecdir}/* ${systemd_unitdir}/*" | 231 | ${libexecdir}/* ${systemd_unitdir}/*" |
232 | FILES_${PN}-cfg = "${sysconfdir}" | ||
230 | FILES_${PN}-dbg += "${libexecdir}/postfix/.debug" | 233 | FILES_${PN}-dbg += "${libexecdir}/postfix/.debug" |