mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
net/rsync: fix test patch when all options are disabled
If all options are disabled, the extra-patch distfile is not extracted, breaking the build. Make this step optional if at least one option is active. PR: 284154
This commit is contained in:
parent
f0e73ad478
commit
7f56364aa5
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= rsync
|
PORTNAME= rsync
|
||||||
DISTVERSION= 3.4.1
|
DISTVERSION= 3.4.1
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= net
|
CATEGORIES= net
|
||||||
MASTER_SITES= https://www.mirrorservice.org/sites/rsync.samba.org/src/ \
|
MASTER_SITES= https://www.mirrorservice.org/sites/rsync.samba.org/src/ \
|
||||||
http://rsync.mirror.garr.it/src/ \
|
http://rsync.mirror.garr.it/src/ \
|
||||||
|
@ -78,7 +78,7 @@ ZLIB_BASE_CONFIGURE_ON= --with-included-zlib=no
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
.if make(makesum) || ${PORT_OPTIONS:MRENAMED} || ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MFLAGS}
|
.if ${PORT_OPTIONS:MRENAMED} || ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MFLAGS}
|
||||||
DISTFILES+= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX}
|
DISTFILES+= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
@ -88,8 +88,10 @@ DISTFILES+= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX}
|
||||||
CONFIGURE_ARGS+= ac_cv_search_libiconv_open=no
|
CONFIGURE_ARGS+= ac_cv_search_libiconv_open=no
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if make(makesum) || ${PORT_OPTIONS:MRENAMED} || ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MFLAGS}
|
||||||
pre-patch:
|
pre-patch:
|
||||||
@${REINPLACE_CMD} 's:+int module_dirlen = 0;:+:' ${WRKSRC}/patches/fileflags.diff
|
@${REINPLACE_CMD} 's:+int module_dirlen = 0;:+:' ${WRKSRC}/patches/fileflags.diff
|
||||||
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's:/etc/r{1,2}sync:${ETCDIR}/:g' \
|
@${REINPLACE_CMD} -e 's:/etc/r{1,2}sync:${ETCDIR}/:g' \
|
||||||
|
|
Loading…
Add table
Reference in a new issue