aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2006-02-10 14:23:15 +0800
committerbrooks <brooks@FreeBSD.org>2006-02-10 14:23:15 +0800
commita2efe0afd0fbad7143b8b9b00f48ff27fa7209b6 (patch)
tree1ec50c0441e4d47c72762ee03438e8d1bff148c6 /www
parent0a749340bed8e23a6e42421b34a6cc84e1d48c20 (diff)
downloadfreebsd-ports-gnome-a2efe0afd0fbad7143b8b9b00f48ff27fa7209b6.tar.gz
freebsd-ports-gnome-a2efe0afd0fbad7143b8b9b00f48ff27fa7209b6.tar.zst
freebsd-ports-gnome-a2efe0afd0fbad7143b8b9b00f48ff27fa7209b6.zip
The pubcookie Drupal module is an external authentication module that
allows users to authenticate to Drupal using pubcookie. Pubcookie is used single sign-on to web-based applications at a site. The module also provide LDAP integration to populate user profiles as users register.
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/drupal-pubcookie/Makefile85
-rw-r--r--www/drupal-pubcookie/distinfo3
-rw-r--r--www/drupal-pubcookie/files/pkg-install.in27
-rw-r--r--www/drupal-pubcookie/pkg-descr8
5 files changed, 124 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index a27f63bbc79a..9bf9cc2e7f26 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -98,6 +98,7 @@
SUBDIR += dotproject
SUBDIR += dpsearch
SUBDIR += drupal
+ SUBDIR += drupal-pubcookie
SUBDIR += dtse
SUBDIR += dummyflash
SUBDIR += eaccelerator
diff --git a/www/drupal-pubcookie/Makefile b/www/drupal-pubcookie/Makefile
new file mode 100644
index 000000000000..a0ac9577abec
--- /dev/null
+++ b/www/drupal-pubcookie/Makefile
@@ -0,0 +1,85 @@
+# New ports collection makefile for: drupal-ldap_integration
+# Date created: 12 January 2006
+# Whom: Brooks Davis <brooks@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pubcookie
+PORTVERSION= 4.6.0
+PORTREVISION= 20060210
+CATEGORIES= www security
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= brooks
+PKGNAMEPREFIX= drupal-
+DIST_SUBDIR= drupal
+
+MAINTAINER= brooks@FreeBSD.org
+COMMENT= Pubcookie user authentication for the Drupal CMS
+
+RUN_DEPENDS= ${LOCALBASE}/${DRUPDIR}/index.php:${PORTSDIR}/www/drupal
+RUN_DEPENDS= ${LOCALBASE}/pubcookie/keyclient:${PORTSDIR}/www/mod_pubcookie
+
+USE_PHP= ldap
+
+NO_BUILD= yes
+
+DOCSDIR= ${PREFIX}/${DRUPDIR}/doc/${PORTNAME}
+DRUPMODDIR= ${DRUPDIR}/modules
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+MODULE_FILES= pubcookie.module
+DOC_FILES= LICENSE.txt README.txt
+
+.if defined(MODULE_CONF_FILES)
+SUB_FILES= pkg-install
+SUB_LIST+= CONF_FILES=${MODULE_CONF_FILES:C|^|${DRUPMODDIR}/|} \
+ CONF_DIRS=${MODULE_CONF_DIRS:C|^|${DRUPMODDIR}/|}
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${PKGINSTALL}
+.endif
+
+PLIST_SUB+= DRUPMODDIR=${DRUPMODDIR}
+PLIST_FILES+= ${MODULE_FILES:C|^|%%DRUPMODDIR%%/|}
+PLIST_FILES+= ${MODULE_CONF_FILES:C|^|%%DRUPMODDIR%%/|:C|$|-dist|}
+PLIST_DIRS+= ${MODULE_DIRS:C|^|%%DRUPMODDIR%%/|}
+.if !defined(NOPORTDOCS)
+PLIST_FILES+= ${DOC_FILES:C|^|%%DOCSDIR%%/|}
+PLIST_DIRS+= %%DOCSDIR%%
+.endif
+
+.if !defined(DRUPDIR)
+pre-fetch:
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Define DRUPDIR to override default of 'www/drupal'."
+ @${ECHO_MSG} ""
+.endif
+
+DRUPDIR?= www/drupal
+
+do-install:
+.if defined(MODULE_CONF_DIRS)
+ @${MKDIR} ${MODULE_CONF_DIRS:C|^|${PREFIX}/${DRUPMODDIR}/|}
+.endif
+.if defined(MODULE_DIRS)
+ @${MKDIR} ${MODULE_DIRS:C|^|${PREFIX}/${DRUPMODDIR}/|}
+.endif
+.for f in ${MODULE_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DRUPMODDIR}/${f}
+.endfor
+.for f in ${MODULE_CONF_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DRUPMODDIR}/${f}-dist
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for f in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f}
+.endfor
+.endif
+
+.if defined(MODULE_CONF_FILES)
+post-install:
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+
+.include <bsd.port.mk>
diff --git a/www/drupal-pubcookie/distinfo b/www/drupal-pubcookie/distinfo
new file mode 100644
index 000000000000..e5934e66068f
--- /dev/null
+++ b/www/drupal-pubcookie/distinfo
@@ -0,0 +1,3 @@
+MD5 (drupal/pubcookie-4.6.0.tar.gz) = ee24cf02f8a27e19fb584b75a29ebf1c
+SHA256 (drupal/pubcookie-4.6.0.tar.gz) = 65534d207e34fff7068a891b9f8785c3f4d7be242010c4cea27d9f17fd744fa2
+SIZE (drupal/pubcookie-4.6.0.tar.gz) = 12351
diff --git a/www/drupal-pubcookie/files/pkg-install.in b/www/drupal-pubcookie/files/pkg-install.in
new file mode 100644
index 000000000000..e18d858c77e8
--- /dev/null
+++ b/www/drupal-pubcookie/files/pkg-install.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+PREFIX=%%PREFIX%%
+CONF_FILES="%%CONF_FILES%%"
+CONF_DIRS="%%CONF_DIRS%%"
+
+case $2 in
+POST-INSTALL)
+ for cfgfile in "${CONF_FILES}"; do
+ if [ ! -e ${PREFIX}/${cfgfile} ]; then
+ cp ${PREFIX}/${cfgfile}-dist ${PREFIX}/${cfgfile}
+ fi
+ done
+ ;;
+DEINSTALL)
+ for cfgfile in "${CONF_FILES}"; do
+ if cmp -s ${PREFIX}/${cfgfile} ${PREFIX}/${cfgfile}-dist ]; then
+ rm ${PREFIX}/${cfgfile}
+ fi
+ done
+ ;;
+POST-DEINSTALL)
+ for cfgdir in "${CONF_DIRS}"; do
+ rmdir ${PREFIX}/${cfgdir} 2> /dev/null || true
+ done
+ ;;
+esac
diff --git a/www/drupal-pubcookie/pkg-descr b/www/drupal-pubcookie/pkg-descr
new file mode 100644
index 000000000000..618de950cd59
--- /dev/null
+++ b/www/drupal-pubcookie/pkg-descr
@@ -0,0 +1,8 @@
+The pubcookie Drupal module is an external authentication module that
+allows users to authenticate to Drupal using pubcookie. Pubcookie is
+used single sign-on to web-based applications at a site.
+
+The module also provide LDAP integration to populate user profiles as
+users register.
+
+WWW: http://drupal.org/node/42589