Lines 33-51
Link Here
|
33 |
|
33 |
|
34 |
portaudit_confs() |
34 |
portaudit_confs() |
35 |
{ |
35 |
{ |
36 |
: ${portaudit_dir="%%DATABASEDIR%%"} |
36 |
if [ -r %%PREFIX%%/etc/portaudit.conf ]; then |
37 |
: ${portaudit_filename="auditfile.tbz"} |
37 |
. %%PREFIX%%/etc/portaudit.conf |
|
|
38 |
fi |
39 |
|
40 |
if [ -r "${0%/*}/portaudit.conf" ]; then |
41 |
. ${0%/*}/portaudit.conf |
42 |
fi |
43 |
|
44 |
: ${portaudit_dir:="%%DATABASEDIR%%"} |
45 |
: ${portaudit_filename:="auditfile.tbz"} |
38 |
|
46 |
|
39 |
: ${portaudit_fetch_env=""} |
47 |
: ${portaudit_fetch_env=""} |
40 |
: ${portaudit_fetch_cmd="fetch -1mp"} |
48 |
: ${portaudit_fetch_cmd:="fetch -1mp"} |
41 |
|
49 |
|
42 |
: ${portaudit_sites="http://portaudit.FreeBSD.org/"} |
50 |
: ${portaudit_sites:="http://portaudit.FreeBSD.org/"} |
43 |
|
51 |
|
44 |
: ${portaudit_fixed=""} |
52 |
: ${portaudit_fixed=""} |
45 |
|
|
|
46 |
if [ -r %%PREFIX%%/etc/portaudit.conf ]; then |
47 |
. %%PREFIX%%/etc/portaudit.conf |
48 |
fi |
49 |
} |
53 |
} |
50 |
|
54 |
|
51 |
extract_auditfile() |
55 |
extract_auditfile() |