diff options
author | brooks <brooks@FreeBSD.org> | 2006-02-22 08:49:07 +0800 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2006-02-22 08:49:07 +0800 |
commit | 7066ec5acca2ea991c9a74dfff9575fdcec46345 (patch) | |
tree | 4cd6fd0bfbf11f7de7f0a78c26d1c608681fcf41 /security | |
parent | b7b9d27cc97bc3cab5f6a9e497ae817fc5b27d71 (diff) | |
download | freebsd-ports-gnome-7066ec5acca2ea991c9a74dfff9575fdcec46345.tar.gz freebsd-ports-gnome-7066ec5acca2ea991c9a74dfff9575fdcec46345.tar.zst freebsd-ports-gnome-7066ec5acca2ea991c9a74dfff9575fdcec46345.zip |
Use bsd.drupal.mk to reduce duplicate code in drupal modules.
Diffstat (limited to 'security')
-rw-r--r-- | security/drupal-ldap_integration/Makefile | 70 | ||||
-rw-r--r-- | security/drupal4-ldap_integration/Makefile | 70 |
2 files changed, 10 insertions, 130 deletions
diff --git a/security/drupal-ldap_integration/Makefile b/security/drupal-ldap_integration/Makefile index 385566c74b27..1b235a4e9869 100644 --- a/security/drupal-ldap_integration/Makefile +++ b/security/drupal-ldap_integration/Makefile @@ -6,27 +6,17 @@ # PORTNAME= ldap_integration -DISTVERSION= ${DRUPVERSION} +DISTVERSION= ${DRUPAL_VERSION} PORTREVISION= 20060117 CATEGORIES= security www -MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks -PKGNAMEPREFIX= drupal- -DIST_SUBDIR= drupal MAINTAINER= brooks@FreeBSD.org COMMENT= LDAP user authentication for the Drupal CMS -RUN_DEPENDS= ${LOCALBASE}/${DRUPDIR}/index.php:${PORTSDIR}/www/drupal - USE_PHP= ldap -NO_BUILD= yes - -DOCSDIR= ${PREFIX}/${DRUPDIR}/doc/${PORTNAME} -DRUPMODDIR= ${DRUPDIR}/modules - -WRKSRC= ${WRKDIR}/${PORTNAME} +DRUPAL_MODULE= yes MODULE_FILES= ldap_integration.module \ ldap_integration/LDAPInterface.php \ zcallbacks.module @@ -34,56 +24,6 @@ MODULE_CONF_FILES= ldap_integration/conf.php MODULE_CONF_DIRS= ldap_integration DOC_FILES= CHANGES.txt 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 -DRUPVERSION?= 4.6.0 - -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> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/www/drupal/bsd.drupal.mk" +.include <bsd.port.post.mk> diff --git a/security/drupal4-ldap_integration/Makefile b/security/drupal4-ldap_integration/Makefile index 385566c74b27..1b235a4e9869 100644 --- a/security/drupal4-ldap_integration/Makefile +++ b/security/drupal4-ldap_integration/Makefile @@ -6,27 +6,17 @@ # PORTNAME= ldap_integration -DISTVERSION= ${DRUPVERSION} +DISTVERSION= ${DRUPAL_VERSION} PORTREVISION= 20060117 CATEGORIES= security www -MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= brooks -PKGNAMEPREFIX= drupal- -DIST_SUBDIR= drupal MAINTAINER= brooks@FreeBSD.org COMMENT= LDAP user authentication for the Drupal CMS -RUN_DEPENDS= ${LOCALBASE}/${DRUPDIR}/index.php:${PORTSDIR}/www/drupal - USE_PHP= ldap -NO_BUILD= yes - -DOCSDIR= ${PREFIX}/${DRUPDIR}/doc/${PORTNAME} -DRUPMODDIR= ${DRUPDIR}/modules - -WRKSRC= ${WRKDIR}/${PORTNAME} +DRUPAL_MODULE= yes MODULE_FILES= ldap_integration.module \ ldap_integration/LDAPInterface.php \ zcallbacks.module @@ -34,56 +24,6 @@ MODULE_CONF_FILES= ldap_integration/conf.php MODULE_CONF_DIRS= ldap_integration DOC_FILES= CHANGES.txt 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 -DRUPVERSION?= 4.6.0 - -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> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/www/drupal/bsd.drupal.mk" +.include <bsd.port.post.mk> |