DIST_SUBDIRS = doc schemas configs shibsp shibd adfs util apache nsapi_shib fastcgi odbc-store memcache-store selinux
-GENFILES = shibboleth.spec pkginfo Portfile
-
if DX_COND_doc
-all-local: doxygen-doc $(GENFILES)
+all-local: doxygen-doc
else
-all-local: $(GENFILES)
+all-local:
endif
dist-hook:
rm -rf `find $(distdir)/isapi_shib -name .svn`
rm -rf `find $(distdir)/doc/api -name .svn`
-$(GENFILES): %: %.in Makefile
- rm -f $@.tmp
- sed < $@.in > $@.tmp \
- -e 's:@-VERSION-@:${VERSION}:'
- mv $@.tmp $@
-
+GENFILES = shibboleth.spec pkginfo Portfile
EXTRA_DIST = $(DX_CONFIG) \
isapi_shib \
$(GENFILES:%=%.in) \
depend \
postinstall
-
-DISTCLEANFILES = $(GENFILES)
PortSystem 1.0
-name shibboleth
-version @-VERSION-@
+name @PACKAGE@
+version @PACKAGE_VERSION@
categories security www shibboleth
maintainers scantor snc
description Shibboleth Native Service Provider
long_description Standards-based attribute-based Web SSO system
homepage http://shibboleth.internet2.edu/
-master_sites http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/${version}/
+master_sites http://shibboleth.internet2.edu/downloads/${name}/cppsp/${version}/
distname ${name}-sp-${version}
worksrcdir ${name}-${version}
checksums sha1 @CHECKSUM@
configure.args-append --enable-odbc
}
-destroot.keepdirs ${destroot}${prefix}/var/log/shibboleth ${destroot}${prefix}/var/log/httpd ${destroot}${prefix}/var/run/shibboleth
+destroot.keepdirs ${destroot}${prefix}/var/log/${name} ${destroot}${prefix}/var/log/httpd ${destroot}${prefix}/var/run/${name}
destroot.args NOKEYGEN=1
post-destroot {
- eval file delete [glob ${destroot}${prefix}/etc/shibboleth/*.logger]
- eval file delete [glob ${destroot}${prefix}/etc/shibboleth/*.html]
- eval file delete [glob ${destroot}${prefix}/etc/shibboleth/*.xml]
- file delete ${destroot}${prefix}/etc/shibboleth/shibd-debian
- file delete ${destroot}${prefix}/etc/shibboleth/shibd-redhat
- file delete ${destroot}${prefix}/etc/shibboleth/shibd-osx.plist
- eval file delete [glob ${destroot}${prefix}/lib/shibboleth/*.la]
+ eval file delete [glob ${destroot}${prefix}/etc/${name}/*.logger]
+ eval file delete [glob ${destroot}${prefix}/etc/${name}/*.html]
+ eval file delete [glob ${destroot}${prefix}/etc/${name}/*.xml]
+ eval file delete [glob ${destroot}${prefix}/etc/${name}/shibd-*]
+ eval file delete [glob ${destroot}${prefix}/lib/${name}/*.la]
}
startupitem.create yes
startupitem.name shibd
-startupitem.executable ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/shibboleth/shibd.pid
+startupitem.executable ${prefix}/sbin/shibd -F -f -p ${prefix}/var/run/${name}/shibd.pid
livecheck.check regex
livecheck.url http://shibboleth.internet2.edu/downloads/shibboleth/cppsp/latest/mac/ports/shibboleth/shibboleth/Portfile
AC_SUBST(LITE_LIBS)
AC_SUBST(XMLSEC_LIBS)
+AC_CONFIG_FILES([shibboleth.spec pkginfo Portfile])
+
# output the underlying makefiles
WANT_SUBDIRS="doc schemas configs shibsp shibd util"
AC_CONFIG_FILES([Makefile doc/Makefile schemas/Makefile \
LIBTOOL="$LIBTOOL --silent"
AC_OUTPUT
-
-Name: shibboleth
-Version: @-VERSION-@
+Name: @PACKAGE@
+Version: @PACKAGE_VERSION@
Release: 1
Summary: Open source system for attribute-based Web SSO
Group: System Environment/Libraries
%endif
%{_sysconfdir}/%{name}/*.dist
%{_sysconfdir}/%{name}/apache*.config
-%{_sysconfdir}/%{name}/shibd-redhat
-%{_sysconfdir}/%{name}/shibd-debian
-%{_sysconfdir}/%{name}/shibd-osx.plist
+%{_sysconfdir}/%{name}/shibd-*
%attr(755, root, root) %{_sysconfdir}/%{name}/keygen.sh
%attr(755, root, root) %{_sysconfdir}/%{name}/metagen.sh
%{_sysconfdir}/%{name}/*.xsl