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:
+4
-2
@@ -1,6 +1,6 @@
|
||||
PORTNAME= rsync
|
||||
DISTVERSION= 3.4.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= https://www.mirrorservice.org/sites/rsync.samba.org/src/ \
|
||||
http://rsync.mirror.garr.it/src/ \
|
||||
@@ -78,7 +78,7 @@ ZLIB_BASE_CONFIGURE_ON= --with-included-zlib=no
|
||||
|
||||
.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}
|
||||
.endif
|
||||
|
||||
@@ -88,8 +88,10 @@ DISTFILES+= ${PORTNAME}-patches-${DISTVERSION}${EXTRACT_SUFX}
|
||||
CONFIGURE_ARGS+= ac_cv_search_libiconv_open=no
|
||||
.endif
|
||||
|
||||
.if make(makesum) || ${PORT_OPTIONS:MRENAMED} || ${PORT_OPTIONS:MICONV} || ${PORT_OPTIONS:MFLAGS}
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} 's:+int module_dirlen = 0;:+:' ${WRKSRC}/patches/fileflags.diff
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's:/etc/r{1,2}sync:${ETCDIR}/:g' \
|
||||
|
||||
Reference in New Issue
Block a user