diff options
author | miwi <miwi@FreeBSD.org> | 2014-02-19 09:32:23 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2014-02-19 09:32:23 +0800 |
commit | 45d7e0c2bd6c9ebef172a99fbd935fd2e334d03c (patch) | |
tree | b45962dd84466c04fffec495299711b081b1bc1f /Mk | |
parent | 7ae3bc426b6b242578b6184e3ee12ac542bf97d5 (diff) | |
download | freebsd-ports-gnome-45d7e0c2bd6c9ebef172a99fbd935fd2e334d03c.tar.gz freebsd-ports-gnome-45d7e0c2bd6c9ebef172a99fbd935fd2e334d03c.tar.zst freebsd-ports-gnome-45d7e0c2bd6c9ebef172a99fbd935fd2e334d03c.zip |
- Allow to stage drupal mods
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.drupal.mk | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/Mk/bsd.drupal.mk b/Mk/bsd.drupal.mk index c0caf9f7f4ec..cb9cbe3070de 100644 --- a/Mk/bsd.drupal.mk +++ b/Mk/bsd.drupal.mk @@ -133,31 +133,29 @@ PLIST_DIRS+= %%DOCSDIR%% do-install: .if defined(DRUPAL_MODULE) || defined(DRUPAL_THEME) - @${MKDIR} ${DRUPAL_MODDIR:C|^|${PREFIX}/|} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${DRUPAL_MODDIR:C|^|${PREFIX}/|} + @${MKDIR} ${DRUPAL_MODDIR:C|^|${STAGEDIR}${PREFIX}/|} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${DRUPAL_MODDIR:C|^|${STAGEDIR}${PREFIX}/|} .endif .if defined(MODULE_CONF_DIRS) - @${MKDIR} ${MODULE_CONF_DIRS:C|^|${PREFIX}/${DRUPAL_MODDIR}/|} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${MODULE_CONF_DIRS:C|^|${PREFIX}/${DRUPAL_MODDIR}/|} + @${MKDIR} ${MODULE_CONF_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${MODULE_CONF_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} .endif .if defined(MODULE_DIRS) - @${MKDIR} ${MODULE_DIRS:C|^|${PREFIX}/${DRUPAL_MODDIR}/|} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${MODULE_DIRS:C|^|${PREFIX}/${DRUPAL_MODDIR}/|} + @${MKDIR} ${MODULE_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${MODULE_DIRS:C|^|${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/|} .endif .for f in ${MODULE_FILES} - @${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DRUPAL_MODDIR}/${f} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${DRUPAL_MODDIR}/${f} + @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f} .endfor .for f in ${MODULE_CONF_FILES} - @${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/${DRUPAL_MODDIR}/${f}-dist - @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${DRUPAL_MODDIR}/${f}-dist + @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f}-dist + @${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${DRUPAL_MODDIR}/${f}-dist .endfor -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} ${DOC_DIRS:C|^|${DOCSDIR}/|} + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${DOC_DIRS:C|^|${STAGEDIR}${DOCSDIR}/|} .for f in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/${f} + @${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/${f} .endfor -.endif .if defined(MODULE_CONF_FILES) post-install: |