From nobody Tue Nov 8 16:44:21 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N6DTL1fgyz4YVLc; Tue, 8 Nov 2022 16:44:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N6DTL11Fbz40h6; Tue, 8 Nov 2022 16:44:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667925862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EPgyXA+xzAxDr/z9DYNZK/zYrgTWr/+X7TRn2m2ag7I=; b=xFG/Hchx7y80qcWE2joyj8cG7zgyRm6+C5U1CgB4kXu3s3pJKKJH1cymS/p05KVYyihNc1 5ROq2r6j7HOhQQG9QpVQZNRKxqJLpBMHYxzlXTBcvl8lTMi6KS+yL+FsjTdh7an29+KxUb jOt/ksIA/G0zGJIx9iRme6jAl7mDqwjx2sTc0M3RWZDMhI+KSe93DyERd2YVDdrhGLddoP VmH413sJGoTkfpJ7D9cqea5oa8Pfh0bSMA1qW6q2F8y6KEbDHtf4ErYzVyMWVm6RJdnr8L jCQVuBUnc/7OIHE22dU0WtPRLZ8EiiBOrp1G144clTrInXGg8bVZzIRBtpikLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667925862; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EPgyXA+xzAxDr/z9DYNZK/zYrgTWr/+X7TRn2m2ag7I=; b=WrbXQdOMvRuwGsQw4froX9hO/1CsTfl1cwuSvz32okYMrtFCWBNP6Q2tTHRIGn4EOxEclb F9ABcYzaVAj3C2wg3yv0vS7bjCcWajyst2HRCfpsADffP1Z6hSV9UoLQH5AsuOlEeSBxkV hfdVFSnpMC45hE+iWfoiXFoKvATFO4mRQXZibpNk8QcD+NIOt9GgjlvZShcuMA4gXjk60r YrIovwiXCdvdmkkjcgcu3mF0IgbuVf+60S98r6cmv/Z/5FhLMavV9E4xICMSWskU1o/Z0M 4hs+7pwCGeWFnZytJK4qqeOLtMhP+uj/T+gCXGrPnln3Y+5KTQiHQ5KAVRTQsw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667925862; a=rsa-sha256; cv=none; b=vZyTQcEC8p7ji+boEoMbYhWHup2Oz8jQa+l3x4zmOUZSlzsHxtmesDzptw/0+IXBC8Ys2r URPsKxnXoBUMY7WEIkT21zYuf9w/zu55uf9r8TtBpUnxcNJDzcz1KF4t2jphUsddH7ZzKc MEugHijzPXpasW/imR8gkvS09NUO7pTOzhHD/20X5rOqR/nQkwU/atGPGWWxRgaeOR35zX FfNr2SftU7vzBCJWcDoYz4TJdREGOZSZ+QUeJsEZtX5WDkfc0SpnjhxvsdcLiJGt5xWO+u CE6JGq7f4ihz6Uq0WXZ65mP2OiqF9HMCBptpYIocOxpRjVSPMCzYqFkxxcFa2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N6DTL03Smzq34; Tue, 8 Nov 2022 16:44:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2A8GiLRI000192; Tue, 8 Nov 2022 16:44:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A8GiLPK000191; Tue, 8 Nov 2022 16:44:21 GMT (envelope-from git) Date: Tue, 8 Nov 2022 16:44:21 GMT Message-Id: <202211081644.2A8GiLPK000191@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= Subject: git: da3273f7c3c3 - main - sysutils/vcp: Unbreak and set maintainer List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: da3273f7c3c3f577dbaba14c06c689a81113a949 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=da3273f7c3c3f577dbaba14c06c689a81113a949 commit da3273f7c3c3f577dbaba14c06c689a81113a949 Author: Robert Clausecker AuthorDate: 2022-11-07 19:05:30 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2022-11-08 16:40:20 +0000 sysutils/vcp: Unbreak and set maintainer * fix build with -fno-common * simplify Makefile * remove outdated WWW * fix plist and install Polish man page * fix bug when char is unsigned * mirror distfile on my own site for redundancy * take maintainership over this unmaintained port PR: 267595 Reported by: fuz@fuz.su (maintainer) MFH: 2022Q4 (build fix) --- sysutils/vcp/Makefile | 33 ++++++++++++--------------------- sysutils/vcp/files/patch-common.h | 13 +++++++++++++ sysutils/vcp/files/patch-copyall.c | 13 +++++++++++++ sysutils/vcp/files/patch-log.c | 11 +++++++++++ sysutils/vcp/files/patch-main.c | 11 +++++++++++ sysutils/vcp/pkg-plist | 5 +++-- 6 files changed, 63 insertions(+), 23 deletions(-) diff --git a/sysutils/vcp/Makefile b/sysutils/vcp/Makefile index c29b9ded6cb0..7c854b746013 100644 --- a/sysutils/vcp/Makefile +++ b/sysutils/vcp/Makefile @@ -1,43 +1,34 @@ PORTNAME= vcp PORTVERSION= 2.2 +PORTREVISION= 1 CATEGORIES= sysutils -MASTER_SITES= http://freebsdcluster.org/~mich/software/ +MASTER_SITES= http://freebsdcluster.org/~mich/software/ \ + http://fuz.su/~fuz/distfiles/vcp/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= fuz@fuz.su COMMENT= Copy files in curses interface -WWW= http://members.iinet.net.au/~lynx/vcp -BROKEN_FreeBSD_13= ld: error: duplicate symbol: logw -BROKEN_FreeBSD_14= ld: error: duplicate symbol: logw +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYRIGHT + +USES= ncurses +CFLAGS+= -L${NCURSESLIB} CONFLICTS= p5-VCP \ p5-VCP-autrijus -USES= ncurses -LDFLAGS+= -lncurses - OPTIONS_DEFINE= DOCS pre-build: @${REINPLACE_CMD} -e 's|/etc/vcp.conf|${PREFIX}/etc/vcp.conf|' ${WRKSRC}/misc.c @${REINPLACE_CMD} -e 's|/etc/vcp.conf|${PREFIX}/etc/vcp.conf|g' ${WRKSRC}/vcp.1 -do-build: - cd ${WRKSRC} && \ - ${CC} ${CFLAGS} -c main.c && \ - ${CC} ${CFLAGS} -c copyall.c && \ - ${CC} ${CFLAGS} -c copy.c && \ - ${CC} ${CFLAGS} -c screen.c && \ - ${CC} ${CFLAGS} -c log.c && \ - ${CC} ${CFLAGS} -c path.c && \ - ${CC} ${CFLAGS} -c misc.c && \ - ${CC} ${CFLAGS} -c color.c && \ - ${CC} ${CFLAGS} -o ${PORTNAME} main.o copyall.o copy.o screen.o log.o path.o misc.o color.o ${LDFLAGS} - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/vcp.conf.sample ${STAGEDIR}${PREFIX}/etc - ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1 + ${MKDIR} ${STAGEDIR}${MAN1PREFIX}/share/man/pl/man1 + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/share/man/man1 + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.pl.1 ${STAGEDIR}${MAN1PREFIX}/share/man/pl/man1/${PORTNAME}.1 ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} diff --git a/sysutils/vcp/files/patch-common.h b/sysutils/vcp/files/patch-common.h new file mode 100644 index 000000000000..d002cc52b60f --- /dev/null +++ b/sysutils/vcp/files/patch-common.h @@ -0,0 +1,13 @@ +--- common.h.orig 2022-11-06 13:00:14 UTC ++++ common.h +@@ -23,8 +23,8 @@ + #define T_DIR 1 /* -> DIR */ + #define T_NED 2 /* DIR -> NON-EXISTENT DIR */ + +-WINDOW *mainw; +-WINDOW *logw; ++extern WINDOW *mainw; ++extern WINDOW *logw; + + struct dest_new { + char *opath; diff --git a/sysutils/vcp/files/patch-copyall.c b/sysutils/vcp/files/patch-copyall.c new file mode 100644 index 000000000000..da2650efebf1 --- /dev/null +++ b/sysutils/vcp/files/patch-copyall.c @@ -0,0 +1,13 @@ +--- copyall.c.orig 2022-11-06 12:59:04 UTC ++++ copyall.c +@@ -16,10 +16,6 @@ + #include "copy.h" + #include "screen.h" + +-#ifndef _POSIX_SOURCE +-#define st_mtime st_mtimespec.tv_sec +-#endif +- + int copyall(char *args[],int fts_opt,int type) { + FTS *ftsarg; + FTSENT *ftsf; diff --git a/sysutils/vcp/files/patch-log.c b/sysutils/vcp/files/patch-log.c new file mode 100644 index 000000000000..be606b5e1f36 --- /dev/null +++ b/sysutils/vcp/files/patch-log.c @@ -0,0 +1,11 @@ +--- log.c.orig 2022-11-06 12:59:27 UTC ++++ log.c +@@ -45,7 +45,7 @@ int logadds(int code, char *base, char *var, char *var + } + + int logget(char *name) { +- char c,decoy; ++ int c,decoy; + if(use_curses) { + if(Iflag) + wprintw(logw, "Overwrite %s ? [Y]/N ",name); diff --git a/sysutils/vcp/files/patch-main.c b/sysutils/vcp/files/patch-main.c new file mode 100644 index 000000000000..2d514fc4da25 --- /dev/null +++ b/sysutils/vcp/files/patch-main.c @@ -0,0 +1,11 @@ +--- main.c.orig 2022-11-06 13:00:37 UTC ++++ main.c +@@ -12,6 +12,8 @@ + #include "screen.h" + #include "misc.h" + ++WINDOW *mainw, *logw; ++ + struct dest_new dest; + + int use_color = 0; diff --git a/sysutils/vcp/pkg-plist b/sysutils/vcp/pkg-plist index b578da94dff0..650e5c99b757 100644 --- a/sysutils/vcp/pkg-plist +++ b/sysutils/vcp/pkg-plist @@ -1,4 +1,5 @@ bin/vcp -etc/vcp.conf.sample -man/man1/vcp.1.gz +@sample etc/vcp.conf.sample +share/man/man1/vcp.1.gz +share/man/pl/man1/vcp.1.gz %%PORTDOCS%%%%DOCSDIR%%/README