diff options
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg.inc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index 416fb549f7..1076472779 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc | |||
@@ -68,6 +68,10 @@ do_install_append() { | |||
68 | -e 's,@SYSTEMD_UNITDIR@,${systemd_unitdir},g' \ | 68 | -e 's,@SYSTEMD_UNITDIR@,${systemd_unitdir},g' \ |
69 | ${D}${systemd_unitdir}/system/opkg-configure.service | 69 | ${D}${systemd_unitdir}/system/opkg-configure.service |
70 | fi | 70 | fi |
71 | |||
72 | # The installed binary is 'opkg-cl' but people and scripts often expect | ||
73 | # it to just be 'opkg' | ||
74 | ln -sf opkg-cl ${D}${bindir}/opkg | ||
71 | } | 75 | } |
72 | 76 | ||
73 | do_install_append_class-native() { | 77 | do_install_append_class-native() { |
@@ -96,13 +100,6 @@ rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts | |||
96 | fi | 100 | fi |
97 | } | 101 | } |
98 | 102 | ||
99 | inherit update-alternatives | ||
100 | |||
101 | ALTERNATIVE_PRIORITY = "100" | ||
102 | ALTERNATIVE_${PN} = "opkg" | ||
103 | ALTERNATIVE_LINK_NAME[opkg] = "${bindir}/opkg" | ||
104 | ALTERNATIVE_TARGET[opkg] = "${bindir}/opkg-cl" | ||
105 | |||
106 | BBCLASSEXTEND = "native nativesdk" | 103 | BBCLASSEXTEND = "native nativesdk" |
107 | 104 | ||
108 | # Define a variable to allow distros to run configure earlier. | 105 | # Define a variable to allow distros to run configure earlier. |