aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2021-02-20 23:15:12 +0000
committerMatthias Andree <mandree@FreeBSD.org>2021-02-20 23:15:12 +0000
commitbc0667a775c09465846a795b1b593c13d3a4a7f4 (patch)
tree6e03bd8c02a5d845b2a66e630a6a2fe56156f315
parent03a191cf3a83f837468d286e119de33b87242384 (diff)
downloadports-bc0667a775c09465846a795b1b593c13d3a4a7f4.tar.gz
ports-bc0667a775c09465846a795b1b593c13d3a4a7f4.zip
Notes
-rw-r--r--sysutils/cpdup/Makefile23
-rw-r--r--sysutils/cpdup/distinfo6
2 files changed, 17 insertions, 12 deletions
diff --git a/sysutils/cpdup/Makefile b/sysutils/cpdup/Makefile
index c63564f47f21..86629ccae237 100644
--- a/sysutils/cpdup/Makefile
+++ b/sysutils/cpdup/Makefile
@@ -2,24 +2,29 @@
# $FreeBSD$
PORTNAME= cpdup
-PORTVERSION= 1.20
+PORTVERSION= 1.22
CATEGORIES= sysutils
-MASTER_SITES= http://utenti.gufi.org/~gmarco/files/distfiles/ \
- https://www.madpilot.net/~mad/
-MAINTAINER= gmarco@gufi.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= Comprehensive filesystem mirroring and backup program
LICENSE= BSD2CLAUSE # clarified by Matthew Dillon himself
-USES= tar:xz
-
-WRKSRC= ${WRKDIR}/${PORTNAME}
-
-CFLAGS+= -D_ST_FLAGS_PRESENT_
+USES= gmake ssl tar:xz
+USE_GITHUB= yes
+GH_TUPLE= DragonFlyBSD:${PORTNAME}:v${PORTVERSION}
+MAKEFILE= GNUmakefile
+MAKE_ARGS+= LIBS="-L${OPENSSLLIB} -lcrypto"
PLIST_FILES= bin/cpdup man/man1/cpdup.1.gz
+post-patch:
+ ${REINPLACE_CMD} \
+ -e 's}^CFLAGS=\(.*\)}& ${CFLAGS}}' \
+ -e '/^CFLAGS+=.*pkg-config.*openssl/s}^CFLAGS.*}CFLAGS+=-I${OPENSSLINC}}' \
+ -e '/^LIBS+=.*pkg-config.*openssl/s}^LIBS.*}LIBS+=-L${OPENSSLLIB} -Wl,--as-needed -lssl -lcrypto}' \
+ ${WRKSRC}/GNUmakefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cpdup ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/cpdup.1 ${STAGEDIR}${MANPREFIX}/man/man1
diff --git a/sysutils/cpdup/distinfo b/sysutils/cpdup/distinfo
index ca72d25577a2..6b8e62d1d530 100644
--- a/sysutils/cpdup/distinfo
+++ b/sysutils/cpdup/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1550687246
-SHA256 (cpdup-1.20.tar.xz) = 6c79c0785d29fe611156f1f572db866fa41b52518a181f22e1ed45eae6887169
-SIZE (cpdup-1.20.tar.xz) = 37568
+TIMESTAMP = 1613861241
+SHA256 (DragonFlyBSD-cpdup-1.22-v1.22_GH0.tar.gz) = 2dbfa16a080f8dce1be64a511e785b8491e59be8a0f3d1cef035d08147cc4793
+SIZE (DragonFlyBSD-cpdup-1.22-v1.22_GH0.tar.gz) = 44126