Another way to FLAVORIZE

This commit is contained in:
Xavier Beaudouin
2024-01-24 13:48:03 +01:00
parent e24e3b113a
commit c1aebe21f9

View File

@ -1,6 +1,6 @@
PORTNAME= ${SAMBA4_BASENAME}416 PORTNAME= ${SAMBA4_BASENAME}416
PORTVERSION= ${SAMBA4_VERSION} PORTVERSION= ${SAMBA4_VERSION}
PORTREVISION= 4 PORTREVISION= 5
CATEGORIES?= net CATEGORIES?= net
MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc MASTER_SITES= SAMBA/samba/stable SAMBA/samba/rc
DISTNAME= ${SAMBA4_DISTNAME} DISTNAME= ${SAMBA4_DISTNAME}
@ -200,7 +200,11 @@ SAMBA4_BUNDLED_CMOCKA?= no
SAMBA4_BUNDLED_TALLOC?= no SAMBA4_BUNDLED_TALLOC?= no
SAMBA4_BUNDLED_TEVENT?= no SAMBA4_BUNDLED_TEVENT?= no
SAMBA4_BUNDLED_TDB?= no SAMBA4_BUNDLED_TDB?= no
.if ${FLAVOR:U} != noldb
SAMBA4_BUNDLED_LDB?= yes SAMBA4_BUNDLED_LDB?= yes
.else
SAMBA4_BUNDLED_LDB?= no
.endif
# cmocka # cmocka
.if defined(SAMBA4_BUNDLED_CMOCKA) && ${SAMBA4_BUNDLED_CMOCKA} == yes .if defined(SAMBA4_BUNDLED_CMOCKA) && ${SAMBA4_BUNDLED_CMOCKA} == yes
SAMBA4_BUNDLED_LIBS+= cmocka SAMBA4_BUNDLED_LIBS+= cmocka
@ -254,8 +258,7 @@ PLIST_SUB+= SAMBA4_BUNDLED_TDB="@comment "
SUB_LIST+= SAMBA4_BUNDLED_TDB="@comment " SUB_LIST+= SAMBA4_BUNDLED_TDB="@comment "
.endif .endif
# ldb # ldb
#.if defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes .if defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes
.if ${FLAVOR:U} != noldb
SAMBA4_BUNDLED_LDB= yes SAMBA4_BUNDLED_LDB= yes
SAMBA4_BUNDLED_LIBS+= ldb SAMBA4_BUNDLED_LIBS+= ldb
PLIST_SUB+= SAMBA4_BUNDLED_LDB="" PLIST_SUB+= SAMBA4_BUNDLED_LDB=""
@ -627,22 +630,17 @@ pre-build-MANDOC-off:
lib/tdb/man/tdbtool.8 \ lib/tdb/man/tdbtool.8 \
lib/talloc/man/talloc.3 \ lib/talloc/man/talloc.3 \
lib/tdb/man/tdbrestore.8 \ lib/tdb/man/tdbrestore.8 \
docs-xml/manpages/vfs_freebsd.8 lib/ldb/man/ldb.3 \
${MKDIR} `dirname ${BUILD_WRKSRC}/bin/default/${man}`
${INSTALL_MAN} ${FILESDIR}/man/`basename ${man}` ${BUILD_WRKSRC}/bin/default/${man}
.endfor
.if ${FLAVOR:U} != noldb
.for man in lib/ldb/man/ldb.3 \
lib/ldb/man/ldbadd.1 \ lib/ldb/man/ldbadd.1 \
lib/ldb/man/ldbdel.1 \ lib/ldb/man/ldbdel.1 \
lib/ldb/man/ldbedit.1 \ lib/ldb/man/ldbedit.1 \
lib/ldb/man/ldbmodify.1 \ lib/ldb/man/ldbmodify.1 \
lib/ldb/man/ldbrename.1 \ lib/ldb/man/ldbrename.1 \
lib/ldb/man/ldbsearch.1 lib/ldb/man/ldbsearch.1 \
docs-xml/manpages/vfs_freebsd.8
${MKDIR} `dirname ${BUILD_WRKSRC}/bin/default/${man}` ${MKDIR} `dirname ${BUILD_WRKSRC}/bin/default/${man}`
${INSTALL_MAN} ${FILESDIR}/man/`basename ${man}` ${BUILD_WRKSRC}/bin/default/${man} ${INSTALL_MAN} ${FILESDIR}/man/`basename ${man}` ${BUILD_WRKSRC}/bin/default/${man}
.endfor .endfor
.endif
.if ${PORT_OPTIONS:MCLUSTER} .if ${PORT_OPTIONS:MCLUSTER}
${MKDIR} ${BUILD_WRKSRC}/bin/default/ctdb/ ${MKDIR} ${BUILD_WRKSRC}/bin/default/ctdb/
. for man in ctdb_diagnostics.1 ctdb.1 ctdbd_wrapper.1 ctdbd.1 ltdbtool.1 onnode.1 ping_pong.1 \ . for man in ctdb_diagnostics.1 ctdb.1 ctdbd_wrapper.1 ctdbd.1 ltdbtool.1 onnode.1 ping_pong.1 \
@ -662,7 +660,7 @@ post-install-fix-manpages:
.for f in vfs_aio_linux.8 vfs_btrfs.8 vfs_ceph.8 vfs_gpfs.8 .for f in vfs_aio_linux.8 vfs_btrfs.8 vfs_ceph.8 vfs_gpfs.8
${RM} ${STAGEDIR}${PREFIX}/share/man/man8/${f} ${RM} ${STAGEDIR}${PREFIX}/share/man/man8/${f}
.endfor .endfor
.if ${FLAVOR:U} != noldb .if defined(SAMBA4_BUNDLED_LDB) && ${SAMBA4_BUNDLED_LDB} == yes
. for f in ldbadd.1 ldbdel.1 ldbedit.1 ldbmodify.1 ldbrename.1 ldbsearch.1 . for f in ldbadd.1 ldbdel.1 ldbedit.1 ldbmodify.1 ldbrename.1 ldbsearch.1
${MV} ${STAGEDIR}${PREFIX}/share/man/man1/${f} ${STAGEDIR}${PREFIX}/share/man/man1/samba-${f} ${MV} ${STAGEDIR}${PREFIX}/share/man/man1/${f} ${STAGEDIR}${PREFIX}/share/man/man1/samba-${f}
. endfor . endfor