diff options
Diffstat (limited to 'sys-block/arcconf/arcconf-2.05.22932.ebuild')
-rw-r--r-- | sys-block/arcconf/arcconf-2.05.22932.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sys-block/arcconf/arcconf-2.05.22932.ebuild b/sys-block/arcconf/arcconf-2.05.22932.ebuild new file mode 100644 index 000000000000..2f607e620d68 --- /dev/null +++ b/sys-block/arcconf/arcconf-2.05.22932.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit linux-info + +DESCRIPTION="Adaptec RAID Controller Command Line Utility" +HOMEPAGE="http://www.adaptec.com/en-us/downloads/" +SRC_URI="http://download.adaptec.com/raid/storage_manager/${PN}_v${PV//./_}.zip" + +KEYWORDS="~amd64 ~x86" +LICENSE="Adaptec-EULA" +SLOT="0" + +DEPEND="app-arch/unzip" +RDEPEND="${RDEPEND}" + +RESTRICT="mirror bindist" +# RESTRICT="fetch" + +QA_PRESTRIPPED="/opt/bin/arcconf" + +S="${WORKDIR}" + +# Maintainer notes: +# * When going via the $HOMEPAGE one has to agree to the Adaptec-EULA as +# referenced above. +# * Despite that EULA, one can download the package seemingly without +# restrictions from $SRC_URI. +# * It is therefore assumed that the binary is made available for public +# download. Even more so since the archive does not contain a license +# agreement stating otherwise. + +#pkg_nofetch() { +# einfo "Upstream has implemented a mandatory clickthrough EULA for distfile download" +# einfo "Please visit $HOMEPAGE, choose a controller (for example the Series 7, 7805)" +# einfo "and then navigate to Storage Manager Downloads for the ARCCONF Command Line Utility." +# einfo "And place $A in ${DISTDIR}" +#} + +# Maintainer notes: +# * FreeBSD binaries would be available for FreeBSD 7..9, which ones do we need? + +# CONFIG_HARDENED_USERCOPY_PAGESPAN makes ARCCONF segault +pkg_setup() { + if linux-info_get_any_version && linux_config_src_exists ; then + CONFIG_CHECK="!HARDENED_USERCOPY_PAGESPAN" + check_extra_config + fi +} + +src_install() { + exeinto /opt/bin + + if use amd64; then + doexe linux_x64/cmdline/arcconf + else + doexe linux/cmdline/arcconf + fi +} |