From f37682e0d9dd4cb224d6417d08cc42d918cc0ab0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 27 Feb 2014 08:38:08 +0100 Subject: [PATCH] postinst-setup: set up apt-cacher-ng, adjust packages --- postinst-setup | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/postinst-setup b/postinst-setup index c29437c..c43964d 100755 --- a/postinst-setup +++ b/postinst-setup @@ -31,6 +31,13 @@ if [ ! -d /etc/.bzr ]; then echo "none /tmp tmpfs defaults 0 0" >> /etc/fstab fi +# set up apt-cacher-ng +/etc/init.d/apt-cacher-ng stop +mkdir -p /scratch/apt-cacher-ng +sed -i '/^CacheDir:/ s!^.*!CacheDir: /scratch/apt-cacher-ng!' /etc/apt-cacher-ng/zz_debconf.conf +chown -R apt-cacher-ng:apt-cacher-ng /scratch/apt-cacher-ng +/etc/init.d/apt-cacher-ng start + # update postfix for new configuration newaliases /etc/init.d/postfix restart @@ -43,9 +50,10 @@ apt-get purge -y --auto-remove hplip hplip-data printer-driver-hpcups brltty blu killall apt-get || true apt-get update -DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y --force-yes vim patchutils offlineimap diffstat gtimelog libtool devhelp python3-doc manpages-dev weechat weechat-plugins weechat-scripts wdiff ccache listadmin quilt mutt editmoin lintian ubuntu-dev-tools dput easytag rsnapshot texlive-lang-german texlive-latex-extra powertop qemu-kvm qemu-utils bzr-buildpackage git build-essential fakeroot devscripts libglib2.0-doc libgtk-3-doc git-buildpackage d-feet debootstrap wmctrl libnotify-bin svn-buildpackage pastebinit lptools openvpn pdfjam sbuild schroot exiv2 android-tools-adb phablet-tools gstreamer1.0-plugins-ugly flashplugin-installer valgrind calibre +DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y --force-yes vim patchutils offlineimap diffstat gtimelog devhelp python3-doc manpages-dev weechat weechat-plugins weechat-scripts listadmin quilt mutt editmoin lintian ubuntu-dev-tools dput easytag rsnapshot texlive-lang-german texlive-latex-extra powertop qemu-kvm qemu-utils bzr-buildpackage git build-essential fakeroot devscripts libglib2.0-doc libgtk-3-doc git-buildpackage d-feet wmctrl libnotify-bin svn-buildpackage pastebinit lptools openvpn pdfjam sbuild schroot lxc exiv2 phablet-tools gstreamer1.0-plugins-ugly flashplugin-installer valgrind calibre +# ccache -apt-get -y --no-install-recommends build-dep postgresql-9.1 apport calibre udisks2 upower systemd pygobject umockdev +apt-get -y --no-install-recommends build-dep calibre udisks2 upower systemd pygobject umockdev # have schroot use tmpfs rmdir /var/lib/schroot/unpack /var/lib/schroot/union/overlay/ -- 2.39.5