2f7e08a0b0
Fix typo in DEPENDS.
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# $NetBSD: plugins.mk,v 1.2 2018/04/30 06:44:11 taca Exp $
|
|
#
|
|
|
|
# plugin's PKGNAME
|
|
PKGNAME= ${PHP_PKG_PREFIX}-roundcube-plugin-${PLUGIN}-${RC_VERS}
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-roundcube>=${RC_VERS}:../../mail/roundcube
|
|
|
|
#
|
|
# a few parameters
|
|
EXTRACT_ELEMENTS?= ${DISTNAME}/${PLUGIN_DIR}
|
|
PLUGIN_DIR?= plugins/${PLUGIN}
|
|
CONF_PLUGINS?= ${PLUGIN}
|
|
|
|
#
|
|
# plugin directory
|
|
INSTALLATION_DIRS= ${RCDIR}/${PLUGIN_DIR}
|
|
|
|
|
|
.for f in ${CONF_PLUGINS}
|
|
CONF_FILES_PERMS+= ${EGDIR}/plugins/${f}/config.inc.php \
|
|
${RCDIR}/plugins/${f}/config.inc.php \
|
|
${WWW_USER} ${WWW_GROUP} 0640
|
|
.endfor
|
|
|
|
plugin-install:
|
|
.for i in ${PLUGIN_DIR}
|
|
cd ${WRKSRC}/${i} && ${FIND} . -type f \! -name "*.orig" -print | \
|
|
${PAX} -rw ${DESTDIR}${PREFIX}/${RCDIR}/${i}
|
|
${FIND} ${DESTDIR}${PREFIX}/${RCDIR}/${i} -type f | \
|
|
${XARGS} ${CHMOD} ${SHAREMODE}
|
|
${FIND} ${DESTDIR}${PREFIX}/${RCDIR}/${i} -type d | \
|
|
${XARGS} ${CHMOD} ${PKGDIRMODE}
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/${RCDIR}/${i}
|
|
.endfor
|
|
|
|
.include "../../mail/roundcube/Makefile.common"
|