Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 2021 18:33:58 GMT
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 7dc3db13fcde - main - net/ng_mikrotik_eoip: Use USES=kmod
Message-ID:  <202105011833.141IXwSU077463@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by tobik:

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

commit 7dc3db13fcde23bab69eed83f6607ddbcac826aa
Author:     Tobias Kortkamp <tobik@FreeBSD.org>
AuthorDate: 2021-04-30 15:59:51 +0000
Commit:     Tobias Kortkamp <tobik@FreeBSD.org>
CommitDate: 2021-05-01 17:55:49 +0000

    net/ng_mikrotik_eoip: Use USES=kmod
    
    Add USES=uidfix too so that can work.
    
    Reported by:    portscan (KMODDIR without USES=kmod)
---
 net/ng_mikrotik_eoip/Makefile  | 16 +---------------
 net/ng_mikrotik_eoip/pkg-plist |  2 +-
 2 files changed, 2 insertions(+), 16 deletions(-)

diff --git a/net/ng_mikrotik_eoip/Makefile b/net/ng_mikrotik_eoip/Makefile
index ca78c62b35d7..ce59d53ff350 100644
--- a/net/ng_mikrotik_eoip/Makefile
+++ b/net/ng_mikrotik_eoip/Makefile
@@ -9,7 +9,7 @@ COMMENT=	Netgraph node for Mikrotik EoIP tunneling
 
 LICENSE=	BSD2CLAUSE
 
-SSP_UNSAFE=	kernel module does not support ssp
+USES=		kmod uidfix
 
 OPTIONS_DEFINE=	PTABLE
 PTABLE_DESC=	Use O(1) lookup for tunnel hooks
@@ -19,18 +19,4 @@ PTABLE_DESC=	Use O(1) lookup for tunnel hooks
 
 PTABLE_MAKE_ARGS=	NO_LINEAR_HOOK_LOOKUP=1
 
-KMODDIR?=	/boot/modules
-PLIST_SUB+=	KMODDIR=${KMODDIR} \
-		PORTNAME=${PORTNAME}
-
-.include <bsd.port.options.mk>
-
-.if !exists(${SRC_BASE}/sys/sys/module.h)
-IGNORE=		requires kernel source files
-.endif
-
-do-install:
-	${MKDIR} "${STAGEDIR}${KMODDIR}"
-	${INSTALL_KLD} ${WRKSRC}/${PORTNAME}.ko "${STAGEDIR}${KMODDIR}"
-
 .include <bsd.port.mk>
diff --git a/net/ng_mikrotik_eoip/pkg-plist b/net/ng_mikrotik_eoip/pkg-plist
index 14d071b71c82..8a96628c88ca 100644
--- a/net/ng_mikrotik_eoip/pkg-plist
+++ b/net/ng_mikrotik_eoip/pkg-plist
@@ -1 +1 @@
-%%KMODDIR%%/ng_mikrotik_eoip.ko
+/%%KMODDIR%%/ng_mikrotik_eoip.ko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105011833.141IXwSU077463>