summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-block/rts5229
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-block/rts5229')
-rw-r--r--sys-block/rts5229/Manifest1
-rw-r--r--sys-block/rts5229/files/rts5229-linux-3.10.patch53
-rw-r--r--sys-block/rts5229/files/rts5229-linux-3.8.patch29
-rw-r--r--sys-block/rts5229/metadata.xml12
-rw-r--r--sys-block/rts5229/rts5229-1.07-r5.ebuild40
5 files changed, 135 insertions, 0 deletions
diff --git a/sys-block/rts5229/Manifest b/sys-block/rts5229/Manifest
new file mode 100644
index 00000000000..ad14477a21b
--- /dev/null
+++ b/sys-block/rts5229/Manifest
@@ -0,0 +1 @@
+DIST rts5229-1.07.tar.bz2 67175 SHA256 f6a3338cc41dc273567c0d074d331f401f45716769f987b4269951467331ea46 SHA512 8df0396d5a08a22507e3a0a56321de6b17d1ca90b5cbdaa9712f56f5f4db026d1b49b9dacf244407889d354cb8eeac4e771388a0fc6eb00295b81456459a4503 WHIRLPOOL 889c2a5de8ee6b5651734bb3fae70482065bde7be00b326dddf5cc55a2ff0437659bf068414990d075c1f99d59ba22ee2cf77f26dd73e6125d1f28eb9ca58922
diff --git a/sys-block/rts5229/files/rts5229-linux-3.10.patch b/sys-block/rts5229/files/rts5229-linux-3.10.patch
new file mode 100644
index 00000000000..5044234fe07
--- /dev/null
+++ b/sys-block/rts5229/files/rts5229-linux-3.10.patch
@@ -0,0 +1,53 @@
+--- rts5229.a/rtsx.c 2013-07-03 05:24:40.728296993 +0530
++++ rts5229.b/rtsx.c 2013-07-03 05:20:56.452568592 +0530
+@@ -126,38 +126,18 @@
+
+
+ #undef SPRINTF
+-#define SPRINTF(args...) \
+- do { if (pos < buffer+length) pos += sprintf(pos, ## args); } while (0)
++#define SPRINTF(args...) seq_printf(m, ##args)
+
+-static int proc_info (struct Scsi_Host *host, char *buffer,
+- char **start, off_t offset, int length, int inout)
++static int show_info(struct seq_file *m, struct Scsi_Host *host)
+ {
+- char *pos = buffer;
+
+-
+- if (inout)
+- return length;
+-
+-
+ SPRINTF(" Host scsi%d: %s\n", host->host_no, CR_DRIVER_NAME);
+-
+
+ SPRINTF(" Vendor: Realtek Corp.\n");
+ SPRINTF(" Product: RTS5229\n");
+ SPRINTF(" Version: %s\n", DRIVER_VERSION);
+ SPRINTF(" Build: %s, %s\n", __DATE__, __TIME__);
+-
+- /*
+- * Calculate start of next buffer, and return value.
+- */
+- *start = buffer + offset;
+-
+- if ((pos - buffer) < offset)
+- return (0);
+- else if ((pos - buffer - offset) < length)
+- return (pos - buffer - offset);
+- else
+- return (length);
++ return 0;
+ }
+
+
+@@ -263,7 +243,7 @@
+
+ .name = CR_DRIVER_NAME,
+ .proc_name = CR_DRIVER_NAME,
+- .proc_info = proc_info,
++ .show_info = show_info,
+ .info = host_info,
+
+
diff --git a/sys-block/rts5229/files/rts5229-linux-3.8.patch b/sys-block/rts5229/files/rts5229-linux-3.8.patch
new file mode 100644
index 00000000000..81779aef276
--- /dev/null
+++ b/sys-block/rts5229/files/rts5229-linux-3.8.patch
@@ -0,0 +1,29 @@
+--- rts5229.a/rtsx.c 2012-03-21 07:10:18.000000000 +0530
++++ rts5229.b/rtsx.c 2013-05-29 01:06:32.333737569 +0530
+@@ -911,7 +911,7 @@
+ chip->support_mmc = 1;
+ }
+
+-static int __devinit rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
++static int rtsx_probe(struct pci_dev *pci, const struct pci_device_id *pci_id)
+ {
+ struct Scsi_Host *host;
+ struct rtsx_dev *dev;
+@@ -1066,7 +1066,7 @@
+ }
+
+
+-static void __devexit rtsx_remove(struct pci_dev *pci)
++static void rtsx_remove(struct pci_dev *pci)
+ {
+ struct rtsx_dev *dev = (struct rtsx_dev *)pci_get_drvdata(pci);
+
+@@ -1092,7 +1092,7 @@
+ .name = CR_DRIVER_NAME,
+ .id_table = rts5229_ids,
+ .probe = rtsx_probe,
+- .remove = __devexit_p(rtsx_remove),
++ .remove = rtsx_remove,
+ #ifdef CONFIG_PM
+ .suspend = rtsx_suspend,
+ .resume = rtsx_resume,
diff --git a/sys-block/rts5229/metadata.xml b/sys-block/rts5229/metadata.xml
new file mode 100644
index 00000000000..6ab6ec0a404
--- /dev/null
+++ b/sys-block/rts5229/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>
+ <email>vikraman@gentoo.org</email>
+ <name>Vikraman Choudhury</name>
+ </maintainer>
+ <longdescription lang="en">
+ PCIE RTS5229 card reader driver for Linux.
+ </longdescription>
+</pkgmetadata>
+
diff --git a/sys-block/rts5229/rts5229-1.07-r5.ebuild b/sys-block/rts5229/rts5229-1.07-r5.ebuild
new file mode 100644
index 00000000000..5d2fccb2c91
--- /dev/null
+++ b/sys-block/rts5229/rts5229-1.07-r5.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit linux-mod
+
+DESCRIPTION="PCIE RTS5229 card reader driver for Linux"
+HOMEPAGE="http://www.realtek.com.tw/Downloads/downloadsView.aspx?PNid=15&PFid=25&Level=4&Conn=3&DownTypeID=3"
+SRC_URI="http://dev.gentoo.org/~vikraman/distfiles/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+MODULE_NAMES="rts5229(misc/drivers/scsi)"
+BUILD_TARGETS="default"
+
+src_prepare() {
+ sed -e 's/\/lib\/modules\/\$(shell uname -r)\/build\//\$(KERNELDIR)/g' \
+ -i Makefile || die "Sed failed!"
+ ([ ${KV_MAJOR} -gt 3 ] || ([ ${KV_MAJOR} -eq 3 ] && [ ${KV_MINOR} -ge 8 ])) \
+ && epatch "${FILESDIR}/${PN}-linux-3.8.patch"
+ ([ ${KV_MAJOR} -gt 3 ] || ([ ${KV_MAJOR} -eq 3 ] && [ ${KV_MINOR} -ge 10 ])) \
+ && epatch "${FILESDIR}/${PN}-linux-3.10.patch"
+ sed -e '/__DATE__/d' \
+ -i rtsx.c || die "Sed failed!"
+}
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
+}