--- ofpc-extract.pl.orig 2010-05-24 16:01:00.000000000 -0500 +++ ofpc-extract.pl 2010-08-05 18:40:11.000000000 -0500 @@ -1,4 +1,5 @@ -#!/usr/bin/perl -I /opt/openfpc/ . +#!@PERL5_BIN@ +use lib ('@PERL5_LIB@'); ######################################################################################### # Copyright (C) 2009 Leon Ward @@ -28,7 +29,7 @@ use ofpcParse; # List of config files to look for, first one wins -my @CONFIG_FILES=("openfpc.conf", "/etc/openfpc/openfpc.conf","/opt/openfpc/openfpc.conf"); +my @CONFIG_FILES=("openfpc.conf", "@PREFIX@/etc/openfpc.conf"); my $CONFIG_FILE; my %config; my $openfpcver="0.1a"; --- openfpc.orig 2010-05-24 16:01:00.000000000 -0500 +++ openfpc 2010-08-05 18:40:10.000000000 -0500 @@ -24,7 +24,7 @@ # ---------------- Nothing to do below here ------------- # List of config files to try in order -CONFIG_FILES="./openfpc.conf /etc/openfpc/openfpc.conf /opt/openfpc/openfpc.conf" +CONFIG_FILES="./openfpc.conf @PREFIX@/etc/openfpc.conf" for i in $CONFIG_FILES do