1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/www/apt-cacher-ng/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

54 lines
1.6 KiB
Makefile

PORTNAME= apt-cacher-ng
PORTVERSION= 3.2
PORTREVISION= 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 tar:xz
USE_RC_SUBR= apt_cacher_ng
CMAKE_ARGS= -DLIBDIR:PATH=${DATADIR} \
-DMANDIR:PATH=${PREFIX}/man
SUB_FILES= backends_debian backends_freebsd backends_ubuntu \
freebsd_mirrors pkg-message
OPTIONS_DEFINE= DOCS SSL FUSE
OPTIONS_DEFAULT= SSL
OPTIONS_SUB= yes
SSL_DESC= SSL support to allow proxying https sites
SSL_CMAKE_BOOL= USE_SSL
SSL_USES= ssl
SSL_CMAKE_ON= -Dopenssl_FOUND=1 \
-Dopenssl_CFLAGS="-I ${OPENSSLINC}" \
-Dopenssl_LDFLAGS="-L ${OPENSSLLIB} -lssl -lcrypto"
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>