use a different mechanism to avoid installing the old openbsd-only very

basic sample config files on newer versions rather than just checking
version != 19
This commit is contained in:
sthen 2022-10-20 09:35:29 +00:00
parent e2980bd75f
commit 5743e9a7f7
3 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
VER= 16.29.0
PJ_V= 2.12.1
SHLIB_V= 0.0
OLD_SAMPLECONF= Yes
VERSION_SPEC= >=16.0,<17.0
PORTROACH= limit:^16\.

View File

@ -1,6 +1,7 @@
VER= 18.15.0
PJ_V= 2.12.1
SHLIB_V= 0.0
OLD_SAMPLECONF= Yes
VERSION_SPEC= >=18.0,<19.0
PORTROACH= limit:^18\.

View File

@ -110,6 +110,7 @@ MAKE_FLAGS+= ASTCFLAGS="${CFLAGS}" \
ASTPJ_SO_VERSION="${LIBasteriskpj_VERSION}" \
NOISY_BUILD="Yes" \
OPTIMIZE=
OLD_SAMPLECONF?=
CONFIGURE_ARGS+= --localstatedir=/var \
--with-download-cache=${FULLDISTDIR} \
@ -351,7 +352,7 @@ post-install:
${PREFIX}/share/doc/asterisk
${INSTALL_DATA_DIR} ${EXAMPLEDIR}/basic-pbx
${INSTALL_DATA} ${WRKSRC}/configs/basic-pbx/* ${EXAMPLEDIR}/basic-pbx
.if ${SHORTVER} != 19
.if ${OLD_SAMPLECONF:L:Myes}
${INSTALL_DATA_DIR} ${EXAMPLEDIR}/openbsd
.for i in ${EXAMPLEFILES}
@${SUBST_CMD} -c -m 444 ${FILESDIR}/$i.sample \