Skip to content

Commit d85bbf8

Browse files
committed
build modempoller against postgresql16 libs
1 parent 5d9d5e5 commit d85bbf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

SPECS/modempoller-nmsprime.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ License: GPLv3
88
URL: https://github.com/nmsprime/async-snmp-poller
99
Source: https://raw.githubusercontent.com/nmsprime/async-snmp-poller/master/src/%{name}.c
1010

11-
Requires: net-snmp-libs libpq
12-
BuildRequires: gcc net-snmp-devel libpq-devel
11+
Requires: net-snmp-libs postgresql16-libs
12+
BuildRequires: gcc net-snmp-devel postgresql16-devel
1313

1414
%description
1515
This asynchronous snmp poller solves the issue with Cacti when monitoring several
@@ -18,7 +18,7 @@ its monitoring data by using hundreds of concurrent php workers which handle eac
1818
small batch of devices sequentially. This blocks the CPU and scales pretty poorly.
1919

2020
%build
21-
gcc -s -L $(pg_config --libdir) -l netsnmp -l pq -o %{name} %{_sourcedir}/%{name}.c
21+
gcc -s -I $(/usr/pgsql-16/bin/pg_config --includedir) -L $(/usr/pgsql-16/bin/pg_config --libdir) -l netsnmp -l pq -o %{name} %{_sourcedir}/%{name}.c
2222

2323
%install
2424
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}

0 commit comments

Comments
 (0)