0|1|2|3|4)
die "This eclass is banned for EAPI<5"
;;
- 5)
- :;
- ;;
- 6)
- die "This eclass is not yet ready for EAPI-6. Please help porting it!"
- ;;
esac
# settings which are version specific go in here:
RDEPEND=">=dev-libs/apr-1.5.1
!www-apache/mod_macro" #492578 #477702
;;
- *)
+ 2.2)
DEFAULT_MPM_THREADED="worker"
RDEPEND=">=dev-libs/apr-1.4.5" #368651
;;
+ *)
+ die "Unknown MAJOR.MINOR apache version."
+ ;;
esac
# ==============================================================================
"${GENTOO_PATCHDIR}"/{conf/httpd.conf,init/*,patches/config.layout} \
|| die "libdir sed failed"
- epatch "${GENTOO_PATCHDIR}"/patches/*.patch
+ if [[ "${EAPI}" -ge 6 ]] ; then
+ default
+ eapply "${GENTOO_PATCHDIR}"/patches/*.patch
+ else
+ epatch "${GENTOO_PATCHDIR}"/patches/*.patch
+ fi
if [[ ${EAPI} = 5 ]] ; then
# Handle patches from ebuild's PATCHES array if one is given
epatch_user
fi
+ # Don't rename configure.in _before_ any possible user patches!
+ if [[ -f "configure.in" ]] ; then
+ mv configure.{in,ac} || die
+ fi
+
# setup the filesystem layout config
cat "${GENTOO_PATCHDIR}"/patches/config.layout >> "${S}"/config.layout || \
die "Failed preparing config.layout!"
sed -i -e 's/httpd\.8/apache2.8/g' Makefile.in
# patched-in MPMs need the build environment rebuilt
- sed -i -e '/sinclude/d' configure.in
+ sed -i -e '/sinclude/d' configure.ac
AT_M4DIR=build eautoreconf
# ${T} must be not group-writable, else grsec TPE will block it