summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rwxr-xr-xcheck_load2
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e9d3b76..d05e6fe 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-DESTDIR?=/usr/local
+PREFIX?=/usr
UPSTREAM=master
VERSION=$(shell git describe --tags $(UPSTREAM))
@@ -7,8 +7,8 @@ all:
clean:
install: check_load
- install -d "$(DESTDIR)/lib/nagios/plugins/"
- install $? "$(DESTDIR)/lib/nagios/plugins/"
+ install -d "$(DESTDIR)$(PREFIX)/lib/nagios/plugins/vserver/"
+ install $? "$(DESTDIR)$(PREFIX)/lib/nagios/plugins/vserver/"
dist:
git archive "$(UPSTREAM)" | gzip > "../vserver-monitoring_$(VERSION).orig.tar.gz"
diff --git a/check_load b/check_load
index 6ef76fb..1690872 100755
--- a/check_load
+++ b/check_load
@@ -6,7 +6,7 @@ use warnings;
use VServer;
use Nagios::Plugin;
-our $VERSION = '1.2';
+our $VERSION = '1.3';
sub init_nagios_plugin() {
my $plugin = Nagios::Plugin->new(