From ef99973b8d56bb686da0e8f13f65748ea47e933a Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 8 Jun 2015 09:06:12 +0200 Subject: [PATCH] new: [apt-cacher] new charm. --- precise/apt-cacher/hooks/install | 18 ++++++++++++++++++ precise/apt-cacher/hooks/start | 7 +++++++ precise/apt-cacher/hooks/stop | 3 +++ precise/apt-cacher/metadata.yaml | 6 ++++++ precise/apt-cacher/revision | 1 + 5 files changed, 35 insertions(+) create mode 100755 precise/apt-cacher/hooks/install create mode 100755 precise/apt-cacher/hooks/start create mode 100755 precise/apt-cacher/hooks/stop create mode 100644 precise/apt-cacher/metadata.yaml create mode 100644 precise/apt-cacher/revision diff --git a/precise/apt-cacher/hooks/install b/precise/apt-cacher/hooks/install new file mode 100755 index 0000000..f82c24a --- /dev/null +++ b/precise/apt-cacher/hooks/install @@ -0,0 +1,18 @@ +#!/bin/bash + +set -eux + + +apt-get install -y --force-yes apt-cacher-ng + + +## This is needed to enable https_port +#apt-get install devscripts build-essential +#apt-get install libssl-dev ## not in build-dep ... because we'll add it. +#apt-get source squid3 +#apt-get build-dep squid3 +#cd squid3-3.1.19 +#vim debian/rules # or whatever editor you use +# add --enable-ssl +#debuild -us -uc + diff --git a/precise/apt-cacher/hooks/start b/precise/apt-cacher/hooks/start new file mode 100755 index 0000000..88e357a --- /dev/null +++ b/precise/apt-cacher/hooks/start @@ -0,0 +1,7 @@ +#!/bin/bash + +## XXX: will need to add route: + +route add -net VPN_NET gw LXC_NAME + +juju-log "Nothing to Start for base." diff --git a/precise/apt-cacher/hooks/stop b/precise/apt-cacher/hooks/stop new file mode 100755 index 0000000..170162b --- /dev/null +++ b/precise/apt-cacher/hooks/stop @@ -0,0 +1,3 @@ +#!/bin/bash + +juju-log "Nothing to stop for base." diff --git a/precise/apt-cacher/metadata.yaml b/precise/apt-cacher/metadata.yaml new file mode 100644 index 0000000..7c17e0b --- /dev/null +++ b/precise/apt-cacher/metadata.yaml @@ -0,0 +1,6 @@ +name: apt-cacher +summary: "Apt-get Caching Server" +maintainer: "Valentin Lab " +inherit: base +description: | + Apt-get Caching Server diff --git a/precise/apt-cacher/revision b/precise/apt-cacher/revision new file mode 100644 index 0000000..573541a --- /dev/null +++ b/precise/apt-cacher/revision @@ -0,0 +1 @@ +0