1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-05 11:35:01 +00:00

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.
This commit is contained in:
Brooks Davis 2006-02-10 06:23:15 +00:00
parent a510b5f463
commit 310ae6e33c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155624
5 changed files with 124 additions and 0 deletions

View File

@ -98,6 +98,7 @@
SUBDIR += dotproject
SUBDIR += dpsearch
SUBDIR += drupal
SUBDIR += drupal-pubcookie
SUBDIR += dtse
SUBDIR += dummyflash
SUBDIR += eaccelerator

View File

@ -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>

View File

@ -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

View File

@ -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

View File

@ -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