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 ...@@ -6,7 +6,7 @@ VERSION=0.3.1+uninett4
VENDOR= VENDOR=
# Where to install to. # Where to install to.
PREFIX?=/opt/logstash-forwarder PREFIX?=/usr/local/logstash-forwarder
FETCH=sh fetch.sh FETCH=sh fetch.sh
MAKE?=make MAKE?=make
...@@ -47,7 +47,7 @@ vendor-clean: ...@@ -47,7 +47,7 @@ vendor-clean:
rpm: OS=rhel rpm: OS=rhel
deb: OS=debian deb: OS=debian
rpm deb: PREFIX=/opt/logstash-forwarder rpm deb: PREFIX=/usr/local/logstash-forwarder
rpm deb: | build-all rpm deb: | build-all
fpm -s dir -t $@ -n logstash-forwarder -v $(VERSION) \ fpm -s dir -t $@ -n logstash-forwarder -v $(VERSION) \
--replaces logstash-forwarder \ --replaces logstash-forwarder \
......
...@@ -134,7 +134,7 @@ Or: ...@@ -134,7 +134,7 @@ Or:
If you don't use rpm or deb make targets as above, you can skip this section. 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. There are no run-time dependencies.
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="log shipper" DESC="log shipper"
NAME=logstash-forwarder 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" DAEMON_ARGS="-config /etc/logstashforwarder/config.json -spool-size 100 -log-to-syslog"
PIDFILE=/var/run/$NAME.pid PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME SCRIPTNAME=/etc/init.d/$NAME
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="log shipper" DESC="log shipper"
NAME=logstash-forwarder 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" DAEMON_ARGS="-config /etc/logstashforwarder/config.json -spool-size 100 -log-to-syslog"
PIDFILE=/var/run/$NAME.pid PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME 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