freebsd-ports/sysutils/sanoid/Makefile
Denis Shaposhnikov 7bc4eb92ec sysutils/sanoid: update to 2.2.0
ChangeLog: https://github.com/jimsalterjrs/sanoid/releases/tag/v2.2.0

 * [syncoid] implemented flag for preserving properties without the zfs -p flag
 * [syncoid] implemented target snapshot deletion
 * [syncoid] support bookmarks which are taken in the same second
 * [syncoid] exit with an error if the specified src dataset doesn't exist
 * [syncoid] rollback is now done implicitly instead of explicit
 * [syncoid] append a rand int to the socket name to prevent collisions with
   parallel invocations
 * [syncoid] implemented support for ssh_config(5) files
 * [syncoid] snapshot hold/unhold support
 * [sanoid] handle duplicate key definitions gracefully
 * [syncoid] implemented removal of conflicting snapshots with force-delete option
 * [sanoid] implemented pre pruning script hook
 * [syncoid] implemented direct connection support

PR:		274158
Reported by:	dsh@bamus.cz
Approved by:	hartzell@alerce.com (maintainer, timeout > 2 weeks)
2023-10-03 12:48:35 +02:00

54 lines
1.5 KiB
Makefile

PORTNAME= sanoid
DISTVERSIONPREFIX= v
DISTVERSION= 2.2.0
CATEGORIES= sysutils
MAINTAINER= hartzell@alerce.com
COMMENT= Policy-driven snapshot management and replication tools
WWW= https://github.com/jimsalterjrs/sanoid
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= lzop:archivers/lzop \
mbuffer:misc/mbuffer \
pv:sysutils/pv \
p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \
p5-Config-IniFiles>=0:devel/p5-Config-IniFiles
USES= shebangfix perl5
USE_GITHUB= yes
GH_ACCOUNT= jimsalterjrs
USE_PERL5= run
SHEBANG_FILES= findoid sanoid sleepymutex syncoid
CONFLICTS_INSTALL= sanoid-devel # bin/findoid
NO_BUILD= yes
NO_ARCH= yes
# line 19: my %args = ("configdir" => "/etc/sanoid");
post-patch:
@${REINPLACE_CMD} -i '' -e 's|/etc/sanoid|${PREFIX}/etc/sanoid|' \
${WRKSRC}/sanoid
@${REINPLACE_CMD} -i '' \
-e 's|/usr/bin/lzop|${LOCALBASE}/bin/lzop|' \
-e 's|/usr/bin/mbuffer|${LOCALBASE}/bin/mbuffer|' \
-e 's|/usr/bin/pv|${LOCALBASE}/bin/pv|' \
-e 's|/usr/bin/sudo|${LOCALBASE}/bin/sudo|' \
${WRKSRC}/syncoid
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/findoid ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/sanoid ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/sleepymutex ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/syncoid ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}/${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/sanoid.defaults.conf \
${STAGEDIR}${ETCDIR}/sanoid.defaults.conf
${INSTALL_DATA} ${WRKSRC}/sanoid.conf \
${STAGEDIR}${ETCDIR}/sanoid.conf.sample
.include <bsd.port.mk>