summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2010-05-22 19:16:54 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2010-05-22 19:16:54 +0000
commitb921eb40d20382fc47417657e3ebc29cc4c49cfe (patch)
tree56508ff2a5801013ffd5f050c74f507453b08f24 /mail
parentUpdate to 1.7.2 (diff)
Allow pre-everything, do-install and post-install targets to be redefined by
the ports that use this framework.
Notes
Notes: svn path=/head/; revision=254859
Diffstat (limited to 'mail')
-rw-r--r--mail/squirrelmail/bsd.squirrelmail.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/squirrelmail/bsd.squirrelmail.mk b/mail/squirrelmail/bsd.squirrelmail.mk
index 38e853646b86..bb52fa8e8aad 100644
--- a/mail/squirrelmail/bsd.squirrelmail.mk
+++ b/mail/squirrelmail/bsd.squirrelmail.mk
@@ -53,6 +53,7 @@ SUB_LIST+= SQUIRREL_PLUGIN_NAME=${SQUIRREL_PLUGIN_NAME}
SUB_FILES= pkg-message
.endif
+.if !target(pre-everything)
pre-everything::
@${ECHO_CMD} ""
.ifndef WITHOUT_ACTIVATE
@@ -65,9 +66,11 @@ pre-everything::
@${ECHO_CMD} "WITHOUT_ACTIVATE"
.endif
@${ECHO_CMD} ""
+.endif
_SMSRCDIR?= ${SQUIRREL_PLUGIN_NAME}
+.if !target(do-install)
do-install:
cd ${WRKSRC}/${_SMSRCDIR} && ${FIND} -d . | \
${CPIO} -dump ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} >/dev/null 2>&1 && \
@@ -75,7 +78,9 @@ do-install:
-type d -exec chmod 755 {} \; && \
${FIND} ${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} \
-type f -exec chmod 644 {} \;
+.endif
+.if !target(post-install)
post-install:
.ifndef WITHOUT_ACTIVATE
.if exists( ${SQUIRRELDIR}/config/config.php )
@@ -92,3 +97,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD} ""
.endif
+.endif