summaryrefslogtreecommitdiff
path: root/net/nrpep/files/patch-ab
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-01-17 13:47:59 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-01-17 13:47:59 +0000
commitf85645ba97000236d8e9669d403c84d48ebf2453 (patch)
tree16917fa72c0f3f8d8e9b7e025a7b3282817e442b /net/nrpep/files/patch-ab
parentMerge fixes from PR 46529, remove version number from lib/ directory, (diff)
New port: net/nrpep
New port for the Netsaint Remote Plugin Executor (Perl) PR: ports/37185 Submitted by: Jon Wilson <jon@netcraft.com>
Diffstat (limited to 'net/nrpep/files/patch-ab')
-rw-r--r--net/nrpep/files/patch-ab99
1 files changed, 99 insertions, 0 deletions
diff --git a/net/nrpep/files/patch-ab b/net/nrpep/files/patch-ab
new file mode 100644
index 000000000000..d8a0da71decf
--- /dev/null
+++ b/net/nrpep/files/patch-ab
@@ -0,0 +1,99 @@
+--- Makefile.orig Wed Jan 5 23:04:22 2000
++++ Makefile Wed Apr 10 18:24:16 2002
+@@ -3,50 +3,57 @@
+ #
+
+ #
+-# Configuration Files
++# Configuration Files
+ #
+
+ #
+ # What directory the server program (nrpep) should live in
+ #
+-nrpepserverdir = "/usr/sbin"
++nrpepserverdir = $(PREFIX)/sbin
+
+ #
+ # What directory the plugin client should live in
+ #
+-nrpepplugindir = "/usr/local/netsaint/libexec"
++nrpepplugindir = $(PREFIX)/libexec/netsaint
+
+ #
+ # What user should own nrpep
+ #
+-nrpepowner = "root"
++nrpepowner = root
+
+ #
+ # What group should own nrpep
+ #
+-nrpepgroup = "root"
++nrpepgroup = wheel
+
+ #
+ # What user should own check_nrpep
+ #
+-checknrpepowner = "netsaint"
++checknrpepowner = root
+
+ #
+ # What group should own check_nrpep
+ #
+-checknrpepgroup = "netsaint"
++checknrpepgroup = wheel
+
+ #
+ # What directory should the nrpep config files go to
+ #
+-nrpepconfigdir = "/usr/local/netsaint/etc"
++nrpepconfigdir = $(PREFIX)/etc/netsaint
+
+ # ***************************************
+ # DO NOT CHANGE ANYTHING BELOW THIS POINT
+ # ***************************************
+
+ all:
+- cat README | more
++ mv nrpep.cfg nrpep.cfg.orig
++ cat nrpep.cfg.orig | sed -e 's%/usr/local/netsaint/libexec%$(PREFIX)/libexec/netsaint%' > nrpep.cfg
++
++install: install-client install-server
++ if [ ! -d "$(PREFIX)/share/doc/nrpep" ]; then \
++ mkdir -p $(PREFIX)/share/doc/nrpep; \
++ fi
++ cp README $(PREFIX)/share/doc/nrpep
+
+ install-client:
+ `if [ ! -d "$(nrpepplugindir)" ]; then \
+@@ -55,8 +62,8 @@
+ `if [ ! -d "$(nrpepconfigdir)" ]; then \
+ mkdir -p $(nrpepconfigdir); \
+ fi`
+- install -b -D -g $(checknrpepgroup) -o $(checknrpepowner) -m 755 check_nrpep $(nrpepplugindir);
+- install -b -D -g $(checknrpepgroup) -o $(checknrpepowner) -m 644 check_nrpep.cfg $(nrpepconfigdir);
++ install -g $(checknrpepgroup) -o $(checknrpepowner) -m 755 check_nrpep $(nrpepplugindir);
++ install -g $(checknrpepgroup) -o $(checknrpepowner) -m 644 check_nrpep.cfg $(nrpepconfigdir);
+
+ install-server:
+ `if [ ! -d "$(nrpepserverdir)" ]; then \
+@@ -65,8 +72,8 @@
+ `if [ ! -d "$(nrpepconfigdir)" ]; then \
+ mkdir -p $(nrpepconfigdir); \
+ fi`
+- install -b -D -g $(nrpepgroup) -o $(nrpepowner) -m 755 nrpep $(nrpepserverdir);
+- install -b -D -g $(nrpepgroup) -o $(nrpepowner) -m 644 nrpep.cfg $(nrpepconfigdir);
++ install -g $(nrpepgroup) -o $(nrpepowner) -m 755 nrpep $(nrpepserverdir);
++ install -g $(nrpepgroup) -o $(nrpepowner) -m 644 nrpep.cfg $(nrpepconfigdir);
+
+ uninstall-client:
+ rm $(nrpepplugindir)/check_nrpep
+@@ -75,3 +82,7 @@
+ uninstall-server:
+ rm $(nrpepserverdir)/nrpep
+ rm $(nrpepconfigdir)/nrpep.cfg
++
++
++
++