GNU sed does not understand -E' and NetBSD sed does not understand -r'.

Also the POSIX specification does not mention EREs, so not using them is
probably the most portable thing to do.

Reported by Aleksey Cheusov on pkgsrc-wip-discuss.
This commit is contained in:
Petar Bogdanovic 2009-03-06 20:06:44 +00:00 committed by Thomas Klausner
parent 1dc619b1de
commit b043347913

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2009/02/26 10:14:42 pebog Exp $
# $NetBSD: Makefile,v 1.8 2009/03/06 20:06:44 pebog Exp $
#
#
# Request by the author:
@ -43,7 +43,9 @@ FILES_SUBST+= DCC_RUN=${DCC_RUN}
SUBST_CLASSES+= dae
SUBST_STAGE.dae= post-patch
SUBST_FILES.dae= homedir/dcc_conf.in
SUBST_SED.dae= -Ee 's!^(DCC(D|IFD|M)_ENABLE=)off$$!\1on!'
SUBST_SED.dae= -e 's/^\(DCCD_ENABLE=\)off$$/\1on/' \
-e 's/^\(DCCM_ENABLE=\)off$$/\1on/' \
-e 's/^\(DCCIFD_ENABLE=\)off$$/\1on/'
SUBST_MESSAGE.dae= Enabling all daemons in dcc_conf
HAS_CONFIGURE= yes