summaryrefslogtreecommitdiff
path: root/sys-boot/palo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-boot/palo
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-boot/palo')
-rw-r--r--sys-boot/palo/Manifest10
-rw-r--r--sys-boot/palo/files/99palo3
-rw-r--r--sys-boot/palo/files/palo-1.96-toolchain.patch31
-rw-r--r--sys-boot/palo/files/palo-9999-toolchain.patch23
-rw-r--r--sys-boot/palo/files/palo.conf8
-rw-r--r--sys-boot/palo/metadata.xml11
-rw-r--r--sys-boot/palo/palo-1.99.ebuild42
-rw-r--r--sys-boot/palo/palo-9999.ebuild47
8 files changed, 175 insertions, 0 deletions
diff --git a/sys-boot/palo/Manifest b/sys-boot/palo/Manifest
new file mode 100644
index 000000000000..9c6e7529e263
--- /dev/null
+++ b/sys-boot/palo/Manifest
@@ -0,0 +1,10 @@
+AUX 99palo 19 SHA256 3f45c61bab5cab1db3721ef6591dbfd158cd8150557abceb78f4b7d4164c2c94 SHA512 1ca106eff8f34386b5fa6bd9f0bfb656567040a2d3bc18de8f6913c3b533369f7c267932904556517f599674226feec8a09df6965bc8f844cb7ca873f5f5d174 WHIRLPOOL 0317c64e1194373ff5b7c1a0fca7989615d7cb9c5f41103121820b980d2ba749140613a45eb294ea18a2e038c641fe03627f6d13c547bda52b6020b307500462
+AUX palo-1.96-toolchain.patch 742 SHA256 4a1365d6d66f59276b3f88eb43ee51ffb36a9315ae60984865ca216741aaaf27 SHA512 3b095d9cdd77fc9cc06731cccd2d7048bf18ba9e0348b74a0b77291dc543979c2107bc44a56b6820844c20cdb921bdebb8d4eb115246b2a1e6da073953cc1ce1 WHIRLPOOL 053e1d54e0acd82d03eb0ad866971a6dbcb0302c5812f98ab4242f45aa8c1f4400543d7509e523bc6bc1cb217c63e1681ff7a5b196f39e9498bf943817509f21
+AUX palo-9999-toolchain.patch 607 SHA256 db4fa4cb5f510331c329738af4e88f638ba0d5c617f0e23837dd856dbfaf5dee SHA512 8ef234d83d0c09c4a43f802990f5fa5638525d7ce05c89c6ae57871a076a840a09085ac05cce490d5c4ff94466fccc83650f39ab1d5ab94ea6b4f4825c77ab9d WHIRLPOOL 61d2f815d06c64bdb5c43d2a70d3535013bc93842539cbeda32f053b911fb9bcfdaa206f1bd9c7f2d4885cebc4690faa3047daccf988566caa007a1840c36496
+AUX palo.conf 260 SHA256 69d78cebaa80d793462670843a526497b1974668a4bf00a73433fa532627df43 SHA512 4147e480362161cd61ad9af8fb7048b87f9126c213661ab26f77ba98fe7f1acd03791b154667137e4a265e3c31e54e703d32daa86ff0805f47bc7c1b8b03cfe6 WHIRLPOOL 6152ff995d9aedce74dd0deada4731320e22095f8ab560e588d588f7cd57345a174cbcee3beaeb779748f71b69e285c93ba4b28fc321caf1fcc36a544a76e886
+DIST palo-1.99.tar.gz 123906 SHA256 6880524b44689d90d9faf9da111ea15f1da210d9d7325591085f39c6a7650483 SHA512 b859144a5b145aa47d44926b69172818f1fdd577958649d72a99be26dd68d4e2f366acfaec406c8d09ac751ffcdd380b70606e4f3f66e42328d387fcd9022b73 WHIRLPOOL e1768dda1f964044b80a870a37fbf872070a4d864bed10b0c29cc20d9e9d6bb3f030d623b55f766167e4af74af1c3809e63db5e7ecbac4f761f15fd250faedba
+EBUILD palo-1.99.ebuild 882 SHA256 2d4e065e50a434cb799bc17d53fd1ef47738dcbbd37219e4f53cd625963270ea SHA512 4c2e26fa3b2a43b2fa20e0236485053a772364662d6b9a3f92994d427cc3382b00e0505b1f538e155e13706d01984884fe8505e50601d32a423571d815c98698 WHIRLPOOL 7e406911dab0968037090c57c0cca1bc58924e872af42264f37a46a15b56b8a42425adc03f61a56ec9568fc08e724a8327e60bbf036d296479c64c1f66f6ff26
+EBUILD palo-9999.ebuild 968 SHA256 b53fe7fcb4fdd47812ca17b13114119905286b123b419e1dfe359dc8d739e314 SHA512 373154c2d8f19d8b64f5504190f97d8fce42fd49fef7503e5f5179ca3d7b9c7f5c7290ac09b46a79285a0983d6f5820008486aabf0bab1ae82195b8d30cab609 WHIRLPOOL 7adda896ab4ae78bfd5f50b09e4a67b13596b74bf140c16f9d4e050d133fc1ff9ece59bda9566c8fbcbf724d97f1a5995989449ddd65ddf7b41f6c242bf91890
+MISC ChangeLog 4015 SHA256 92f0807c55fd7049b34d70dba20a504056e705d1fc25ec79ccf382d8b476730f SHA512 f94fdbf53d5336f01d3b1a95432eeffbd9dcfdf0b9968d71b32e5a81b38d90ccbfd39156a823ec1e2dfbb2d2f1c52850314f1018cd1b7f23cd8e5d92743c0a04 WHIRLPOOL 84eb56939d5443f045c8eeb9ff41f472c236d2173538558460128d0941a9b904da5e3ce6f4ffe2d05a17276ec073f913db5727c89fa32ab7dd52666d973677dd
+MISC ChangeLog-2015 7958 SHA256 504b034f12b8c4c1fb006a3d4b529538e3dc10468c2ce312e0bb69b1f3c740ff SHA512 75511abb64454d5f539c0b4791753e2f69f7ce5264075c4400f0b1d468b4f7acc7336dbcd59e2208ac28e40a28d5309312568f812538d3762817090a5db618ae WHIRLPOOL b96d31c9802409e77078f827564b2f6b1ea1bff20d79d82a3858ac134e9879f296527547667b1404ae80db73cf6639c4b8f1c240cb33a8435efe336f271954f7
+MISC metadata.xml 318 SHA256 027a481bc6445d5dd066aee6e72ddd5791c464ef3da00d85d8ab21c9047742eb SHA512 7ff12a5eb42ac39840f8c9eb78b24aeecd9cbfe780d11eccd75fd6f02b11f4abafd514bc32f47f727047b069e446e9252914dcaf5c33d6f1054981a3c175fdef WHIRLPOOL 5e20ecd63018dab5814d27ad3b98bb762248734a3fb88914ca163afecb93e66183f6661cb225ff191bf1f2619585d108f2060a2bc6df505146e7a0e3a29ed2f1
diff --git a/sys-boot/palo/files/99palo b/sys-boot/palo/files/99palo
new file mode 100644
index 000000000000..8caea49f51ad
--- /dev/null
+++ b/sys-boot/palo/files/99palo
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+palo -v
diff --git a/sys-boot/palo/files/palo-1.96-toolchain.patch b/sys-boot/palo/files/palo-1.96-toolchain.patch
new file mode 100644
index 000000000000..5b9e792bf049
--- /dev/null
+++ b/sys-boot/palo/files/palo-1.96-toolchain.patch
@@ -0,0 +1,31 @@
+--- a/palo/Makefile
++++ b/palo/Makefile
+@@ -10,9 +10,9 @@
+ OS := $(shell uname -s)
+ CC?=cc
+ ifeq ($(strip ${OS}),HP-UX)
+-CFLAGS=-g -O -I../include -I../lib -I$(PA)/include
++CFLAGS=-O -I../include -I../lib -I$(PA)/include
+ else
+-CFLAGS=-g -O -I../include -I../lib -D_FILE_OFFSET_BITS=64
++CFLAGS=-O -I../include -I../lib -D_FILE_OFFSET_BITS=64
+ endif
+
+ ifneq ("$(wildcard /etc/debian_version)","")
+@@ -22,7 +22,6 @@
+ endif
+
+ # LDFLAGS=-Wl,-Bstatic
+-LDFLAGS=
+
+ OFILES2=mkbootable.o elf64.o load.o paloio.o elf32.o error.o gzip.o
+
+@@ -38,7 +37,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/files/palo-9999-toolchain.patch b/sys-boot/palo/files/palo-9999-toolchain.patch
new file mode 100644
index 000000000000..12b9c5e73b6e
--- /dev/null
+++ b/sys-boot/palo/files/palo-9999-toolchain.patch
@@ -0,0 +1,23 @@
+--- a/palo/Makefile
++++ b/palo/Makefile
+@@ -10,9 +10,9 @@
+ OS := $(shell uname -s)
+ CC?=cc
+ ifeq ($(strip ${OS}),HP-UX)
+-CFLAGS=-g -O -I../include -I../lib -I$(PA)/include
++CFLAGS=-O -I../include -I../lib -I$(PA)/include
+ else
+-CFLAGS=-g -O -I../include -I../lib -D_FILE_OFFSET_BITS=64
++CFLAGS=-O -I../include -I../lib -D_FILE_OFFSET_BITS=64
+ endif
+
+ ifneq ("$(wildcard /etc/debian_version)","")
+@@ -38,7 +38,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/files/palo.conf b/sys-boot/palo/files/palo.conf
new file mode 100644
index 000000000000..8880b50b5f1f
--- /dev/null
+++ b/sys-boot/palo/files/palo.conf
@@ -0,0 +1,8 @@
+# Please read the palo --help output for more info
+# Non-commented lines are treated as command line arguments
+
+--commandline=2/vmlinux root=/dev/sda4
+--init-partitioned=/dev/sda
+
+#Uncomment this if you want a rescue kernel
+#--recoverykernel=/boot/vmlinux.old
diff --git a/sys-boot/palo/metadata.xml b/sys-boot/palo/metadata.xml
new file mode 100644
index 000000000000..f6edb0bcf440
--- /dev/null
+++ b/sys-boot/palo/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>hppa@gentoo.org</email>
+ <name>Gentoo Linux HPPA Development</name>
+</maintainer>
+<longdescription>
+The PArisc Linux Loader
+</longdescription>
+</pkgmetadata>
diff --git a/sys-boot/palo/palo-1.99.ebuild b/sys-boot/palo/palo-1.99.ebuild
new file mode 100644
index 000000000000..ad697b0c5b8e
--- /dev/null
+++ b/sys-boot/palo/palo-1.99.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="PALO : PArisc Linux Loader"
+HOMEPAGE="http://parisc-linux.org/ https://parisc.wiki.kernel.org/"
+SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/deller/${PN}.git/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* hppa"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.96-toolchain.patch
+)
+
+src_compile() {
+ local target
+ for target in '-C palo' '-C ipl' 'iplboot'; do
+ emake AR=$(tc-getAR) CC=$(tc-getCC) LD=$(tc-getLD) ${target}
+ done
+}
+
+src_install() {
+ into /
+ dosbin palo/palo
+
+ doman palo.8
+ dodoc TODO debian/changelog README.html
+
+ insinto /etc
+ doins "${FILESDIR}"/palo.conf
+
+ insinto /usr/share/palo
+ doins iplboot
+
+ insinto /etc/kernel/postinst.d/
+ insopts -m 0744
+ doins "${FILESDIR}"/99palo
+}
diff --git a/sys-boot/palo/palo-9999.ebuild b/sys-boot/palo/palo-9999.ebuild
new file mode 100644
index 000000000000..2d47d63af700
--- /dev/null
+++ b/sys-boot/palo/palo-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils flag-o-matic git-r3 toolchain-funcs
+
+DESCRIPTION="PALO : PArisc Linux Loader"
+HOMEPAGE="http://parisc-linux.org/ https://parisc.wiki.kernel.org/"
+EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/deller/palo.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-9999-toolchain.patch
+)
+
+src_prepare() {
+ default
+ sed -i lib/common.h -e '/^#define PALOVERSION/{s|".*"|"'${PV}'"|g}' || die
+}
+
+src_compile() {
+ local target
+ for target in '-C palo' '-C ipl' 'iplboot'; do
+ emake AR=$(tc-getAR) CC=$(tc-getCC) LD=$(tc-getLD) ${target}
+ done
+}
+
+src_install() {
+ into /
+ dosbin palo/palo
+
+ doman palo.8
+ dodoc TODO debian/changelog README.html
+
+ insinto /etc
+ doins "${FILESDIR}"/palo.conf
+
+ insinto /usr/share/palo
+ doins iplboot
+
+ insinto /etc/kernel/postinst.d/
+ insopts -m 0744
+ doins "${FILESDIR}"/99palo
+}