From nobody Wed Aug 02 21:18:30 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RGPwj31PqzZnTQ; Wed, 2 Aug 2023 21:18:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RGPwQ6bpXz3PVb; Wed, 2 Aug 2023 21:18:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691011111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qqMo+ebPWlUXnb+S1U95DGlknT+JDT9hCHSh3JJj/40=; b=uwdcp8MsqtRvMKmWwG9ET5aOPEfLSLG+8P/lzBKKmGJDrCnMAfjU9TOfNZJsyAgnMk+E71 H+EPZ1GRKNb8nCUDos4uZuWffQMk8vbCRkMa4soJcke00sHKCUa3msg+sv7YiIWJUQSiMO hlbX1VID1jMjuDwCT5qEPOHCsxCySLKWc4xLfOQA7+RM6tv3iQhzmNso7YGnFhnYX0AgxI LIp4rB39ofQUTM+uRLYibPT3TTnXXzH01ygqcqXOWUO9czhF/O4+YBe2PkWcFKzv9qXxh+ XOVGPmbW1UIgq7HZlYWwp11GysCiBnf988XLPF+dL3EEJXIFVK3H9lVU4JOmOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691011111; a=rsa-sha256; cv=none; b=qYHGKMUcHb9eZLOr+QA2P3GsVLmf/cQ8MVWukSvovI+3erCiqt7Q6rGFOr9ROEq2VrDEkw wV0+JenTnVrggxorzelNHVL59vmjHCGDdHrAvXOZEf/VUMk32VmhrUTaLAO+9DlsJZFCel DSW/Ax4GjCp8Lzz1/BwmsSQ+wKw9haM2LFLnN5zVRfM5moiPiuvf1i9KjEH2iqJEvsYXPF to+0f7O7eXCA0MWcdd9+KEqWEiwYLi32Pfa30BooxljzBxNYy9xMfcK4WsQz47ar6Nmi/H 2ynJvE7tB5N6vVy4vaORuq1/PfCF47nXv1TmteOg4S7IZ8MGa+7WuuOcMtm+cg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691011111; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qqMo+ebPWlUXnb+S1U95DGlknT+JDT9hCHSh3JJj/40=; b=Rw0BTfqw2QAL4CnN/HBX5eP5jKLYs1t+ZWBddXYrkW55Hvm+dZGI34IIGuS3j2bnpX3Oes xWe5yEABwJl7tVHA3Le2K5ezXB1z5nHqRLmYeQs7M0M565QOwfUkHG2XtOJlu7tlkE6KLl B/PsLraDThQXcc/PqfVnH3Ik/pkYPxPElG43rNFvkp8112Rj7NC1SqlAzkCBeG8i4hxgxE 24mjvsdkqPjNhsLnaAC+F7I/k1XimFKISXBCS9J7WUFxduUbQZpRC3WM2UZlmkyQHKfhTT lTDYC6yoHdw3cy2lWoDQtV+XAgOeg5yqLIUJ0BBOulF5IWgy9JEO6yJPIR+dRw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RGPwQ4M0LzZR7; Wed, 2 Aug 2023 21:18:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 372LIUwo017663; Wed, 2 Aug 2023 21:18:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 372LIUoD017662; Wed, 2 Aug 2023 21:18:30 GMT (envelope-from git) Date: Wed, 2 Aug 2023 21:18:30 GMT Message-Id: <202308022118.372LIUoD017662@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Muhammad Moinur Rahman Subject: git: ddf0ac13873a - main - net-mgmt/kismet: Fix build with llvm16 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bofh X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ddf0ac13873abe00960631ad7f2445689bd68645 Auto-Submitted: auto-generated The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=ddf0ac13873abe00960631ad7f2445689bd68645 commit ddf0ac13873abe00960631ad7f2445689bd68645 Author: Muhammad Moinur Rahman AuthorDate: 2023-08-02 21:14:24 +0000 Commit: Muhammad Moinur Rahman CommitDate: 2023-08-02 21:18:14 +0000 net-mgmt/kismet: Fix build with llvm16 - Utilize USES=localbase - Utilize OPTIONSNG where possible - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- net-mgmt/kismet/Makefile | 57 ++++++++++++++++++------------------------------ 1 file changed, 21 insertions(+), 36 deletions(-) diff --git a/net-mgmt/kismet/Makefile b/net-mgmt/kismet/Makefile index e0268cf626ef..e98fc6fbbb43 100644 --- a/net-mgmt/kismet/Makefile +++ b/net-mgmt/kismet/Makefile @@ -11,55 +11,40 @@ WWW= https://www.kismetwireless.net/ LICENSE= GPLv2 -USES= gmake tar:xz +USES= gmake localbase:ldflags tar:xz +USE_CXXSTD= c++14 GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib + +WRKSRC= ${WRKDIR}/${DISTNAME:S/a$$//} + +PORTDOCS= README +PORTEXAMPLES= * OPTIONS_DEFINE= PCRE PLUGINS SETUID DOCS EXAMPLES OPTIONS_DEFAULT= PCRE PLUGINS SETUID +OPTIONS_SUB= yes + SETUID_DESC= Use privilege separation -WRKSRC= ${WRKDIR}/${DISTNAME:S/a$$//} +PCRE_LIB_DEPENDS= libpcre.so:devel/pcre +PCRE_CONFIGURE_ENABLE= pcre +PLUGINS_USES= ssl +PLUGINS_ALL_TARGET= depend all all-plugins +PLUGINS_INSTALL_TARGET= all-plugins-install +SETUID_CONFIGURE_ON=--with-suidgroup=wheel +SETUID_CONFIGURE_OFF=--without-suidgroup +SETUID_INSTALL_TARGET= suidinstall +SETUID_INSTALL_TARGET_OFF= install +SETUID_SUB_FILES= suid_pkg-message +SETUID_PLIST_SUB= SUID="" SUIDGROUP="${GROUPS}" +SETUID_PLIST_SUB_OFF= SUID="@comment " SUIDGROUP="" .include -.if ${PORT_OPTIONS:MDOCS} -PORTDOCS= README -.endif - -.if ${PORT_OPTIONS:MEXAMPLES} -PORTEXAMPLES= * -.endif - -.if ${PORT_OPTIONS:MPCRE} -CONFIGURE_ARGS+=--enable-pcre -LIB_DEPENDS+= libpcre.so:devel/pcre -.else -CONFIGURE_ARGS+=--disable-pcre -.endif - .if ${PORT_OPTIONS:MSETUID} GROUPS= kismet -CONFIGURE_ARGS+=--with-suidgroup=wheel -INSTALL_TARGET= suidinstall -PLIST_SUB+= SUID="" SUIDGROUP="${GROUPS}" PKGMESSAGE= ${WRKDIR}/suid_pkg-message -SUB_FILES+= suid_pkg-message -.else -INSTALL_TARGET= install -CONFIGURE_ARGS+=--without-suidgroup -PLIST_SUB+= SUID="@comment " SUIDGROUP="" -.endif - -.if ${PORT_OPTIONS:MPLUGINS} -ALL_TARGET= depend all all-plugins -INSTALL_TARGET+= all-plugins-install -USES+= ssl -PLIST_SUB+= PLUGINS="" -.else -PLIST_SUB+= PLUGINS="@comment " .endif .include