Last active
March 21, 2023 11:36
-
-
Save mat813/56281eadc8ba1beca952f2cecb3a71d3 to your computer and use it in GitHub Desktop.
Add flavors to dns/bind918 to automate testing all options.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.if empty(FLAVOR) | |
FLAVOR= normal | |
.endif | |
CONFIGURE_ARGS+= --enable-full-report | |
.if defined(BIND_TOOLS_SLAVE) | |
FLAVORS= normal small huge ${OPTIONS_SINGLE_GSSAPI:NGSSAPI_NONE:tl} | |
. if ${FLAVOR} == small | |
OPTIONS_UNSET_FORCE= ${OPTIONS_DEFINE} | |
. elif ${FLAVOR} == huge | |
OPTIONS_SET_FORCE= ${OPTIONS_DEFINE} ${OPTIONS_RADIO_CRYPTO} | |
. elif ${FLAVOR:Mgssapi*} | |
OPTIONS_UNSET_FORCE= GSSAPI_NONE | |
OPTIONS_SET_FORCE= ${FLAVOR:tu} | |
. endif | |
.else | |
FLAVORS= normal small huge nativepkcs11 ${OPTIONS_SINGLE_GSSAPI:NGSSAPI_NONE:tl} | |
. if ${FLAVOR} == small | |
OPTIONS_UNSET_FORCE= ${OPTIONS_DEFINE} | |
. elif ${FLAVOR} == huge | |
OPTIONS_SET_FORCE= ${OPTIONS_DEFINE} ${OPTIONS_RADIO_CRYPTO} | |
. elif ${FLAVOR} == nativepkcs11 | |
OPTIONS_SET_FORCE= NATIVE_PKCS11 | |
. elif ${FLAVOR:Mgssapi*} | |
OPTIONS_UNSET_FORCE= GSSAPI_NONE | |
OPTIONS_SET_FORCE= ${FLAVOR:tu} | |
. endif | |
regen-patches: | |
cd ${.CURDIR} ; \ | |
mv files/extrapatch-no-bind-tools files/patch-no-bind-tools ; \ | |
mv files/extrapatch-bind-min-override-ttl files/patch-bind-min-override-ttl ; \ | |
make clean extract do-patch makepatch BATCH= NO_IGNORE= PATCH_DEBUG=yes EXTRA_PATCHES= || : ; \ | |
mv files/patch-no-bind-tools files/extrapatch-no-bind-tools ; \ | |
mv files/patch-bind-min-override-ttl files/extrapatch-bind-min-override-ttl | |
cd ${.CURDIR} ; \ | |
mv files/extrapatch-bind-tools files/patch-bind-tools ; \ | |
(cd ../bind-tools ; \ | |
make clean extract do-patch makepatch BATCH= NO_IGNORE= PATCH_DEBUG=yes EXTRA_PATCHES= MASTERDIR=$$PWD/../bind918 || :) ; \ | |
mv files/patch-bind-tools files/extrapatch-bind-tools | |
.endif | |
.if ${FLAVOR} != normal | |
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-${FLAVOR} | |
.endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment