git: 2f65a74419f8 - main - sysutils/nut-devel: Build nut-scanner(8)

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Thu, 14 Oct 2021 03:56:17 UTC
The branch main has been updated by cy:

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

commit 2f65a74419f81de566ea103f8e2d8c854d211b24
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-14 03:10:06 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-10-14 03:51:08 +0000

    sysutils/nut-devel: Build nut-scanner(8)
    
    Depend on devel/ltdl and ensure that ${LOCALBASE}/include and
    ${LOCALBASE}/lib are available for ./configure to detect ltdl.h and
    libltdl to facilitate building nut-scanner(8).
    
    PR:             259153
    Reported by:    emaste
    MFH:            2021Q4
---
 sysutils/nut-devel/Makefile  | 5 ++++-
 sysutils/nut-devel/pkg-plist | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/sysutils/nut-devel/Makefile b/sysutils/nut-devel/Makefile
index 41277cd1ae68..d431cc765cef 100644
--- a/sysutils/nut-devel/Makefile
+++ b/sysutils/nut-devel/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	nut
 PORTVERSION=	${NUT_COMMIT_DATE}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 PKGNAMESUFFIX=	-devel
 # MASTER_SITES=	http://www.networkupstools.org/source/${PORTVERSION:R}/
@@ -69,6 +69,9 @@ CONFIGURE_ARGS=	--sysconfdir=${PREFIX}/etc/nut \
 		--with-group=${NUT_GROUP} \
 		--with-dev
 
+CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
+LIB_DEPENDS+=	libltdl.so:devel/libltdl
+
 BUILD_DEPENDS=	asciidoc:textproc/asciidoc
 
 .if ${PORT_OPTIONS:MCGI}
diff --git a/sysutils/nut-devel/pkg-plist b/sysutils/nut-devel/pkg-plist
index c20f86209e65..2e93f9586d30 100644
--- a/sysutils/nut-devel/pkg-plist
+++ b/sysutils/nut-devel/pkg-plist
@@ -20,6 +20,7 @@
 @sample %%EXAMPLESDIR%%/newsyslog.sample etc/newsyslog.conf.d/nut.conf
 @sample %%EXAMPLESDIR%%/syslog.sample etc/syslog.d/nut
 %%NUT_USB%%etc/devd/nut-usb.conf
+bin/nut-scanner
 bin/upsc
 bin/upscmd
 bin/upslog
@@ -47,6 +48,10 @@ lib/libnutclientstub.a
 lib/libnutclientstub.so
 lib/libnutclientstub.so.1
 lib/libnutclientstub.so.1.0.0
+lib/libnutscan.a
+lib/libnutscan.so
+lib/libnutscan.so.1
+lib/libnutscan.so.1.0.0
 libdata/pkgconfig/libnutclient.pc
 libdata/pkgconfig/libnutscan.pc
 libdata/pkgconfig/libupsclient.pc