diff options
author | flo <flo@FreeBSD.org> | 2011-02-19 07:37:52 +0800 |
---|---|---|
committer | flo <flo@FreeBSD.org> | 2011-02-19 07:37:52 +0800 |
commit | d105dccd7f1fc6aca940b3d8fa98fafd862890f8 (patch) | |
tree | c7456b2fb77c9689d7cd0251eb818230bc07d7d3 /net | |
parent | d941aa1e48dab22db753b833b175058b388c6968 (diff) | |
download | freebsd-ports-gnome-d105dccd7f1fc6aca940b3d8fa98fafd862890f8.tar.gz freebsd-ports-gnome-d105dccd7f1fc6aca940b3d8fa98fafd862890f8.tar.zst freebsd-ports-gnome-d105dccd7f1fc6aca940b3d8fa98fafd862890f8.zip |
- add option to build with mysql support
PR: ports/154689
Submitted by: Panagiotis Christias <p.christias@noc.ntua.gr>
Diffstat (limited to 'net')
-rw-r--r-- | net/asterisk/Makefile | 9 | ||||
-rw-r--r-- | net/asterisk/files/extra-patch-menuselect-tree-mysql.diff | 25 | ||||
-rw-r--r-- | net/asterisk/pkg-plist | 3 | ||||
-rw-r--r-- | net/asterisk10/Makefile | 9 | ||||
-rw-r--r-- | net/asterisk10/files/extra-patch-menuselect-tree-mysql.diff | 25 | ||||
-rw-r--r-- | net/asterisk10/pkg-plist | 3 |
6 files changed, 74 insertions, 0 deletions
diff --git a/net/asterisk/Makefile b/net/asterisk/Makefile index 9accc66d3a5a..cca83625f01e 100644 --- a/net/asterisk/Makefile +++ b/net/asterisk/Makefile @@ -47,6 +47,7 @@ OPTIONS= OGGVORBIS "Enable Ogg Vorbis support" on \ IODBC "Enable iODBC support" off \ UODBC "Enable unixODBC support" on \ POSTGRES "Enable PostgreSQL support" on \ + MYSQL "Enable MySQL support" off \ RADIUS "Enable RADIUS accounting support" on \ SNMP "Enable SNMP support" on \ H323 "Enable H.323 support" on \ @@ -153,6 +154,14 @@ USE_PGSQL= yes CONFIGURE_ARGS+= --with-postgres .endif +.if !defined(WITH_MYSQL) +PLIST_SUB+= WITH_MYSQL="@comment " +.else +PLIST_SUB+= WITH_MYSQL="" +USE_MYSQL= yes +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-menuselect-tree-mysql.diff +.endif + .if !defined(WITH_OGGVORBIS) PLIST_SUB+= WITH_OGGVORBIS="@comment " CONFIGURE_ARGS+= --without-ogg diff --git a/net/asterisk/files/extra-patch-menuselect-tree-mysql.diff b/net/asterisk/files/extra-patch-menuselect-tree-mysql.diff new file mode 100644 index 000000000000..c562dbbdf14f --- /dev/null +++ b/net/asterisk/files/extra-patch-menuselect-tree-mysql.diff @@ -0,0 +1,25 @@ +--- menuselect-tree.orig 2011-02-11 17:33:25.000000000 +0200 ++++ menuselect-tree 2011-02-11 17:33:52.000000000 +0200 +@@ -4,14 +4,12 @@ + <category name="MENUSELECT_ADDONS" displayname="Add-ons (See README-addons.txt)" remove_on_change="addons/modules.link"> + <member name="app_mysql" displayname="Simple Mysql Interface" remove_on_change="addons/app_mysql.o addons/app_mysql.so"> + <depend>mysqlclient</depend> +- <defaultenabled>no</defaultenabled> + </member> + <member name="app_saycountpl" displayname="Say polish counting words" remove_on_change="addons/app_saycountpl.o addons/app_saycountpl.so"> + <defaultenabled>no</defaultenabled> + </member> + <member name="cdr_mysql" displayname="MySQL CDR Backend" remove_on_change="addons/cdr_mysql.o addons/cdr_mysql.so"> + <depend>mysqlclient</depend> +- <defaultenabled>no</defaultenabled> + </member> + <member name="chan_mobile" displayname="Bluetooth Mobile Device Channel Driver" remove_on_change="addons/chan_mobile.o addons/chan_mobile.so"> + <depend>bluetooth</depend> +@@ -25,7 +23,6 @@ + </member> + <member name="res_config_mysql" displayname="MySQL RealTime Configuration Driver" remove_on_change="addons/res_config_mysql.o addons/res_config_mysql.so"> + <depend>mysqlclient</depend> +- <defaultenabled>no</defaultenabled> + </member> + </category> + <category name="MENUSELECT_APPS" displayname="Applications" remove_on_change="apps/modules.link"> diff --git a/net/asterisk/pkg-plist b/net/asterisk/pkg-plist index 752a6fe90be5..2b443070b0eb 100644 --- a/net/asterisk/pkg-plist +++ b/net/asterisk/pkg-plist @@ -426,6 +426,7 @@ include/asterisk/xmldoc.h lib/asterisk/modules/app_celgenuserevent.so lib/asterisk/modules/app_confbridge.so lib/asterisk/modules/app_minivm.so +%%WITH_MYSQL%%lib/asterisk/modules/app_mysql.so lib/asterisk/modules/app_originate.so lib/asterisk/modules/app_playtones.so lib/asterisk/modules/app_readexten.so @@ -533,6 +534,7 @@ lib/asterisk/modules/app_zapateller.so lib/asterisk/modules/cdr_csv.so lib/asterisk/modules/cdr_custom.so lib/asterisk/modules/cdr_manager.so +%%WITH_MYSQL%%lib/asterisk/modules/cdr_mysql.so %%WITH_POSTGRES%%lib/asterisk/modules/cdr_pgsql.so %%WITH_RADIUS%%lib/asterisk/modules/cdr_radius.so %%WITH_SQLITE%%lib/asterisk/modules/cdr_sqlite.so @@ -613,6 +615,7 @@ lib/asterisk/modules/res_agi.so lib/asterisk/modules/res_calendar.so %%WITH_EXCHANGE%%lib/asterisk/modules/res_calendar_ews.so lib/asterisk/modules/res_clioriginate.so +%%WITH_MYSQL%%lib/asterisk/modules/res_config_mysql.so %%WITH_POSTGRES%%lib/asterisk/modules/res_config_pgsql.so lib/asterisk/modules/res_convert.so lib/asterisk/modules/res_crypto.so diff --git a/net/asterisk10/Makefile b/net/asterisk10/Makefile index 9accc66d3a5a..cca83625f01e 100644 --- a/net/asterisk10/Makefile +++ b/net/asterisk10/Makefile @@ -47,6 +47,7 @@ OPTIONS= OGGVORBIS "Enable Ogg Vorbis support" on \ IODBC "Enable iODBC support" off \ UODBC "Enable unixODBC support" on \ POSTGRES "Enable PostgreSQL support" on \ + MYSQL "Enable MySQL support" off \ RADIUS "Enable RADIUS accounting support" on \ SNMP "Enable SNMP support" on \ H323 "Enable H.323 support" on \ @@ -153,6 +154,14 @@ USE_PGSQL= yes CONFIGURE_ARGS+= --with-postgres .endif +.if !defined(WITH_MYSQL) +PLIST_SUB+= WITH_MYSQL="@comment " +.else +PLIST_SUB+= WITH_MYSQL="" +USE_MYSQL= yes +EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-menuselect-tree-mysql.diff +.endif + .if !defined(WITH_OGGVORBIS) PLIST_SUB+= WITH_OGGVORBIS="@comment " CONFIGURE_ARGS+= --without-ogg diff --git a/net/asterisk10/files/extra-patch-menuselect-tree-mysql.diff b/net/asterisk10/files/extra-patch-menuselect-tree-mysql.diff new file mode 100644 index 000000000000..c562dbbdf14f --- /dev/null +++ b/net/asterisk10/files/extra-patch-menuselect-tree-mysql.diff @@ -0,0 +1,25 @@ +--- menuselect-tree.orig 2011-02-11 17:33:25.000000000 +0200 ++++ menuselect-tree 2011-02-11 17:33:52.000000000 +0200 +@@ -4,14 +4,12 @@ + <category name="MENUSELECT_ADDONS" displayname="Add-ons (See README-addons.txt)" remove_on_change="addons/modules.link"> + <member name="app_mysql" displayname="Simple Mysql Interface" remove_on_change="addons/app_mysql.o addons/app_mysql.so"> + <depend>mysqlclient</depend> +- <defaultenabled>no</defaultenabled> + </member> + <member name="app_saycountpl" displayname="Say polish counting words" remove_on_change="addons/app_saycountpl.o addons/app_saycountpl.so"> + <defaultenabled>no</defaultenabled> + </member> + <member name="cdr_mysql" displayname="MySQL CDR Backend" remove_on_change="addons/cdr_mysql.o addons/cdr_mysql.so"> + <depend>mysqlclient</depend> +- <defaultenabled>no</defaultenabled> + </member> + <member name="chan_mobile" displayname="Bluetooth Mobile Device Channel Driver" remove_on_change="addons/chan_mobile.o addons/chan_mobile.so"> + <depend>bluetooth</depend> +@@ -25,7 +23,6 @@ + </member> + <member name="res_config_mysql" displayname="MySQL RealTime Configuration Driver" remove_on_change="addons/res_config_mysql.o addons/res_config_mysql.so"> + <depend>mysqlclient</depend> +- <defaultenabled>no</defaultenabled> + </member> + </category> + <category name="MENUSELECT_APPS" displayname="Applications" remove_on_change="apps/modules.link"> diff --git a/net/asterisk10/pkg-plist b/net/asterisk10/pkg-plist index 752a6fe90be5..2b443070b0eb 100644 --- a/net/asterisk10/pkg-plist +++ b/net/asterisk10/pkg-plist @@ -426,6 +426,7 @@ include/asterisk/xmldoc.h lib/asterisk/modules/app_celgenuserevent.so lib/asterisk/modules/app_confbridge.so lib/asterisk/modules/app_minivm.so +%%WITH_MYSQL%%lib/asterisk/modules/app_mysql.so lib/asterisk/modules/app_originate.so lib/asterisk/modules/app_playtones.so lib/asterisk/modules/app_readexten.so @@ -533,6 +534,7 @@ lib/asterisk/modules/app_zapateller.so lib/asterisk/modules/cdr_csv.so lib/asterisk/modules/cdr_custom.so lib/asterisk/modules/cdr_manager.so +%%WITH_MYSQL%%lib/asterisk/modules/cdr_mysql.so %%WITH_POSTGRES%%lib/asterisk/modules/cdr_pgsql.so %%WITH_RADIUS%%lib/asterisk/modules/cdr_radius.so %%WITH_SQLITE%%lib/asterisk/modules/cdr_sqlite.so @@ -613,6 +615,7 @@ lib/asterisk/modules/res_agi.so lib/asterisk/modules/res_calendar.so %%WITH_EXCHANGE%%lib/asterisk/modules/res_calendar_ews.so lib/asterisk/modules/res_clioriginate.so +%%WITH_MYSQL%%lib/asterisk/modules/res_config_mysql.so %%WITH_POSTGRES%%lib/asterisk/modules/res_config_pgsql.so lib/asterisk/modules/res_convert.so lib/asterisk/modules/res_crypto.so |