git: a5c1d44aa544 - 2021Q4 - sysutils/nut-devel: Build nut-scanner(8)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Oct 2021 03:15:40 UTC
The branch 2021Q4 has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a5c1d44aa54422f38de3f11bb59cfd83b33e66ee
commit a5c1d44aa54422f38de3f11bb59cfd83b33e66ee
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2021-10-14 03:10:06 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2021-10-15 03:15:09 +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
(cherry picked from commit 2f65a74419f81de566ea103f8e2d8c854d211b24)
---
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 dfcdee60c12a..4b1d949cf972 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