summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2005-07-06 12:21:17 +0000
committermartti <martti@pkgsrc.org>2005-07-06 12:21:17 +0000
commit1e7d44ee262dfdbfa37b0325899ded90f6df0af2 (patch)
tree49b1640bdb16d438cd8accdf0ec7a135b9b270f0
parent14ef253103f1bba56203905f234994c3eedb5307 (diff)
downloadpkgsrc-1e7d44ee262dfdbfa37b0325899ded90f6df0af2.tar.gz
Added some common code for squirrelmail plugins. From cube@ in a private mail.
-rw-r--r--mail/squirrelmail/plugin.mk25
1 files changed, 25 insertions, 0 deletions
diff --git a/mail/squirrelmail/plugin.mk b/mail/squirrelmail/plugin.mk
new file mode 100644
index 00000000000..2523b7e1484
--- /dev/null
+++ b/mail/squirrelmail/plugin.mk
@@ -0,0 +1,25 @@
+# $NetBSD: plugin.mk,v 1.1 2005/07/06 12:21:17 martti Exp $
+
+DISTNAME?= ${PLUGIN_NAME}-${PLUGIN_VERSION}
+PKGNAME= sm-${PLUGIN_NAME}-${PLUGIN_VERSION}
+CATEGORIES?= mail
+MASTER_SITES?= http://www.squirrelmail.org/plugins/
+
+WRKSRC?= ${WRKDIR}/${PLUGIN_NAME}
+NO_CONFIGURE?= YES
+NO_BUILD?= YES
+
+SM_PLUGINDIR= share/squirrelmail/plugins
+PLUGIN_DIR= ${SM_PLUGINDIR}/${PLUGIN_NAME}
+FULL_PLUGIN_DIR= ${PREFIX}/${PLUGIN_DIR}
+
+INSTALLATION_DIRS+= ${PLUGIN_DIR}
+
+PLIST_SUBST+= PLUGIN_DIR=${PLUGIN_DIR}
+
+do-install:
+ cd ${WRKSRC} && \
+ ${FIND} . -type f ! -name '*.orig' 2>/dev/null | \
+ ${PAX} -rw ${FULL_PLUGIN_DIR}
+
+.include "../../mail/squirrelmail/buildlink3.mk"