diff --git a/templates/initng-ifiles.tmpl b/templates/initng-ifiles.tmpl index 53fd275fd6..017a334dee 100644 --- a/templates/initng-ifiles.tmpl +++ b/templates/initng-ifiles.tmpl @@ -24,3 +24,10 @@ long_desc=" build_depends="cmake-2.6.2 initng-0.6.10.2" run_depends="glibc-2.8 initng-0.6.10.2" + +pre_install() +{ + # Replace hardcoded prefix. + sed -i -e "s|@LIB_INSTALL_DIR@|/lib|g" \ + $wrksrc/genrunlevel.in +}