diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-05-13 14:16:55 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-05-23 08:44:44 -0700 |
| commit | ffc64e9c6fee0af7eea3466135416d011172a5e6 (patch) | |
| tree | b9effa069d9af3c63d6f3a41caff6b887450522c /meta-networking/recipes-connectivity/snort/snort_2.9.20.bb | |
| parent | a90f89dbc7eff2ae83bab6a6676f4737c0b48a8d (diff) | |
| download | meta-openembedded-ffc64e9c6fee0af7eea3466135416d011172a5e6.tar.gz | |
recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-connectivity/snort/snort_2.9.20.bb')
| -rw-r--r-- | meta-networking/recipes-connectivity/snort/snort_2.9.20.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb b/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb index 8b9092b418..9bc14fc56f 100644 --- a/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb +++ b/meta-networking/recipes-connectivity/snort/snort_2.9.20.bb | |||
| @@ -76,18 +76,18 @@ do_install:append() { | |||
| 76 | 76 | ||
| 77 | cp ${S}/preproc_rules/*.rules ${D}${sysconfdir}/snort/preproc_rules/ | 77 | cp ${S}/preproc_rules/*.rules ${D}${sysconfdir}/snort/preproc_rules/ |
| 78 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 78 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 79 | install -m 755 ${WORKDIR}/snort.init ${D}${sysconfdir}/init.d/snort | 79 | install -m 755 ${UNPACKDIR}/snort.init ${D}${sysconfdir}/init.d/snort |
| 80 | fi | 80 | fi |
| 81 | 81 | ||
| 82 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 82 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 83 | install -d ${D}/${systemd_system_unitdir} | 83 | install -d ${D}/${systemd_system_unitdir} |
| 84 | install -m 644 ${WORKDIR}/snort.service ${D}/${systemd_system_unitdir} | 84 | install -m 644 ${UNPACKDIR}/snort.service ${D}/${systemd_system_unitdir} |
| 85 | # Install default environment file | 85 | # Install default environment file |
| 86 | install -d ${D}/${sysconfdir}/default | 86 | install -d ${D}/${sysconfdir}/default |
| 87 | install -m 0644 ${WORKDIR}/snort.default ${D}${sysconfdir}/default/snort | 87 | install -m 0644 ${UNPACKDIR}/snort.default ${D}${sysconfdir}/default/snort |
| 88 | fi | 88 | fi |
| 89 | install -d ${D}${sysconfdir}/default/volatiles | 89 | install -d ${D}${sysconfdir}/default/volatiles |
| 90 | install -m 0644 ${WORKDIR}/volatiles.99_snort ${D}${sysconfdir}/default/volatiles/99_snort | 90 | install -m 0644 ${UNPACKDIR}/volatiles.99_snort ${D}${sysconfdir}/default/volatiles/99_snort |
| 91 | 91 | ||
| 92 | sed -i -e 's|-ffile-prefix-map[^ ]*||g; s|-fdebug-prefix-map[^ ]*||g; s|-fmacro-prefix-map[^ ]*||g; s|${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc | 92 | sed -i -e 's|-ffile-prefix-map[^ ]*||g; s|-fdebug-prefix-map[^ ]*||g; s|-fmacro-prefix-map[^ ]*||g; s|${STAGING_DIR_TARGET}||g' ${D}${libdir}/pkgconfig/*.pc |
| 93 | } | 93 | } |
