aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2021-10-14 03:10:06 +0000
committerCy Schubert <cy@FreeBSD.org>2021-10-14 03:51:08 +0000
commit2f65a74419f81de566ea103f8e2d8c854d211b24 (patch)
treea7bead0611a51f9ea9634652e24876ddce2094a9
parent75ca0c0a1067e17e31335a0cd1c85e2432d9e51a (diff)
downloadports-2f65a74419f81de566ea103f8e2d8c854d211b24.tar.gz
ports-2f65a74419f81de566ea103f8e2d8c854d211b24.zip
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
-rw-r--r--sysutils/nut-devel/Makefile5
-rw-r--r--sysutils/nut-devel/pkg-plist5
2 files changed, 9 insertions, 1 deletions
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