Make sure use PKG_SYSCONFDIR for the "etc" sed expression. Also do the SUBST_SED on the configuration example file too.