Forráskód Böngészése

removed old hasp ebuild. updated the last one to avoid repoman warnings

Sergey Ilinykh 4 éve
szülő
commit
4f8a738b5a

+ 0 - 91
sys-apps/hasp/hasp-3.3_p5-r3.ebuild

@@ -1,91 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit eutils rpm linux-info linux-mod systemd
-
-DESCRIPTION="Hardware Against Software Piracy for access to parallel and usb keys"
-HOMEPAGE="http://www.etersoft.ru"
-SRC_URI="http://ftp.etersoft.ru/pub/Etersoft/HASP/3.3/sources/haspd-3.3-alt10.src.rpm"
-
-LICENSE="Etersoft"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-IUSE="net_hasp wine usb lpt demo"
-
-MODNAME="aksparlnx"
-[[ ${ARCH} == "amd64" ]] && MY_ARCH="x86_64"
-[[ ${ARCH} == "x86" ]] && MY_ARCH="i386"
-
-REQUIRED_USE="lpt? ( kernel_linux )"
-DEPEND="${RDEPEND}"
-
-QA_PREBUILT="usr/sbin/aksusbd usr/sbin/haspdemo usr/sbin/winehasp
-usr/sbin/hasplm usr/sbin/hasplmd usr/sbin/nethaspdemo"
-
-S="${WORKDIR}/haspd-3.3"
-
-PATCHES=(
-	"${FILESDIR}/remove-udev-rule-for-old-kernels.patch"
-	"${FILESDIR}/linux-3.15.patch"
-	"${FILESDIR}/linux-4.11.patch"
-	"${FILESDIR}/linux-4.12.patch"
-)
-
-pkg_setup() {
-	if use lpt ; then
-		MODULE_NAMES="${MODNAME}(${MODNAME}:${S}/${MODNAME})"
-		CONFIG_CHECK="PARPORT PARPORT_PC"
-
-		linux-mod_pkg_setup
-		BUILD_PARAMS="KERNSRC=${KERNEL_DIR}" BUILD_TARGETS="kernel3"
-	fi
-}
-
-src_unpack() {
-	rpm_unpack
-	unpack ./haspd-3.3.tar
-}
-
-src_compile() {
-	if use lpt ; then
-		cd "${S}/${MODNAME}"
-		ARCH="${MY_ARCH}" emake "${BUILD_PARAMS}" "${BUILD_TARGETS}" || die
-	fi
-}
-
-src_install() {
-	dodir "/usr/sbin"
-	dodir "/etc/init.d"
-	dosbin aksusbd/aksusbd
-	newinitd "${FILESDIR}"/aksusbd.init aksusbd
-	systemd_dounit "${FILESDIR}"/hasp.service
-
-	use demo && dosbin hasptest/haspdemo
-
-	if use wine; then
-		dosbin winehasp/winehasp
-		newinitd "${FILESDIR}"/winehasp.init winehasp
-	fi
-	newinitd "${FILESDIR}"/aksusbd.init aksusbd
-
-	if use net_hasp ; then
-		insinto /etc/haspd
-		doins hasplm/hasplm.conf
-
-		newconfd  "${FILESDIR}"/hasplm.conf hasplm
-		dosbin hasplm/hasplm
-		dosbin hasplmd/hasplmd
-		use demo && dosbin hasptest/nethaspdemo
-		newinitd "${FILESDIR}"/hasplmd.init hasplmd
-	fi
-
-	use lpt && linux-mod_src_install
-	local udevrulesdir="$($(tc-getPKG_CONFIG) --variable=udevdir udev)/rules.d"
-	dodir ${udevrulesdir}
-	insinto ${udevrulesdir}
-	use lpt && doins "${FILESDIR}"/80-lpt-hardlock.rules
-	use usb && doins aksusbd/udev/rules.d/80-hasp.rules
-}

+ 2 - 3
sys-apps/hasp/hasp-3.3_p5-r4.ebuild

@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -26,6 +26,7 @@ QA_PREBUILT="usr/sbin/aksusbd usr/sbin/haspdemo usr/sbin/winehasp
 usr/sbin/hasplm usr/sbin/hasplmd usr/sbin/nethaspdemo"
 
 S="${WORKDIR}/haspd-3.3"
+MODULE_NAMES="${MODNAME}(${MODNAME}:${S}/${MODNAME})"
 
 PATCHES=(
 	"${FILESDIR}/remove-udev-rule-for-old-kernels.patch"
@@ -36,9 +37,7 @@ PATCHES=(
 
 pkg_setup() {
 	if use lpt ; then
-		MODULE_NAMES="${MODNAME}(${MODNAME}:${S}/${MODNAME})"
 		CONFIG_CHECK="PARPORT PARPORT_PC"
-
 		linux-mod_pkg_setup
 		BUILD_PARAMS="KERNSRC=${KERNEL_DIR}" BUILD_TARGETS="kernel3"
 	fi