archivers/urbackup-server: fix build with clang-19
This is a fix for compiler changes in the latest LLVM versions (including "auto_ptr" and the "std::char_traits" template removal. This works for FBSD 15-CURRENT as well as previous supported versions of FreeBSD. PR: 286212 MFH: 2025Q2
This commit is contained in:
parent
cf22c026cf
commit
415fbf9744
@ -1,5 +1,6 @@
|
||||
PORTNAME= urbackup-server
|
||||
DISTVERSION= 2.5.33
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= archivers
|
||||
MASTER_SITES= https://hndl.urbackup.org/Server/${DISTVERSION}/
|
||||
|
||||
@ -38,13 +39,17 @@ USERS= urbackup
|
||||
GROUPS= urbackup
|
||||
|
||||
post-patch:
|
||||
@(cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|/etc/urbackup|${PREFIX}/etc/urbackup|g' \
|
||||
(cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|/etc/urbackup|${PREFIX}/etc/urbackup|g' \
|
||||
mount_helper/main.cpp \
|
||||
urbackupserver/server.cpp \
|
||||
urbackupserver/serverinterface/settings.cpp \
|
||||
urbackupserver/dllmain.cpp \
|
||||
snapshot_helper/main.cpp \
|
||||
)
|
||||
${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} \
|
||||
-e 's|std::char_traits|std::vector|g' \
|
||||
-e 's|std::basic_string|std::vector|g' \
|
||||
-e 's|auto_ptr|unique_ptr|g' {} +
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/etc/urbackup
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user