1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/www/apt-cacher-ng/files/apt_cacher_ng.in
Tobias Kortkamp 0126c8287a New port: www/apt-cacher-ng
apt-cacher-ng is a caching http/s proxy specialized in
handling distribution websites.  Originating from Debian it can be used
to cache package retrieval for other distributions as well.

The port includes support to add FreeBSD distribution specifics
to apt-cacher-ng.

WWW: https://www.unix-ag.uni-kl.de/~bloch/acng/

PR:		212097
Submitted by:	keve@keve.hu
2018-12-25 08:03:11 +00:00

31 lines
643 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: apt_cacher_ng
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# apt_cacher_ng_enable (bool): Set to NO by default.
# Set it to YES to enable apt-cacher-ng.
# apt_cacher_ng_user (string): User name to run the proxy with default=proxy.
. /etc/rc.subr
name=apt_cacher_ng
desc="apt-cacher-ng http/s proxy daemon"
rcvar=apt_cacher_ng_enable
load_rc_config $name
: ${apt_cacher_ng_enable:=NO}
: ${apt_cacher_ng_user:=proxy}
command=%%PREFIX%%/sbin/apt-cacher-ng
command_args="-c %%PREFIX%%/etc/apt-cacher-ng"
run_rc_command "$1"