1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-09 21:30:42 +00:00
Commit Graph

313 Commits

Author SHA1 Message Date
Michael Vetter
7486e22b77 Look for plugins to install in global location
Two options to install plugins.
Mention the whole path:
`/plugins install ~/src/profanity-plugins/my.py`

Mention only the plugin name:
`/plugins install my.py`

The latter will look in `/usr/local/share/profanity/plugins/` for the
file and copy it over to `~/.local/share/profanity/plugins`.

At first I was thinking about loading the plugins from the global
location. But users most likely don't want to have all plugins activated
that an admin installs on a system.

Regards https://github.com/profanity-im/profanity/issues/945
2021-09-29 17:32:54 +02:00
Michael Vetter
e943ababb9 Start new cycle 2021-09-28 19:53:05 +02:00
Michael Vetter
e6f96cd7d7 Release 0.11.1 2021-09-28 19:48:42 +02:00
Michael Vetter
8be49e9e21 Check for curl version nr
We use `curl_url()` since e9d587578 which according to
https://curl.se/libcurl/c/curl_url.html is only available in libcurl >= 7.62.0 .

Related to https://github.com/profanity-im/profanity/issues/1581
2021-07-20 17:26:07 +02:00
Michael Vetter
275c3132a5 Start next cycle 2021-07-14 16:25:08 +02:00
Michael Vetter
563f08164e Release 0.11.0 2021-07-14 16:23:05 +02:00
Michael Vetter
9d976e7231 Start new cycle 2021-01-09 08:09:42 +01:00
Michael Vetter
d382023961 Release 0.10.0 2021-01-09 08:08:10 +01:00
Michael Vetter
f1b9bb49e1 configure: check for python3-config 2020-10-09 09:38:47 +02:00
Michael Vetter
7f5169c2e9 Use g_date_time_format_iso8601()
This partly reverts d3a387a0ec.

For proanity 0.9.x we still wanted to support older glib versions so
that we can be packaged for various linux distros.

Now with 0.10 we want to move on.
2020-09-30 19:43:58 +02:00
Michael Vetter
0a9200e268 Require libstrophe/libmesode 0.10.0 2020-09-30 19:30:40 +02:00
nia
52e9be4abc Basic support for building on NetBSD.
- Add NetBSD as a recognized platform without -ldl.
- Allow building with NetBSD libcurses instead of ncurses.
- Portability to NetBSD sh - use POSIX '=' instead of '=='.
2020-09-04 12:55:20 +02:00
Michael Vetter
05d19cb6e3 configure: support gtk3 too
Make Profanity compilable with gtk2 and gtk3.
Prefer the latter.
2020-08-04 18:05:04 +02:00
Michael Vetter
3af5f33489 0.9.5 2020-07-01 18:47:07 +02:00
Michael Vetter
906c020155 Start new cycle 2020-06-24 13:57:05 +02:00
Michael Vetter
1332a4a6c2 Release 0.9.4 2020-06-24 13:56:34 +02:00
Michael Vetter
9eb2b79f53 Start new cycle 2020-06-19 20:34:29 +02:00
Michael Vetter
177c953991 Release 0.9.3 2020-06-19 20:29:31 +02:00
Michael Vetter
5d5acd65b1 Start new cycle 2020-06-13 18:38:37 +02:00
Michael Vetter
c58726d67f Release 0.9.2 2020-06-13 18:37:51 +02:00
Michael Vetter
e07da412b7 Use gnu99 standard
With recent changes to c99 and -D_POSIX_C_SOURCE=200809L we get the following:

openSUSE TW CI sais:
```
Now you can run `make' to build profanity

In file included from /usr/include/python2.7/Python.h:8,

                 from src/plugins/python_plugins.c:37:

/usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror]

 1226 | #define _POSIX_C_SOURCE 200112L

      |

<command-line>: note: this is the location of the previous definition

In file included from /usr/include/python2.7/Python.h:8,

                 from src/plugins/python_api.c:37:

/usr/include/python2.7/pyconfig.h:1226: error: "_POSIX_C_SOURCE" redefined [-Werror]

 1226 | #define _POSIX_C_SOURCE 200112L

      |

<command-line>: note: this is the location of the previous definition

cc1: all warnings being treated as errors
```

OpenBSD CI sais:
```
cc1: warnings being treated as errors
src/database.c: In function 'log_database_get_previous_chat':
src/database.c:226: warning: implicit declaration of function 'asprintf'
gmake[1]: *** [Makefile:1924: src/database.o] Error 1
gmake[1]: Leaving directory '/home/build/profanity'
gmake: *** [Makefile:1211: all] Error 2
```

Let us use gnu99. Has been proposed before already and is fine.

Regards https://github.com/profanity-im/profanity/issues/1357
Regards https://github.com/profanity-im/profanity/pull/1351
2020-06-13 15:58:01 +02:00
Michael Vetter
74e061165a Define POSIX macro to have strdup
98c38dc6d6
sets C99 as standard.

strdup() is not part of C99.

For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99.
Using `gnu99` instead would be another option.

We should take more care to use glib functions whenever possible.

Regards https://github.com/profanity-im/profanity/issues/1357
2020-06-12 16:12:21 +02:00
Michael Vetter
74ff38f0bd Start new cycle 2020-06-11 10:07:51 +02:00
Michael Vetter
8551d3dcb1 Release 0.9.1 2020-06-11 10:06:56 +02:00
Dmitry Podgorny
424918c5ed Make legacy auth optional
Some systems don't provide recent libstrophe releases. When older
version of libstrophe is detected, don't build legacy auth support.

To simplify this patch, report about unsupported legacy auth and
keep commands option as is.
2020-06-11 02:51:07 +03:00
Michael Vetter
c0163f71f7 Start new cycle 2020-06-09 16:54:35 +02:00
Michael Vetter
c4339b4ff9 Release 0.9.0 2020-06-09 16:52:09 +02:00
Michael Vetter
28bdbf8ea1 Bump libstrophe requirement to 0.9.3
legacy auth (ac410445af) requires
libstrophe 0.9.3 because of XMPP_CONN_FLAG_LEGACY_AUTH.
2020-06-05 19:37:53 +02:00
Michael Vetter
8c9aee22e8 Correctly check for 'expect'
The expect library doesnt export 'main'. But it exports (and we use)
exp_expectl.
2020-06-04 12:29:49 +02:00
Michael Vetter
98c38dc6d6
Merge pull request #1351 from toogley/master
Use always c99
2020-06-04 11:28:24 +02:00
Michael Vetter
0071bbb4be
Merge pull request #1349 from profanity-im/autotools
configure.ac: add additional check for libstrophe
2020-06-03 15:15:10 +02:00
Michael Vetter
42eb9ba63d Include mesode.h in libmesode test case
Regards https://github.com/profanity-im/profanity/issues/1334
2020-06-03 14:31:41 +02:00
toogley
26cda6b5e6
use always c99; fixes "universal character names" error msg
without this, i receive this error on openbsd 6.7:

src/event/server_events.c:1477:19: error: universal character names are only valid in C++ and C99
src/event/server_events.c:1478:19: error: universal character names are only valid in C++ and C99
gmake[1]: *** [Makefile:1925: src/event/server_events.o] Error 1
gmake[1]: Leaving directory '/home/toogley/profanity'
gmake: *** [Makefile:1212: all] Error 2
2020-06-02 15:30:55 +00:00
Dmitry Podgorny
75bb00368f configure.ac: add additional check for libstrophe
After the library is found by pkg-config, try to build a simple program
to check the installation. The motivation of this check is that the
chance that users manually install libstrophe/libmesode is higher than
for other libs.

Fixes #1334.
2020-05-31 20:02:48 +03:00
DebXWoody
cf78fac508
Fix: configure sqlite 2020-05-30 19:39:12 +02:00
Michael Vetter
401ebce84e Downgrade sqlite to 3.22.0
Last version in Ubuntu LTS (bionic 18.04).
I think we don't use later functionality. Let's see.

glib version fits.
2020-04-08 20:10:23 +02:00
Michael Vetter
d3a387a0ec Downgrade dependencies
Use g_date_time_format() instead of g_date_time_format_iso8601() to only
rely on glib 2.56.0 which is the latest version in Debian Buster
(current stable).

We also only use basic sqlite functions so 3.27.0 should be fine there
(also the one in Debian buster).

Thanks to @DebXWoody.
2020-04-07 11:10:41 +02:00
Michael Vetter
9aefbdcb53 Require at least glib 2.62.
g_date_time_format_iso8601() is only in glib since 2.62.
2020-04-06 22:42:39 +02:00
Michael Vetter
e61238e9cd Require only sqlite 3.28.0
We don't need newer features and so it runs on Leap 15.1 too.
Let's see what Debian etc. need.
2020-04-06 22:37:05 +02:00
Michael Vetter
8bfb175d03 Start SQLite db module
I plan to save all messages in an SQLite db.
For retrieving information it's nicer than having it in a text file.
We will have more info in there and easier to parse it.

This will also be good for later MAM
(https://github.com/profanity-im/profanity/issues/660).

Regular text files will still be an option for users so that they can
easily grep them and do whatever they like.

Internally Profanity will only use the SQLite db.
2020-04-06 10:50:20 +02:00
William Wennerström
b267b065f5
Add builds.sr.ht CI for OpenBSD
* Add .builds/openbsd.yml for builds.sr.ht
* Update travis-build.sh -> ci-build.sh with OpenBSD case
* Fix libdl check in configure.ac (OpenBSD has libdl built-in)
* Fix some minor issues found when compiling on OpenBSD with GCC (e.g.
  uninitialized variables)
2020-02-17 10:54:15 +01:00
Michael Vetter
17b6cfaf7d Start next development cycle 2020-02-07 21:49:21 +01:00
Michael Vetter
4291281629 Release 0.8.1 2020-02-07 21:47:41 +01:00
Michael Vetter
266aef9338 Start next development cycle 2020-02-03 11:16:28 +01:00
Michael Vetter
94a9de8773 Release 0.8.0 2020-02-03 11:12:17 +01:00
Michael Vetter
6e5c928826 Check for fmod() function
Instead of adding `profanity_LDADD = -lm` to Makefile.am or using
`AC_CHECK_LIB()` in configurea.c I use `AC_SEARCH_LIBS()` in case the
fmod() function is in the libc.

See https://autotools.io/autoconf/finding.html
2019-12-12 14:57:00 +01:00
Michael Vetter
900a0451a7 Adjust tray configure switch to also include clipboard
General GTK.
2019-10-29 15:20:57 +01:00
Marko Zagožen
d3530b755d Include PYTHON_EXTRA_LIBS in libtool config
Fixes compilation when using custom Python installed with pyenv.
2019-10-01 18:13:12 +02:00
Michael Vetter
3ddcfb194a Set version to 0.7.1 2019-09-24 16:35:31 +02:00
Michael Vetter
1ea0e32c82 Set configure to devel 2019-07-31 12:00:58 +02:00
Michael Vetter
abde81d0d9 Release 0.7.0 2019-07-31 10:56:03 +02:00
Michael Vetter
d4892b29c4 Update profanity repo URL
Move from github.com/boothj5/* to github.com/profanity-im/*
2019-05-03 10:51:28 +02:00
Paul Fariello
b2dfdc7509 Add libgcrypt minimum version in configure error log 2019-04-13 00:41:24 +02:00
Paul Fariello
c00ab0351d Look for gcry_md_extract (libgcrypt >= 1.7.0) 2019-04-13 00:35:28 +02:00
Michael Vetter
0dfe61c01c Revert "Set C99 standard in configure"
This reverts commit 7be6158c80.
2019-04-12 15:36:11 +02:00
Michael Vetter
7be6158c80 Set C99 standard in configure
We already use uint_32 from stdint.h which AFAIK is C99.
I seem to remember there is more C99 in the code. Let's explicitly
define it here.

Also fixes build for https://github.com/boothj5/profanity/pull/1053
2019-04-12 12:18:51 +02:00
Paul Fariello
f9b2fdc7db OMEMO should be written uppercase 2019-04-10 17:24:56 +02:00
Paul Fariello
edbc15fa2b Don't build OMEMO by default 2019-04-10 17:23:46 +02:00
Paul Fariello
97c661271b Add support for libsignal-protocol-c 2.3.2 2019-04-10 17:12:31 +02:00
Paul Fariello
605e06411c Get rid of libsodium 2019-04-10 16:31:45 +02:00
Paul Fariello
0fb27dc496 Add OMEMO message encryption and decryption 2019-04-10 16:03:50 +02:00
Paul Fariello
2602cbf785 Move OMEMO initialization to profanity intialization
Also store identity keys into account
2019-04-10 15:37:22 +02:00
Paul Fariello
bfbc8edcad Add crypto backend for signal-protocol 2019-04-08 11:50:12 +02:00
Paul Fariello
4a5b672f95 Link against libsignal-protocol-c 2019-04-08 11:50:12 +02:00
Michael Vetter
7ca97e467e Set status to development 2019-02-18 14:11:19 +01:00
Michael Vetter
cc753d2a29 Release 0.6.0 RC1 2019-01-22 11:38:40 +01:00
Dmitry Podgorny
671849c711 autotools: use pkgconfig for libotr 2018-11-01 13:41:58 +02:00
Michael Vetter
bb87122af9
Merge pull request #1011 from jubalh/sha1
Get rid of p_sha1 dependency
2018-09-19 11:45:19 +02:00
Michael Vetter
eec7d34eab Require libmesode/libstrophe >= 0.9.2
The sha1 function `xmpp_sha1_digest()` from libmesode/libstrophe, that we now use instead of `p_sha1_hash() which depended on another third party sha1 lib is only avilable in version >= 0.9.2.
2018-09-13 21:03:33 +02:00
Dmitry Podgorny
b367c848d4 configure.ac: add proper check for gio-2.0
PR #999 adds call of g_object_unref() which requires libgobject-2.0.
The library is dependency of gio-2.0 and the problem is that current
configure.ac simply adds -lgio-2.0 without dependencies.

As fix, use pkg-config module.
2018-09-06 19:54:29 +03:00
Rafael Sadowski
8fd77ea19b autoconf adjustments for OpenBSD
In OpenBSD we have two readline libs. On the one hand we have an old
version in the base OS and on the other hand we have an new one in the
ports tree. profanity needs the new one and should pick up the right
one. readline from ports tree is prefixed as ereadline.

Note:
Original patch by Rafael Sadowski.
Cleaned up by jubalh with heavy help of pasis.
2018-08-13 17:18:19 +02:00
James Booth
97edebadcb Update Glib dependency to 2.40 2017-03-25 02:07:27 +00:00
James Booth
f683a704ad Update version to 0.6.0 development 2016-09-22 21:02:34 +01:00
James Booth
751d9624c3 Set to development version 0.5.1 2016-09-16 00:03:23 +01:00
James Booth
6d274ba846 Release 0.5.0 2016-09-15 22:53:43 +01:00
Dmitry Podgorny
af53ca8f6c configure.ac: remove outdated xml parser info 2016-09-08 11:44:06 +03:00
James Booth
56c0c533e3 Disable C plugins on Cygwin 2016-09-08 00:36:11 +01:00
James Booth
c908f37a23 Fail configure when no pthread support 2016-09-05 22:00:16 +01:00
James Booth
27a842d1cf Include python plugins by default in build 2016-07-24 01:34:02 +01:00
James Booth
7d742f704f Fix prof module init for python3 2016-07-18 01:27:23 +01:00
James Booth
ace2715cf7 Added PYTHON3 define 2016-07-14 00:00:46 +01:00
Dmytro Podgornyi
7d857fc30e Fix libcurl check in configure.ac for OS X
OS X contains libcurl without a pkg-config file and ./configure
reports error. Add AC_CHECK_LIB in order to find libcurl properly.

Also remove manual adding -lncurses and -lcurl to LIBS, because
AC_CHECK_LIB does this job.
2016-05-21 16:07:40 +03:00
James Booth
559b1608cf Only set CC to PTHREAD_CC when value present 2016-04-27 23:02:22 +01:00
James Booth
94f0550c51 Allow --disable-icons 2016-04-27 22:49:20 +01:00
James Booth
4ca6296fb7 Fix OSX compile 2016-04-26 23:50:56 +02:00
James Booth
9d263d7c83 Fixed cygwin compile 2016-04-26 23:50:55 +02:00
James Booth
261bbd3fc0 Removed only add -lgio-2.0 manually on OSX 2016-04-26 23:50:55 +02:00
Dominik Heidler
1b0ce852bb Implement XEP-0363: HTTP File Upload 2016-04-26 23:50:55 +02:00
James Booth
697db019d5 Merge remote-tracking branch 'Dav1d23/master'
Conflicts:
	Makefile.am
	install-all.sh
2016-04-11 00:23:36 +01:00
James Booth
31369e2e55 Added comment for AX_PREFIX_CONFIG_H 2016-03-31 21:19:34 +01:00
James Booth
9b177a9e01 Removed #AX_PREFIX_CONFIG_H 2016-03-31 21:05:02 +01:00
David
1e60d17d7c libgtk is now optional
Having the lib is no more needed.
2016-03-30 23:21:41 +02:00
Dmitry Podgorny
5278572fec autotools: Disable python-plugins by default
Profanity doesn't build with Python-3.5. This patch temporary disables
python api unless user enable it explicitly.
2016-03-24 00:36:07 +02:00
David
098d84ef73 Merge branch 'tray_icon' into HEAD
Let's thanks Aline <linuxine@gmail.com> for the icons.

Enjoy!
2016-03-12 17:37:46 +01:00
David
718a708b93 Use a folder to add icons
NOTE: it is not working in this release, I have to get how to retrieve
icons from folder.
2016-03-07 22:26:48 +01:00
David
dc0c3cc699 Introduce Tray Icon for Profanity
Add tray icon for profanity based on Gtk StatusIcon.
Different icon is displayed in case the user has unread messages.
2016-03-06 19:10:46 +01:00
James Booth
2c7a4e4843 Added workaround for http://bugs.python.org/issue3588 2016-03-02 23:00:47 +00:00
James Booth
7cf8f47fa6 Moved python flags to LIBS in configure.ac 2016-02-28 21:14:10 +00:00
James Booth
0fc0b3eeec Added python plugins code 2016-02-24 00:31:55 +00:00
James Booth
41fe8c22b1 Added C plugin code from plugins branch 2016-02-14 22:28:55 +00:00