Commit c4b48616 authored by Jørn Åne de Jong's avatar Jørn Åne de Jong

Refactor /opt to /usr/local

Packages should not use /opt
parent 4a9cc03f
......@@ -6,7 +6,7 @@ VERSION=0.3.1+uninett4
VENDOR=
# Where to install to.
PREFIX?=/opt/logstash-forwarder
PREFIX?=/usr/local/logstash-forwarder
FETCH=sh fetch.sh
MAKE?=make
......@@ -47,7 +47,7 @@ vendor-clean:
rpm: OS=rhel
deb: OS=debian
rpm deb: PREFIX=/opt/logstash-forwarder
rpm deb: PREFIX=/usr/local/logstash-forwarder
rpm deb: | build-all
fpm -s dir -t $@ -n logstash-forwarder -v $(VERSION) \
--replaces logstash-forwarder \
......
......@@ -134,7 +134,7 @@ Or:
If you don't use rpm or deb make targets as above, you can skip this section.
Packages install to `/opt/logstash-forwarder`.
Packages install to `/usr/local/logstash-forwarder`.
There are no run-time dependencies.
......
......@@ -16,7 +16,7 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="log shipper"
NAME=logstash-forwarder
DAEMON=/opt/logstash-forwarder/bin/logstash-forwarder
DAEMON=/usr/local/logstash-forwarder/bin/logstash-forwarder
DAEMON_ARGS="-config /etc/logstashforwarder/config.json -spool-size 100 -log-to-syslog"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
......
......@@ -16,7 +16,7 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="log shipper"
NAME=logstash-forwarder
DAEMON=/opt/logstash-forwarder/bin/logstash-forwarder
DAEMON=/usr/local/logstash-forwarder/bin/logstash-forwarder
DAEMON_ARGS="-config /etc/logstashforwarder/config.json -spool-size 100 -log-to-syslog"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment