2018-04-15 19:00:10 +02:00
|
|
|
PORTNAME= urbackup-server
|
2022-09-12 22:47:00 +02:00
|
|
|
DISTVERSION= 2.5.26
|
2022-09-16 05:26:18 +02:00
|
|
|
PORTREVISION= 1
|
2018-04-15 19:00:10 +02:00
|
|
|
CATEGORIES= archivers
|
|
|
|
MASTER_SITES= https://hndl.urbackup.org/Server/${DISTVERSION}/
|
|
|
|
|
2021-01-05 16:33:39 +01:00
|
|
|
MAINTAINER= nc@FreeBSD.org
|
2018-04-15 19:00:10 +02:00
|
|
|
COMMENT= Server component of the UrBackup backup system
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://www.urbackup.org
|
2018-04-15 19:00:10 +02:00
|
|
|
|
|
|
|
LICENSE= AGPLv3
|
|
|
|
LICENSE_FILE= ${WRKSRC}/server-license.txt
|
|
|
|
|
|
|
|
LIB_DEPENDS= libcryptopp.so:security/cryptopp \
|
2019-02-03 10:07:32 +01:00
|
|
|
libcurl.so:ftp/curl \
|
|
|
|
liblmdb.so:databases/lmdb
|
2018-04-15 19:00:10 +02:00
|
|
|
|
2019-02-03 10:07:32 +01:00
|
|
|
USES= autoreconf compiler:c++11-lang dos2unix fakeroot fuse \
|
2022-09-24 08:18:25 +02:00
|
|
|
libtool lua:53 pkgconfig sqlite:3
|
2020-12-02 12:49:27 +01:00
|
|
|
DOS2UNIX_GLOB= *.c *.cpp *.h *.am
|
2018-08-24 19:22:01 +02:00
|
|
|
USE_RC_SUBR= urbackup_server
|
2018-04-15 19:00:10 +02:00
|
|
|
|
2018-08-24 19:22:01 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2019-02-03 10:07:32 +01:00
|
|
|
CONFIGURE_ARGS= --enable-packaging --with-mountvhd --without-embedded-sqlite3 --without-embedded-lmdb --without-embedded-lua
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2018-04-15 19:00:10 +02:00
|
|
|
|
2018-07-31 20:43:04 +02:00
|
|
|
SUB_FILES= pkg-message urbackupsrv.conf.sample-daemon
|
2018-04-15 19:00:10 +02:00
|
|
|
|
2020-12-02 12:49:27 +01:00
|
|
|
USERS= urbackup
|
|
|
|
GROUPS= urbackup
|
|
|
|
|
2018-08-24 19:22:01 +02:00
|
|
|
post-patch:
|
2019-02-03 10:07:32 +01:00
|
|
|
@(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 \
|
|
|
|
)
|
|
|
|
|
2018-04-15 19:00:10 +02:00
|
|
|
post-install:
|
2018-07-31 20:43:04 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/urbackup
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/urbackupsrv.conf.sample-daemon \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/urbackup/urbackupsrv.conf.sample
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
|
2018-08-05 19:43:48 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/urbackupsrv.conf-newsyslog \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/urbackupsrv.conf
|
2018-07-31 20:43:04 +02:00
|
|
|
|
2020-04-11 14:20:23 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/docs/urbackupsrv.1 ${STAGEDIR}${PREFIX}/man/man1
|
2018-04-15 19:00:10 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|