summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2018-12-09 23:53:18 +0100
committerMichał Górny <mgorny@gentoo.org>2018-12-13 16:40:14 +0100
commit7d2f68e4b18a84a666b625edc18d8fe3de2b3008 (patch)
treee07c605ddb739765b2afbed4cbbdf173dc38fb95 /sys-block/rts_pstor
parentwww-servers/nginx: http_auth_pam: adjust loglevel for auth failures (diff)
downloadgentoo-7d2f68e4b18a84a666b625edc18d8fe3de2b3008.tar.gz
gentoo-7d2f68e4b18a84a666b625edc18d8fe3de2b3008.tar.bz2
gentoo-7d2f68e4b18a84a666b625edc18d8fe3de2b3008.zip
sys-block/rts_pstor: version bump to 1.10_p20160103
change upstream source to github https://github.com/gexplorer/RTS5209-linux-driver change to EAPI7 Closes: https://bugs.gentoo.org/662000 Package-Manager: Portage-2.3.51, Repoman-2.3.12 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/10602 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-block/rts_pstor')
-rw-r--r--sys-block/rts_pstor/Manifest1
-rw-r--r--sys-block/rts_pstor/files/rts_pstor-makefile.patch8
-rw-r--r--sys-block/rts_pstor/metadata.xml10
-rw-r--r--sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild37
4 files changed, 54 insertions, 2 deletions
diff --git a/sys-block/rts_pstor/Manifest b/sys-block/rts_pstor/Manifest
index 7918bce8e9fc..640713b749b2 100644
--- a/sys-block/rts_pstor/Manifest
+++ b/sys-block/rts_pstor/Manifest
@@ -1 +1,2 @@
DIST rts_pstor-1.10.tar.bz2 79549 BLAKE2B 6ed1a31c46920f30b16c3cd4bda9978bffe40c2f88fdd2d63ef128d3a4ce22a6850846e4f5f1bf55200ed03a227a61bfcaefec4abdf598a43c8a7d8ca2991280 SHA512 26d29ccda55672adab8b96a8318e240d0c9d50ebf614853284cf218058c5788cc83b818ce118ac313c0ce6a67aef8ad13d93ed26212db7e05db51b8a7860b48d
+DIST rts_pstor-1.10_p20160103.tar.gz 108102 BLAKE2B 9cbca345211f7c99c6d9cf71b0ed207a4c911569eee6c63bfbe15c094be08f64c4550f04d9df688969f43564b2ff6a91d5cc72b8ab281cfdffb6884688b354de SHA512 d802a52b1e2da447a218472e77ca6ecc56e3b3767e3eb8daf634152675171c79c86e3b5ca9654b67cf32f63740c347bf7ecee5a1d20eb1c15a3a2ad3e9774311
diff --git a/sys-block/rts_pstor/files/rts_pstor-makefile.patch b/sys-block/rts_pstor/files/rts_pstor-makefile.patch
new file mode 100644
index 000000000000..dc12cd68f52b
--- /dev/null
+++ b/sys-block/rts_pstor/files/rts_pstor-makefile.patch
@@ -0,0 +1,8 @@
+diff -N -a -u1 a/Makefile b/Makefile
+--- a/Makefile 2016-01-03 14:41:40.000000000 +0100
++++ b/Makefile 2018-12-11 23:47:44.942218496 +0100
+@@ -36,3 +36,3 @@
+ cp -f ./define.release ./define.h
+- make -C /lib/modules/$(shell uname -r)/build/ SUBDIRS=$(PWD) modules
++ +make -C $(KERNELDIR) SUBDIRS=$(PWD) modules
+ debug:
diff --git a/sys-block/rts_pstor/metadata.xml b/sys-block/rts_pstor/metadata.xml
index 854729740725..ab7993355b87 100644
--- a/sys-block/rts_pstor/metadata.xml
+++ b/sys-block/rts_pstor/metadata.xml
@@ -1,8 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!--maintainer-needed-->
+ <maintainer type="person">
+ <email>martin.dummer@gmx.net</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
<longdescription lang="en">
- PCIE RTS5209 card reader driver for Linux.
+ PCI-E RTS5209 card reader driver for Linux.
</longdescription>
</pkgmetadata>
diff --git a/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild b/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild
new file mode 100644
index 000000000000..73c7c69315d7
--- /dev/null
+++ b/sys-block/rts_pstor/rts_pstor-1.10_p20160103.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit linux-mod
+
+GIT_COMMIT="c8313abffe083ac63bf76d2cc90d3edf5b2d1188"
+
+DESCRIPTION="PCI-E RTS5209 card reader driver for Linux"
+HOMEPAGE="https://github.com/gexplorer/RTS5209-linux-driver"
+SRC_URI="https://github.com/gexplorer/RTS5209-linux-driver/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="virtual/linux-sources"
+PATCHES=(
+ "${FILESDIR}/rts_pstor-makefile.patch"
+)
+S="${WORKDIR}/RTS5209-linux-driver-${GIT_COMMIT}"
+
+MODULE_NAMES="rts_pstor(misc/drivers/scsi)"
+MODULESD_RTS_PSTOR_ADDITIONS=(
+ "# when rts_pstor is installed, blacklist in-kernel driver rtsx_pci"
+ "blacklist rtsx_pci"
+)
+BUILD_TARGETS="default"
+BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
+CONFIG_CHECK="~!MISC_RTSX_PCI"
+ERROR_MISC_RTSX_PCI="CONFIG_MISC_RTSX_PCI: The in-kernel driver rtsx_pci is configured, which may have the same functionality than this driver. To make sure that your kernel loads only rts_pstor, the rtsx_pci module will be blacklisted."
+
+pkg_postinst() {
+ elog "This driver is based on code published by Realtek. There is a driver in the kernel named rtsx_pci which"
+ elog "should be preferred over this driver - but on some hardware only this driver is functional and rtsx_pci is not."
+}