default_pre_build &&

sedit "s:-/usr/local/etc:/etc:" smartd.service.in
sedit "s:/bin/kill:/usr/bin/kill:g" smartd.service.in
sedit "s:sysconfig/smartmontools:smartd.conf:g" smartd.service.in
sedit "s:smartd_opts:SMARTD_ARGS:g" smartd.service.in

#Standard output type syslog is obsolete, automatically updating to journal.
#Please update your unit file, and consider removing the setting altogether.
sedit "10d" smartd.service.in &&

# make sure to use `uname -n` instead of `hostname`
sedit "/^os_hostname/c os_hostname=\"'uname -n'\"" configure.ac &&

autoreconf -fi
