Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2018 08:03:12 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r488298 - in head/www: . apt-cacher-ng apt-cacher-ng/files
Message-ID:  <201812250803.wBP83CPe068239@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Tue Dec 25 08:03:11 2018
New Revision: 488298
URL: https://svnweb.freebsd.org/changeset/ports/488298

Log:
  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

Added:
  head/www/apt-cacher-ng/
  head/www/apt-cacher-ng/Makefile   (contents, props changed)
  head/www/apt-cacher-ng/distinfo   (contents, props changed)
  head/www/apt-cacher-ng/files/
  head/www/apt-cacher-ng/files/apt_cacher_ng.in   (contents, props changed)
  head/www/apt-cacher-ng/files/backends_debian.in   (contents, props changed)
  head/www/apt-cacher-ng/files/backends_freebsd.in   (contents, props changed)
  head/www/apt-cacher-ng/files/backends_ubuntu.in   (contents, props changed)
  head/www/apt-cacher-ng/files/freebsd_mirrors.in   (contents, props changed)
  head/www/apt-cacher-ng/files/patch-CMakeLists.txt   (contents, props changed)
  head/www/apt-cacher-ng/files/patch-client_CMakeLists.txt   (contents, props changed)
  head/www/apt-cacher-ng/files/patch-conf_acng.conf.in   (contents, props changed)
  head/www/apt-cacher-ng/files/patch-fs_CMakeLists.txt   (contents, props changed)
  head/www/apt-cacher-ng/files/patch-oldssl-workaround_CMakeLists.txt   (contents, props changed)
  head/www/apt-cacher-ng/files/patch-source_CMakeLists.txt   (contents, props changed)
  head/www/apt-cacher-ng/files/patch-source_acfg__defaults.cc   (contents, props changed)
  head/www/apt-cacher-ng/files/pkg-message.in   (contents, props changed)
  head/www/apt-cacher-ng/pkg-descr   (contents, props changed)
  head/www/apt-cacher-ng/pkg-plist   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Dec 25 07:59:30 2018	(r488297)
+++ head/www/Makefile	Tue Dec 25 08:03:11 2018	(r488298)
@@ -28,6 +28,7 @@
     SUBDIR += apache-mode.el
     SUBDIR += apache24
     SUBDIR += apercu
+    SUBDIR += apt-cacher-ng
     SUBDIR += archiva
     SUBDIR += aria2
     SUBDIR += aria2fe

Added: head/www/apt-cacher-ng/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/Makefile	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,48 @@
+# $FreeBSD$
+
+PORTNAME=	apt-cacher-ng
+PORTVERSION=	3.2
+CATEGORIES=	www
+MASTER_SITES=	DEBIAN_POOL/apt-cacher-ng
+DISTFILES=	${PORTNAME}_${PORTVERSION}.orig${EXTRACT_SUFX}
+
+MAINTAINER=	keve@keve.hu
+COMMENT=	Specialized http/s proxy for caching software distribution sites
+
+LICENSE=	EduardBloch
+LICENSE_NAME=	Eduard Bloch license
+LICENSE_FILE=	${WRKSRC}/COPYING
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+USES=		compiler:c++11-lang cmake:outsource ssl tar:xz
+USE_RC_SUBR=	apt_cacher_ng
+
+CMAKE_ARGS=	-DLIBDIR:PATH=${DATADIR} \
+		-DMANDIR:PATH=${PREFIX}/man \
+		-Dopenssl_FOUND=1 \
+		-Dopenssl_CFLAGS="-I ${OPENSSLINC}" \
+		-Dopenssl_LDFLAGS="-L ${OPENSSLLIB} -lssl -lcrypto"
+CMAKE_ON=	USE_SSL
+SUB_FILES=	backends_debian backends_freebsd backends_ubuntu \
+		freebsd_mirrors pkg-message
+
+OPTIONS_DEFINE=	DOCS FUSE
+OPTIONS_SUB=	yes
+
+FUSE_DESC=	FUSE support for interfacing with the proxy via acngfs
+
+FUSE_CMAKE_BOOL=	USE_FUSE
+FUSE_USES=		fuse pkgconfig
+
+post-install:
+	${MV} ${STAGEDIR}${ETCDIR}/acng.conf ${STAGEDIR}${ETCDIR}/acng.conf.sample
+	${MV} ${STAGEDIR}${ETCDIR}/security.conf ${STAGEDIR}${ETCDIR}/security.conf.sample
+	${INSTALL_DATA} ${WRKSRC}/ChangeLog ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}
+.for f in backends_debian backends_freebsd backends_ubuntu
+	${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${ETCDIR}/${f}.sample
+.endfor
+	${INSTALL_DATA} ${WRKDIR}/freebsd_mirrors ${STAGEDIR}${DATADIR}
+	${MKDIR} ${STAGEDIR}/var/cache/apt-cacher-ng \
+		${STAGEDIR}/var/log/apt-cacher-ng
+
+.include <bsd.port.mk>

Added: head/www/apt-cacher-ng/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/distinfo	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1543055307
+SHA256 (apt-cacher-ng_3.2.orig.tar.xz) = 405de837becb9ce89e0fb068565bdf4a49d8742be067f8d91da36742702f5acd
+SIZE (apt-cacher-ng_3.2.orig.tar.xz) = 319036

Added: head/www/apt-cacher-ng/files/apt_cacher_ng.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/apt_cacher_ng.in	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,30 @@
+#!/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"

Added: head/www/apt-cacher-ng/files/backends_debian.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/backends_debian.in	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,2 @@
+# Debian mirrors use geodns to dispatch to the nearest location
+http://ftp.debian.org/debian

Added: head/www/apt-cacher-ng/files/backends_freebsd.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/backends_freebsd.in	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,2 @@
+# FreeBSD mirrors use geodns to dispatch to the nearest location
+http://ftp.FreeBSD.org/pub/FreeBSD

Added: head/www/apt-cacher-ng/files/backends_ubuntu.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/backends_ubuntu.in	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1 @@
+http://archive.ubuntu.com/ubuntu

Added: head/www/apt-cacher-ng/files/freebsd_mirrors.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/freebsd_mirrors.in	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,228 @@
+http://ftp.FreeBSD.org/pub/FreeBSD/
+http://ftp1.FreeBSD.org/pub/FreeBSD/
+http://ftp2.FreeBSD.org/pub/FreeBSD/
+http://ftp3.FreeBSD.org/pub/FreeBSD/
+http://ftp4.FreeBSD.org/pub/FreeBSD/
+http://ftp5.FreeBSD.org/pub/FreeBSD/
+http://ftp6.FreeBSD.org/pub/FreeBSD/
+http://ftp7.FreeBSD.org/pub/FreeBSD/
+http://ftp10.FreeBSD.org/pub/FreeBSD/
+http://ftp11.FreeBSD.org/pub/FreeBSD/
+http://ftp13.FreeBSD.org/pub/FreeBSD/
+http://ftp14.FreeBSD.org/pub/FreeBSD/
+http://ftp1.am.FreeBSD.org/pub/FreeBSD/
+http://ftp.au.FreeBSD.org/pub/FreeBSD/
+http://ftp2.au.FreeBSD.org/pub/FreeBSD/
+http://ftp3.au.FreeBSD.org/pub/FreeBSD/
+http://ftp.at.FreeBSD.org/pub/FreeBSD/
+http://ftp2.br.FreeBSD.org/FreeBSD/
+http://ftp3.br.FreeBSD.org/pub/FreeBSD/
+http://ftp4.br.FreeBSD.org/pub/FreeBSD/
+http://ftp.ca.FreeBSD.org/pub/FreeBSD/
+http://ftp2.ca.FreeBSD.org/pub/FreeBSD/
+http://ftp.cn.FreeBSD.org/pub/FreeBSD/
+http://ftp.cz.FreeBSD.org/pub/FreeBSD/
+http://ftp2.cz.FreeBSD.org/pub/FreeBSD/
+http://ftp.dk.FreeBSD.org/pub/FreeBSD/
+http://ftp.ee.FreeBSD.org/pub/FreeBSD/
+http://ftp.fi.FreeBSD.org/pub/FreeBSD/
+http://ftp.fr.FreeBSD.org/pub/FreeBSD/
+http://ftp1.fr.FreeBSD.org/pub/FreeBSD/
+http://ftp3.fr.FreeBSD.org/pub/FreeBSD/
+http://ftp5.fr.FreeBSD.org/pub/FreeBSD/
+http://ftp6.fr.FreeBSD.org/pub/FreeBSD/
+http://ftp7.fr.FreeBSD.org/pub/FreeBSD/
+http://ftp8.fr.FreeBSD.org/pub/FreeBSD/
+http://ftp.de.FreeBSD.org/pub/FreeBSD/
+http://ftp1.de.FreeBSD.org/freebsd/
+http://ftp2.de.FreeBSD.org/pub/FreeBSD/
+http://ftp4.de.FreeBSD.org/FreeBSD/
+http://ftp5.de.FreeBSD.org/pub/FreeBSD/
+http://ftp7.de.FreeBSD.org/pub/FreeBSD/
+http://ftp8.de.FreeBSD.org/pub/FreeBSD/
+http://ftp.gr.FreeBSD.org/pub/FreeBSD/
+http://ftp2.gr.FreeBSD.org/pub/FreeBSD/
+http://ftp.hk.FreeBSD.org/pub/FreeBSD/
+http://ftp3.ie.FreeBSD.org/pub/FreeBSD/
+http://ftp.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp2.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp3.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp4.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp5.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp6.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp7.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp8.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp9.jp.FreeBSD.org/pub/FreeBSD/
+http://ftp.kr.FreeBSD.org/pub/FreeBSD/
+http://ftp2.kr.FreeBSD.org/pub/FreeBSD/
+http://ftp.lv.FreeBSD.org/pub/FreeBSD/
+http://ftp.lt.FreeBSD.org/pub/FreeBSD/
+http://ftp.nl.FreeBSD.org/pub/FreeBSD/
+http://ftp2.nl.FreeBSD.org/pub/FreeBSD/
+http://ftp.nz.FreeBSD.org/pub/FreeBSD/
+http://ftp.no.FreeBSD.org/pub/FreeBSD/
+http://ftp.pl.FreeBSD.org/pub/FreeBSD/
+http://ftp.ru.FreeBSD.org/pub/FreeBSD/
+http://ftp2.ru.FreeBSD.org/pub/FreeBSD/
+http://ftp4.ru.FreeBSD.org/pub/FreeBSD/
+http://ftp5.ru.FreeBSD.org/pub/FreeBSD/
+http://ftp6.ru.FreeBSD.org/pub/FreeBSD/
+http://ftp.isu.net.sa/pub/ftp.freebsd.org/
+http://ftp.si.FreeBSD.org/pub/FreeBSD/
+http://ftp.za.FreeBSD.org/pub/FreeBSD/
+http://ftp2.za.FreeBSD.org/pub/FreeBSD/
+http://ftp4.za.FreeBSD.org/pub/FreeBSD/
+http://ftp.es.FreeBSD.org/pub/FreeBSD/
+http://ftp3.es.FreeBSD.org/pub/FreeBSD/
+http://ftp.se.FreeBSD.org/pub/FreeBSD/
+http://ftp2.se.FreeBSD.org/pub/FreeBSD/
+http://ftp3.se.FreeBSD.org/pub/FreeBSD/
+http://ftp4.se.FreeBSD.org/pub/FreeBSD/
+http://ftp6.se.FreeBSD.org/pub/FreeBSD/
+http://ftp.ch.FreeBSD.org/pub/FreeBSD/
+http://ftp.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp2.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp4.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp5.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp6.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp7.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp8.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp11.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp12.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp13.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp14.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp15.tw.FreeBSD.org/pub/FreeBSD/
+http://ftp.ua.FreeBSD.org/pub/FreeBSD/
+http://ftp6.ua.FreeBSD.org/pub/FreeBSD/
+http://ftp7.ua.FreeBSD.org/pub/FreeBSD/
+http://ftp.uk.FreeBSD.org/pub/FreeBSD/
+http://ftp2.uk.FreeBSD.org/pub/FreeBSD/
+http://ftp3.uk.FreeBSD.org/pub/FreeBSD/
+http://ftp4.uk.FreeBSD.org/pub/FreeBSD/
+http://ftp5.uk.FreeBSD.org/pub/FreeBSD/
+http://ftp1.us.FreeBSD.org/pub/FreeBSD/
+http://ftp2.us.FreeBSD.org/pub/FreeBSD/
+http://ftp3.us.FreeBSD.org/pub/FreeBSD/
+http://ftp4.us.FreeBSD.org/pub/FreeBSD/
+http://ftp5.us.FreeBSD.org/pub/FreeBSD/
+http://ftp6.us.FreeBSD.org/pub/FreeBSD/
+http://ftp8.us.FreeBSD.org/pub/FreeBSD/
+http://ftp10.us.FreeBSD.org/pub/FreeBSD/
+http://ftp11.us.FreeBSD.org/pub/FreeBSD/
+http://ftp13.us.FreeBSD.org/pub/FreeBSD/
+http://ftp14.us.FreeBSD.org/pub/FreeBSD/
+http://ftp15.us.FreeBSD.org/pub/FreeBSD/
+http://ftp.freebsd.org/pub/FreeBSD/
+http://ftp1.freebsd.org/pub/FreeBSD/
+http://ftp2.freebsd.org/pub/FreeBSD/
+http://ftp3.freebsd.org/pub/FreeBSD/
+http://ftp4.freebsd.org/pub/FreeBSD/
+http://ftp5.freebsd.org/pub/FreeBSD/
+http://ftp6.freebsd.org/pub/FreeBSD/
+http://ftp7.freebsd.org/pub/FreeBSD/
+http://ftp10.freebsd.org/pub/FreeBSD/
+http://ftp11.freebsd.org/pub/FreeBSD/
+http://ftp13.freebsd.org/pub/FreeBSD/
+http://ftp14.freebsd.org/pub/FreeBSD/
+http://ftp1.am.freebsd.org/pub/FreeBSD/
+http://ftp.au.freebsd.org/pub/FreeBSD/
+http://ftp2.au.freebsd.org/pub/FreeBSD/
+http://ftp3.au.freebsd.org/pub/FreeBSD/
+http://ftp.at.freebsd.org/pub/FreeBSD/
+http://ftp2.br.freebsd.org/FreeBSD/
+http://ftp3.br.freebsd.org/pub/FreeBSD/
+http://ftp4.br.freebsd.org/pub/FreeBSD/
+http://ftp.ca.freebsd.org/pub/FreeBSD/
+http://ftp2.ca.freebsd.org/pub/FreeBSD/
+http://ftp.cn.freebsd.org/pub/FreeBSD/
+http://ftp.cz.freebsd.org/pub/FreeBSD/
+http://ftp2.cz.freebsd.org/pub/FreeBSD/
+http://ftp.dk.freebsd.org/pub/FreeBSD/
+http://ftp.ee.freebsd.org/pub/FreeBSD/
+http://ftp.fi.freebsd.org/pub/FreeBSD/
+http://ftp.fr.freebsd.org/pub/FreeBSD/
+http://ftp1.fr.freebsd.org/pub/FreeBSD/
+http://ftp3.fr.freebsd.org/pub/FreeBSD/
+http://ftp5.fr.freebsd.org/pub/FreeBSD/
+http://ftp6.fr.freebsd.org/pub/FreeBSD/
+http://ftp7.fr.freebsd.org/pub/FreeBSD/
+http://ftp8.fr.freebsd.org/pub/FreeBSD/
+http://ftp.de.freebsd.org/pub/FreeBSD/
+http://ftp1.de.freebsd.org/freebsd/
+http://ftp2.de.freebsd.org/pub/FreeBSD/
+http://ftp4.de.freebsd.org/FreeBSD/
+http://ftp5.de.freebsd.org/pub/FreeBSD/
+http://ftp7.de.freebsd.org/pub/FreeBSD/
+http://ftp8.de.freebsd.org/pub/FreeBSD/
+http://ftp.gr.freebsd.org/pub/FreeBSD/
+http://ftp2.gr.freebsd.org/pub/FreeBSD/
+http://ftp.hk.freebsd.org/pub/FreeBSD/
+http://ftp3.ie.freebsd.org/pub/FreeBSD/
+http://ftp.jp.freebsd.org/pub/FreeBSD/
+http://ftp2.jp.freebsd.org/pub/FreeBSD/
+http://ftp3.jp.freebsd.org/pub/FreeBSD/
+http://ftp4.jp.freebsd.org/pub/FreeBSD/
+http://ftp5.jp.freebsd.org/pub/FreeBSD/
+http://ftp6.jp.freebsd.org/pub/FreeBSD/
+http://ftp7.jp.freebsd.org/pub/FreeBSD/
+http://ftp8.jp.freebsd.org/pub/FreeBSD/
+http://ftp9.jp.freebsd.org/pub/FreeBSD/
+http://ftp.kr.freebsd.org/pub/FreeBSD/
+http://ftp2.kr.freebsd.org/pub/FreeBSD/
+http://ftp.lv.freebsd.org/pub/FreeBSD/
+http://ftp.lt.freebsd.org/pub/FreeBSD/
+http://ftp.nl.freebsd.org/pub/FreeBSD/
+http://ftp2.nl.freebsd.org/pub/FreeBSD/
+http://ftp.nz.freebsd.org/pub/FreeBSD/
+http://ftp.no.freebsd.org/pub/FreeBSD/
+http://ftp.pl.freebsd.org/pub/FreeBSD/
+http://ftp.ru.freebsd.org/pub/FreeBSD/
+http://ftp2.ru.freebsd.org/pub/FreeBSD/
+http://ftp4.ru.freebsd.org/pub/FreeBSD/
+http://ftp5.ru.freebsd.org/pub/FreeBSD/
+http://ftp6.ru.freebsd.org/pub/FreeBSD/
+http://ftp.isu.net.sa/pub/ftp.freebsd.org/
+http://ftp.si.freebsd.org/pub/FreeBSD/
+http://ftp.za.freebsd.org/pub/FreeBSD/
+http://ftp2.za.freebsd.org/pub/FreeBSD/
+http://ftp4.za.freebsd.org/pub/FreeBSD/
+http://ftp.es.freebsd.org/pub/FreeBSD/
+http://ftp3.es.freebsd.org/pub/FreeBSD/
+http://ftp.se.freebsd.org/pub/FreeBSD/
+http://ftp2.se.freebsd.org/pub/FreeBSD/
+http://ftp3.se.freebsd.org/pub/FreeBSD/
+http://ftp4.se.freebsd.org/pub/FreeBSD/
+http://ftp6.se.freebsd.org/pub/FreeBSD/
+http://ftp.ch.freebsd.org/pub/FreeBSD/
+http://ftp.tw.freebsd.org/pub/FreeBSD/
+http://ftp2.tw.freebsd.org/pub/FreeBSD/
+http://ftp4.tw.freebsd.org/pub/FreeBSD/
+http://ftp5.tw.freebsd.org/pub/FreeBSD/
+http://ftp6.tw.freebsd.org/pub/FreeBSD/
+http://ftp7.tw.freebsd.org/pub/FreeBSD/
+http://ftp8.tw.freebsd.org/pub/FreeBSD/
+http://ftp11.tw.freebsd.org/pub/FreeBSD/
+http://ftp12.tw.freebsd.org/pub/FreeBSD/
+http://ftp13.tw.freebsd.org/pub/FreeBSD/
+http://ftp14.tw.freebsd.org/pub/FreeBSD/
+http://ftp15.tw.freebsd.org/pub/FreeBSD/
+http://ftp.ua.freebsd.org/pub/FreeBSD/
+http://ftp6.ua.freebsd.org/pub/FreeBSD/
+http://ftp7.ua.freebsd.org/pub/FreeBSD/
+http://ftp.uk.freebsd.org/pub/FreeBSD/
+http://ftp2.uk.freebsd.org/pub/FreeBSD/
+http://ftp3.uk.freebsd.org/pub/FreeBSD/
+http://ftp4.uk.freebsd.org/pub/FreeBSD/
+http://ftp5.uk.freebsd.org/pub/FreeBSD/
+http://ftp1.us.freebsd.org/pub/FreeBSD/
+http://ftp2.us.freebsd.org/pub/FreeBSD/
+http://ftp3.us.freebsd.org/pub/FreeBSD/
+http://ftp4.us.freebsd.org/pub/FreeBSD/
+http://ftp5.us.freebsd.org/pub/FreeBSD/
+http://ftp6.us.freebsd.org/pub/FreeBSD/
+http://ftp8.us.freebsd.org/pub/FreeBSD/
+http://ftp10.us.freebsd.org/pub/FreeBSD/
+http://ftp11.us.freebsd.org/pub/FreeBSD/
+http://ftp13.us.freebsd.org/pub/FreeBSD/
+http://ftp14.us.freebsd.org/pub/FreeBSD/
+http://ftp15.us.freebsd.org/pub/FreeBSD/

Added: head/www/apt-cacher-ng/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/patch-CMakeLists.txt	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,100 @@
+--- CMakeLists.txt.orig	2018-09-07 13:02:18 UTC
++++ CMakeLists.txt
+@@ -26,20 +26,20 @@ INCLUDE(CheckSymbolExists)
+ INCLUDE(FindPkgConfig)
+ 
+ set(PACKAGE "apt-cacher-ng")
+-IF(NOT DEFINED(CMAKE_INSTALL_PREFIX))
++IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
+ set(CMAKE_INSTALL_PREFIX "/usr/local" CACHE STRING "Target file space")
+ ENDIF()
+-IF(NOT DEFINED(DATADIR))
++IF(NOT DEFINED DATADIR)
+ 	set(DATADIR "${CMAKE_INSTALL_PREFIX}/share" CACHE STRING "Shared data files directory")
+ ENDIF()
+-IF(NOT DEFINED(LIBDIR))
++IF(NOT DEFINED LIBDIR)
+ 	set(LIBDIR "${CMAKE_INSTALL_PREFIX}/lib/${PACKAGE}" CACHE STRING "Location of ${PACKAGE} extra files")
+ ENDIF()
+-IF(NOT DEFINED(DOCDIR))
++IF(NOT DEFINED DOCDIR)
+ 	set(DOCDIR "${DATADIR}/doc/${PACKAGE}" CACHE STRING "Location of documentation files")
+ ENDIF()
+ 
+-IF(NOT DEFINED(SYSCONFDIR))
++IF(NOT DEFINED SYSCONFDIR)
+    if("${CMAKE_INSTALL_PREFIX}" STREQUAL "/usr")
+       set(SYSCONFDIR /etc)
+    else()
+@@ -47,15 +47,15 @@ IF(NOT DEFINED(SYSCONFDIR))
+    endif()
+ ENDIF()
+ 
+-if(NOT DEFINED(CFGDIR))
++if(NOT DEFINED CFGDIR)
+ set(CFGDIR "${SYSCONFDIR}/${PACKAGE}")
+ endif()
+ 
+-if(NOT DEFINED(SBINDIR))
++if(NOT DEFINED SBINDIR)
+ set(SBINDIR "${CMAKE_INSTALL_PREFIX}/sbin")
+ endif()
+ 
+-if(NOT DEFINED(RUNDIR))
++if(NOT DEFINED RUNDIR)
+ 	set(RUNDIR "/run")
+ endif()
+ 
+@@ -71,7 +71,7 @@ endmacro()
+ 
+ INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR} "include")
+ 
+-IF(NOT DEFINED(ACVERSION))
++IF(NOT DEFINED ACVERSION)
+ FILE(READ "${CMAKE_SOURCE_DIR}/VERSION" ACVERSION)
+ string(REPLACE "\n" "" ACVERSION ${ACVERSION})
+ #MESSAGE(STATUS "Version: ${ACVERSION}")
+@@ -308,7 +308,9 @@ SET(CMAKE_REQUIRED_LIBRARIES "")
+ set(HAVE_CHECKSUM on)
+ 
+ if(USE_SSL)
+-	pkg_check_modules(openssl openssl)
++	if(NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
++		pkg_check_modules(openssl openssl)
++	endif()
+ 	if(openssl_FOUND)
+ 		set(HAVE_SSL on)
+     _append(ACNG_COMPFLAGS ${openssl_CFLAGS})
+@@ -388,18 +390,22 @@ add_subdirectory(systemd)
+ ###
+ ### Extra install rules for static files
+ ###
+-if(NOT DEFINED(HTMLDIR))
++if(NOT DEFINED HTMLDIR)
+ 		set(HTMLDIR ${DOCDIR}/html)
+ endif()
+-if(NOT DEFINED(MANDIR))
++if(NOT DEFINED MANDIR)
+    set(MANDIR ${DATADIR}/man)
+ endif()
+ install(FILES doc/README doc/apt-cacher-ng.pdf DESTINATION ${DOCDIR})
+ install(DIRECTORY doc/html/ DESTINATION ${HTMLDIR}
+    FILES_MATCHING PATTERN "*.*")
+ install(DIRECTORY doc/man/ DESTINATION ${MANDIR}/man8
+-   FILES_MATCHING PATTERN "*.8")
+-if(NOT DEFINED(AVAHIDIR))
++   FILES_MATCHING PATTERN "apt-cacher-ng.8")
++if (USE_FUSE)
++install(DIRECTORY doc/man/ DESTINATION ${MANDIR}/man8
++   FILES_MATCHING PATTERN "acngfs.8")
++endif()
++if(NOT DEFINED AVAHIDIR)
+    set(AVAHIDIR "${SYSCONFDIR}/avahi/services")
+ endif()
+ install(FILES contrib/apt-cacher-ng.service DESTINATION ${AVAHIDIR})
+@@ -414,4 +420,5 @@ DOCDIR: ${DOCDIR}
+ SYSCONFDIR: ${SYSCONFDIR}
+ CFGDIR: ${CFGDIR}
+ SBINDIR: ${SBINDIR}
++MANDIR: ${MANDIR}
+ ")

Added: head/www/apt-cacher-ng/files/patch-client_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/patch-client_CMakeLists.txt	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,10 @@
+--- client/CMakeLists.txt.orig	2018-09-07 13:02:18 UTC
++++ client/CMakeLists.txt
+@@ -1,6 +1,7 @@
+ PROJECT(ACNG CXX C)
+ 
+ ADD_EXECUTABLE(in.acng client.cc)
++target_compile_features(in.acng PRIVATE cxx_auto_type)
+ SET_TARGET_PROPERTIES(in.acng PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} -DMINIBUILD")
+ TARGET_LINK_LIBRARIES(in.acng ${NetworkLibs} ${EXTRA_LIBS_INETD})
+ INSTALL(TARGETS in.acng DESTINATION ${LIBDIR})

Added: head/www/apt-cacher-ng/files/patch-conf_acng.conf.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/patch-conf_acng.conf.in	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,18 @@
+--- conf/acng.conf.in.orig	2018-09-07 13:02:18 UTC
++++ conf/acng.conf.in
+@@ -69,6 +69,7 @@ Remap-epel:   file:epel_mirrors # Fedora EPEL
+ Remap-slrep:  file:sl_mirrors # Scientific Linux
+ Remap-gentoo: file:gentoo_mirrors.gz /gentoo ; file:backends_gentoo # Gentoo Archives
+ Remap-secdeb: security.debian.org ; security.debian.org deb.debian.org/debian-security
++Remap-FreeBSD: file:freebsd_mirrors ; file:backends_freebsd # FreeBSD Archives
+ 
+ # Virtual page accessible in a web browser to see statistics and status
+ # information, i.e. under http://localhost:3142/acng-report.html
+@@ -365,6 +366,7 @@ LocalDirs: acng-doc @DOCDIR@
+ # in /etc/hosts.allow or /etc/hosts.deny files.
+ #
+ # UseWrap: 0
++UseWrap: 0
+ 
+ # If many machines from the same local network attempt to update index files
+ # (apt-get update) at nearly the same time, the known state of these index file

Added: head/www/apt-cacher-ng/files/patch-fs_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/patch-fs_CMakeLists.txt	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,27 @@
+--- fs/CMakeLists.txt.orig	2018-09-07 13:02:18 UTC
++++ fs/CMakeLists.txt
+@@ -3,6 +3,10 @@
+ ## Attempt to build acngfs where possible ##
+ ############################################
+ 
++option(USE_FUSE "Use FUSE library to build acngfs" on)
++
++if(USE_FUSE)
++
+ pkg_check_modules(fuse fuse)
+ 
+ _append(acngfs_cflags -DMINIBUILD ${fuse_CFLAGS} ${CFLAGS_PTHREAD})
+@@ -22,6 +26,7 @@ if(fuse_FOUND AND HAVE_FUSE_25)
+ 
+         ADD_EXECUTABLE(acngfs ${fsSRCS} $<TARGET_OBJECTS:osslcompat>)
+         SET_TARGET_PROPERTIES(acngfs PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${acngfs_cflags}")
++	target_compile_features(acngfs PRIVATE cxx_auto_type)
+         INSTALL(TARGETS acngfs DESTINATION ${LIBDIR})
+         if(HAVE_DLOPEN)
+                 _append(EXTRA_LIBS_ACNGFS dl)
+@@ -32,4 +37,4 @@ else(fuse_FOUND AND HAVE_FUSE_25)
+         message("- FUSE not found or not compatible, not building acngfs")
+ endif(fuse_FOUND AND HAVE_FUSE_25)
+ 
+-
++endif()

Added: head/www/apt-cacher-ng/files/patch-oldssl-workaround_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/patch-oldssl-workaround_CMakeLists.txt	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,8 @@
+--- oldssl-workaround/CMakeLists.txt.orig	2018-09-07 13:02:18 UTC
++++ oldssl-workaround/CMakeLists.txt
+@@ -6,4 +6,5 @@ else()
+         set(COMPAT_SRCS hostcheck.h openssl_hostname_validation.h)
+ endif()
+ ADD_LIBRARY(osslcompat OBJECT ${COMPAT_SRCS})
++set_target_properties(osslcompat PROPERTIES LINKER_LANGUAGE C)
+ SET_TARGET_PROPERTIES(osslcompat PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS}")

Added: head/www/apt-cacher-ng/files/patch-source_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/patch-source_CMakeLists.txt	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,20 @@
+--- source/CMakeLists.txt.orig	2018-09-07 13:02:18 UTC
++++ source/CMakeLists.txt
+@@ -2,14 +2,17 @@ set(SHAREDSRCS acbuf.cc acfg.cc acfg_defaults.cc aclog
+ set(ACNG_SRCS apt-cacher.cc bgtask.cc cacheman.cc cleaner.cc conn.cc conserver.cc expiration.cc job.cc lockable.cc maintenance.cc mirror.cc pkgimport.cc rfc2553emu.cc showinfo.cc)
+ 
+ ADD_LIBRARY(acngstuff OBJECT ${SHAREDSRCS})
++target_compile_features(acngstuff PRIVATE cxx_auto_type)
+ SET_TARGET_PROPERTIES(acngstuff PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${CFLAGS_DAEMON} ${CFLAGS_PTHREAD}")
+ 
+ ADD_EXECUTABLE(apt-cacher-ng $<TARGET_OBJECTS:acngstuff> ${ACNG_SRCS} apt-cacher.cc $<TARGET_OBJECTS:osslcompat>)
++target_compile_features(apt-cacher-ng PRIVATE cxx_auto_type)
+ TARGET_LINK_LIBRARIES(apt-cacher-ng ${BaseNetworkLibs} ${ServerLibs} ${CompLibs} ${SSL_LIB_LIST} ${LDFLAGS_DAEMON} ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_LIBS_ACNG})
+ SET_TARGET_PROPERTIES(apt-cacher-ng PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${CFLAGS_DAEMON} ${CFLAGS_PTHREAD}")
+ INSTALL(TARGETS apt-cacher-ng DESTINATION ${SBINDIR})
+ 
+ ADD_EXECUTABLE(acngtool acngtool.cc $<TARGET_OBJECTS:acngstuff> $<TARGET_OBJECTS:osslcompat>)
++target_compile_features(acngtool PRIVATE cxx_auto_type)
+ SET_TARGET_PROPERTIES(acngtool PROPERTIES COMPILE_FLAGS "${ACNG_COMPFLAGS} ${ACNG_CXXFLAGS} ${CFLAGS_PTHREAD}")
+ TARGET_LINK_LIBRARIES(acngtool ${BaseNetworkLibs} ${CompLibs} ${SSL_LIB_LIST} ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_LIBS_ACNGTOOL})
+ INSTALL(TARGETS acngtool DESTINATION ${LIBDIR})

Added: head/www/apt-cacher-ng/files/patch-source_acfg__defaults.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/patch-source_acfg__defaults.cc	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,21 @@
+--- source/acfg_defaults.cc.orig	2018-09-07 13:02:18 UTC
++++ source/acfg_defaults.cc
+@@ -40,6 +40,9 @@ string pfilepat(".*(\\.(u|d)?deb|\\.rpm|\\.drpm|\\.dsc
+     "|\\.asc$" // all remaining PGP signatures. Assuming that volatile ones are matched below.
+     "|changelogs/pool/.*/changelog.txt$" // packages.ultimediaos.com
+     "|/objects/.*/.*\\.(dirtree|filez|commit|commitmeta)|/repo/deltas/.*" // FlatPak
++    "|(base|doc|games|kernel|lib32|ports|src)\\.txz$" // FreeBSD releases
++    "|(packagesite|meta)\\.txz?$" // FreeBSD packagesite
++    "|\\.txz(\\.sig)?$" // FreeBSD package/signature
+ ")$");
+ 
+ string svfilepat("/development/rawhide/.*"
+@@ -66,7 +69,7 @@ string vfilepat(INFOLDER
+ 		"|\\.o" // https://bugs.launchpad.net/ubuntu/+source/apt-cacher-ng/+bug/1078224
+ 		"|Components-.*yml" COMPOPT // DEP-11 aka AppStream"
+ 		"|icons-[x0-9]+\\.tar" COMPOPT
+-		"|(latest|pub)\\.ssl" // FreeBSD
++		"|(latest|pub|snapshot)\\.ssl|[0-9a-f]{64}.tgz|MANIFEST|/ports-distfiles/.*" // FreeBSD
+ 		")$" // end of filename-only patterns
+ 
+ 		"|/dists/.*/installer-[^/]+/[^0-9][^/]+/images/.*" // d-i stuff but not containing a date (year number) in the revision directory (like "current", "beta", ...)

Added: head/www/apt-cacher-ng/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/files/pkg-message.in	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,14 @@
+This port sets up apt-cacher-ng to be used in a FreeBSD context.
+
+The FreeBSD installer on the official media does not allow to provide the name of a proxy server.
+When asked for a mirror to use, prepend the offered URL with the url of the proxy.
+E.g. http://myproxy:3142/ftp.FreeBSD.org/pub/FreeBSD/releases/amd64/amd64/10.3-RELEASE
+
+PKGNG can be bootstrapped by setting the http_proxy environment
+setenv http_proxy http://myproxy:3142
+pkg bootstrap
+
+proxy settings for pkgng can be persisted by editing /usr/local/etc/pkg.conf and adding
+pkg_env: {
+        http_proxy: "http://myproxy:3142",
+}

Added: head/www/apt-cacher-ng/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/pkg-descr	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,8 @@
+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/

Added: head/www/apt-cacher-ng/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/apt-cacher-ng/pkg-plist	Tue Dec 25 08:03:11 2018	(r488298)
@@ -0,0 +1,49 @@
+@sample %%ETCDIR%%/acng.conf.sample
+@sample %%ETCDIR%%/backends_debian.sample
+@sample %%ETCDIR%%/backends_freebsd.sample
+@sample %%ETCDIR%%/backends_ubuntu.sample
+@sample %%ETCDIR%%/security.conf.sample
+etc/avahi/services/apt-cacher-ng.service
+%%FUSE%%man/man8/acngfs.8.gz
+man/man8/apt-cacher-ng.8.gz
+sbin/apt-cacher-ng
+%%FUSE%%%%DATADIR%%/acngfs
+%%DATADIR%%/acngtool
+%%DATADIR%%/archlx_mirrors
+%%DATADIR%%/backends_debian.default
+%%DATADIR%%/backends_gentoo.default
+%%DATADIR%%/backends_ubuntu.default
+%%DATADIR%%/cygwin_mirrors
+%%DATADIR%%/deb_mirrors.gz
+%%DATADIR%%/debvol_mirrors.gz
+%%DATADIR%%/delconfirm.html
+%%DATADIR%%/epel_mirrors
+%%DATADIR%%/fedora_mirrors
+%%DATADIR%%/freebsd_mirrors
+%%DATADIR%%/gentoo_mirrors.gz
+%%DATADIR%%/in.acng
+%%DATADIR%%/maint.html
+%%DATADIR%%/report.html
+%%DATADIR%%/sfnet_mirrors
+%%DATADIR%%/sl_mirrors
+%%DATADIR%%/style.css
+%%DATADIR%%/ubuntu_mirrors
+%%DATADIR%%/userinfo.html
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/apt-cacher-ng.pdf
+%%PORTDOCS%%%%DOCSDIR%%/html/Intro.html
+%%PORTDOCS%%%%DOCSDIR%%/html/bugs.html
+%%PORTDOCS%%%%DOCSDIR%%/html/config-serv.html
+%%PORTDOCS%%%%DOCSDIR%%/html/config-servquick.html
+%%PORTDOCS%%%%DOCSDIR%%/html/cont.html
+%%PORTDOCS%%%%DOCSDIR%%/html/distinstructions.html
+%%PORTDOCS%%%%DOCSDIR%%/html/howtos.html
+%%PORTDOCS%%%%DOCSDIR%%/html/index.html
+%%PORTDOCS%%%%DOCSDIR%%/html/maint.html
+%%PORTDOCS%%%%DOCSDIR%%/html/secure.html
+%%PORTDOCS%%%%DOCSDIR%%/html/troublefaq.html
+%%PORTDOCS%%%%DOCSDIR%%/html/usage.html
+@dir(proxy,proxy,755) /var/cache/apt-cacher-ng
+@dir(proxy,proxy,755) /var/log/apt-cacher-ng



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812250803.wBP83CPe068239>