X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=Portfile;h=f0d93465e666f7583227218c23a73a2d5c24000c;hb=refs%2Fheads%2Fexperimental;hp=6a37645901c2113441114ae3fdd3f7b7c12dfd46;hpb=2b8daf0f4fd3e5035ab3babdc76fe676e8823f93;p=shibboleth%2Fsp.git diff --git a/Portfile b/Portfile index 6a37645..f0d9346 100644 --- a/Portfile +++ b/Portfile @@ -1,7 +1,7 @@ PortSystem 1.0 name shibboleth -version 2.3 +version 2.4 categories security www shibboleth maintainers scantor snc description Shibboleth Native Service Provider @@ -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