From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 13119139337 for ; Sun, 1 Aug 2021 19:10:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54A2FE0A5D; Sun, 1 Aug 2021 19:10:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0CE99E0A5D for ; Sun, 1 Aug 2021 19:10:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B2843343577 for ; Sun, 1 Aug 2021 19:10:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D86017A7 for ; Sun, 1 Aug 2021 19:10:30 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1627845004.10cb7a2970d65a2d1dbaefb5eb1f53b116bd6c2d.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/aboot/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-boot/aboot/aboot-9999.ebuild X-VCS-Directories: sys-boot/aboot/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 10cb7a2970d65a2d1dbaefb5eb1f53b116bd6c2d X-VCS-Branch: master Date: Sun, 1 Aug 2021 19:10:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 20fc71db-91a8-4e3a-9740-b56da178af72 X-Archives-Hash: 6685ffe2f76bb5bf747882a6a2c75437 commit: 10cb7a2970d65a2d1dbaefb5eb1f53b116bd6c2d Author: Matt Turner gentoo org> AuthorDate: Sun Aug 1 19:08:23 2021 +0000 Commit: Matt Turner gentoo org> CommitDate: Sun Aug 1 19:10:04 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10cb7a29 sys-boot/aboot: Add git ebuild Signed-off-by: Matt Turner gentoo.org> sys-boot/aboot/aboot-9999.ebuild | 67 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/sys-boot/aboot/aboot-9999.ebuild b/sys-boot/aboot/aboot-9999.ebuild new file mode 100644 index 00000000000..d3e6321ec03 --- /dev/null +++ b/sys-boot/aboot/aboot-9999.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="https://github.com/mattst88/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/anholt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="-* ~alpha" +fi + +DESCRIPTION="Alpha Linux boot loader for SRM" +HOMEPAGE="https://github.com/mattst88/aboot https://sourceforge.net/projects/aboot/" + +LICENSE="GPL-2" +SLOT="0" + +BDEPEND="app-text/docbook-sgml-utils" + +src_compile() { + emake AR=$(tc-getAR) CC=$(tc-getCC) LD=$(tc-getLD) \ + all netabootwrap + + einfo "Building man pages" + emake -C doc/man +} + +src_install() { + dodir /boot /sbin /usr/share/man/man{1,5,8} + emake root="${D}" install + + insinto /boot + doins net_aboot.nh + dobin netabootwrap + dodoc ChangeLog INSTALL README TODO aboot.conf + + insinto /etc + newins "${FILESDIR}"/aboot.conf aboot.conf.example + +} + +pkg_postinst() { + einfo "To make aboot install a new bootloader on your harddisk follow" + einfo "these steps:" + einfo "" + einfo " - edit the file /etc/aboot.conf" + einfo " - cd /boot" + einfo " - swriteboot -c2 /dev/sda bootlx" + einfo " This will install a new bootsector on /dev/sda and aboot will" + einfo " use the second partition on this device to lookup kernel and " + einfo " initrd (as described in the aboot.conf file)" + einfo "" + einfo "IMPORTANT :" + einfo "" + einfo "The partition table of your boot device has to contain " + einfo "a BSD-DISKLABEL and the first 12 megabytes of your boot device" + einfo "must not be part of a partition as aboot will write its bootloader" + einfo "in there and not as with most x86 bootloaders into the " + einfo "master boot sector. If your partition table does not reflect this" + einfo "you are going to destroy your installation !" + einfo "Also note that aboot currently only supports ext2/3 partitions" + einfo "to boot from." +}