From nobody Tue Jan 16 20:43:23 2024 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 4TF1Dq2CGwz580vD; Tue, 16 Jan 2024 20:43:23 +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 4TF1Dq1hgrz46fX; Tue, 16 Jan 2024 20:43:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705437803; 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=WePeEjIecL9A1GAyB9V96Vic0ghM+wUi5h1IQnC/O2o=; b=C8HzfaYwmnt4jl1mqIzP0oy2f0L1M+H0DRIxPtQqbaaoedM9wYmIPebM9BUQVJfZcvUHAe 0vIU6t63zx9a2U9m6/Hr0bnWXChAkYYreBtfPsStLlt3GxVgEJSSFlcYzNwxh6mv0QWBJ3 /B6dB5VcoiBFlOmbbfm6m0bgLC99y4hB7zSpATrLxv/AFNJFm5uOMpFNh3PBjtitNfkdbV KBo55tx2f36qvMEPqrkNs03Cjn6DG6BNv8ht+5uw5GmAmi/rbeztHv6xRX1Z8p1FHZZA5m qmbtiJF3gh4e5xG1vrLtJewmHaJUUpPv4aH2YrKIAEoPZZfmgslqzdA8dEqafg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705437803; 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=WePeEjIecL9A1GAyB9V96Vic0ghM+wUi5h1IQnC/O2o=; b=MWKDBrDy2Tna9z658lHs1rbtHdLwgXVgft9ox2dO3iKAeib4LSNOTluXP/z6fT2EkeIj9Z CF997/zu6/LagJqGqmpHc/9SrP796vzrnMsL+VrXIcsmnywcnfeVNcyEw6QtROrvrOqSz+ T64xyFUXZpH93+DHBWCofzaLk7Tec8JdmPTOZGgLmoJIhIC+662pGa7bIH99UnX8zKTZtA cRM6Uw7fYcy4RlZJwd1ugDewn7LRqD0DRyuNXNoKrR1WX2O0z4++ehbS7BQ0WA1k3bwtQZ DStG58xYEn8rwMD7VA2dkgkXHU4E8TwdCtJmSN5ByiNN0A83youxIFg6uNo+fQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705437803; a=rsa-sha256; cv=none; b=NbNIg0OZijhMIW6DL/1hHlIygAIUsZZ/MYlblyMMMB7VUMAQ7uhsFbEWqsZohF2jm09YYh +DKqHMvQWONDtbtuLXCKV32GPPs+S13+sBNsiJ9kR/xYP0esjHYrvkUgUlsuG/Jm7v4Tjv mnUwClHl9p6gAgzi3jrHbMSOynJfCSbgyfNbvfMqlfWsz0Ets0Zriwpvhdb0A7YALAui3E pmOndJWH9NAkAy6/Q5gqAXLtdqfjt7jDbWKL4X2pExdBVtBc6KN8HwCGBAVMpO/YFFcWbR fOrytpoB/dNcZZYUjgZ2tJbRkfIQpW620qh6rnUHhs94OPzVZGs8uI6BmeiM1w== 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 4TF1Dq0lgSzvby; Tue, 16 Jan 2024 20:43:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40GKhNIL077216; Tue, 16 Jan 2024 20:43:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40GKhNbF077213; Tue, 16 Jan 2024 20:43:23 GMT (envelope-from git) Date: Tue, 16 Jan 2024 20:43:23 GMT Message-Id: <202401162043.40GKhNbF077213@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dirk Meyer Subject: git: 7b3b8f2822bf - main - sysutils/vobcopy: Update to 1.2.1 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: dinoex X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7b3b8f2822bf251b3e84e0926680a02df9805df5 Auto-Submitted: auto-generated The branch main has been updated by dinoex: URL: https://cgit.FreeBSD.org/ports/commit/?id=7b3b8f2822bf251b3e84e0926680a02df9805df5 commit 7b3b8f2822bf251b3e84e0926680a02df9805df5 Author: Dirk Meyer AuthorDate: 2024-01-16 20:43:04 +0000 Commit: Dirk Meyer CommitDate: 2024-01-16 20:43:04 +0000 sysutils/vobcopy: Update to 1.2.1 New MASTER_SITES Fix WWW Fix locale Fix empty dvd_path Fix FreeBSD macros Fix getmntinfo Add german manpage --- sysutils/vobcopy/Makefile | 64 +++++++++-------------- sysutils/vobcopy/distinfo | 5 +- sysutils/vobcopy/files/patch-Makefile.am | 11 ++++ sysutils/vobcopy/files/patch-dvd.c | 89 +++++++++++++++++++++++++++++--- sysutils/vobcopy/files/patch-vobcopy.c | 62 ++++++++++++++++++++-- sysutils/vobcopy/files/patch-vobcopy.h | 11 ---- 6 files changed, 177 insertions(+), 65 deletions(-) diff --git a/sysutils/vobcopy/Makefile b/sysutils/vobcopy/Makefile index 3f774eb2c967..772df319fa5f 100644 --- a/sysutils/vobcopy/Makefile +++ b/sysutils/vobcopy/Makefile @@ -1,59 +1,41 @@ PORTNAME= vobcopy -PORTVERSION= 1.2.0 -PORTREVISION= 9 +PORTVERSION= 1.2.1 +PORTREVISION= 0 CATEGORIES= sysutils -MASTER_SITES= http://vobcopy.org/download/ \ - LOCAL/ehaupt MAINTAINER= dinoex@FreeBSD.org COMMENT= Decrypts and copies DVD .vob files -WWW= http://vobcopy.org/projects/c/c.shtml +WWW= https://github.com/barak/vobcopy LICENSE= GPLv2+ LIB_DEPENDS= libdvdread.so:multimedia/libdvdread -HAS_CONFIGURE= yes -CONFIGURE_SCRIPT= configure.sh -CONFIGURE_ARGS= --with-lfs --with-dvdread-libs=${LOCALBASE} +USES= autoreconf localbase iconv +USE_GITHUB= yes +GH_ACCOUNT= barak +GNU_CONFIGURE= yes +GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share +CFLAGS+= -DUSE_STATFS_FOR_DEV=1 +MAKE_ARGS= CCLD="${CC}" -ALL_TARGET= ${PORTNAME} +PLIST_FILES= bin/vobcopy \ + share/man/de/man1/vobcopy.1.gz \ + share/man/man1/vobcopy.1.gz -PLIST_FILES= bin/vobcopy share/man/man1/vobcopy.1.gz -PORTDOCS= COPYING Changelog README TODO \ +PORTDOCS= COPYING ChangeLog Changelog README Release-Notes TODO \ alternative_programs.txt -OPTIONS_DEFINE= DOCS - -post-patch: - @${REINPLACE_CMD} -E -e 's|(fopen\( *"/etc/)mtab|\1fstab|; \ - s|iso9660|cd9660|' ${WRKSRC}/dvd.c - @${REINPLACE_CMD} -E -e 's|declare -i i=0||' \ - ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} -# -CURRENT after 500041 has getopt_long -# do not use libgnugetopt - @${REINPLACE_CMD} -E \ - -e 's|-lgnugetopt||' \ - ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} -# fix typo - @${REINPLACE_CMD} -E \ - -e 's|FreeBSD_Version|FreeBSD_version|' \ - ${WRKSRC}/dvd.c -# no such flag under FreeBSD -# fdatasync(2) -> fsync(2) - @${REINPLACE_CMD} -E \ - -e 's|O_LARGEFILE|0|' \ - -e 's|fdatasync|fsync|g' \ - ${WRKSRC}/vobcopy.c + +OPTIONS_DEFINE= NLS DOCS +OPTIONS_DEFAULT= NLS + +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls +NLS_LIBS= -lintl post-configure: - @${REINPLACE_CMD} -E -e 's|^CC.+||; s|^PREFIX.+||; \ - s|/usr/local/|${LOCALBASE}/|' \ - ${WRKSRC}/Makefile - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/vobcopy ${STAGEDIR}${PREFIX}/bin/vobcopy - ${INSTALL_MAN} ${WRKSRC}/vobcopy.1${MAN1_SUFX} \ - ${STAGEDIR}${PREFIX}/share/man/man1/vobcopy.1 + ${REINPLACE_CMD} -e 's|/usr/local/share/|${PREFIX}/share/|' \ + ${WRKSRC}/vobcopy.c do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} diff --git a/sysutils/vobcopy/distinfo b/sysutils/vobcopy/distinfo index 52c09eecb36a..c2fe319bace0 100644 --- a/sysutils/vobcopy/distinfo +++ b/sysutils/vobcopy/distinfo @@ -1,2 +1,3 @@ -SHA256 (vobcopy-1.2.0.tar.gz) = 511f3550c1dda3fd4dfb748ed7abb9cd6f1e46f8490faad406a19cbb947c1df9 -SIZE (vobcopy-1.2.0.tar.gz) = 68214 +TIMESTAMP = 1705270645 +SHA256 (barak-vobcopy-1.2.1_GH0.tar.gz) = f4737efaf5ad4f84b5c94ca82cda04dbb20c59cebc23588e3662e0c2813d6fde +SIZE (barak-vobcopy-1.2.1_GH0.tar.gz) = 67342 diff --git a/sysutils/vobcopy/files/patch-Makefile.am b/sysutils/vobcopy/files/patch-Makefile.am new file mode 100644 index 000000000000..ce1dea8e8cc5 --- /dev/null +++ b/sysutils/vobcopy/files/patch-Makefile.am @@ -0,0 +1,11 @@ +--- Makefile.am.orig 2022-05-03 19:55:34 UTC ++++ Makefile.am +@@ -15,7 +15,7 @@ dist_doc_DATA = alternative_programs.txt Changelog REA + + intl/de/vobcopy.1: vobcopy.1.de + $(MKDIR_P) intl/de +- ln $< $@ ++ ln ${.ALLSRC} $@ + + MOSTLYCLEANFILES = intl/de/vobcopy.1 + diff --git a/sysutils/vobcopy/files/patch-dvd.c b/sysutils/vobcopy/files/patch-dvd.c index 6ba35b812e29..d928dd05e168 100644 --- a/sysutils/vobcopy/files/patch-dvd.c +++ b/sysutils/vobcopy/files/patch-dvd.c @@ -1,23 +1,98 @@ ---- dvd.c.orig 2008-02-19 00:27:04.000000000 -0500 -+++ dvd.c 2008-08-08 19:02:43.000000000 -0400 -@@ -510,7 +510,15 @@ +--- dvd.c.orig 2022-05-03 19:55:34 UTC ++++ dvd.c +@@ -176,7 +176,7 @@ int get_device( char *path, char *device ) + if( !strcmp( path, buf.f_mntonname ) ) + { + mounted = TRUE; +-#if defined(__FreeBSD__) && (__FreeBSD_Version > 500000) ++#if defined(__FreeBSD__) && (__FreeBSD_version > 500000) + strcpy(device, buf.f_mntfromname); + #else + strcpy(device, "/dev/r"); +@@ -294,7 +294,7 @@ this is the code for the other-OSs, not solaris*/ + #endif + + +- if( ( tmp_streamin = fopen( "/etc/mtab", "r" ) ) ) ++ if( ( tmp_streamin = fopen( "/etc/fstab", "r" ) ) ) + { + strcpy( tmp_path, path ); + strcat( tmp_path, " " ); /* otherwise it would detect that e.g. +@@ -346,7 +346,7 @@ this is the code for the other-OSs, not solaris*/ + + if( ( k = strstr( tmp_bufferin, "/dev/" ) ) == NULL ) + { +- fprintf( stderr, _("[Error] Weird, no /dev/ entry found in the line where iso9660 or udf gets mentioned in /etc/fstab\n") ); ++ fprintf( stderr, _("[Error] Weird, no /dev/ entry found in the line where cd9660 or udf gets mentioned in /etc/fstab\n") ); + return -1; + } + l=0; +@@ -404,7 +404,8 @@ int get_device_on_your_own( char *path, char *device ) + struct statvfs *mntbuf; + #endif + +- if( ( n = getmntinfo( &mntbuf, 0 ) ) > 0 ) ++ path[0] = '\0'; ++ if( ( n = getmntinfo( &mntbuf, MNT_NOWAIT ) ) > 0 ) + { + for( i = 0; i < n; i++ ) + { +@@ -412,7 +413,7 @@ int get_device_on_your_own( char *path, char *device ) + { + dvd_count++; + strcpy( path, mntbuf[i].f_mntonname ); +-#if defined(__FreeBSD__) && (__FreeBSD_Version > 500000) ++#if defined(__FreeBSD__) && (__FreeBSD_version > 500000) + strcat(device, mntbuf[i].f_mntfromname); + #else + strcpy(device, "/dev/r"); +@@ -495,14 +496,14 @@ int get_device_on_your_own( char *path, char *device ) + *read the device out of /etc/mtab + */ + +- if( ( tmp_streamin = fopen( "/etc/mtab", "r" ) ) ) ++ if( ( tmp_streamin = fopen( "/etc/fstab", "r" ) ) ) + { +-/* strcpy(tmp_path, "iso9660"); */ ++/* strcpy(tmp_path, "cd9660"); */ + memset( tmp_bufferin, 0, MAX_STRING * sizeof( char ) ); + while( fgets( tmp_bufferin, MAX_STRING, tmp_streamin ) ) + { + /* if(strstr( tmp_bufferin, tmp_path)) */ +- if (strstr( tmp_bufferin, "iso9660" ) || ++ if (strstr( tmp_bufferin, "cd9660" ) || + strstr( tmp_bufferin, "udf" ) || + strstr( tmp_bufferin, "cdrom" ) || + strstr( tmp_bufferin, "dvd" ) ) +@@ -514,7 +515,7 @@ int get_device_on_your_own( char *path, char *device ) + + if( ( k = strstr( tmp_bufferin, "/dev/" ) ) == NULL ) + { +- fprintf( stderr, _("[Error] Weird, no /dev/ entry found in the line where iso9660, udf or cdrom gets mentioned in /etc/mtab\n") ); ++ fprintf( stderr, _("[Error] Weird, no /dev/ entry found in the line where cd9660, udf or cdrom gets mentioned in /etc/mtab\n") ); + dvd_count--; + continue; + } +@@ -544,8 +545,17 @@ int get_device_on_your_own( char *path, char *device ) */ - k = strstr( tmp_bufferin, " " ); + k = strpbrk( tmp_bufferin, " \t" ); -+ + + /* Avoid a core dump by checking that the break token + was found */ + if ( k == NULL ) + { + fprintf(stderr, "[Error] Unable to parse the /etc/fstab file\n"); ++ path[0] = '\0'; + return -1; + } - ++ /*traverse the gap*/ -@@ -646,21 +654,6 @@ + if( isgraph( (int) *(k) )) +@@ -680,21 +690,6 @@ off_t get_vob_size( int title, char *provided_input_di return ( off_t ) vob_size; } @@ -30,7 +105,7 @@ - { - /* adjust path for next subvob */ - subvob++; -- sprintf( stat_path, "%s_%d.vob", path_to_vobs3, subvob ); +- snprintf( stat_path, sizeof(stat_path), "%s_%d.vob", path_to_vobs3, subvob ); - vob_size += buf.st_size; - } - return ( off_t ) vob_size; diff --git a/sysutils/vobcopy/files/patch-vobcopy.c b/sysutils/vobcopy/files/patch-vobcopy.c index 9ea3d00e2229..d1b89451b22a 100644 --- a/sysutils/vobcopy/files/patch-vobcopy.c +++ b/sysutils/vobcopy/files/patch-vobcopy.c @@ -1,11 +1,65 @@ ---- vobcopy.c.orig Sun Jun 24 08:26:07 2007 -+++ vobcopy.c Wed Oct 10 20:56:58 2007 -@@ -149,6 +149,8 @@ +--- vobcopy.c.orig 2022-05-03 19:55:34 UTC ++++ vobcopy.c +@@ -25,7 +25,7 @@ + * rosenauer@users.sf.net - helped me a lot! + * Billy Biggs - took some of his play_title.c code + * and implemeted it here +- * Håkan Hjort and Billy Biggs - libdvdread ++ * HÃ¥kan Hjort and Billy Biggs - libdvdread + * Stephen Birch - debian packaging + */ + +@@ -160,7 +160,7 @@ and potentially fatal." - Thanks Leigh!*/ + #if defined( __gettext__ ) + setlocale(LC_ALL, ""); + textdomain("vobcopy"); +- bindtextdomain("vobcopy", "/usr/share/locale"); ++ bindtextdomain("vobcopy", "/usr/local/share/locale"); #endif + /* initialize string */ +@@ -1205,7 +1205,7 @@ next: /*for the goto - ugly, I know... */ + fprintf( stderr, _("\n")); + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), output_file ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); +@@ -1241,7 +1241,7 @@ next: /*for the goto - ugly, I know... */ + fprintf( stderr, _("\n")); + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), output_file ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); +@@ -1389,7 +1389,7 @@ next: /*for the goto - ugly, I know... */ + fprintf( stderr, _("\n") ); + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), output_file ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); +@@ -1421,6 +1421,8 @@ next: /*for the goto - ugly, I know... */ + + + /* initialize string */ + dvd_path[0] = '\0'; /* - * the getopt part (getting the options from command line) + * Open now up the actual files for reading +@@ -1847,7 +1849,7 @@ The man replies, "I was talking to the sheep." + } + if( !stdout_flag ) + { +- if( fdatasync( streamout ) < 0 ) ++ if( fsync( streamout ) < 0 ) + { + fprintf( stderr, _("\n[Error] error writing to %s \n"), name ); + fprintf( stderr, _("[Error] error: %s\n"), strerror( errno ) ); diff --git a/sysutils/vobcopy/files/patch-vobcopy.h b/sysutils/vobcopy/files/patch-vobcopy.h deleted file mode 100644 index c70a19da6b12..000000000000 --- a/sysutils/vobcopy/files/patch-vobcopy.h +++ /dev/null @@ -1,11 +0,0 @@ ---- vobcopy.h.old 2009-06-12 10:46:16.000000000 +0000 -+++ vobcopy.h 2009-06-12 10:47:20.000000000 +0000 -@@ -69,7 +69,7 @@ - /* ////////// *BSD ////////// */ - #if ( defined( BSD ) && ( BSD >= 199306 ) ) - --#if !defined( __NetBSD__ ) || \ -+#if ! ( defined( __NetBSD__ ) ) || \ - ( defined( __NetBSD__) && ( __NetBSD_Version__ < 200040000 ) ) - #include - #define USE_STATFS 1