Browse Source

new: [apt-cacher] new charm.

postgres
Valentin Lab 10 years ago
parent
commit
ef99973b8d
  1. 18
      precise/apt-cacher/hooks/install
  2. 7
      precise/apt-cacher/hooks/start
  3. 3
      precise/apt-cacher/hooks/stop
  4. 6
      precise/apt-cacher/metadata.yaml
  5. 1
      precise/apt-cacher/revision

18
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

7
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."

3
precise/apt-cacher/hooks/stop

@ -0,0 +1,3 @@
#!/bin/bash
juju-log "Nothing to stop for base."

6
precise/apt-cacher/metadata.yaml

@ -0,0 +1,6 @@
name: apt-cacher
summary: "Apt-get Caching Server"
maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
inherit: base
description: |
Apt-get Caching Server

1
precise/apt-cacher/revision

@ -0,0 +1 @@
0
Loading…
Cancel
Save