summaryrefslogtreecommitdiff
path: root/sys-apps/sparc-utils
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-apps/sparc-utils
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-apps/sparc-utils')
-rw-r--r--sys-apps/sparc-utils/Manifest7
-rw-r--r--sys-apps/sparc-utils/files/audioctl.init22
-rw-r--r--sys-apps/sparc-utils/metadata.xml12
-rw-r--r--sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild75
4 files changed, 116 insertions, 0 deletions
diff --git a/sys-apps/sparc-utils/Manifest b/sys-apps/sparc-utils/Manifest
new file mode 100644
index 000000000000..184648e7f049
--- /dev/null
+++ b/sys-apps/sparc-utils/Manifest
@@ -0,0 +1,7 @@
+AUX audioctl.init 455 SHA256 30339ccd0fcdcaa4e00c7e1484eeeae4a4dea442a3bc753c0ebcfdcae90ca307 SHA512 6ae87679c9e51876551babfaa35126a7ae94c15edc21c630154130652a1f9f754c489c5406c9c3166157a45495d05668bb06bce79ab34053a0b74c34b19c16a5 WHIRLPOOL ab15970ff77858f9b4ef43613ccfe25edfe2804478393d92752df7f8cf1c4c749956786ea56d8b7e37f3dc4b42e92b186f411e0202d244b1314fe9189d4f5d00
+DIST sparc-utils_1.9-3.diff.gz 10337 SHA256 f4ffae1a89fc816689da1ad2b50e776bbc079cf2212a0e539949e8a04c5ed983 SHA512 c6eba75261ffee55cc49e3da71ad3a2f12e04574158975c69db0bbd94d7c22ca4dec50f3140cf0bf9f35bb547865deca3cfd3e28e76c70b9173926bc0b8f34ee WHIRLPOOL 7e88535cfe5fc3a34280fda15ae3164014f600ca76b195687c69dc986b28e0f53c9abdcfa04f1f5da971eea235de873aaf485195f9a166e40ef264152e9230cd
+DIST sparc-utils_1.9.orig.tar.gz 110080 SHA256 b652bc27f95dcf10a7626b1d2943a1084e1e0b7f9bd3a97f9a46b6688370fe4b SHA512 bde05f1a98211aaf502be6dfd757ddfb21c136cedbb46ca84a4539706c71901815c9d8bedfebc3800c7340634b32276197c75f92f9cc829e4f50c37d203e9358 WHIRLPOOL 6860f34f7a5bf3fc679565ebf0e9bc2bc9816b2af4f21c86553bfe19b9ccc846487ad23ce3e936e4c8d59adb27fd1a946c69456faa43f132cd1953e2bd44fe81
+EBUILD sparc-utils-1.9-r4.ebuild 2304 SHA256 a12b7403159293b8807238d57d7ffdbbde205f761ae1f86ea41b07e861101beb SHA512 8d72473fb064d0a2c2fc5e4334d23f2af904fa9d7ff4c406193d9dd2f45c4728ed696bc842c6a558958623a5bf89109b37ce25ad7d071d16036ce17807390166 WHIRLPOOL be1433496c0deba259ce0baf67cb35cc35583496cc7351a2d6f703979786a3124a274e05158bbfa105b198a1429333c9e3dd57226a94e15efca4d9d0c9553086
+MISC ChangeLog 2593 SHA256 88e6b442d275fee2697027447785c9e0119a29a2297591b15b880d136f2b5f6e SHA512 4c003a732ba5a9192c576ab4bf52475207a25b47e1e6635d8288e294a2a46e1b8a4f7f249113a56054b3e6f6ee8f1d54a7b8813d621278fac44638309b728687 WHIRLPOOL bbf162e8b51873a5c585309fe39fecdd9a2265ab30e8f097fae7136ce91986a2acc05e61d96912dd62791f42d9e5989d844f40f143d0b88194eddb866d6af8be
+MISC ChangeLog-2015 3755 SHA256 218323fe5933a5459fcfc95723752349ab7a469f5240949dd849a57fcf2719fd SHA512 b7a2f49948267d98b791d94fb0900ec115c010b6bed7faacb2a37ab65702cf75f64eb035d28626640ce3b2f233846c6129885e4b44dbf61ae611776c3c0c0ff3 WHIRLPOOL 632b30859877180a1437818884bad7a68c59c1e2d156cfaaeeb1bbde834cbef0050193f54199d0aaf37743cfd7dc34e95d1c62a4baa75c9bd172bbea026894c2
+MISC metadata.xml 416 SHA256 0d2c917d48ead3facf0ebc6f2b5aba96cb5bd4310571e2092c2e8c04477b1cb5 SHA512 c057eea9ea65b87cb366e802dd8962901024335a85b3ec53caa6c342c9e1a23e656dcadc2a70692e5e7ab55a0ac82637ef052699844f50061461a645613b688d WHIRLPOOL 45099c429a77e86b1e0a00ed4007eba6334357b585a34d17dea2ff297588c1661912eb1b677bb43c6a4bd4c25d0685d416acdf92ef59a5e92f3f643017b5e176
diff --git a/sys-apps/sparc-utils/files/audioctl.init b/sys-apps/sparc-utils/files/audioctl.init
new file mode 100644
index 000000000000..10383d56ae8a
--- /dev/null
+++ b/sys-apps/sparc-utils/files/audioctl.init
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+checkconfig() {
+ if [ -z "${PARAMS}" ]
+ then
+ eerror "Please make sure that /etc/conf.d/audioctl has \$PARAMS set"
+ return 1
+ fi
+}
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting audioctl"
+ if [ -n "${DEVICE}" ]; then
+ /usr/bin/audioctl -f ${DEVICE} -nw ${PARAMS}
+ else
+ /usr/bin/audioctl -nw ${PARAMS}
+ fi
+ eend $?
+}
diff --git a/sys-apps/sparc-utils/metadata.xml b/sys-apps/sparc-utils/metadata.xml
new file mode 100644
index 000000000000..7847744ddeea
--- /dev/null
+++ b/sys-apps/sparc-utils/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sparc@gentoo.org</email>
+ <name>Sparc Team</name>
+</maintainer>
+<longdescription>
+sparc-utils is a set of utilities from Debian GNU/Linux that includes;
+audioctl, elftoaout, piggyback, piggyback64, prtconf, and eeprom.
+</longdescription>
+</pkgmetadata>
diff --git a/sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild b/sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild
new file mode 100644
index 000000000000..f19f07a176b4
--- /dev/null
+++ b/sys-apps/sparc-utils/sparc-utils-1.9-r4.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Various sparc utilities from Debian GNU/Linux"
+HOMEPAGE="http://packages.debian.org/sparc-utils"
+SRC_URI="mirror://debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz
+ mirror://debian/pool/main/s/${PN}/${PN}_${PV}-3.diff.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="-* sparc"
+IUSE=""
+
+DEPEND="virtual/os-headers"
+RDEPEND="|| ( >=sys-apps/util-linux-2.13-r1 sys-apps/setarch )"
+
+S=${WORKDIR}/${P}.orig
+
+# NOTE: If a system has >=sys-kernel/linux-headers-2.6.0, don't build audioctl
+# as the SPARC sound drivers have been replaced by their ALSA equivalents
+
+pkg_setup() {
+ has_version '>=sys-kernel/linux-headers-2.6.0' && \
+ einfo "Linux 2.6 kernel headers detected, not building audioctl"
+}
+
+src_unpack() {
+ unpack ${A}
+ epatch "${WORKDIR}/${PN}_${PV}-3.diff"
+ sed -i -e 's:#include <linux/elf.h>:#include <elf.h>:' \
+ ${S}/elftoaout*/elftoaout.c
+}
+
+src_compile() {
+ emake -C elftoaout-2.3 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
+ emake -C src piggyback piggyback64 CC="$(tc-getCC)" CFLAGS="${CFLAGS}" || die
+ emake -C prtconf-1.3 CC="$(tc-getCC)" all || die
+ has_version '>=sys-kernel/linux-headers-2.6.0' || \
+ emake -C audioctl-1.3 CC="$(tc-getCC)" || die
+}
+
+src_install() {
+ # since the debian/piggyback64.1 manpage is a pointer to the
+ # debian/piggyback.1 manpage, copy debian/piggyback.1 to
+ # debian/piggyback64.1
+
+ cp ${S}/debian/piggyback.1 ${S}/debian/piggyback64.1
+
+ dobin elftoaout-2.3/elftoaout || die
+ dobin src/piggyback || die
+ dobin src/piggyback64 || die
+ dosbin prtconf-1.3/prtconf || die
+ dosbin prtconf-1.3/eeprom || die
+
+ if ! has_version '>=sys-kernel/linux-headers-2.6.0'; then
+ dobin audioctl-1.3/audioctl || die
+ newinitd "${FILESDIR}"/audioctl.init audioctl || die
+ newconfd debian/audioctl.def audioctl || die
+ doman audioctl-1.3/audioctl.1
+ fi
+
+ doman elftoaout-2.3/elftoaout.1
+ doman prtconf-1.3/prtconf.8
+ doman prtconf-1.3/eeprom.8
+ doman debian/piggyback.1
+ doman debian/piggyback64.1
+}
+
+pkg_postinst() {
+ ewarn "In order to have /usr/sbin/eeprom, make sure you build /dev/openprom"
+ ewarn "device support (CONFIG_SUN_OPENPROMIO) into the kernel, or as a"
+ ewarn "module (and that the module is loaded)."
+}