File: sysconfdir.patch

package info (click to toggle)
nstreams 1.0.4%2Bds-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: ansic: 1,548; sh: 152; makefile: 49
file content (15 lines) | stat: -rw-r--r-- 678 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Andreas Tille <tille@debian.org>
Last-Update: 2024-12-11
Description: Very unelegant way to force sysconfdir to what we need

--- a/configure.in
+++ b/configure.in
@@ -29,7 +29,7 @@ CFLAGS="$CFLAGS -I/usr/include/pcap"
 AC_CHECK_LIB(pcap, pcap_open_live,,AC_MSG_ERROR("*** You need the pcap library"))
 
 test "$prefix" = NONE && prefix=/usr/local
-sysconfdir=${prefix}/etc
+sysconfdir=/etc
 AC_DEFINE_UNQUOTED([ETC_NSTREAMS_NETWORKS], "${sysconfdir}/nstreams/nstreams-networks", [Path to nstreams-networks file])
 AC_DEFINE_UNQUOTED([ETC_NSTREAMS_SERVICES], "${sysconfdir}/nstreams/nstreams-services", [Path to nstreams-services file])
 AC_CHECK_FUNCS(bzero inet_ntoa)