summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/pigz/pigz.inc17
-rw-r--r--meta/recipes-extended/pigz/pigz_2.2.4.bb2
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"
15DEPENDS = "zlib" 15DEPENDS = "zlib"
16 16
17do_install () { 17do_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
30ALTERNATIVE_LINKS = "${base_bindir}/gzip ${base_bindir}/gunzip"
31ALTERNATIVE_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 @@
1require pigz.inc 1require pigz.inc
2 2
3PR = "r1" 3PR = "r2"
4 4
5NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}" 5NATIVE_PACKAGE_PATH_SUFFIX = "/${PN}"
6 6