summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/pigz/pigz.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/pigz/pigz.inc')
-rw-r--r--meta/recipes-extended/pigz/pigz.inc17
1 files changed, 14 insertions, 3 deletions
diff --git a/meta/recipes-extended/pigz/pigz.inc b/meta/recipes-extended/pigz/pigz.inc
index 5fda8ca..e1cbc8b 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