Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added apt-cacher-ng #18533

Closed
wants to merge 1 commit into from

3 participants

asharpe Adam Vandenberg Andrew Sharpe
asharpe

Jack also asked what the use case was for this software.

My primary use case is installation and updating of virtual machines, and I use apt-cacher-ng to keep downloads to a minimum.

The blurb from the homepage reads: A caching proxy. Specialized for package files from Linux distributors, primarily for Debian (and Debian based) distributions but not limited to those.

Adam Vandenberg
Owner

Squash to a single commit please.

asharpe

Did I make another balls-up (mess) of this?

Adam Vandenberg
Owner

This does not build for me: https://gist.github.com/adamv/5522432

asharpe

I was building against MacFUSE, and after updating to osxfuse I can reproduce the error. Patch submitted to maintainer, awaiting response...

Adam Vandenberg
Owner

@asharpe please add the patch to the pull request; but also if this software requires a fuse implementation that should be a dependency or requirement

asharpe

Done and done (patch + dependency)

asharpe

fuse4x is a build-only requirement. I've removed acngfs and in.acng as I've never used them and my first attempt failed. The "main" part of the application builds and appears to run just find, however I don't have a spare machine around to try it as a keg.

Adam Vandenberg
Owner

Looks like this version was redacted; needs an update here

curl: (22) The requested URL returned error: 404
Error: Download failed: http://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_0.7.12.orig.tar.xz
Andrew Sharpe andrewsharpe Added apt-cacher-ng with feedback from jacknagel
Fix to use interpolation correctly

Apply patch to allow correct recognition of fuse4x

This package was originally built with OSXFuse, however since adamv tried building it the fuse library has been changed to osxfuse.  To help ensure that there's a homebrew package as a dependency that contains fuse, we're now depending on fuse4x

Remove acngfs and in.acng as I've not used them and cannot verify that they work

Updated to 0.7.13

Remove patch for finding libfuse
5045be8
Adam Vandenberg adamv closed this pull request from a commit
Andrew Sharpe andrewsharpe apt-cacher-ng 0.7.13
Closes #18533.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
1179e94
Adam Vandenberg adamv closed this in 1179e94
Adam Vandenberg
Owner

Sorry for the delay in merging this.

asharpe
asharpe asharpe deleted the branch
Tanner Lovelace lovelace referenced this pull request from a commit
Andrew Sharpe andrewsharpe apt-cacher-ng 0.7.13
Closes #18533.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
32760a1
Jack Nagel jacknagel referenced this pull request
Closed

Added apt-cacher-ng #17205

Adam Compton handyman5 referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Evan Shelhamer shelhamer referenced this pull request from a commit
Andrew Sharpe andrewsharpe apt-cacher-ng 0.7.13
Closes #18533.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
55196e2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 2, 2013
  1. Andrew Sharpe

    Added apt-cacher-ng with feedback from jacknagel

    andrewsharpe authored
    Fix to use interpolation correctly
    
    Apply patch to allow correct recognition of fuse4x
    
    This package was originally built with OSXFuse, however since adamv tried building it the fuse library has been changed to osxfuse.  To help ensure that there's a homebrew package as a dependency that contains fuse, we're now depending on fuse4x
    
    Remove acngfs and in.acng as I've not used them and cannot verify that they work
    
    Updated to 0.7.13
    
    Remove patch for finding libfuse
This page is out of date. Refresh to see the latest.
Showing with 57 additions and 0 deletions.
  1. +57 −0 Library/Formula/apt-cacher-ng.rb
57 Library/Formula/apt-cacher-ng.rb
View
@@ -0,0 +1,57 @@
+require 'formula'
+
+class AptCacherNg < Formula
+ homepage 'http://www.unix-ag.uni-kl.de/~bloch/acng/'
+ url 'http://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_0.7.13.orig.tar.xz'
+ sha1 'bb6c3cf8e116ed9800543b7864a3a7b406aa4d5a'
+
+ depends_on 'xz' => :build
+ depends_on 'cmake' => :build
+ depends_on 'fuse4x' => :build
+
+ def install
+ system 'make apt-cacher-ng'
+
+ inreplace 'conf/acng.conf' do |s|
+ s.gsub! /^CacheDir: .*/, "CacheDir: #{var}/spool/apt-cacher-ng"
+ s.gsub! /^LogDir: .*/, "LogDir: #{var}/log"
+ end
+
+ # copy default config over
+ etc.install_p 'conf', 'apt-cacher-ng'
+
+ # create the cache directory
+ (var/'spool/apt-cacher-ng').mkpath
+
+ sbin.install 'build/apt-cacher-ng'
+ man8.install 'doc/man/apt-cacher-ng.8'
+ end
+
+ plist_options :startup => true
+
+ def plist; <<-EOS.undent
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+ <plist version="1.0">
+ <dict>
+ <key>Label</key>
+ <string>#{plist_name}</string>
+ <key>OnDemand</key>
+ <false/>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>ProgramArguments</key>
+ <array>
+ <string>#{opt_prefix}/sbin/apt-cacher-ng</string>
+ <string>-c</string>
+ <string>#{etc}/apt-cacher-ng</string>
+ <string>foreground=1</string>
+ </array>
+ <key>ServiceIPC</key>
+ <false/>
+ </dict>
+ </plist>
+ EOS
+ end
+end
+
Something went wrong with that request. Please try again.