Replace do-patch in ports that override it with more appropriate targets

Most ports do not need to override do-patch.  It breaks some ports
tree features like EXTRA_PATCH_TREE, etc.
This commit is contained in:
Tobias Kortkamp 2019-11-07 18:18:17 +00:00
parent 558837e488
commit 1d8ca425a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=516997
17 changed files with 18 additions and 22 deletions

View File

@ -28,7 +28,7 @@ DOCS= changelog README
OPTIONS_DEFINE= DOCS
do-patch:
post-patch:
${REINPLACE_CMD} -e '/install_all :/,/};/s=$$CONFDIR=${STAGEDIR}${ETCDIR}=g' \
-e '/install_all :/,/};/s=$$DOCDIR=${STAGEDIR}${DOCSDIR}=g' \
${WRKSRC}/Makefile.PL

View File

@ -25,7 +25,7 @@ do-extract:
@${MKDIR} ${WRKDIR}
@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} ${WRKDIR}
do-patch:
post-patch:
${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
${WRKDIR}/${DISTFILES}

View File

@ -22,7 +22,7 @@ LDFLAGS+= -L${LOCALBASE}/lib -pthread
PLIST_FILES= sbin/autotrust man/man8/autotrust.8.gz \
etc/autotrust/autotrust.conf.sample
do-patch:
post-patch:
${REINPLACE_CMD} \
'45s!=!\?=!; \
46s!^\(CFLAGS \)\(= -I.\) @CFLAGS@!\1+\2!' \

View File

@ -25,7 +25,7 @@ MANPAGES= dnsfilter.1 dnsip.1 dnsipq.1 dnsmx.1 dnsname.1 \
ALL_TARGET= it
do-patch:
do-configure:
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
@${ECHO_CMD} "${CC} ${STRIP}" > ${WRKSRC}/conf-ld
@${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home

View File

@ -22,7 +22,7 @@ NO_BUILD= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
do-patch:
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \
${WRKSRC}/*.py
@${FIND} ${WRKSRC} -name "*.bak" -delete

View File

@ -44,10 +44,10 @@ post-extract:
.if defined(WITH_SKKJISYO_DELCOMMENTS)
# Strip comments in transtation candidates list.
# Candidate list starts with '/', and each candidate is concatinated by
# Candidate list starts with '/', and each candidate is concatenated by
# '/' (e.g., "/c1/c2/".) Each candidate may have a comment just after
# the candidate, leading a marker character ';' (e.g. /c3;comment/).
do-patch:
post-patch:
.for type in ${SKK_JISYO_TYPE}
${REINPLACE_CMD} -e '/^[^;]/s,;[^/]*/,/,g' -e '/^>/d' \
${WRKSRC}/SKK-JISYO.${type}.${PORTVERSION}

View File

@ -23,7 +23,7 @@ PLIST_FILES= bin/clips
post-extract:
${CP} ${WRKDIR}/${DISTNAME}/makefiles/${MAKEFILE} ${WRKSRC}/
do-patch:
post-patch:
${REINPLACE_CMD} -e 's#gcc #${CC} ${CFLAGS} #g' ${WRKSRC}/${MAKEFILE}
do-install:

View File

@ -29,7 +29,7 @@ BINFILES= pd-queue pd-send pdagentd.py
USERS= pdagent
GROUPS= pdagent
do-patch:
post-patch:
${REINPLACE_CMD} -e 's|/var/lib/pdagent|/var/db/pdagent| ; s|/etc|${ETCDIR}|' \
${WRKSRC}/pdagent/confdirs.py

View File

@ -18,7 +18,7 @@ NO_ARCH= yes
MAKE_ARGS+= -e
do-patch:
post-patch:
${REINPLACE_CMD} 's%\$$(PREFIX)%${STAGEDIR}/$$(PREFIX)%g' ${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -27,7 +27,7 @@ NO_WRKSUBDIR= yes
EXECUTABLES= dirvish dirvish-expire dirvish-locate dirvish-runall
do-patch:
post-patch:
@${SED} -e 's:%%CONFDIR%%:${PREFIX}/etc/dirvish:' -e 's:%%PERL%%:${PERL}:' \
${FILESDIR}/header.pl > ${WRKDIR}/header.pl
.for _E in ${EXECUTABLES}

View File

@ -24,7 +24,7 @@ do-extract:
@(cd ${WRKSRC} ; ${CP} ${FILESDIR}/${f} .)
.endfor
do-patch:
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/etc/diskcheckd.conf|${PREFIX}/etc/diskcheckd.conf|g' ${WRKSRC}/diskcheckd.8
do-install:

View File

@ -36,7 +36,7 @@ ALL_TARGET= test build
OPTIONS_DEFINE= DOCS EXAMPLES
do-patch:
post-patch:
(cd ${WRKSRC}; ${PATCH} vendor/src/github.com/mitchellh/go-libucl/libucl.go < vendor/patches/github.com/mitchellh/go-libucl/libucl.go.patch )
do-install:

View File

@ -15,7 +15,7 @@ GH_ACCOUNT= pr1ntf
NO_ARCH= yes
do-patch:
post-patch:
${REINPLACE_CMD} 's%\$$(PREFIX)%${STAGEDIR}/$$(PREFIX)%g' ${WRKSRC}/Makefile
.include <bsd.port.mk>

View File

@ -32,7 +32,7 @@ SUB_LIST+= RUBY=${RUBY}
OPTIONS_DEFINE= DOCS
do-patch:
post-patch:
@${REINPLACE_CMD} -e "s|/etc/mcollective|${ETCDIR}|" \
${WRKSRC}/bin/mcollectived \
${WRKSRC}/etc/server.cfg.dist \

View File

@ -28,7 +28,7 @@ SUB_LIST= PORTNAME="${PORTNAME}"
OPTIONS_DEFINE= DOCS
do-patch:
post-patch:
@${REINPLACE_CMD} -e "s|${PORTNAME}.conf|${PREFIX}/etc/${PORTNAME}.conf|"\
${WRKSRC}/${PORTNAME}.pl
@${REINPLACE_CMD} -e "s|../test/podcastamatic.log|/var/log/${PORTNAME}.log|"\

View File

@ -33,10 +33,8 @@ pre-everything::
@${ECHO_MSG} "You can build quark with your own config.h using the QUARK_CONF knob:"
@${ECHO_MSG} "make QUARK_CONF=/path/to/quark/config.h install clean"
do-patch:
${REINPLACE_CMD} -e '/^include config.mk$$/d' ${WRKSRC}/Makefile
post-patch:
${REINPLACE_CMD} -e '/^include config.mk$$/d' ${WRKSRC}/Makefile
.if defined(QUARK_CONF)
@${ECHO_MSG} "Creating config.h from ${QUARK_CONF}"
@${LN} -sf ${QUARK_CONF} ${WRKSRC}/config.h

View File

@ -45,12 +45,10 @@ PERLFILES= AdminIndex.pl BoardConvert.pl Convert.pl \
post-extract:
@${RM} -r ${WCGI}/Convert ${WCGI}/Modules ${WCGI}/FixFile.pl
do-patch:
post-patch:
.for _I in ${PERLFILES}
@${SED} -i '' -e '1s|/usr/bin/perl|${perl_CMD}|' ${WCGI}/${_I}
.endfor
post-patch:
@${CHMOD} -R a=,u+rwX ${WCGI}/*
@${CHMOD} a=rx ${WCGI}/AdminIndex.pl ${WCGI}/Setup.pl ${WCGI}/YaBB.pl
@${CHMOD} -R a-w ${WCGI}/Admin ${WCGI}/Languages ${WCGI}/Sources