From 59fb84519a2b28915a11332d51d41c14d525c8d8 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Sat, 29 Jun 2013 13:30:53 +0000 Subject: Add live ebuild. (Portage version: 2.2.0_alpha185/cvs/Linux x86_64, signed Manifest commit with key A792A613) --- sys-boot/palo/ChangeLog | 9 +++-- sys-boot/palo/files/palo-9999-open.patch | 11 ++++++ sys-boot/palo/files/palo-9999-toolchain.patch | 20 +++++++++++ sys-boot/palo/palo-9999.ebuild | 50 +++++++++++++++++++++++++++ 4 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 sys-boot/palo/files/palo-9999-open.patch create mode 100644 sys-boot/palo/files/palo-9999-toolchain.patch create mode 100644 sys-boot/palo/palo-9999.ebuild (limited to 'sys-boot') diff --git a/sys-boot/palo/ChangeLog b/sys-boot/palo/ChangeLog index 38dbfdfbb20e..62051983e5d0 100644 --- a/sys-boot/palo/ChangeLog +++ b/sys-boot/palo/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-boot/palo # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-boot/palo/ChangeLog,v 1.34 2013/01/30 21:00:40 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-boot/palo/ChangeLog,v 1.35 2013/06/29 13:30:53 jer Exp $ + +*palo-9999 (29 Jun 2013) + + 29 Jun 2013; Jeroen Roovers +files/palo-9999-open.patch, + +files/palo-9999-toolchain.patch, +palo-9999.ebuild: + Add live ebuild. 30 Jan 2013; Jeroen Roovers files/palo.conf: Make default root partition match Handbook. @@ -166,4 +172,3 @@ 05 Feb 2003; Guy Martin palo-1.2_pre20030115.ebuild : Initial import. - diff --git a/sys-boot/palo/files/palo-9999-open.patch b/sys-boot/palo/files/palo-9999-open.patch new file mode 100644 index 000000000000..26449e0d01aa --- /dev/null +++ b/sys-boot/palo/files/palo-9999-open.patch @@ -0,0 +1,11 @@ +--- a/palo/palo.c ++++ b/palo/palo.c +@@ -479,7 +479,7 @@ + error(14, "bootloader"); + + sprintf(badblockfilename, "/tmp/paloblk-%d", getpid()); +- if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC)) < 0) { ++ if ((fd = open(badblockfilename, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR)) < 0) { + perror(badblockfilename); + exit(1); + } diff --git a/sys-boot/palo/files/palo-9999-toolchain.patch b/sys-boot/palo/files/palo-9999-toolchain.patch new file mode 100644 index 000000000000..4a747aada599 --- /dev/null +++ b/sys-boot/palo/files/palo-9999-toolchain.patch @@ -0,0 +1,20 @@ +--- a/palo/Makefile ++++ b/palo/Makefile +@@ -14,7 +14,7 @@ + ifeq ($(strip ${OS}),HP-UX) + CFLAGS=-g -O -I../include -I../lib -I$(PA)/include + else +-CFLAGS=-g -O -I../include -I../lib ++CFLAGS += -O -I../include -I../lib + endif + + # LDFLAGS=-Wl,-Bstatic +@@ -34,7 +34,7 @@ + $(CC) $(CFLAGS) $(LDFLAGS) -o palo palo.a build.o + + palo.a: $(OFILES) +- ar rv palo.a $? ++ $(AR) rv palo.a $? + + mkbootable: $(OFILES2) + $(CC) $(CFLAGS) $(LDFLAGS) -o mkbootable $(OFILES2) diff --git a/sys-boot/palo/palo-9999.ebuild b/sys-boot/palo/palo-9999.ebuild new file mode 100644 index 000000000000..04aa70b42175 --- /dev/null +++ b/sys-boot/palo/palo-9999.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-boot/palo/palo-9999.ebuild,v 1.1 2013/06/29 13:30:53 jer Exp $ + +EAPI=5 + +inherit eutils flag-o-matic git-2 toolchain-funcs + +DESCRIPTION="PALO : PArisc Linux Loader" +HOMEPAGE="http://parisc-linux.org/" +EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/deller/palo.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-remove-HOME-TERM.patch \ + "${FILESDIR}"/${PN}-1.18-include.patch \ + "${FILESDIR}"/${PN}-9999-open.patch \ + "${FILESDIR}"/${PN}-9999-toolchain.patch + sed -i lib/common.h -e '/^#define PALOVERSION/{s|".*"|"'${PV}'"|g}' || die + sed -i palo/Makefile -e '/^LDFLAGS=/d' || die +} + +src_compile() { + emake MACHINE=parisc AR=$(tc-getAR) CC=$(tc-getCC) LD=$(tc-getLD) \ + makepalo makeipl || die + emake MACHINE=parisc CC=$(tc-getCC) iplboot || die +} + +src_install() { + into / + dosbin palo/palo + + doman palo.8 + dohtml README.html + dodoc README palo.conf + + insinto /etc + doins "${FILESDIR}"/palo.conf + + insinto /usr/share/palo + doins iplboot + + insinto /etc/kernel/postinst.d/ + INSOPTIONS="-m 0744" doins "${FILESDIR}"/99palo +} -- cgit v1.2.3-65-gdbad