diff options
author | Michael Lauer <mickey@vanille-media.de> | 2006-07-05 10:51:01 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-07-05 10:51:01 +0000 |
commit | 5660614357fa8c812eda72a06a56326eba4f3d06 (patch) | |
tree | 80c31ca550b1674e5bd07cc35a45ccf97c49ff5d | |
parent | 2953a91f058967ca45ec92084b12a6b80b54ea01 (diff) | |
parent | 75cd21007007d865c72b65e958d641ef95ffe996 (diff) |
merge of be8473f770fde97a98916a81842a608af462fbbb
and bfd44a04ed00cc5b4a427438233fdc3637e8f9b0
-rw-r--r-- | packages/altboot/altboot_1.0.7.bb | 41 |
1 files changed, 21 insertions, 20 deletions
diff --git a/packages/altboot/altboot_1.0.7.bb b/packages/altboot/altboot_1.0.7.bb index ee0fb7c1df..245cf2a426 100644 --- a/packages/altboot/altboot_1.0.7.bb +++ b/packages/altboot/altboot_1.0.7.bb @@ -13,18 +13,25 @@ LICENSE = "GPL" ###################################################################################### -RRECOMMENDS = "e2fsprogs-e2fsck dosfstools" -RRECOMMENDS_append_akita = " kexec-tools" -RRECOMMENDS_append_spitz = " kexec-tools" -RRECOMMENDS_append_c7x0 = " kexec-tools" +RRECOMMENDS_${PN} = "e2fsprogs-e2fsck dosfstools" +RRECOMMENDS_${PN}_append_akita = " kexec-tools" +RRECOMMENDS_${PN}_append_spitz = " kexec-tools" +RRECOMMENDS_${PN}_append_c7x0 = " kexec-tools" + +RDEPENDS_${PN} = "${PN}-conf" +RDEPENDS_${PN}-conf = "${PN}" ###################################################################################### -PR = "r1" +PR = "r0" ###################################################################################### -PACKAGE_ARCH = "${MACHINE}" +PACKAGES = "${PN}-conf ${PN}-doc ${PN}" + +PACKAGE_ARCH_${PN} = all +PACKAGE_ARCH_${PN}-doc = all +PACKAGE_ARCH_${PN}-conf = "${MACHINE}" TAG = "${@'v' + bb.data.getVar('PV',d,1).replace('.', '-')}" @@ -34,6 +41,10 @@ S = "${WORKDIR}/altboot/" ###################################################################################### +FILES_${PN}-conf = "/etc/altboot*.cfg" + +###################################################################################### + do_install() { install -d ${D}/sbin install -d ${D}/etc/altboot-menu @@ -53,19 +64,9 @@ do_install() { install -m 0644 ${WORKDIR}/altboot/altboot.func ${D}/etc install -m 0755 ${WORKDIR}/altboot/init.altboot ${D}/sbin - if test -d ${WORKDIR}/altboot/${MACHINE}/altboot-menu/ - then - install -m 0755 ${WORKDIR}/altboot/${MACHINE}/altboot-menu/*-* ${D}/etc/altboot-menu - else - install -m 0755 ${WORKDIR}/altboot/altboot-menu/*-* ${D}/etc/altboot-menu - fi + install -m 0755 ${WORKDIR}/altboot/altboot-menu/*-* ${D}/etc/altboot-menu - if test -d ${WORKDIR}/altboot/${MACHINE}/altboot-menu/Advanced/ - then - install -m 0755 ${WORKDIR}/altboot/${MACHINE}/altboot-menu/Advanced/*-* ${D}/etc/altboot-menu/Advanced - else - install -m 0755 ${WORKDIR}/altboot/altboot-menu/Advanced/*-* ${D}/etc/altboot-menu/Advanced - fi + install -m 0755 ${WORKDIR}/altboot/altboot-menu/Advanced/*-* ${D}/etc/altboot-menu/Advanced install -m 0755 ${WORKDIR}/altboot/altboot.rc/*.sh ${D}/etc/altboot.rc install -m 0644 ${WORKDIR}/altboot/altboot.rc/*.txt ${D}/etc/altboot.rc @@ -80,13 +81,13 @@ do_configure() { ###################################################################################### -pkg_postinst() { +pkg_postinst_${PN}() { update-alternatives --install /sbin/init init /sbin/init.altboot 55 } ###################################################################################### -pkg_postrm() { +pkg_postrm_${PN}() { update-alternatives --remove init /sbin/init.altboot } |