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 | |
| 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')
9 files changed, 22 insertions, 22 deletions
diff --git a/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb b/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb index e5f7e0334f..e458321e6e 100644 --- a/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb +++ b/meta-networking/recipes-connectivity/dhcp/dhcp-relay_4.4.3p1.bb | |||
| @@ -53,16 +53,16 @@ do_configure:prepend () { | |||
| 53 | } | 53 | } |
| 54 | 54 | ||
| 55 | do_install:append () { | 55 | do_install:append () { |
| 56 | install -Dm 0644 ${WORKDIR}/default-relay ${D}${sysconfdir}/default/dhcp-relay | 56 | install -Dm 0644 ${UNPACKDIR}/default-relay ${D}${sysconfdir}/default/dhcp-relay |
| 57 | 57 | ||
| 58 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 58 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 59 | install -d ${D}${systemd_unitdir}/system | 59 | install -d ${D}${systemd_unitdir}/system |
| 60 | install -m 0644 ${WORKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system | 60 | install -m 0644 ${UNPACKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system |
| 61 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/dhcrelay.service | 61 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/dhcrelay.service |
| 62 | sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcrelay.service | 62 | sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' ${D}${systemd_unitdir}/system/dhcrelay.service |
| 63 | else | 63 | else |
| 64 | install -d ${D}${sysconfdir}/init.d | 64 | install -d ${D}${sysconfdir}/init.d |
| 65 | install -m 0755 ${WORKDIR}/init-relay ${D}${sysconfdir}/init.d/dhcp-relay | 65 | install -m 0755 ${UNPACKDIR}/init-relay ${D}${sysconfdir}/init.d/dhcp-relay |
| 66 | fi | 66 | fi |
| 67 | } | 67 | } |
| 68 | 68 | ||
diff --git a/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.3.bb b/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.3.bb index 7ea63a65d3..8397380c1d 100644 --- a/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.3.bb +++ b/meta-networking/recipes-connectivity/freeradius/freeradius_3.2.3.bb | |||
| @@ -169,14 +169,14 @@ do_install() { | |||
| 169 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 169 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 170 | install -d ${D}${sysconfdir}/init.d | 170 | install -d ${D}${sysconfdir}/init.d |
| 171 | install -d ${D}${sysconfdir}/default/volatiles | 171 | install -d ${D}${sysconfdir}/default/volatiles |
| 172 | install -m 0755 ${WORKDIR}/freeradius ${D}/etc/init.d/radiusd | 172 | install -m 0755 ${UNPACKDIR}/freeradius ${D}/etc/init.d/radiusd |
| 173 | install -m 0644 ${WORKDIR}/volatiles.58_radiusd ${D}${sysconfdir}/default/volatiles/58_radiusd | 173 | install -m 0644 ${UNPACKDIR}/volatiles.58_radiusd ${D}${sysconfdir}/default/volatiles/58_radiusd |
| 174 | fi | 174 | fi |
| 175 | 175 | ||
| 176 | # For systemd | 176 | # For systemd |
| 177 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 177 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 178 | install -d ${D}${systemd_unitdir}/system | 178 | install -d ${D}${systemd_unitdir}/system |
| 179 | install -m 0644 ${WORKDIR}/radiusd.service ${D}${systemd_unitdir}/system | 179 | install -m 0644 ${UNPACKDIR}/radiusd.service ${D}${systemd_unitdir}/system |
| 180 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ | 180 | sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \ |
| 181 | -e 's,@SBINDIR@,${sbindir},g' \ | 181 | -e 's,@SBINDIR@,${sbindir},g' \ |
| 182 | -e 's,@STATEDIR@,${localstatedir},g' \ | 182 | -e 's,@STATEDIR@,${localstatedir},g' \ |
| @@ -184,7 +184,7 @@ do_install() { | |||
| 184 | ${D}${systemd_unitdir}/system/radiusd.service | 184 | ${D}${systemd_unitdir}/system/radiusd.service |
| 185 | 185 | ||
| 186 | install -d ${D}${sysconfdir}/tmpfiles.d/ | 186 | install -d ${D}${sysconfdir}/tmpfiles.d/ |
| 187 | install -m 0644 ${WORKDIR}/radiusd-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/radiusd.conf | 187 | install -m 0644 ${UNPACKDIR}/radiusd-volatiles.conf ${D}${sysconfdir}/tmpfiles.d/radiusd.conf |
| 188 | fi | 188 | fi |
| 189 | 189 | ||
| 190 | oe_multilib_header freeradius/autoconf.h | 190 | oe_multilib_header freeradius/autoconf.h |
diff --git a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb index 468569eef1..1c2f030f83 100644 --- a/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb +++ b/meta-networking/recipes-connectivity/miniupnpd/miniupnpd_2.1.20191006.bb | |||
| @@ -44,7 +44,7 @@ do_install() { | |||
| 44 | install ${S}/linux/miniupnpd.init.d.script ${D}/${sysconfdir}/init.d/miniupnpd | 44 | install ${S}/linux/miniupnpd.init.d.script ${D}/${sysconfdir}/init.d/miniupnpd |
| 45 | 45 | ||
| 46 | install -d ${D}${systemd_unitdir}/system | 46 | install -d ${D}${systemd_unitdir}/system |
| 47 | install -m 0644 ${WORKDIR}/miniupnpd.service ${D}${systemd_unitdir}/system/ | 47 | install -m 0644 ${UNPACKDIR}/miniupnpd.service ${D}${systemd_unitdir}/system/ |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | SYSTEMD_SERVICE:${PN} = "miniupnpd.service" | 50 | SYSTEMD_SERVICE:${PN} = "miniupnpd.service" |
diff --git a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb index ea9eb4857b..4ef0654102 100644 --- a/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb +++ b/meta-networking/recipes-connectivity/mosquitto/mosquitto_2.0.18.bb | |||
| @@ -46,7 +46,7 @@ do_install:append() { | |||
| 46 | install -m 0644 ${S}/service/systemd/mosquitto.service.notify ${D}${systemd_unitdir}/system/mosquitto.service | 46 | install -m 0644 ${S}/service/systemd/mosquitto.service.notify ${D}${systemd_unitdir}/system/mosquitto.service |
| 47 | 47 | ||
| 48 | install -d ${D}${sysconfdir}/init.d/ | 48 | install -d ${D}${sysconfdir}/init.d/ |
| 49 | install -m 0755 ${WORKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto | 49 | install -m 0755 ${UNPACKDIR}/mosquitto.init ${D}${sysconfdir}/init.d/mosquitto |
| 50 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ | 50 | sed -i -e 's,@SBINDIR@,${sbindir},g' \ |
| 51 | -e 's,@BASE_SBINDIR@,${base_sbindir},g' \ | 51 | -e 's,@BASE_SBINDIR@,${base_sbindir},g' \ |
| 52 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ | 52 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ |
diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb index 3c9570d927..487ef08475 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.46.0.bb | |||
| @@ -301,7 +301,7 @@ RRECOMMENDS:${PN} += "\ | |||
| 301 | " | 301 | " |
| 302 | 302 | ||
| 303 | do_install:append() { | 303 | do_install:append() { |
| 304 | install -Dm 0755 ${WORKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/network-manager | 304 | install -Dm 0755 ${UNPACKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/network-manager |
| 305 | 305 | ||
| 306 | rm -rf ${D}/run ${D}${localstatedir}/run | 306 | rm -rf ${D}/run ${D}${localstatedir}/run |
| 307 | 307 | ||
| @@ -315,11 +315,11 @@ do_install:append() { | |||
| 315 | 315 | ||
| 316 | # Enable iwd if compiled | 316 | # Enable iwd if compiled |
| 317 | if ${@bb.utils.contains('PACKAGECONFIG','iwd','true','false',d)}; then | 317 | if ${@bb.utils.contains('PACKAGECONFIG','iwd','true','false',d)}; then |
| 318 | install -Dm 0644 ${WORKDIR}/enable-iwd.conf ${D}${nonarch_libdir}/NetworkManager/conf.d/enable-iwd.conf | 318 | install -Dm 0644 ${UNPACKDIR}/enable-iwd.conf ${D}${nonarch_libdir}/NetworkManager/conf.d/enable-iwd.conf |
| 319 | fi | 319 | fi |
| 320 | 320 | ||
| 321 | # Enable dhcpd if compiled | 321 | # Enable dhcpd if compiled |
| 322 | if ${@bb.utils.contains('PACKAGECONFIG','dhcpcd','true','false',d)}; then | 322 | if ${@bb.utils.contains('PACKAGECONFIG','dhcpcd','true','false',d)}; then |
| 323 | install -Dm 0644 ${WORKDIR}/enable-dhcpcd.conf ${D}${nonarch_libdir}/NetworkManager/conf.d/enable-dhcpcd.conf | 323 | install -Dm 0644 ${UNPACKDIR}/enable-dhcpcd.conf ${D}${nonarch_libdir}/NetworkManager/conf.d/enable-dhcpcd.conf |
| 324 | fi | 324 | fi |
| 325 | } | 325 | } |
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.19.6.bb b/meta-networking/recipes-connectivity/samba/samba_4.19.6.bb index bd0309934b..7bdcfd35c0 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.19.6.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.19.6.bb | |||
| @@ -173,8 +173,8 @@ do_install:append() { | |||
| 173 | 173 | ||
| 174 | install -d ${D}${sysconfdir}/samba | 174 | install -d ${D}${sysconfdir}/samba |
| 175 | echo "127.0.0.1 localhost" > ${D}${sysconfdir}/samba/lmhosts | 175 | echo "127.0.0.1 localhost" > ${D}${sysconfdir}/samba/lmhosts |
| 176 | install -m644 ${WORKDIR}/smb.conf ${D}${sysconfdir}/samba/smb.conf | 176 | install -m644 ${UNPACKDIR}/smb.conf ${D}${sysconfdir}/samba/smb.conf |
| 177 | install -D -m 644 ${WORKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/03_samba | 177 | install -D -m 644 ${UNPACKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/03_samba |
| 178 | 178 | ||
| 179 | install -d ${D}${sysconfdir}/default | 179 | install -d ${D}${sysconfdir}/default |
| 180 | install -m644 packaging/systemd/samba.sysconfig ${D}${sysconfdir}/default/samba | 180 | install -m644 packaging/systemd/samba.sysconfig ${D}${sysconfdir}/default/samba |
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 | } |
diff --git a/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb b/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb index 36d35e6dee..f6b58559d4 100644 --- a/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb +++ b/meta-networking/recipes-connectivity/tayga/tayga_0.9.2.bb | |||
| @@ -13,9 +13,9 @@ SYSTEMD_PACKAGES = "${PN}" | |||
| 13 | SYSTEMD_SERVICE:${PN} = "tayga.service" | 13 | SYSTEMD_SERVICE:${PN} = "tayga.service" |
| 14 | 14 | ||
| 15 | do_install:append() { | 15 | do_install:append() { |
| 16 | install -m 0644 ${WORKDIR}/tayga.conf ${D}${sysconfdir}/tayga.conf | 16 | install -m 0644 ${UNPACKDIR}/tayga.conf ${D}${sysconfdir}/tayga.conf |
| 17 | install -d ${D}${systemd_unitdir}/system/ | 17 | install -d ${D}${systemd_unitdir}/system/ |
| 18 | install -m 0644 ${WORKDIR}/tayga.service ${D}${systemd_unitdir}/system/ | 18 | install -m 0644 ${UNPACKDIR}/tayga.service ${D}${systemd_unitdir}/system/ |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | inherit autotools systemd | 21 | inherit autotools systemd |
diff --git a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb index fe9c038f5c..5876b58273 100644 --- a/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb +++ b/meta-networking/recipes-connectivity/vpnc/vpnc_0.5.3.bb | |||
| @@ -38,14 +38,14 @@ inherit perlnative pkgconfig | |||
| 38 | do_configure:append () { | 38 | do_configure:append () { |
| 39 | # Make sure we use our nativeperl wrapper | 39 | # Make sure we use our nativeperl wrapper |
| 40 | sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl | 40 | sed -i "1s:#!.*:#!/usr/bin/env nativeperl:" ${S}/*.pl |
| 41 | cp ${WORKDIR}/long-help ${S} | 41 | cp ${UNPACKDIR}/long-help ${S} |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | do_install () { | 44 | do_install () { |
| 45 | sed -i s:m600:m\ 600:g Makefile | 45 | sed -i s:m600:m\ 600:g Makefile |
| 46 | oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install | 46 | oe_runmake 'DESTDIR=${D}' 'PREFIX=/usr' install |
| 47 | rm -f ${D}${sysconfdir}/vpnc/vpnc.conf #This file is useless | 47 | rm -f ${D}${sysconfdir}/vpnc/vpnc.conf #This file is useless |
| 48 | install ${WORKDIR}/default.conf ${D}${sysconfdir}/vpnc/default.conf | 48 | install ${UNPACKDIR}/default.conf ${D}${sysconfdir}/vpnc/default.conf |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | SYSROOT_PREPROCESS_FUNCS += "vpnc_sysroot_preprocess" | 51 | SYSROOT_PREPROCESS_FUNCS += "vpnc_sysroot_preprocess" |
