diff options
-rw-r--r-- | meta/recipes-extended/pigz/pigz.inc | 17 | ||||
-rw-r--r-- | meta/recipes-extended/pigz/pigz_2.2.4.bb | 2 |
2 files changed, 15 insertions, 4 deletions
diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc index 5fda8cabfb..e1cbc8be80 100644 --- a/meta/recipes-extended/pigz/pigz.inc +++ b/meta/recipes-extended/pigz/pigz.inc | |||
@@ -15,7 +15,18 @@ PROVIDES_virtclass-native += "gzip-native" | |||
15 | DEPENDS = "zlib" | 15 | DEPENDS = "zlib" |
16 | 16 | ||
17 | do_install () { | 17 | do_install () { |
18 | install -d ${D}${bindir} | 18 | if [ "${PN}" = "${BPN}" ] ; then |
19 | install ${B}/pigz ${D}${bindir}/gzip | 19 | # Install files into /bin (FHS), which is typical place for gzip |
20 | install ${B}/unpigz ${D}${bindir}/gunzip | 20 | install -d ${D}${base_bindir} |
21 | install ${B}/pigz ${D}${base_bindir}/gzip | ||
22 | install ${B}/unpigz ${D}${base_bindir}/gunzip | ||
23 | else | ||
24 | install -d ${D}${bindir} | ||
25 | install ${B}/pigz ${D}${bindir}/gzip | ||
26 | install ${B}/unpigz ${D}${bindir}/gunzip | ||
27 | fi | ||
21 | } | 28 | } |
29 | |||
30 | ALTERNATIVE_LINKS = "${base_bindir}/gzip ${base_bindir}/gunzip" | ||
31 | ALTERNATIVE_PRIORITY = "80" | ||
32 | |||
diff --git a/meta/recipes-extended/pigz/pigz_2.2.4.bb b/meta/recipes-extended/pigz/pigz_2.2.4.bb index eaf00c6705..e76c49c475 100644 --- a/meta/recipes-extended/pigz/pigz_2.2.4.bb +++ b/meta/recipes-extended/pigz/pigz_2.2.4.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require pigz.inc | 1 | require pigz.inc |
2 | 2 | ||
3 | PR = "r1" | 3 | PR = "r2" |
4 | 4 | ||
5 | NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" | 5 | NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" |
6 | 6 | ||