blob: 17cc5e7e7da039e83cc5651652761b5db00c5ba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/sparc-utils/sparc-utils-1.9-r1.ebuild,v 1.10 2004/08/08 00:38:51 slarti Exp $
inherit eutils
S=${WORKDIR}/${P}.orig
DESCRIPTION="Various sparc utilities from Debian GNU/Linux"
HOMEPAGE="http://www.debian.org/"
SRC_URI=" http://http.us.debian.org/debian/pool/main/s/${PN}/${PN}_${PV}.orig.tar.gz
mirror://gentoo/${PN}_${PV}-2.diff.bz2"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="-* sparc"
IUSE=""
DEPEND="virtual/os-headers"
RDEPEND="virtual/libc"
src_unpack() {
unpack ${A}
epatch ${WORKDIR}/${PN}_${PV}-2.diff
}
src_compile() {
CFLAGS="-O3"
emake -C elftoaout-2.3 CFLAGS="$CFLAGS" || die
emake -C src piggyback piggyback64 CFLAGS="$CFLAGS" || die
emake -C prtconf-1.3 all || die
# TODO: Fix compile issue
# Not compiling at this time, commented out
#emake -C sparc32-1.1
emake -C audioctl-1.3 || die
}
src_install() {
dodir /usr/bin /usr/sbin /etc/init.d /etc/default
install -s elftoaout-2.3/elftoaout ${D}/usr/bin
install -s src/piggyback src/piggyback64 ${D}/usr/bin
#install -s sparc32-1.1/sparc32 ${D}/usr/bin
install -s prtconf-1.3/prtconf ${D}/usr/sbin/prtconf
install -s prtconf-1.3/eeprom ${D}/usr/sbin/eeprom
#ln -sf sparc32 ${D}/usr/bin/
install -s audioctl-1.3/audioctl ${D}/usr/bin
# install /etc/init.d script & /etc/default scripts
install -d -m 755 ${D}/etc ${D}/etc/init.d ${D}/etc/default
#install -m 755 debian/audioctl ${D}/etc/init.d
install -m 755 debian/audioctl.def ${D}/etc/default/audioctl
doman audioctl-1.3/audioctl.1
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() {
# Todo: Somehow set this automatically
ewarn "Make sure /dev/openprom exists. If you're not using devfs and"
ewarn "/dev/openprom does not exist, run"
ewarn ""
ewarn "\tcd /dev ; mknod openprom c 10 139"
}
|