pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/52050: Changing Makefile for net/nagios-plugin-syncrepl



The following reply was made to PR pkg/52050; it has been noted by GNATS.

From: Claes =?utf-8?B?TsOkc3TDqW4=?= <pekdon%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/52050: Changing Makefile for net/nagios-plugin-syncrepl
Date: Wed, 16 Mar 2022 22:00:44 +0100

 Current package does not work on SunOS either.
 
 These changes works for me TM:
 
 diff --git a/net/nagios-plugin-syncrepl/Makefile b/net/nagios-plugin-syncrepl/Makefile
 index 04fc6a61181..a7b9171dea3 100644
 --- a/net/nagios-plugin-syncrepl/Makefile
 +++ b/net/nagios-plugin-syncrepl/Makefile
 @@ -11,6 +11,8 @@ MAINTAINER=   manu%NetBSD.org@localhost
  HOMEPAGE=      https://ftp.espci.fr/pub/nagios-local/
  COMMENT=       LDAP replication monitoring plugin for Nagios
  LICENSE=       modified-bsd
 +LDFLAGS+=      -Wl,-R${BUILDLINK_PREFIX.openldap-client}/lib \
 +               -L${BUILDLINK_PREFIX.openldap-client}/lib -lldap
  
  INSTALLATION_DIRS+=    libexec/nagios
  
 diff --git a/net/nagios-plugin-syncrepl/patches/patch-Makefile b/net/nagios-plugin-syncrepl/patches/patch-Makefile
 new file mode 100644
 index 00000000000..0ebb6801f83
 --- /dev/null
 +++ b/net/nagios-plugin-syncrepl/patches/patch-Makefile
 @@ -0,0 +1,16 @@
 +$NetBSD$
 +
 +--- Makefile.orig      2022-03-16 13:16:54.607594372 +0000
 ++++ Makefile
 +@@ -1,9 +1,9 @@
 + CFLAGS=       -DLDAP_DEPRECATED
 +-LIBS= -lldap
 ++LDFLAGS?=-lldap
 + all:  check_syncrepl
 + 
 + check_syncrepl:       check_syncrepl.o
 +-      $(CC) ${LIBS} -o check_syncrepl check_syncrepl.o
 ++      $(CC) $(LDFLAGS) -o check_syncrepl check_syncrepl.o
 + 
 + clean:
 +       rm -f *.o *.core check_syncrepl
 


Home | Main Index | Thread Index | Old Index