Build ZNC from source instead of relying on 3rd-party PPA repo

This commit is contained in:
2014-05-17 18:03:52 +01:00
parent 00fbafc18f
commit 3269e67261
2 changed files with 23 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
# version 0.0.2
# docker-version 0.7.6
# docker-version 0.11.1
FROM ubuntu:12.04
MAINTAINER Jim Myhrberg "contact@jimeh.me"

View File

@@ -1,14 +1,29 @@
#! /usr/bin/env bash
set -e
# Install
apt-get install -y python-software-properties
add-apt-repository ppa:teward/znc
# Config
ZNC_VERSION="1.4"
# Install build dependencies.
apt-get update
apt-get install -y znc znc-dbg znc-dev znc-perl znc-python znc-tcl
apt-get install -y znc znc-dbg znc-dev znc-extra znc-perl znc-python znc-tcl
apt-get install -y wget build-essential libssl-dev libperl-dev pkg-config
# Prepare building
mkdir -p /src
# Download, compile and install ZNC.
cd /src
wget "http://znc.in/releases/archive/znc-${ZNC_VERSION}.tar.gz"
tar -zxf "znc-${ZNC_VERSION}.tar.gz"
cd "znc-${ZNC_VERSION}"
./configure && make && make install
# Clean up
apt-get remove -y python-software-properties
apt-get remove -y wget
apt-get autoremove -y
apt-get clean
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*