blob: 4c7e7c56e73e29a8ba1b3bff4657346aeddf3a8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
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>
|