e05214ad45
While here, pkglint clean and add DESTDIR support. This is strictly a maintenance release. No new functionality was added. Changes since 2.2.8-rc1 none Bugs fixed since 2.2.7 0000655: [Database layer] MIME headers are incorrectly parsed into cached tables (paul) 0000656: [Command-Line programs (dbmail-users, dbmail-util)] dbmail-export: bogus date in "From_" lines (paul)
87 lines
2 KiB
Makefile
87 lines
2 KiB
Makefile
# $NetBSD: options.mk,v 1.7 2007/12/13 07:43:20 obache Exp $
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.dbmail
|
|
PKG_SUPPORTED_OPTIONS= ldap sieve
|
|
PKG_OPTIONS_REQUIRED_GROUPS= sql
|
|
PKG_OPTIONS_GROUP.sql= mysql pgsql sqlite
|
|
PKG_SUGGESTED_OPTIONS= mysql sieve
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
###
|
|
### MySQL database support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
.include "../../mk/mysql.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
PLIST_SUBST+= MYSQL=""
|
|
INSTALLATION_DIRS+= ${DATADIR}/sql/mysql
|
|
.else
|
|
PLIST_SUBST+= MYSQL="@comment "
|
|
.endif
|
|
|
|
###
|
|
### PostgreSQL database support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
.include "../../mk/pgsql.buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-pgsql
|
|
PLIST_SUBST+= PGSQL=""
|
|
INSTALLATION_DIRS+= ${DATADIR}/sql/pgsql
|
|
.else
|
|
PLIST_SUBST+= PGSQL="@comment "
|
|
.endif
|
|
|
|
###
|
|
### SQLite database support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msqlite)
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-sqlite
|
|
PLIST_SUBST+= SQLITE=""
|
|
INSTALLATION_DIRS+= ${DATADIR}/sql/sqlite
|
|
.else
|
|
PLIST_SUBST+= SQLITE="@comment "
|
|
.endif
|
|
|
|
###
|
|
### Sieve support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Msieve)
|
|
.include "../../mail/libsieve/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-sieve=${BUILDLINK_PREFIX.libsieve}
|
|
PLIST_SUBST+= SIEVE=""
|
|
FILES_SUBST+= TIMSIEVED="dbmailtimsieved"
|
|
RCD_SCRIPTS+= dbmailtimsieved
|
|
.else
|
|
PLIST_SUBST+= SIEVE="@comment "
|
|
FILES_SUBST+= TIMSIEVED=""
|
|
.endif
|
|
|
|
###
|
|
### LDAP support
|
|
###
|
|
.if !empty(PKG_OPTIONS:Mldap)
|
|
.include "../../databases/openldap-client/buildlink3.mk"
|
|
CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap-client}
|
|
PLIST_SUBST+= LDAP=""
|
|
.else
|
|
PLIST_SUBST+= LDAP="@comment "
|
|
.endif
|
|
|
|
###
|
|
### Migration scripts
|
|
###
|
|
post-install: dbmail-install-scripts
|
|
|
|
.PHONY: dbmail-install-scripts
|
|
dbmail-install-scripts:
|
|
.if !empty(PKG_OPTIONS:Mmysql)
|
|
${INSTALL_DATA} ${WRKSRC}/sql/mysql/* ${DESTDIR}${DATADIR}/sql/mysql
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Mpgsql)
|
|
${INSTALL_DATA} ${WRKSRC}/sql/postgresql/* ${DESTDIR}${DATADIR}/sql/pgsql
|
|
.endif
|
|
.if !empty(PKG_OPTIONS:Msqlite)
|
|
${INSTALL_DATA} ${WRKSRC}/sql/sqlite/* ${DESTDIR}${DATADIR}/sql/sqlite
|
|
.endif
|