Lines 1-13
Link Here
|
1 |
# Created by: David O'Brien (obrien@cs.ucdavis.edu) |
1 |
# Created by: David O'Brien (obrien@cs.ucdavis.edu) |
2 |
|
2 |
|
3 |
PORTNAME= rsync |
3 |
PORTNAME= rsync |
4 |
DISTVERSION= 3.2.3 |
4 |
DISTVERSION= 3.2.4 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= net |
5 |
CATEGORIES= net |
7 |
MASTER_SITES= https://www.mirrorservice.org/sites/rsync.samba.org/src/ \ |
6 |
MASTER_SITES= https://www.mirrorservice.org/sites/rsync.samba.org/src/ \ |
8 |
http://rsync.mirror.garr.it/src/ \ |
7 |
http://rsync.mirror.garr.it/src/ \ |
9 |
http://www.mirrorservice.org/sites/rsync.samba.org/src/ \ |
8 |
http://www.mirrorservice.org/sites/rsync.samba.org/src/ \ |
10 |
https://download.samba.org/pub/rsync/src/ |
9 |
https://download.samba.org/pub/rsync/src/ |
11 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
10 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
12 |
|
11 |
|
13 |
MAINTAINER= rodrigo@FreeBSD.org |
12 |
MAINTAINER= rodrigo@FreeBSD.org |
Lines 16-82
COMMENT= Network file distribution/synchronization utility
Link Here
|
16 |
LICENSE= GPLv3+ |
15 |
LICENSE= GPLv3+ |
17 |
LICENSE_FILE= ${WRKSRC}/COPYING |
16 |
LICENSE_FILE= ${WRKSRC}/COPYING |
18 |
|
17 |
|
19 |
LIB_DEPENDS= libxxhash.so:devel/xxhash \ |
18 |
LIB_DEPENDS= liblz4.so:archivers/liblz4 \ |
20 |
libzstd.so:archivers/zstd \ |
19 |
libxxhash.so:devel/xxhash \ |
21 |
liblz4.so:archivers/liblz4 |
20 |
libzstd.so:archivers/zstd |
22 |
|
|
|
23 |
USES= cpe shebangfix ssl |
24 |
SHEBANG_FILES= support/rrsync |
25 |
|
21 |
|
|
|
22 |
USES= cpe python shebangfix ssl |
26 |
CPE_VENDOR= samba |
23 |
CPE_VENDOR= samba |
27 |
CPE_PRODUCT= rsync |
24 |
CPE_PRODUCT= rsync |
|
|
25 |
USE_RC_SUBR= rsyncd |
26 |
|
27 |
SHEBANG_FILES= support/rrsync |
28 |
|
28 |
|
29 |
PATCH_STRIP= -p1 |
|
|
30 |
GNU_CONFIGURE= yes |
29 |
GNU_CONFIGURE= yes |
31 |
USE_RC_SUBR= rsyncd |
30 |
CONFIGURE_ARGS= --disable-debug \ |
32 |
SUB_LIST= NAME=rsyncd |
31 |
--enable-ipv6 \ |
|
|
32 |
--with-rsyncd-conf=${ETCDIR}/rsyncd.conf |
33 |
|
33 |
|
34 |
INSTALL_TARGET= install-strip |
34 |
INSTALL_TARGET= install-strip |
35 |
TEST_TARGET= check |
35 |
TEST_TARGET= check |
36 |
|
36 |
|
37 |
CONFIGURE_ARGS= --disable-debug --enable-ipv6 \ |
|
|
38 |
--with-rsyncd-conf=${ETCDIR}/rsyncd.conf |
39 |
CPPFLAGS+= -I${LOCALBASE}/include |
37 |
CPPFLAGS+= -I${LOCALBASE}/include |
40 |
LDFLAGS+= -L${LOCALBASE}/lib |
38 |
LDFLAGS+= -L${LOCALBASE}/lib |
41 |
|
39 |
|
|
|
40 |
PATCH_STRIP= -p1 |
41 |
SUB_LIST= NAME=rsyncd |
42 |
|
42 |
PORTDOCS= NEWS.md README.md csprotocol.txt tech_report.tex |
43 |
PORTDOCS= NEWS.md README.md csprotocol.txt tech_report.tex |
43 |
|
44 |
|
44 |
# define options |
45 |
# define options |
45 |
OPTIONS_DEFINE= DOCS POPT_PORT ZLIB_BASE SSH ICONV |
46 |
OPTIONS_DEFINE= DOCS ICONV POPT_PORT SSH ZLIB_BASE |
|
|
47 |
OPTIONS_DEFAULT= FLAGS ICONV SSH ZLIB_BASE |
46 |
OPTIONS_RADIO= PTS |
48 |
OPTIONS_RADIO= PTS |
47 |
OPTIONS_RADIO_PTS= RENAMED FLAGS |
49 |
OPTIONS_RADIO_PTS= FLAGS RENAMED |
48 |
|
50 |
|
49 |
# options provided upstream |
51 |
# options provided upstream |
|
|
52 |
FLAGS_DESC= File system flags support patch, adds --fileflags |
50 |
POPT_PORT_DESC= Use popt from devel/popt instead of bundled one |
53 |
POPT_PORT_DESC= Use popt from devel/popt instead of bundled one |
51 |
ZLIB_BASE_DESC= Use zlib from base instead of bundled one |
|
|
52 |
SSH_DESC= Use SSH instead of RSH |
54 |
SSH_DESC= Use SSH instead of RSH |
|
|
55 |
ZLIB_BASE_DESC= Use zlib from base instead of bundled one |
53 |
|
56 |
|
54 |
# options provided by patch (mutually exclusive) |
57 |
# options provided by patch (mutually exclusive) |
55 |
PTS_DESC= Functionality provided by third party patches |
58 |
PTS_DESC= Functionality provided by third party patches |
56 |
RENAMED_DESC= Add support for renamed file detection |
59 |
RENAMED_DESC= Add support for renamed file detection |
57 |
FLAGS_DESC= File system flags support patch, adds --fileflags |
|
|
58 |
|
59 |
# define default options |
60 |
OPTIONS_DEFAULT=FLAGS ICONV SSH ZLIB_BASE |
61 |
|
60 |
|
62 |
ZLIB_BASE_CONFIGURE_ON= --with-included-zlib=no |
61 |
FLAGS_DISTFILES= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
63 |
FLAGS_EXTRA_PATCHES= ${WRKSRC}/patches/fileflags.diff \ |
62 |
FLAGS_EXTRA_PATCHES= ${WRKSRC}/patches/fileflags.diff \ |
64 |
${FILESDIR}/extrapatch-main.c |
63 |
${FILESDIR}/extrapatch-main.c |
65 |
RENAMED_EXTRA_PATCHES= ${WRKSRC}/patches/detect-renamed.diff |
|
|
66 |
|
64 |
|
67 |
ICONV_USES= iconv:translit |
65 |
ICONV_DISTFILES= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
|
|
66 |
ICONV_USES= iconv:translit |
68 |
ICONV_CONFIGURE_ENABLE= iconv iconv-open |
67 |
ICONV_CONFIGURE_ENABLE= iconv iconv-open |
69 |
|
68 |
|
70 |
POPT_PORT_LIB_DEPENDS= libpopt.so:devel/popt |
69 |
POPT_PORT_LIB_DEPENDS= libpopt.so:devel/popt |
71 |
|
|
|
72 |
POPT_PORT_CONFIGURE_OFF= --with-included-popt |
70 |
POPT_PORT_CONFIGURE_OFF= --with-included-popt |
73 |
|
71 |
|
|
|
72 |
RENAMED_DISTFILES= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
73 |
RENAMED_EXTRA_PATCHES= ${WRKSRC}/patches/detect-renamed.diff |
74 |
|
74 |
SSH_CONFIGURE_ON= --with-rsh=ssh |
75 |
SSH_CONFIGURE_ON= --with-rsh=ssh |
75 |
SSH_CONFIGURE_OFF= --with-rsh=rsh |
76 |
SSH_CONFIGURE_OFF= --with-rsh=rsh |
76 |
|
77 |
|
77 |
FLAGS_DISTFILES= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
78 |
ZLIB_BASE_CONFIGURE_ON= --with-included-zlib=no |
78 |
ICONV_DISTFILES= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
|
|
79 |
RENAMED_DISTFILES= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
80 |
|
79 |
|
81 |
.if make(makesum) |
80 |
.if make(makesum) |
82 |
DISTFILES+= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
81 |
DISTFILES+= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX} |
Lines 84-91
DISTFILES+= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX}
Link Here
|
84 |
|
83 |
|
85 |
.include <bsd.port.pre.mk> |
84 |
.include <bsd.port.pre.mk> |
86 |
|
85 |
|
87 |
.if empty(ICONV_LIB) || ! ${PORT_OPTIONS:MICONV} |
86 |
.if empty(ICONV_LIB) || !${PORT_OPTIONS:MICONV} |
88 |
CONFIGURE_ARGS+=ac_cv_search_libiconv_open=no |
87 |
CONFIGURE_ARGS+= ac_cv_search_libiconv_open=no |
89 |
.endif |
88 |
.endif |
90 |
|
89 |
|
91 |
post-patch: |
90 |
post-patch: |