--- a/sqlgrey 2012-08-24 18:05:39.000000000 -0700
+++ b/sqlgrey 2012-08-24 18:07:09.000000000 -0700
# sqlgrey: a postfix greylisting policy server using an SQL backend
$dflt{loglevel} = 2; # used for $dflt{log} entries in read_conffile()
-$dflt{user} = 'sqlgrey';
-$dflt{group} = 'sqlgrey';
+$dflt{user} = '@SQLGREYUSER@';
+$dflt{group} = '@SQLGREYGROUP@';
-$dflt{pidfile} = '/var/run/sqlgrey.pid';
-$dflt{conf_dir} = '/etc/sqlgrey';
+$dflt{pidfile} = '@PREFIX@/var/run/@NAME@/sqlgrey.pid';
+$dflt{conf_dir} = '@PREFIX@/etc/sqlgrey';
$dflt{reconnect_delay} = 5; # 5 minutes
$dflt{max_connect_age} = 24; # 24 hours
$dflt{awl_age} = 60; # 60 days
# Default configuration file
-my $config_file = '/etc/sqlgrey/sqlgrey.conf';
+my $config_file = '@PREFIX@/etc/sqlgrey/sqlgrey.conf';
my $stat_ip_whitelist_file = $dflt{conf_dir} . '/clients_ip_whitelist';
# Ugly hack to prevent perl from complaining
# 'warning: Filehandle STDERR reopened as FILE only \
- # for input at /usr/bin/sqlgrey line 717, <FILE> line 57'
+ # for input at @PREFIX@/bin/sqlgrey line 717, <FILE> line 57'
open(STDIN,'</dev/null');
open(STDOUT,'>/dev/null');
open(STDERR,'>/dev/null');
-k, --kill kill a running sqlgrey
(identified by 'pidfile' content)
-f, --configfile=FILE read config from FILE
- (default /etc/sqlgrey/sqlgrey.conf)
+ (default @PREFIX@/etc/sqlgrey/sqlgrey.conf)
expecting config_param=value lines,
- '#' is used for comments
-See the default config file at /etc/sqlgrey/sqlgrey.conf for runtime parameters.
+See the default config file at @PREFIX@/etc/sqlgrey/sqlgrey.conf for runtime parameters.
If you got sqlgrey from sources, read the HOWTO file in the compressed archive.
If it came prepackaged, look into the documentation tree for this file:
-/usr/share/doc/sqlgrey-<version>/ on most Linux distributions for example.
+@PREFIX@/share/doc/sqlgrey-<version>/ on most Linux distributions for example.