summaryrefslogtreecommitdiff
path: root/archivers/urbackup-server/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/urbackup-server/Makefile')
-rw-r--r--archivers/urbackup-server/Makefile27
1 files changed, 18 insertions, 9 deletions
diff --git a/archivers/urbackup-server/Makefile b/archivers/urbackup-server/Makefile
index 84c8e509df07..46a24306e923 100644
--- a/archivers/urbackup-server/Makefile
+++ b/archivers/urbackup-server/Makefile
@@ -1,5 +1,6 @@
PORTNAME= urbackup-server
DISTVERSION= 2.5.33
+PORTREVISION= 2
CATEGORIES= archivers
MASTER_SITES= https://hndl.urbackup.org/Server/${DISTVERSION}/
@@ -12,17 +13,21 @@ LICENSE_FILE= ${WRKSRC}/server-license.txt
LIB_DEPENDS= libcryptopp.so:security/cryptopp \
libcurl.so:ftp/curl \
- liblmdb.so:databases/lmdb
+ liblmdb.so:databases/lmdb \
+ libzstd.so:archivers/zstd
-USES= autoreconf compiler:c++11-lang dos2unix fakeroot fuse \
- libtool lua:53 pkgconfig sqlite:3
-DOS2UNIX_GLOB= *.c *.cpp *.h *.am
+USES= autoreconf compiler:c++11-lang dos2unix fakeroot fuse libtool \
+ lua:53 localbase pkgconfig sqlite:3
+DOS2UNIX_GLOB= *.am *.c *.cpp *.h
USE_CXXSTD= c++14
USE_RC_SUBR= urbackup_server
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --enable-packaging --with-mountvhd --without-embedded-sqlite3 --without-embedded-lmdb --without-embedded-lua
-LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ARGS= --enable-packaging \
+ --with-mountvhd \
+ --without-embedded-lmdb \
+ --without-embedded-lua \
+ --without-embedded-sqlite3
.include <bsd.port.options.mk>
@@ -38,19 +43,23 @@ 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
+ ${MKDIR} ${STAGEDIR}${PREFIX}/etc/urbackup \
+ ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
${INSTALL_DATA} ${WRKDIR}/urbackupsrv.conf.sample-daemon \
${STAGEDIR}${PREFIX}/etc/urbackup/urbackupsrv.conf.sample
- ${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
${INSTALL_DATA} ${FILESDIR}/urbackupsrv.conf-newsyslog \
${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/urbackupsrv.conf