Skip to contentSkip to conversation

suricata: update postinit

PATCH New Armin Kuster 1 participant 2 messages Jul 3, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 suricata: update postinit

[log_check] WARNING: Intentionally failing postinstall scriptlets of ['suricata', 'clamav'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ()

---
 recipes-security/suricata/suricata_4.0.0.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-security/suricata/suricata_4.0.0.bb +2 -2
index 82d134b..e163486 100644
@@ -46,8 +46,8 @@ do_install_append () {
     install -m 0644 ${WORKDIR}/volatiles.03_suricata  ${D}${sysconfdir}/default/volatiles/volatiles.03_suricata
 }
 
-pkg_postinst_${PN} () {
-if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
+pkg_postinst_ontarget_${PN} () {
+if [ -e /etc/init.d/populate-volatile.sh ] ; then
     ${sysconfdir}/init.d/populate-volatile.sh update
 fi
     ${bindir}/suricata -c ${sysconfdir}/suricata.yaml -i eth0 
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 clamav: update postinit

log_check] WARNING: Intentionally failing postinstall scriptlets of ['suricata', 'clamav'] to defer them to first boot is deprecated. Please place them into pkg_postinst_ontarget_${PN} ()

---
 recipes-security/clamav/clamav_0.99.3.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-security/clamav/clamav_0.99.3.bb +2 -2
index 043fa21..688250d 100644
@@ -93,8 +93,8 @@ do_install_append() {
     fi
 }
 
-pkg_postinst_${PN} () {
-    if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then
+pkg_postinst_ontarget_${PN} () {
+    if [ -e /etc/init.d/populate-volatile.sh ] ; then
         ${sysconfdir}/init.d/populate-volatile.sh update
     fi
     chown ${UID}:${GID} ${localstatedir}/lib/clamav
Signature · 1 line
2.7.4