git: c6520cdf0a4d - main - multimedia/motion: Remove KMODDIR

Tobias Kortkamp tobik at FreeBSD.org
Sat May 1 18:34:01 UTC 2021


The branch main has been updated by tobik:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6520cdf0a4dba6f81153b0b204824b3f8552eb6

commit c6520cdf0a4dba6f81153b0b204824b3f8552eb6
Author:     Tobias Kortkamp <tobik at FreeBSD.org>
AuthorDate: 2021-05-01 05:54:17 +0000
Commit:     Tobias Kortkamp <tobik at FreeBSD.org>
CommitDate: 2021-05-01 17:55:52 +0000

    multimedia/motion: Remove KMODDIR
    
    While this is technically fine, there is no reason to set it just
    for the dependency check.
    
    Reported by:    portscan (KMODDIR without USES=kmod)
---
 multimedia/motion/Makefile | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/multimedia/motion/Makefile b/multimedia/motion/Makefile
index f2757c18cc3f..82a50200dbe9 100644
--- a/multimedia/motion/Makefile
+++ b/multimedia/motion/Makefile
@@ -21,10 +21,6 @@ LIB_DEPENDS=	libwebp.so:graphics/webp \
 # USES block
 USES=		autoreconf gmake jpeg localbase pkgconfig gettext
 
-KMODDIR?=	/boot/modules
-.if ${KMODDIR} == /boot/kernel
-KMODDIR=	/boot/modules
-.endif
 USE_GITHUB=	yes
 GH_ACCOUNT=	Motion-Project
 USE_RC_SUBR=	${PORTNAME}
@@ -75,7 +71,7 @@ PGSQL_CONFIGURE_ON=	--with-pgsql-lib=${LOCALBASE}/lib \
 PGSQL_CONFIGURE_OFF=	--without-pgsql
 
 PWCBSD_BUILD_DEPENDS=	v4l_compat>=1.0.20060801:multimedia/v4l_compat
-PWCBSD_RUN_DEPENDS=	${KMODDIR}/pwc.ko:multimedia/pwcbsd
+PWCBSD_RUN_DEPENDS=	pwcbsd>0:multimedia/pwcbsd
 PWCBSD_CONFIGURE_WITH=	pwcbsd
 
 SQLITE3_USES=		sqlite:3


More information about the dev-commits-ports-all mailing list