Use weechat from Debian instead of self-compiling it.
This commit is contained in:
parent
8606fca946
commit
ea3b309db9
|
@ -2,64 +2,18 @@
|
|||
|
||||
- block:
|
||||
|
||||
- name: Dependency for some modules
|
||||
- name: Dependencies
|
||||
apt:
|
||||
name:
|
||||
- weechat-headless
|
||||
- python3-websocket
|
||||
- libolm-dev # For weechat-matrix
|
||||
- python3-pip # For weechat-matrix
|
||||
state: present
|
||||
|
||||
- name: Weechat user
|
||||
user:
|
||||
name: "{{ owner }}"
|
||||
state: present
|
||||
system: yes
|
||||
|
||||
- name: Weechat source directory
|
||||
file:
|
||||
state: directory
|
||||
path: "/usr/local/src/weechat/"
|
||||
owner: "{{ owner }}"
|
||||
|
||||
- name: Get weechat source
|
||||
become: true
|
||||
become_user: "{{ owner }}"
|
||||
unarchive:
|
||||
src: "https://github.com/weechat/weechat/archive/v{{ version }}.tar.gz"
|
||||
remote_src: yes
|
||||
dest: "/usr/local/src/weechat/"
|
||||
creates: "/usr/local/src/weechat/weechat-{{ version }}/"
|
||||
register: new_weechat
|
||||
|
||||
- name: Compiling dependencies
|
||||
package:
|
||||
name:
|
||||
- build-essential
|
||||
- cmake
|
||||
- libgcrypt20-dev
|
||||
- libgnutls28-dev
|
||||
- zlib1g-dev
|
||||
- libcurl4-gnutls-dev
|
||||
- libpython3-dev
|
||||
- libaspell-dev
|
||||
- python3-dev
|
||||
- python3-websocket
|
||||
- pkg-config
|
||||
state: present
|
||||
|
||||
- name: Compile weechat
|
||||
become: true
|
||||
become_user: weechat
|
||||
when: new_weechat.changed
|
||||
shell: |
|
||||
cd /usr/local/src/weechat/weechat-{{ version }}/
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DENABLE_ASPELL=OFF -DENABLE_BUFLIST=OFF -DENABLE_CHARSET=ON -DENABLE_EXEC=OFF -DENABLE_GUILE=OFF -DENABLE_JAVASCRIPT=OFF -DENABLE_LUA=OFF -DENABLE_NCURSES=OFF -DENABLE_NLS=OFF -DENABLE_PERL=OFF -DENABLE_PHP=OFF -DENABLE_RUBY=OFF -DENABLE_TCL=OFF -DENABLE_XFER=OFF -DENABLE_PYTHON3=ON -DCMAKE_INSTALL_PREFIX=/usr/local/src/weechat/
|
||||
make -j 4
|
||||
make install
|
||||
notify: weechat
|
||||
system: true
|
||||
|
||||
- name: Create python/autoload directory
|
||||
file:
|
||||
|
@ -79,7 +33,7 @@
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/src/weechat/bin/weechat-headless
|
||||
ExecStart=/usr/bin/weechat-headless
|
||||
User=weechat
|
||||
Group=weechat
|
||||
Restart=on-failure
|
||||
|
|
|
@ -4,13 +4,11 @@
|
|||
vars:
|
||||
letsencrypt_email: julien@palard.fr
|
||||
glowing_bear_version: 0.9.0
|
||||
weechat_version: 3.5
|
||||
tasks:
|
||||
- name: Setup weechat
|
||||
include_role: name=weechat
|
||||
tags: always
|
||||
vars:
|
||||
version: "{{ weechat_version }}"
|
||||
owner: weechat
|
||||
|
||||
- name: Setup Glowing Bear
|
||||
|
|
Loading…
Reference in New Issue