Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu Groovy compatability #5

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@

A wrapper script to pull in the library files required for cyrus-imapd and build them

## Fetching dependencies

### Debian
Dependency installation script for Debian clean installation. Tested on Debian Stretch lxc image.
```
./install-dependencies.sh
./install-dependencies-debian.sh
```

### Ubuntu
Dependency installation script for Ubuntu installation (Should work on 20.10 groovy).
```
./install-dependencies-ubuntu.sh
```

## Building libraries

To build all libraries run:
```
Expand All @@ -23,7 +34,7 @@ To fetch, build and install particular library run:

Assuming host machine is `Ubuntu 18.04` or `Debian Stretch`.

On host machine run:
Ensure lxc is initialized (otherwise run `lxc init`). On host machine run:
```
lxc launch images:debian/stretch cyrusimap-build
lxc exec cyrusimap-build bash
Expand All @@ -34,7 +45,7 @@ Inside container:
apt-get install git -y
cd /usr/src
git clone https://github.com/cyrusimap/cyruslibs.git
./install-dependencies.sh
./install-dependencies-debian.sh
./build.sh
```

Expand Down
File renamed without changes.
20 changes: 20 additions & 0 deletions install-dependencies-ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Ubuntu dependency installation script for Cyrus IMAP libs
# Tested on Ubuntu 20.10 (groovy)

# General build dependencies (assuming git is already installed)
BUILD_ENV_DEPS="sudo cmake check build-essential tcl autoconf automake libtool"
BUILD_ENV_DEPS="${BUILD_ENV_DEPS} pkg-config bison flex libssl-dev libxml2-dev"
BUILD_ENV_DEPS="${BUILD_ENV_DEPS} uuid-dev libicu-dev texinfo"

# Libjansson dependencies
JANSSON_DEPS="zlib1g zlib1g-dev libglib2.0-dev"

# Xapian dependencies
XAPIAN_DEPS="graphviz doxygen python3-docutils help2man libmagic-dev"

# Libwslay dependencies
LIBWSLAY_DEPS="sphinx-common"

apt-get install -y ${BUILD_ENV_DEPS} ${JANSSON_DEPS} ${XAPIAN_DEPS} ${LIBWSLAY_DEPS}