freebsd-ports/net-mgmt/nagnu/Makefile
Robert Clausecker b2f6d7df7e net-mgmt/nagnu: unbreak on FreeBSD 13+
Build with -fcommon to avoid a duplicate symbol error.

See also:	https://github.com/frlen/nagnu/issues/5
Approved by:	portmgr (build fix blanket)
2023-04-12 01:02:44 +02:00

35 lines
774 B
Makefile

PORTNAME= nagnu
PORTVERSION= 1.1.3
PORTREVISION= 1
CATEGORIES= net-mgmt
MAINTAINER= fredrik@min-hemsida.net
COMMENT= Nagios dashboard
WWW= https://github.com/frlen/nagnu
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libcurl.so:ftp/curl
USES= ncurses
USE_GITHUB= yes
GH_ACCOUNT= frlen
PLIST_FILES= bin/nagnu \
man/man8/nagnu.8.gz \
share/examples/nagnu/nagnu.conf.sample
GNU_CONFIGURE= yes
CFLAGS+= -fcommon
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nagnu ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${PREFIX}/share/examples/nagnu
${INSTALL_DATA} ${WRKSRC}/nagnu.conf.sample \
${STAGEDIR}${PREFIX}/share/examples/nagnu/nagnu.conf.sample
${INSTALL_MAN} ${WRKSRC}/docs/nagnu.8 \
${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>