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
This commit is contained in:
Cy Schubert 2021-10-13 20:10:06 -07:00
parent 75ca0c0a10
commit 2f65a74419
2 changed files with 9 additions and 1 deletions

View File

@ -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}

View File

@ -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