diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-07-29 17:04:53 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-08-03 10:21:25 -0700 |
commit | c61dc077bbd81260e4f167fa2251643ba0ba6974 (patch) | |
tree | 66c3243f8f64ae60f66f70a16e8128c247254a65 /meta-networking/recipes-daemons/postfix/postfix.inc | |
parent | c5f7cfb8db54cfa4257797db5bd87828dea43296 (diff) | |
download | meta-openembedded-c61dc077bbd81260e4f167fa2251643ba0ba6974.tar.gz |
Convert to new override syntax
This is the result of automated script (0.9.1) conversion:
oe-core/scripts/contrib/convert-overrides.py .
converting the metadata to use ":" as the override character instead of "_".
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-networking/recipes-daemons/postfix/postfix.inc')
-rw-r--r-- | meta-networking/recipes-daemons/postfix/postfix.inc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/meta-networking/recipes-daemons/postfix/postfix.inc b/meta-networking/recipes-daemons/postfix/postfix.inc index 4b9940cc7..7bf258374 100644 --- a/meta-networking/recipes-daemons/postfix/postfix.inc +++ b/meta-networking/recipes-daemons/postfix/postfix.inc | |||
@@ -25,11 +25,11 @@ inherit update-rc.d useradd update-alternatives systemd lib_package | |||
25 | INITSCRIPT_NAME = "postfix" | 25 | INITSCRIPT_NAME = "postfix" |
26 | INITSCRIPT_PARAMS = "start 58 3 4 5 . stop 13 0 1 6 ." | 26 | INITSCRIPT_PARAMS = "start 58 3 4 5 . stop 13 0 1 6 ." |
27 | USERADD_PACKAGES = "${PN}-bin" | 27 | USERADD_PACKAGES = "${PN}-bin" |
28 | USERADD_PARAM_${PN}-bin = \ | 28 | USERADD_PARAM:${PN}-bin = \ |
29 | "-d /var/spool/postfix -r -g postfix --shell /bin/false postfix; \ | 29 | "-d /var/spool/postfix -r -g postfix --shell /bin/false postfix; \ |
30 | -d /var/spool/vmail -r -g vmail --shell /bin/false vmail \ | 30 | -d /var/spool/vmail -r -g vmail --shell /bin/false vmail \ |
31 | " | 31 | " |
32 | GROUPADD_PARAM_${PN}-bin = "--system postfix;--system postdrop;--system vmail" | 32 | GROUPADD_PARAM:${PN}-bin = "--system postfix;--system postdrop;--system vmail" |
33 | 33 | ||
34 | export SYSLIBS = "${LDFLAGS}" | 34 | export SYSLIBS = "${LDFLAGS}" |
35 | 35 | ||
@@ -45,10 +45,10 @@ export AUXLIBS-ldap = "\ | |||
45 | ${@bb.utils.contains('DISTRO_FEATURES', 'ldap', '-lldap -llber', '', d)}" | 45 | ${@bb.utils.contains('DISTRO_FEATURES', 'ldap', '-lldap -llber', '', d)}" |
46 | 46 | ||
47 | # no native openldap | 47 | # no native openldap |
48 | export CCARGS-ldap_class-native = "" | 48 | export CCARGS-ldap:class-native = "" |
49 | export AUXLIBS-ldap_class-native = "" | 49 | export AUXLIBS-ldap:class-native = "" |
50 | 50 | ||
51 | export CCARGS-nonis_libc-musl = "-DNO_NIS" | 51 | export CCARGS-nonis:libc-musl = "-DNO_NIS" |
52 | export CCARGS-nonis = "" | 52 | export CCARGS-nonis = "" |
53 | 53 | ||
54 | # SASL support -DUSE_LDAP_SASL -DUSE_SASL_AUTH | 54 | # SASL support -DUSE_LDAP_SASL -DUSE_SASL_AUTH |
@@ -57,8 +57,8 @@ export CCARGS-sasl = "\ | |||
57 | ${@bb.utils.contains('DISTRO_FEATURES', 'sasl', '-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${STAGING_INCDIR}/sasl', '', d)}" | 57 | ${@bb.utils.contains('DISTRO_FEATURES', 'sasl', '-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${STAGING_INCDIR}/sasl', '', d)}" |
58 | export AUXLIBS-sasl = "\ | 58 | export AUXLIBS-sasl = "\ |
59 | ${@bb.utils.contains('DISTRO_FEATURES', 'sasl', '-lsasl2', '', d)}" | 59 | ${@bb.utils.contains('DISTRO_FEATURES', 'sasl', '-lsasl2', '', d)}" |
60 | export CCARGS-sasl_class-native = "" | 60 | export CCARGS-sasl:class-native = "" |
61 | export AUXLIBS-sasl_class-native = "" | 61 | export AUXLIBS-sasl:class-native = "" |
62 | 62 | ||
63 | # PCRE, TLS support default | 63 | # PCRE, TLS support default |
64 | export CCARGS = "${CFLAGS} -DHAS_PCRE -DUSE_TLS -I${STAGING_INCDIR}/openssl ${CCARGS-ldap} ${CCARGS-sasl} ${CCARGS-nonis}" | 64 | export CCARGS = "${CFLAGS} -DHAS_PCRE -DUSE_TLS -I${STAGING_INCDIR}/openssl ${CCARGS-ldap} ${CCARGS-sasl} ${CCARGS-nonis}" |
@@ -95,11 +95,11 @@ do_compile () { | |||
95 | oe_runmake | 95 | oe_runmake |
96 | } | 96 | } |
97 | 97 | ||
98 | do_install_prepend_class-native() { | 98 | do_install:prepend:class-native() { |
99 | export POSTCONF="bin/postconf" | 99 | export POSTCONF="bin/postconf" |
100 | } | 100 | } |
101 | 101 | ||
102 | SYSTEMD_SERVICE_${PN} = "postfix.service" | 102 | SYSTEMD_SERVICE:${PN} = "postfix.service" |
103 | 103 | ||
104 | do_install () { | 104 | do_install () { |
105 | sh ./postfix-install 'install_root=${D}' \ | 105 | sh ./postfix-install 'install_root=${D}' \ |
@@ -180,14 +180,14 @@ do_install () { | |||
180 | rm -rf ${D}/etc/postfix/makedefs.out | 180 | rm -rf ${D}/etc/postfix/makedefs.out |
181 | } | 181 | } |
182 | 182 | ||
183 | do_install_append_class-native() { | 183 | do_install:append:class-native() { |
184 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/newaliases | 184 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/newaliases |
185 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq | 185 | ln -sf ../sbin/sendmail.postfix ${D}${bindir}/mailq |
186 | } | 186 | } |
187 | 187 | ||
188 | ALTERNATIVE_${PN}-bin = "sendmail mailq newaliases" | 188 | ALTERNATIVE:${PN}-bin = "sendmail mailq newaliases" |
189 | # /usr/lib/sendmial is required by LSB core test | 189 | # /usr/lib/sendmial is required by LSB core test |
190 | ALTERNATIVE_${PN}-bin_linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail" | 190 | ALTERNATIVE:${PN}-bin:linuxstdbase = "sendmail mailq newaliases usr-lib-sendmail" |
191 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" | 191 | ALTERNATIVE_TARGET[mailq] = "${bindir}/mailq" |
192 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" | 192 | ALTERNATIVE_TARGET[newaliases] = "${bindir}/newaliases" |
193 | ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix" | 193 | ALTERNATIVE_TARGET[sendmail] = "${sbindir}/sendmail.postfix" |
@@ -197,12 +197,12 @@ ALTERNATIVE_LINK_NAME[usr-lib-sendmail] = "/usr/lib/sendmail" | |||
197 | 197 | ||
198 | ALTERNATIVE_PRIORITY = "120" | 198 | ALTERNATIVE_PRIORITY = "120" |
199 | 199 | ||
200 | ALTERNATIVE_${PN}-doc += "mailq.1 newaliases.1 sendmail.1" | 200 | ALTERNATIVE:${PN}-doc += "mailq.1 newaliases.1 sendmail.1" |
201 | ALTERNATIVE_LINK_NAME[mailq.1] = "${mandir}/man1/mailq.1" | 201 | ALTERNATIVE_LINK_NAME[mailq.1] = "${mandir}/man1/mailq.1" |
202 | ALTERNATIVE_LINK_NAME[newaliases.1] = "${mandir}/man1/newaliases.1" | 202 | 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 | pkg_postinst_ontarget_${PN}-cfg () { | 205 | pkg_postinst_ontarget:${PN}-cfg () { |
206 | touch /etc/aliases | 206 | touch /etc/aliases |
207 | newaliases | 207 | newaliases |
208 | 208 | ||
@@ -212,11 +212,11 @@ pkg_postinst_ontarget_${PN}-cfg () { | |||
212 | } | 212 | } |
213 | 213 | ||
214 | PACKAGES =+ "${PN}-cfg" | 214 | PACKAGES =+ "${PN}-cfg" |
215 | RDEPENDS_${PN}-cfg_class-target += "${PN}-bin" | 215 | RDEPENDS:${PN}-cfg:class-target += "${PN}-bin" |
216 | RDEPENDS_${PN}_class-target += "${PN}-cfg" | 216 | RDEPENDS:${PN}:class-target += "${PN}-cfg" |
217 | # Exclude .debug directories from the main package | 217 | # Exclude .debug directories from the main package |
218 | FILES_${PN}-bin += "${localstatedir} ${bindir}/* ${sbindir}/* \ | 218 | FILES:${PN}-bin += "${localstatedir} ${bindir}/* ${sbindir}/* \ |
219 | ${libexecdir}/* ${systemd_unitdir}/*" | 219 | ${libexecdir}/* ${systemd_unitdir}/*" |
220 | FILES_${PN}-cfg = "${sysconfdir}" | 220 | FILES:${PN}-cfg = "${sysconfdir}" |
221 | FILES_${PN}-dbg += "${libexecdir}/postfix/.debug" | 221 | FILES:${PN}-dbg += "${libexecdir}/postfix/.debug" |
222 | ALLOW_EMPTY_${PN} = "1" | 222 | ALLOW_EMPTY:${PN} = "1" |