aboutsummaryrefslogtreecommitdiff
path: root/www/pubcookie-login-server
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2006-02-08 03:00:05 +0000
committerBrooks Davis <brooks@FreeBSD.org>2006-02-08 03:00:05 +0000
commit0ffb6a38d8693b695d9de86c39f8f17023ec3b04 (patch)
treed9244d81c7c79864adfd6386d8a4f42efee78d49 /www/pubcookie-login-server
parent1b4568deecd85ddfa39c52844145d8207c8ac9f4 (diff)
downloadports-0ffb6a38d8693b695d9de86c39f8f17023ec3b04.tar.gz
ports-0ffb6a38d8693b695d9de86c39f8f17023ec3b04.zip
Notes
Diffstat (limited to 'www/pubcookie-login-server')
-rw-r--r--www/pubcookie-login-server/Makefile75
-rw-r--r--www/pubcookie-login-server/Makefile.templates3
-rw-r--r--www/pubcookie-login-server/distinfo3
-rw-r--r--www/pubcookie-login-server/files/patch-Makefile.in51
-rw-r--r--www/pubcookie-login-server/files/patch-Makefile.in.ap223
-rw-r--r--www/pubcookie-login-server/files/pkg-install.in39
-rw-r--r--www/pubcookie-login-server/pkg-descr11
-rw-r--r--www/pubcookie-login-server/pkg-plist58
8 files changed, 263 insertions, 0 deletions
diff --git a/www/pubcookie-login-server/Makefile b/www/pubcookie-login-server/Makefile
new file mode 100644
index 000000000000..cbf9d300a40b
--- /dev/null
+++ b/www/pubcookie-login-server/Makefile
@@ -0,0 +1,75 @@
+# Ports collection makefile for: pubcookie
+# Date created: Sat Jan 21, 2006
+# Whom: Brooks Davis <brooks@freebsd.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pubcookie
+DISTVERSION= 3.3.0-beta2
+CATEGORIES= www security
+MASTER_SITES= http://pubcookie.org/downloads/
+PKGNAMESUFFIX= -login-server
+
+MAINTAINER= brooks@FreeBSD.org
+COMMENT= A single sign-on system for websites (login server)
+
+CONFLICTS= mod_pubcookie-[0-9]*
+
+OPTIONS= LDAP "Enable LDAP verifier" on \
+ FCGI "Enable FastCGI support" on
+
+HAS_CONFIGURE= YES
+# GNU_CONFIGURE things since we're not installing directly in PREFIX
+CONFIGURE_ARGS+= --prefix=${PC_DIR} ${CONFIGURE_TARGET}
+
+# We want to build the login server
+CONFIGURE_ARGS+= --enable-login --disable-apache
+
+USE_OPENSSL= YES
+CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
+
+PC_BASE?= ${PORTNAME}
+PC_DIR= ${PREFIX}/${PC_BASE}
+
+SUB_FILES+= pkg-install
+SUB_LIST+= CONF_FILES="${CONF_FILES}" CONF_DIRS="${CONF_DIRS}"
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${PKGINSTALL}
+.include "${.CURDIR}/Makefile.templates"
+CONF_FILES+= ${LOGIN_TEMPLATES:C|(.*)|${PC_BASE}/login_templates.default/\1:${PC_BASE}/login_templates/\1|}
+CONF_DIRS+= ${PC_BASE}/login_templates
+CONF_FILES+= ${LOGIN_IMAGES:C|(.*)|${PC_BASE}/login_templates.default/images/\1:${PC_BASE}/login/images/\1|}
+CONF_DIRS+= ${PC_BASE}/login/images
+CONF_FILES+= ${PC_BASE}/config.login.sample:${PC_BASE}/config
+
+# XXX Add Kerberos
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_LDAP)
+USE_OPENLDAP= YES
+CONFIGURE_ARGS+= --enable-ldap --with-ldap-dir=${LOCALBASE}
+.else
+CONFIGURE_ARGS+= --disable-ldap
+.endif
+
+.if defined(WITH_FCGI)
+LIB_DEPENDS+= fcgi.0:${PORTSDIR}/www/fcgi
+CONFIGURE_ARGS+= --with-fcgi=${LOCALBASE}
+.endif
+
+post-install:
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+###########################
+# Port MAINTAINER targets #
+###########################
+
+Makefile.templates: configure
+ ${ECHO_CMD} "# Generated with Makefile.templates target" > Makefile.templates
+ ${ECHO_CMD} "LOGIN_TEMPLATES+=" `cd ${WRKSRC} && make -V LOGIN_TEMPLATES | ${SED} -e 's| *./src/login_templates.generic/| |g'` >> Makefile.templates
+ ${ECHO_CMD} "LOGIN_IMAGES+=" `cd ${WRKSRC} && make -V LOGIN_IMAGES | ${SED} -e 's| *./src/login_templates.generic/images/| |g'` >> Makefile.templates
+ ${CAT{ Makefile.templates
+
+.include <bsd.port.post.mk>
diff --git a/www/pubcookie-login-server/Makefile.templates b/www/pubcookie-login-server/Makefile.templates
new file mode 100644
index 000000000000..7b5e9f1e74c3
--- /dev/null
+++ b/www/pubcookie-login-server/Makefile.templates
@@ -0,0 +1,3 @@
+# Generated with Makefile.templates target
+LOGIN_TEMPLATES+= copyright error form_expired login login_auth_prob_uwsecurid login_bad_auth login_bad_auth_static_user login_bad_auth_static_user login_bad_auth_static_user login_cache_creds_wrong login_expired login_next_prn login_expired login_nolcookie login_pass_form_field login_pass_static login_pinit login_reauth login_unauth_grant login_user_form_field login_user_hidden login_user_static login_uwsecurid logo logout_already_weblogin logout_app logout_app_custom logout_part1 logout_part2 logout_postscript_still_others logout_postscript_still_weblogin logout_still_known logout_still_weblogin logout_time_remaining logout_weblogin nonpost_redirect notok notok_badagent notok_form_multipart notok_generic notok_need_ssl pinit_response1 pinit_response2 status welcome_back README
+LOGIN_IMAGES+= check.gif icon-excl.gif icon-time.gif
diff --git a/www/pubcookie-login-server/distinfo b/www/pubcookie-login-server/distinfo
new file mode 100644
index 000000000000..a78136f51261
--- /dev/null
+++ b/www/pubcookie-login-server/distinfo
@@ -0,0 +1,3 @@
+MD5 (pubcookie-3.3.0-beta2.tar.gz) = 37cb9ca0c729b1882e197e083aadceb1
+SHA256 (pubcookie-3.3.0-beta2.tar.gz) = 90e67b96abf14f2bf8a2bc75f7223f677e9be51b0e3d4bc07a95df4510c08962
+SIZE (pubcookie-3.3.0-beta2.tar.gz) = 2107442
diff --git a/www/pubcookie-login-server/files/patch-Makefile.in b/www/pubcookie-login-server/files/patch-Makefile.in
new file mode 100644
index 000000000000..327b44e52e68
--- /dev/null
+++ b/www/pubcookie-login-server/files/patch-Makefile.in
@@ -0,0 +1,51 @@
+
+$FreeBSD$
+
+--- Makefile.in.orig
++++ Makefile.in
+@@ -375,7 +375,7 @@
+ install: $(KEY_DIR) @install_login@ @install_apache@
+ @IF_MOD@ $(INSTALL_BIN) keyclient $(PUBCOOKIE_DIR)
+
+-install-login: @no_login@ $(LOGIN_DIR) $(TEMPLATE_DIR) $(TEMPLATE_DIR).default $(LOGIN_TEMPLATES) $(LOGIN_IMG_DIR) $(TEMPLATE_DIR).default/images $(LOGIN_IMAGES) login_server
++install-login: @no_login@ $(LOGIN_DIR) $(TEMPLATE_DIR).default $(LOGIN_TEMPLATES) $(TEMPLATE_DIR).default/images $(LOGIN_IMAGES) login_server
+ @for file in $(INDEX_FILES); do \
+ echo $(INSTALL_BIN) $$file $(LOGIN_DIR); \
+ $(INSTALL_BIN) $$file $(LOGIN_DIR); \
+@@ -384,24 +384,10 @@
+ echo $(INSTALL_OTHER) $$file $(TEMPLATE_DIR).default; \
+ $(INSTALL_OTHER) $$file $(TEMPLATE_DIR).default; \
+ done
+- @for file in $(LOGIN_TEMPLATES); do \
+- bfile=`basename $$file`; \
+- $(TEST) ! -f $(TEMPLATE_DIR)/$$bfile && \
+- echo $(INSTALL_OTHER) $$file $(TEMPLATE_DIR) && \
+- $(INSTALL_OTHER) $$file $(TEMPLATE_DIR); \
+- true; \
+- done
+ @for file in $(LOGIN_IMAGES); do \
+ echo $(INSTALL_OTHER) $$file $(TEMPLATE_DIR).default/images; \
+ $(INSTALL_OTHER) $$file $(TEMPLATE_DIR).default/images; \
+ done
+- @for file in $(LOGIN_IMAGES); do \
+- bfile=`basename $$file`; \
+- $(TEST) ! -f $(LOGIN_IMG_DIR)/$$bfile && \
+- echo $(INSTALL_OTHER) $$file $(LOGIN_IMG_DIR) && \
+- $(INSTALL_OTHER) $$file $(LOGIN_IMG_DIR); \
+- true; \
+- done
+ @for file in $(KEYMGT_FILES); do \
+ echo $(INSTALL_BIN) $$file $(PUBCOOKIE_DIR); \
+ $(INSTALL_BIN) $$file $(PUBCOOKIE_DIR); \
+@@ -414,11 +400,6 @@
+ done
+ $(INSTALL_OTHER) doc/starter.key $(PUBCOOKIE_DIR)
+ $(INSTALL_OTHER) doc/config.login.sample $(PUBCOOKIE_DIR)
+- @$(TEST) ! -f $(PUBCOOKIE_DIR)/config && \
+- echo $(INSTALL_OTHER) doc/config.login.sample \
+- $(PUBCOOKIE_DIR)/config && \
+- $(INSTALL_OTHER) doc/config.login.sample $(PUBCOOKIE_DIR)/config; \
+- true
+
+ install-apache: @no_module@
+ @echo "Making all in module"
diff --git a/www/pubcookie-login-server/files/patch-Makefile.in.ap2 b/www/pubcookie-login-server/files/patch-Makefile.in.ap2
new file mode 100644
index 000000000000..313d43e79a74
--- /dev/null
+++ b/www/pubcookie-login-server/files/patch-Makefile.in.ap2
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- Makefile.in.ap2.orig
++++ Makefile.in.ap2
+@@ -7,14 +7,14 @@
+
+ top_dir = @APACHE_PREFIX@
+
+-top_srcdir = @APACHE_PREFIX@
+-top_builddir = @APACHE_PREFIX@
++top_srcdir = /usr/local/share/apache2
++top_builddir = /usr/local/share/apache2
+
+ include @APACHE_INSTALLBUILDDIR@/special.mk
+
+
+ DEFS=-DAPACHE -DAPACHE2 -DHAVE_CONFIG_H
+-INCLUDES=-I.
++INCLUDES=-I. -I/usr/local/include/apache2
+
+ all: local-shared-build @need_slib_clean@
+
diff --git a/www/pubcookie-login-server/files/pkg-install.in b/www/pubcookie-login-server/files/pkg-install.in
new file mode 100644
index 000000000000..97b76ac079ee
--- /dev/null
+++ b/www/pubcookie-login-server/files/pkg-install.in
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+PREFIX=%%PREFIX%%
+CONF_FILES="%%CONF_FILES%%"
+CONF_DIRS="%%CONF_DIRS%%"
+
+case $2 in
+POST-INSTALL)
+ for cfgdir in ${CONF_DIRS}; do
+ mkdir -p ${PREFIX}/${cfgdir}
+ done
+ for cfgfile in ${CONF_FILES}; do
+ src=${cfgfile%:*}
+ dst=${cfgfile#*:}
+ if [ ! -e ${PREFIX}/${dst} ]; then
+ cp ${PREFIX}/${src} ${PREFIX}/${dst}
+ fi
+ done
+ ;;
+DEINSTALL)
+ for cfgfile in ${CONF_FILES}; do
+ src=${cfgfile%:*}
+ dst=${cfgfile#*:}
+ if cmp -s ${PREFIX}/${dst} ${PREFIX}/${src} ; then
+ rm ${PREFIX}/${dst}
+ fi
+ done
+ for cfgdir in ${CONF_DIRS}; do
+ rmdir ${PREFIX}/${cfgdir} 2> /dev/null || true
+ done
+ ;;
+POST-DEINSTALL)
+ # We have to do this twice because the directories need to be
+ # done the @dirrms are processed, but direcories may not yet be
+ # fully cleaned the first time.
+ for cfgdir in ${CONF_DIRS}; do
+ rmdir ${PREFIX}/${cfgdir} 2> /dev/null || true
+ done
+esac
diff --git a/www/pubcookie-login-server/pkg-descr b/www/pubcookie-login-server/pkg-descr
new file mode 100644
index 000000000000..0ab770273cc7
--- /dev/null
+++ b/www/pubcookie-login-server/pkg-descr
@@ -0,0 +1,11 @@
+Pubcookie is an open-source package for intra-institutional
+single-sign-on end-user web authentication. More generally, it is an
+approach to identifying users as they browse to an institution's many
+websites that require authentication. It helps an institution reuse
+existing authentication services (like Kerberos, LDAP, or NIS), and it
+limits the exposure of end-user passwords by ensuring they're only sent
+to a trusted login service.
+
+This port contains the login service portion of the Pubcookie system.
+
+WWW: http://pubcookie.org/
diff --git a/www/pubcookie-login-server/pkg-plist b/www/pubcookie-login-server/pkg-plist
new file mode 100644
index 000000000000..c6a7f481c1c4
--- /dev/null
+++ b/www/pubcookie-login-server/pkg-plist
@@ -0,0 +1,58 @@
+pubcookie/config.login.sample
+pubcookie/keyclient
+pubcookie/keyserver
+pubcookie/login/index.cgi
+pubcookie/login_templates.default/README
+pubcookie/login_templates.default/copyright
+pubcookie/login_templates.default/error
+pubcookie/login_templates.default/form_expired
+pubcookie/login_templates.default/images/check.gif
+pubcookie/login_templates.default/images/icon-excl.gif
+pubcookie/login_templates.default/images/icon-time.gif
+pubcookie/login_templates.default/login
+pubcookie/login_templates.default/login_auth_prob_uwsecurid
+pubcookie/login_templates.default/login_bad_auth
+pubcookie/login_templates.default/login_bad_auth_static_user
+pubcookie/login_templates.default/login_cache_creds_wrong
+pubcookie/login_templates.default/login_expired
+pubcookie/login_templates.default/login_next_prn
+pubcookie/login_templates.default/login_nolcookie
+pubcookie/login_templates.default/login_pass_form_field
+pubcookie/login_templates.default/login_pass_static
+pubcookie/login_templates.default/login_pinit
+pubcookie/login_templates.default/login_reauth
+pubcookie/login_templates.default/login_unauth_grant
+pubcookie/login_templates.default/login_user_form_field
+pubcookie/login_templates.default/login_user_hidden
+pubcookie/login_templates.default/login_user_static
+pubcookie/login_templates.default/login_uwsecurid
+pubcookie/login_templates.default/logo
+pubcookie/login_templates.default/logout_already_weblogin
+pubcookie/login_templates.default/logout_app
+pubcookie/login_templates.default/logout_app_custom
+pubcookie/login_templates.default/logout_part1
+pubcookie/login_templates.default/logout_part2
+pubcookie/login_templates.default/logout_postscript_still_others
+pubcookie/login_templates.default/logout_postscript_still_weblogin
+pubcookie/login_templates.default/logout_still_known
+pubcookie/login_templates.default/logout_still_weblogin
+pubcookie/login_templates.default/logout_time_remaining
+pubcookie/login_templates.default/logout_weblogin
+pubcookie/login_templates.default/nonpost_redirect
+pubcookie/login_templates.default/notok
+pubcookie/login_templates.default/notok_badagent
+pubcookie/login_templates.default/notok_form_multipart
+pubcookie/login_templates.default/notok_generic
+pubcookie/login_templates.default/notok_need_ssl
+pubcookie/login_templates.default/pinit_response1
+pubcookie/login_templates.default/pinit_response2
+pubcookie/login_templates.default/status
+pubcookie/login_templates.default/welcome_back
+pubcookie/starter.key
+@dirrm share/nls/en_US.US-ASCII
+@dirrm share/nls/POSIX
+@dirrm pubcookie/login_templates.default/images
+@dirrm pubcookie/login_templates.default
+@dirrmtry pubcookie/login
+@dirrmtry pubcookie/keys
+@dirrmtry pubcookie