Changeset 8e5751e
- Timestamp:
- 2015-07-29T23:10:58Z (9 years ago)
- Children:
- ee8307c
- Parents:
- 69b94c3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r69b94c3 r8e5751e 16 16 config='/var/lib/bitlbee/' 17 17 plugindir='$prefix/lib/bitlbee/' 18 rpcplugindir='$plugindir/rpc/' 18 19 includedir='$prefix/include/bitlbee/' 19 20 systemdsystemunitdir='' … … 32 33 jabber="default-on" 33 34 oscar="default-on" 34 rpc="rpc-on"35 35 yahoo="default-on" 36 36 37 37 twitter=1 38 38 purple=0 39 rpc=1 39 40 40 41 doc=1 … … 119 120 --datadir=... $datadir 120 121 --plugindir=... $plugindir 122 --rpcplugindir=... $rpcplugindir 121 123 --systemdsystemunitdir=... $systemdsystemunitdir 122 124 --pidfile=... $pidfile … … 131 133 --purple=0/1 Disable/enable libpurple support $purple 132 134 (automatically disables other protocol modules) 133 --rpc=0/1 Disable/enable RPC interface$rpc135 --rpc=0/1 Disable/enable RPC plugin interface $rpc 134 136 135 137 --doc=0/1 Disable/enable help.txt generation $doc … … 166 168 config=`eval echo "$config/" | sed 's/\/\{1,\}/\//g'` 167 169 plugindir=`eval echo "$plugindir/" | sed 's/\/\{1,\}/\//g'` 170 rpcplugindir=$(eval echo "$rpcplugindir/" | sed 's/\/\{1,\}/\//g') 168 171 includedir=`eval echo "$includedir"/ | sed 's/\/\{1,\}/\//g'` 169 172 libevent=`eval echo "$libevent"/ | sed 's/\/\{1,\}/\//g'` … … 184 187 DATADIR=$datadir 185 188 PLUGINDIR=$plugindir 189 RPCPLUGINDIR=$rpcplugindir 186 190 CONFIG=$config 187 191 INCLUDEDIR=$includedir … … 233 237 #define VARDIR "$datadir" 234 238 #define PLUGINDIR "$plugindir" 239 #define RPCPLUGINDIR "$rpcplugindir" 235 240 #define PIDFILE "$pidfile" 236 241 #define IPCSOCKET "$ipcsocket" … … 254 259 LDFLAGS="$LDFLAGS -fsanitize=address" 255 260 debug=1 261 fi 262 263 if [ "$tsan" = "1" ]; then 264 echo 265 echo "Threaded BitlBee? Have a nice tall glass of http://imgur.com/gallery/tX4qxzS" 266 echo "No need to sanitise threads in a single-threaded process!" 256 267 fi 257 268 … … 644 655 fi 645 656 657 if [ "$rpc" = 0 ]; then 658 # Somewhat pointless at this stage already but at least this keeps it 659 # out of bitlbee.pc which is probably a good thing. 660 rpcplugindir="" 661 fi 662 646 663 otrprefix="" 647 664 for i in / /usr /usr/local; do … … 730 747 includedir=$includedir 731 748 plugindir=$plugindir 749 rpcplugindir=$rpcplugindir 732 750 733 751 Name: bitlbee … … 919 937 echo ' Using event handler: '$events 920 938 echo ' Using SSL library: '$ssl 921 #echo ' Building with these storage backends: '$STORAGES922 939 923 940 if [ -n "$protocols" ]; then -
protocols/rpc/rpc.c
r69b94c3 r8e5751e 979 979 } 980 980 981 #define PDIR "/tmp/rpcplugins"982 983 981 /* YA RLY :-/ */ 984 982 #ifndef UNIX_PATH_MAX … … 988 986 989 987 void rpc_initmodule() { 990 DIR *pdir = opendir( PDIR);988 DIR *pdir = opendir(RPCPLUGINDIR); 991 989 struct dirent *de; 992 990 … … 998 996 continue; 999 997 1000 char *fn = g_build_filename( PDIR, de->d_name, NULL);998 char *fn = g_build_filename(RPCPLUGINDIR, de->d_name, NULL); 1001 999 struct sockaddr_un su; 1002 1000
Note: See TracChangeset
for help on using the changeset viewer.