From 3269e67261fac1105382edec20042ad58105f0a1 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sat, 17 May 2014 18:03:52 +0100 Subject: [PATCH] Build ZNC from source instead of relying on 3rd-party PPA repo --- Dockerfile | 2 +- bootstrap.sh | 29 ++++++++++++++++++++++------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c4ffbe..4f1183c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" diff --git a/bootstrap.sh b/bootstrap.sh index 4700988..dea3615 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -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/*