Adjusted paths and Makefile suitable for /opt installation method

This commit is contained in:
Eric Renfro 2015-02-18 13:53:35 -05:00
parent bfdfe9b77f
commit f971df16c7
6 changed files with 6 additions and 6 deletions

View file

@ -11,7 +11,7 @@ PKG_NAME=$(NAME)-$(VERSION)
PKG=$(PKG_DIR)/$(PKG_NAME)_$(VERSION).tar.gz PKG=$(PKG_DIR)/$(PKG_NAME)_$(VERSION).tar.gz
SIG=$(PKG_DIR)/$(PKG_NAME).asc SIG=$(PKG_DIR)/$(PKG_NAME).asc
PREFIX?=/usr/local PREFIX?=/opt/$(NAME)
DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME) DOC_DIR=$(PREFIX)/share/doc/$(PKG_NAME)
pkg: pkg:

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
source $(dirname $(dirname $0))/lib/ca-functions source $(dirname $(dirname $0))/../lib/ca-functions
ALT_NAMES=() ALT_NAMES=()
QUALIFY=1 QUALIFY=1

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
source $(dirname $(dirname $0))/lib/ca-functions source $(dirname $(dirname $0))/../lib/ca-functions
# XXX: Add an interactive mode to this script to obviate the need for a # XXX: Add an interactive mode to this script to obviate the need for a
# pre-existing config file? e.g. # pre-existing config file? e.g.

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
source $(dirname $(dirname $0))/lib/ca-functions source $(dirname $(dirname $0))/../lib/ca-functions
usage() { usage() {
cat <<__EOT__ cat <<__EOT__

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
source $(dirname $(dirname $0))/lib/ca-functions source $(dirname $(dirname $0))/../lib/ca-functions
usage() { usage() {
cat <<__EOT__ cat <<__EOT__

View file

@ -3,7 +3,7 @@
PROGNAME=$( basename $0 ) PROGNAME=$( basename $0 )
CONFFILE="/etc/ca-scripts.conf" CONFFILE="/etc/ca-scripts.conf"
SHAREDIR=$(dirname $(dirname $0))/tpl SHAREDIR=$(dirname $(dirname $0))/../tpl
CRYPTKEY="-nodes" CRYPTKEY="-nodes"
INDEXTPL="index-html" INDEXTPL="index-html"