diff options
Diffstat (limited to 'chat-irc/bitlbee/CONFIGURE')
-rwxr-xr-x | chat-irc/bitlbee/CONFIGURE | 56 |
1 files changed, 25 insertions, 31 deletions
diff --git a/chat-irc/bitlbee/CONFIGURE b/chat-irc/bitlbee/CONFIGURE index a8648b8294..6b1f7390aa 100755 --- a/chat-irc/bitlbee/CONFIGURE +++ b/chat-irc/bitlbee/CONFIGURE @@ -1,41 +1,35 @@ -config_query_option BITLBEE_OPTS "Enable plugin support? " y \ - "--plugins=1" "--plugins=0" && +config_query_option BITLBEE_OPTS "Enable plugin support?" y \ + "--plugins=1" \ + "--plugins=0" && -config_query_option BITLBEE_OPTS "Enable Jabber (XMPP) protocol? " n \ - "--jabber=1" "--jabber=0" && +config_query_option BITLBEE_OPTS "Enable Twitter protocol?" y \ + "--twitter=1" \ + "--twitter=0" && -config_query_option BITLBEE_OPTS "Enable Oscar protocol (for ICQ or AIM)? " y \ - "--oscar=1" "--oscar=0" && +config_query_option BITLBEE_OPTS "Enable Skype support?" n \ + "--skype=1" \ + "--skype=0" && -config_query_option BITLBEE_OPTS "Enable Yahoo protocol? " y \ - "--yahoo=1" "--yahoo=0" && +if ! list_find "$BITLBEE_OPTS" "--skype=0" && list_find "$BITLBEE_OPTS" "--plugins=1"; then + config_query BITLBEE_SKYPEPLUGIN "Build Skype support as a plugin?" n && -config_query_option BITLBEE_OPTS "Enable Twitter protocol? " y \ - "--twitter=1" "--twitter=0" && - -config_query_option BITLBEE_OPTS "Enable MSN protocol? " y \ - "--msn=1" "--msn=0" && - -config_query BITLBEE_OTR "Enable off-the-record (OTR) encryption support?" y && - -if [[ "$BITLBEE_OTR" == "y" ]] -then - if [[ "$BITLBEE_OPTS" == *--plugins=1* ]] - then - config_query BITLBEE_OTRPLUGIN "Build OTR support as a plugin?" n && - [[ "$BITLBEE_OTRPLUGIN" == "y" ]] && BITLBEE_OPTS="$BITLBEE_OPTS --otr=plugin" - else - BITLBEE_OPTS="$BITLBEE_OPTS --otr=1" + if [[ $BITLBEE_SKYPEPLUGIN == y ]]; then + list_remove "BITLBEE_OPTS" "--skype=1" && + list_add "BITLBEE_OPTS" "--skype=plugin" fi fi && +config_query_option BITLBEE_OPTS "Enable debugging?" n \ + "--debug=1" \ + "--debug=0" && + config_query_list BITLBEE_SSL "Which SSL library would you like to use?" \ - "openssl" \ - "gnutls" && + gnutls \ + openssl \ + nss && -config_query_list BITLBEE_EVENT "Which event library would you like to use?" \ - "glib2" \ - "libevent" && +config_query_list BITLBEE_EVENT "Which event handler library would you like to use?" \ + glib2 \ + libevent && -config_query BITLBEE_BITLBEED \ - "Build bitlbeed (to run bitlbee without xinetd)?" n +config_query BITLBEE_BITLBEED "Build bitlbeed (to run bitlbee as a non-root user)?" n |