sys-apps/openrc: copy /libxx/rc to /lib/rc for non-linux systems
authorWilliam Hubbs <williamh@gentoo.org>
Tue, 27 Feb 2018 18:45:51 +0000 (12:45 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Tue, 27 Feb 2018 18:45:51 +0000 (12:45 -0600)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-apps/openrc/openrc-9999.ebuild

index 50d119646c70fe2c71f0ec01a60b09d1933989ee..e261b2d39bdf72cb17f020d57c6392163380978c 100644 (file)
@@ -300,6 +300,10 @@ pkg_postinst() {
                if [[ -d "${EROOT}$(get_libdir)"/rc ]]; then
                        cp -RPp "${EROOT}$(get_libdir)/rc" "${EROOT}"lib
                fi
+       elif ! use kernel_linux; then
+               if [[ -d "${EROOT}$(get_libdir)"/rc ]]; then
+                       cp -RPp "${EROOT}$(get_libdir)/rc" "${EROOT}"lib
+               fi
        fi
 
        # update the dependency tree after touching all files #224171