initial ebuild

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@323 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one 2007-12-31 16:30:09 +00:00
parent 1aa74cb3b2
commit d3a4651970
10 changed files with 337 additions and 0 deletions

View File

@ -0,0 +1,40 @@
AUX 0.4.2a/80_docs_encoding.dpatch 1455 RMD160 cad7479a4f50218e8625682cc236d0833e311e06 SHA1 3975dbd7a02660f635ef9ac2903dc0925890fa12 SHA256 7274ec7c5b525142b334148e49b19731452ebd49a11aaca8bbee1f4fa39c8d39
MD5 8016f549e8b8618aecf700c76cb493c9 files/0.4.2a/80_docs_encoding.dpatch 1455
RMD160 cad7479a4f50218e8625682cc236d0833e311e06 files/0.4.2a/80_docs_encoding.dpatch 1455
SHA256 7274ec7c5b525142b334148e49b19731452ebd49a11aaca8bbee1f4fa39c8d39 files/0.4.2a/80_docs_encoding.dpatch 1455
AUX 0.4.2a/81_manpages_whatis.dpatch 2838 RMD160 e7e454febe1d2e4810e450e4244fe8dbf97eaae0 SHA1 e03dae5bd30097007d410635ae4c7b5a98946dda SHA256 6cf85bca754ea18fbacd86c4023a74318fb7dd690fc09be8f00da1ddd28f9fff
MD5 5a9b806506eaf8a78e97f00e0ab36508 files/0.4.2a/81_manpages_whatis.dpatch 2838
RMD160 e7e454febe1d2e4810e450e4244fe8dbf97eaae0 files/0.4.2a/81_manpages_whatis.dpatch 2838
SHA256 6cf85bca754ea18fbacd86c4023a74318fb7dd690fc09be8f00da1ddd28f9fff files/0.4.2a/81_manpages_whatis.dpatch 2838
AUX 0.4.2a/82_makeinfo_regex.dpatch 950 RMD160 dc6d02497376a7f63a474fec13372b8cc539226c SHA1 4bc54352e3724da31ad51b2af6ef0fb99b0fa1d0 SHA256 acfcaadb4eed0b2c10fd66cd1a32306cf08615811dc8f9d5c136c2a1830edf19
MD5 ff4245548e7dd57946c1ba794f79a810 files/0.4.2a/82_makeinfo_regex.dpatch 950
RMD160 dc6d02497376a7f63a474fec13372b8cc539226c files/0.4.2a/82_makeinfo_regex.dpatch 950
SHA256 acfcaadb4eed0b2c10fd66cd1a32306cf08615811dc8f9d5c136c2a1830edf19 files/0.4.2a/82_makeinfo_regex.dpatch 950
AUX 0.4.2a/95_no_module.dpatch 732 RMD160 8c2ea1f71cee75d5e08f0c9af1059aedccb68631 SHA1 c317818688befec383b7b7f7c43dc9793a86f6c6 SHA256 4c4e7e465f4e27347942fdaf43b210922677f9808db8905cb133a72ad9f4de9a
MD5 3823ae3547f39493355474fc225fa560 files/0.4.2a/95_no_module.dpatch 732
RMD160 8c2ea1f71cee75d5e08f0c9af1059aedccb68631 files/0.4.2a/95_no_module.dpatch 732
SHA256 4c4e7e465f4e27347942fdaf43b210922677f9808db8905cb133a72ad9f4de9a files/0.4.2a/95_no_module.dpatch 732
AUX 0.4.2a/96_no_compat.dpatch 691 RMD160 6adc489b68f811c92dc5423f70eeba66b1c81250 SHA1 52d64f39f888f6f9b2b4bcc1054817aacab91240 SHA256 6abbd27883d1b837872a5735381a6d52cb1f137200efdf7176ec4c6ea0dcbeb8
MD5 3196214d333121337331b14a6357ec7a files/0.4.2a/96_no_compat.dpatch 691
RMD160 6adc489b68f811c92dc5423f70eeba66b1c81250 files/0.4.2a/96_no_compat.dpatch 691
SHA256 6abbd27883d1b837872a5735381a6d52cb1f137200efdf7176ec4c6ea0dcbeb8 files/0.4.2a/96_no_compat.dpatch 691
AUX 0.4.2a/97_no_demo.dpatch 670 RMD160 323a2091c850f9bb973fe02626cf0b076ea634b8 SHA1 effbb6ec5b5c5707128fc0abb32c1664dc9ac723 SHA256 08b2e99f0126d82814d946af83061cb0fc8267156b0dacda920207e57bd3734a
MD5 808ceba91ee355e4614d9b45bb5dbf80 files/0.4.2a/97_no_demo.dpatch 670
RMD160 323a2091c850f9bb973fe02626cf0b076ea634b8 files/0.4.2a/97_no_demo.dpatch 670
SHA256 08b2e99f0126d82814d946af83061cb0fc8267156b0dacda920207e57bd3734a files/0.4.2a/97_no_demo.dpatch 670
AUX Makefile 1019 RMD160 2e85df5944c82ffbc0f5fbc7a2946a83c01c2e0c SHA1 cb1deccedb54a7e5db66ca3132071be3b510efd4 SHA256 2187b63893f194b7862efa7df4b4fa345e8fc8ed9010cd19e0c30c9c1a476618
MD5 a9cc3060424f16c148c084524a9a0b23 files/Makefile 1019
RMD160 2e85df5944c82ffbc0f5fbc7a2946a83c01c2e0c files/Makefile 1019
SHA256 2187b63893f194b7862efa7df4b4fa345e8fc8ed9010cd19e0c30c9c1a476618 files/Makefile 1019
AUX Makefile.mod 314 RMD160 46cb64daf4542fc7ef69f7fdfccf7369f9c09cbc SHA1 41eb7439576e615c4748a8b3614c5729ce5a331c SHA256 eb685fb8fa821b8b6c4770ebc5e6ecb3e8288db7df0c3a159d4c01e895bc820c
MD5 a35ee560dcba948b70340d3202e469ad files/Makefile.mod 314
RMD160 46cb64daf4542fc7ef69f7fdfccf7369f9c09cbc files/Makefile.mod 314
SHA256 eb685fb8fa821b8b6c4770ebc5e6ecb3e8288db7df0c3a159d4c01e895bc820c files/Makefile.mod 314
DIST opencbm-0.4.2a-src.zip 745788 RMD160 825bded87a51e6fd2f76d8ba4bbcf31fada54277 SHA1 4eb3653609e4bc0725c0f2a8f4447e6928616e9f SHA256 c246f2484efe4835470f82b6b91f85569550f47e433fb8b042498dae9b061485
EBUILD opencbm-0.4.2a.ebuild 1556 RMD160 e34591914cfb9ae890a6d8213891e811410ba911 SHA1 e769841b8be139d357b259c0039f557d01c9d6e6 SHA256 6b7146177301e1bc548598e05f8bd2d536b1e582fd751f41177dc90fa75fa26f
MD5 0d025add48402e424a145c396a70d2f6 opencbm-0.4.2a.ebuild 1556
RMD160 e34591914cfb9ae890a6d8213891e811410ba911 opencbm-0.4.2a.ebuild 1556
SHA256 6b7146177301e1bc548598e05f8bd2d536b1e582fd751f41177dc90fa75fa26f opencbm-0.4.2a.ebuild 1556
MD5 3914e3f8771ec53d9213216d5d6049e3 files/digest-opencbm-0.4.2a 247
RMD160 1b58f4b077bb06971661184bc374596f924d03c7 files/digest-opencbm-0.4.2a 247
SHA256 551412e6d7e37f4c94ddfad0044be74e97c28a0404844b1467ec3b5e77480abb files/digest-opencbm-0.4.2a 247

View File

@ -0,0 +1,45 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 80_docs_encoding.dpatch by Frédéric Brière <fbriere@fbriere.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Specify the input character encoding to all sgml2* tools
## DP: Tracker: <http://sourceforge.net/tracker/index.php?func=detail&aid=1842513&group_id=122047&atid=692221>
@DPATCH@
diff -urNad opencbm~/docs/LINUX/Makefile opencbm/docs/LINUX/Makefile
--- opencbm~/docs/LINUX/Makefile 2007-11-11 10:01:17.000000000 -0500
+++ opencbm/docs/LINUX/Makefile 2007-12-01 21:11:57.000000000 -0500
@@ -19,21 +19,21 @@
unix2dos $@
%.txt: %.sgml
- sgml2txt $<
+ sgml2txt -c latin $<
%.pdf: %.dvi
dvipdf $<
%.dvi: %.sgml
- sgml2latex -o dvi $<
+ sgml2latex -c latin -o dvi $<
%.info: %.sgml
- sgml2info $<
+ sgml2info -c latin $<
perl -p -i -e 'if(m/^ \\input texinfo/){print "INFO-DIR-SECTION Miscellaneous\nSTART-INFO-DIR-ENTRY\n* opencbm: (opencbm). Commodore serial IEC bus support.\nEND-INFO-DIR-ENTRY\n";}' $@
%.html: opencbm.sgml
-[ ! -d html ] && mkdir html/
- cd html; sgml2html -s 2 ../$<; cd ..
+ cd html; sgml2html -c latin -s 2 ../$<; cd ..
all: $(TXT) $(DVI) $(INFO) $(HTML) ${PDF}
diff -urNad opencbm~/docs/opencbm.sgml opencbm/docs/opencbm.sgml
--- opencbm~/docs/opencbm.sgml 2007-11-11 12:35:53.000000000 -0500
+++ opencbm/docs/opencbm.sgml 2007-12-01 21:11:46.000000000 -0500
@@ -2224,3 +2224,4 @@
The OpenCBM team.
</article>
+

View File

@ -0,0 +1,68 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 81_manpages_whatis.dpatch by Frédéric Brière <fbriere@fbriere.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Provide a temporary whatis line in manpages
@DPATCH@
diff -urNad opencbm~/cbmcopy/cbmcopy.1 opencbm/cbmcopy/cbmcopy.1
--- opencbm~/cbmcopy/cbmcopy.1 2006-04-28 15:02:28.000000000 -0400
+++ opencbm/cbmcopy/cbmcopy.1 2007-08-10 23:47:41.000000000 -0400
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
.TH CBMCOPY "1" "April 2006" "cbmcopy 0.4.2" "User Commands"
.SH NAME
-cbmcopy \- manual page for cbmcopy 0.4.2
+cbmcopy \- copy files to/from a CBM drive
.SH SYNOPSIS
.B cbmcopy
[\fIOPTION\fR]... [\fIDRIVE\fR] [\fIFILE\fR]...
diff -urNad opencbm~/cbmctrl/cbmctrl.1 opencbm/cbmctrl/cbmctrl.1
--- opencbm~/cbmctrl/cbmctrl.1 2006-04-28 15:02:29.000000000 -0400
+++ opencbm/cbmctrl/cbmctrl.1 2007-08-10 23:44:03.000000000 -0400
@@ -11,8 +11,7 @@
.\"
.TH CBMCTRL "1" "April 2006" "cbmctrl 0.4.2" "User Commands"
.SH NAME
- cbmctrl \- manual page for cbmctrl 0.4.2
- - control serial CBM devices
+ cbmctrl \- send commands to serial CBM devices
.P
.B This document is poorly maintained and probably outdated.
If in doubt, use the Texinfo manual. If the
diff -urNad opencbm~/cbmformat/cbmformat.1 opencbm/cbmformat/cbmformat.1
--- opencbm~/cbmformat/cbmformat.1 2006-04-28 15:02:29.000000000 -0400
+++ opencbm/cbmformat/cbmformat.1 2007-08-10 23:48:03.000000000 -0400
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
.TH CBMFORMAT "1" "April 2006" "cbmformat 0.4.2" "User Commands"
.SH NAME
-cbmformat \- manual page for cbmformat 0.4.2
+cbmformat \- fast 1541 disk formatter
.SH SYNOPSIS
.B cbmformat
[\fIOPTION\fR]... \fIDRIVE NAME,ID\fR
diff -urNad opencbm~/cbmforng/cbmforng.1 opencbm/cbmforng/cbmforng.1
--- opencbm~/cbmforng/cbmforng.1 2006-04-28 15:02:30.000000000 -0400
+++ opencbm/cbmforng/cbmforng.1 2007-08-10 23:47:24.000000000 -0400
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
.TH CBMFORNG "1" "April 2006" "cbmforng 0.4.2" "User Commands"
.SH NAME
-cbmforng \- manual page for cbmforng 0.4.2
+cbmforng \- fast 1541 disk formatter
.SH SYNOPSIS
.B cbmforng
[\fIOPTION\fR]... \fIDRIVE NAME,ID\fR
diff -urNad opencbm~/d64copy/d64copy.1 opencbm/d64copy/d64copy.1
--- opencbm~/d64copy/d64copy.1 2007-08-10 23:41:50.000000000 -0400
+++ opencbm/d64copy/d64copy.1 2007-08-10 23:45:12.000000000 -0400
@@ -1,7 +1,7 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33.
.TH D64COPY "1" "April 2006" "d64copy 0.4.2" "User Commands"
.SH NAME
-d64copy \- manual page for d64copy 0.4.2
+d64copy \- copy .d64 images to/from a CBM drive
.SH SYNOPSIS
.B d64copy
[\fIOPTION\fR]... [\fISOURCE\fR] [\fITARGET\fR]

View File

@ -0,0 +1,19 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 82_makeinfo_regex.dpatch by Frédéric Brière <fbriere@fbriere.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix regex for compatibility with makeinfo 4.11
@DPATCH@
diff -urNad opencbm~/docs/LINUX/Makefile opencbm/docs/LINUX/Makefile
--- opencbm~/docs/LINUX/Makefile 2007-12-02 14:56:04.000000000 -0500
+++ opencbm/docs/LINUX/Makefile 2007-12-02 14:56:29.000000000 -0500
@@ -29,7 +29,7 @@
%.info: %.sgml
sgml2info -c latin $<
- perl -p -i -e 'if(m/^ \\input texinfo/){print "INFO-DIR-SECTION Miscellaneous\nSTART-INFO-DIR-ENTRY\n* opencbm: (opencbm). Commodore serial IEC bus support.\nEND-INFO-DIR-ENTRY\n";}' $@
+ perl -p -i -e 'if(m/^\s*\\input texinfo/){print "INFO-DIR-SECTION Miscellaneous\nSTART-INFO-DIR-ENTRY\n* opencbm: (opencbm). Commodore serial IEC bus support.\nEND-INFO-DIR-ENTRY\n";}' $@
%.html: opencbm.sgml
-[ ! -d html ] && mkdir html/

View File

@ -0,0 +1,19 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 95_no_module.dpatch by Frédéric Brière <fbriere@fbriere.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Prevent kernel module from being build by default
@DPATCH@
diff -urNad opencbm-0.4.0~/LINUX/Makefile opencbm-0.4.0/LINUX/Makefile
--- opencbm-0.4.0~/LINUX/Makefile 2007-08-10 13:24:45.000000000 -0400
+++ opencbm-0.4.0/LINUX/Makefile 2007-08-10 13:25:01.000000000 -0400
@@ -6,7 +6,7 @@
CBMPERM = 666
DEVMAJOR = 10
DEVMINOR = 177
-SUBDIRS = sys/linux include arch/$(ARCH) lib compat \
+SUBDIRS = include arch/$(ARCH) lib compat \
cbmctrl cbmformat cbmforng d64copy cbmcopy \
demo/flash demo/morse demo/rpm1541 docs

View File

@ -0,0 +1,19 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 96_no_compat.dpatch by Frédéric Brière <fbriere@fbriere.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Skipping compat directory
@DPATCH@
diff -urNad opencbm-0.4.0~/LINUX/Makefile opencbm-0.4.0/LINUX/Makefile
--- opencbm-0.4.0~/LINUX/Makefile 2007-08-10 14:19:37.000000000 -0400
+++ opencbm-0.4.0/LINUX/Makefile 2007-08-10 14:21:42.000000000 -0400
@@ -6,7 +6,7 @@
CBMPERM = 666
DEVMAJOR = 10
DEVMINOR = 177
-SUBDIRS = include arch/$(ARCH) lib compat \
+SUBDIRS = include arch/$(ARCH) lib \
cbmctrl cbmformat cbmforng d64copy cbmcopy \
demo/flash demo/morse demo/rpm1541 docs

View File

@ -0,0 +1,19 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## 97_no_demo.dpatch by Frédéric Brière <fbriere@fbriere.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Disable compilation of demo/*, as we install them as examples
@DPATCH@
diff -urNad opencbm~/LINUX/Makefile opencbm/LINUX/Makefile
--- opencbm~/LINUX/Makefile 2007-08-13 01:05:38.000000000 -0400
+++ opencbm/LINUX/Makefile 2007-08-13 01:05:54.000000000 -0400
@@ -8,7 +8,7 @@
DEVMINOR = 177
SUBDIRS = include arch/$(ARCH) lib \
cbmctrl cbmformat cbmforng d64copy cbmcopy \
- demo/flash demo/morse demo/rpm1541 docs
+ docs
SUBDIRS_OPTIONAL = mnib36

View File

@ -0,0 +1,44 @@
# Makefile for cbm kernel 2.6 module. -*-makefile-*-
#
# Copyright (C) 2008 Mario Fetka <mario-fetka@gmx.at>
#
# Licensed under the GNU General Public License, v2.0 or later,
# at your option. See the file COPYING for details, or the web
# page http://www.gnu.org/copyleft/gpl.html
#
MODULE_NAME = cbm
$(MODULE_NAME)-objs = cbm_module.o
# First pass, kernel Makefile reads module objects
ifneq ($(KERNELRELEASE),)
obj-m := $(MODULE_NAME).o
EXTRA_CFLAGS += -I$(PWD)/../include -I$(PWD)/../../include -I$(PWD)/../../include/LINUX
# Second pass, the actual build.
else
KVER ?= $(shell uname -r)
KDIR := /lib/modules/$(KVER)/build
PWD := $(shell pwd)
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) M=$(PWD) clean
help:
$(MAKE) -C $(KDIR) M=$(PWD) help
# Indents the kernel source the way linux/Documentation/CodingStyle.txt
# wants it to be.
indent:
indent -kr -i8 $($(MODULE_NAME)-objs:.o=.c)
install:
$(MAKE) -C $(KDIR) M=$(PWD) modules_install
endif

View File

@ -0,0 +1,3 @@
MD5 c2ee7156510304db1a4a8260d0e39d19 opencbm-0.4.2a-src.zip 745788
RMD160 825bded87a51e6fd2f76d8ba4bbcf31fada54277 opencbm-0.4.2a-src.zip 745788
SHA256 c246f2484efe4835470f82b6b91f85569550f47e433fb8b042498dae9b061485 opencbm-0.4.2a-src.zip 745788

View File

@ -0,0 +1,61 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils toolchain-funcs multilib linux-mod
DESCRIPTION="OpenCBM is a package to control and use serial devices as used by most Commodore (CBM) 8-bit mach"
HOMEPAGE="http://opencbm.trikaliotis.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc"
DEPEND="virtual/linux-sources
dev-embedded/cc65
app-text/linuxdoc-tools"
#MAKEOPTS="${MAKEOPTS} -j1"
#BUILD_PARAMS="-f LINUX/Makefile"
#BUILD_PARAMS="-f LINUX/Makefile KERNEL_SOURCE=$KERNEL_DIR"
BUILD_PARAMS="KDIR=$KERNEL_DIR"
MODULE_NAMES="cbm(misc:${S}/sys/linux:${S}/sys/linux)"
BUILD_TARGETS="all"
MODULESD_NOVFS_ENABLED=""
src_unpack() {
unpack ${A}
cd ${S}
# convert_to_m sys/linux/LINUX/Makefile
edos2unix `find . -name '*' -type f`
touch `find . -name '*.?65' -type f`
epatch ${FILESDIR}/${PV}/*
sed -e 's,^PREFIX.*,PREFIX = /usr,' \
-e 's,/man/man1,/share/man/man1,g' \
-e 's,/info,/share/info,g' -i ${S}/LINUX/config.make
cp ${FILESDIR}/Makefile ${S}/sys/linux/Makefile
}
src_compile() {
emake -f LINUX/Makefile CC="$(tc-getCC)" AR="$(tc-getAR)" showvars
emake -f LINUX/Makefile CC="$(tc-getCC)" AR="$(tc-getAR)"
linux-mod_src_compile
}
src_install() {
emake -f LINUX/Makefile PREFIX="${D}/usr" install
linux-mod_src_install
generate_modulesd
}
pkg_postinst() {
linux-mod_pkg_postinst
}
pkg_postrm() {
linux-mod_pkg_postrm
}