Ticket #44287: patch-set-macports-paths.diff

File patch-set-macports-paths.diff, 1.4 KB (added by dottedmag@…, 10 years ago)

files/patch-set-macports-paths.diff

  • easyrsa

    vars_setup() { 
    885885        local vars=
    886886
    887887        # set up program path
    888         local prog_vars="${0%/*}/vars"
     888        local prog_vars="/opt/local/share/easy-rsa"
    889889
    890890        # command-line path:
    891891        if [ -f "$EASYRSA_VARS_FILE" ]; then
    Note: using Easy-RSA configuration from: $vars" 
    910910        fi
    911911       
    912912        # Set defaults, preferring existing env-vars if present
    913         set_var EASYRSA         "$PWD"
     913        set_var EASYRSA         "/opt/local/share/easy-rsa"
    914914        set_var EASYRSA_OPENSSL openssl
    915         set_var EASYRSA_PKI     "$EASYRSA/pki"
     915        set_var EASYRSA_PKI     "$PWD/pki"
    916916        set_var EASYRSA_DN      cn_only
    917917        set_var EASYRSA_REQ_COUNTRY     "US"
    918918        set_var EASYRSA_REQ_PROVINCE    "California"
  • vars.example

    fi 
    4242# This variable should point to the top level of the easy-rsa tree. By default,
    4343# this is taken to be the directory you are currently in.
    4444
    45 #set_var EASYRSA        "$PWD"
     45#set_var EASYRSA        "/opt/local/share/easy-rsa"
    4646
    4747# If your OpenSSL command is not in the system PATH, you will need to define the
    4848# path to it here. Normally this means a full path to the executable, otherwise
    fi 
    6262# WARNING: init-pki will do a rm -rf on this directory so make sure you define
    6363# it correctly! (Interactive mode will prompt before acting.)
    6464
    65 #set_var EASYRSA_PKI            "$EASYRSA/pki"
     65#set_var EASYRSA_PKI            "$PWD/pki"
    6666
    6767# Define X509 DN mode.
    6868# This is used to adjust what elements are included in the Subject field as the DN