X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=Portfile.in;h=3adab000dc2a83b819dd1f40cec9702912839c89;hb=63d907488cf3f45bb9e91f45165fa6af10ddad29;hp=2408f9275253ecadc03b3e9d0410b9d2fba6b4ed;hpb=50ef0473b23b48d0049a0340323278a49fa9cf88;p=shibboleth%2Fsp.git diff --git a/Portfile.in b/Portfile.in index 2408f92..3adab00 100644 --- a/Portfile.in +++ b/Portfile.in @@ -60,6 +60,18 @@ post-destroot { eval file delete [glob ${destroot}${prefix}/lib/${name}/*.la] } +post-activate { + # Make sure initial conf files are present and set up correctly + set confDir ${prefix}/etc/${name} + foreach f [glob -tails -directory ${confDir} *.dist] { + regexp {(.+)\.dist} $f ign destname + if {![file exists ${confDir}/${destname}]} { + file copy ${confDir}/${f} ${confDir}/${destname} + } + } + system "cd ${prefix}/etc/${name} && ./keygen.sh -b" +} + startupitem.create yes startupitem.name shibd startupitem.executable ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/${name}/shibd.pid