openbsd-ports/net/mon/server/patches/patch-mon_d_Makefile
pea 828c5c820c First import of mon.
mon is a tool for monitoring the availability of services, and sending alerts
on prescribed events. Services are defined as anything tested by a "monitor"
program, which can be something as simple as pinging a system, or as complex
as analyzing the results of an application-level transaction. Alerts are
actions such as sending emails, making submissions to ticketing systems, or
triggering resource fail-over in a high-availability cluster.

ok jasper@
2009-11-10 14:33:50 +00:00

31 lines
816 B
Plaintext

$OpenBSD: patch-mon_d_Makefile,v 1.1.1.1 2009/11/10 14:33:50 pea Exp $
--- mon.d/Makefile.orig Wed Jun 9 07:18:05 2004
+++ mon.d/Makefile Wed Dec 10 16:20:41 2008
@@ -3,14 +3,15 @@
#
# compiles on Linux, Solaris 2.5, Solaris 2.6, and AIX Version 4.2
#
-CC = gcc
-CFLAGS = -O2 -Wall -g
-LDFLAGS =
-LDLIBS =
+CC ?= gcc
+CFLAGS ?= -O2 -Wall -g
+LDFLAGS ?=
+LDLIBS ?=
+PREFIX ?= ${PREFIX}
# uncomment next line for Solaris
# LDLIBS = -lnsl -lsocket
-MONPATH=/usr/lib/mon
+MONPATH=$(PREFIX)/lib/mon
DIALIN_MONITOR_REAL=$(MONPATH)/mon.d/dialin.monitor
PROGS = rpc.monitor dialin.monitor.wrap
@@ -31,4 +32,4 @@ clean:
install:
install -d $(MONPATH)/mon.d
install rpc.monitor $(MONPATH)/mon.d/
- install -g uucp -m 02555 dialin.monitor.wrap $(MONPATH)/mon.d/
+ install dialin.monitor.wrap $(MONPATH)/mon.d/