summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorghen <ghen>2007-01-02 11:47:40 +0000
committerghen <ghen>2007-01-02 11:47:40 +0000
commit73590c466b762b67decc5f17f948b5ea8b383800 (patch)
tree7a388ebf89d163654779f3f15e52e13e9fd7a226 /mail
parentebeab7146dd224d87cfaa6319f7f3179d1bb186a (diff)
downloadpkgsrc-73590c466b762b67decc5f17f948b5ea8b383800.tar.gz
Replace rc.d dependency on "mysqld" by "pgsql" if pgsql option is selected.
Diffstat (limited to 'mail')
-rw-r--r--mail/gld/options.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/gld/options.mk b/mail/gld/options.mk
index b33632128b0..90bbcd07a43 100644
--- a/mail/gld/options.mk
+++ b/mail/gld/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2006/03/02 20:54:08 wiz Exp $
+# $NetBSD: options.mk,v 1.7 2007/01/02 11:47:40 ghen Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gld
PKG_OPTIONS_REQUIRED_GROUPS= database
@@ -20,4 +20,9 @@ MESSAGE_SRC+= MESSAGE.mysql
CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.postgresql-libs}
LIBS+= -L${BUILDLINK_PREFIX.mysql-client}/lib \
${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.mysql-client}/lib -lpq
+# Replace rc.d dependency by pgsql
+SUBST_CLASSES+= pgsql
+SUBST_STAGE.pgsql= pre-install
+SUBST_FILES.pgsql= ../gld
+SUBST_SED.pgsql= -e "s,mysqld,pgsql,"
.endif