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