FreeBSD Bugzilla – Attachment 54810 Details for
Bug 82917
[PATCH] update multimedia/lxdvdrip to 1.46
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-lxdvdrip
patch-lxdvdrip (text/plain), 4.72 KB, created by
Jose M Rodriguez
on 2005-07-03 10:40:10 UTC
(
hide
)
Description:
patch-lxdvdrip
Filename:
MIME Type:
Creator:
Jose M Rodriguez
Created:
2005-07-03 10:40:10 UTC
Size:
4.72 KB
patch
obsolete
>diff -Nru /usr/ports/multimedia/lxdvdrip/Makefile multimedia/lxdvdrip/Makefile >--- /usr/ports/multimedia/lxdvdrip/Makefile Fri May 13 22:17:25 2005 >+++ multimedia/lxdvdrip/Makefile Sun Jul 3 11:12:31 2005 >@@ -6,10 +6,9 @@ > # > > PORTNAME= lxdvdrip >-PORTVERSION= 1.41 >+PORTVERSION= 1.46 > CATEGORIES= multimedia > MASTER_SITES= http://download.berlios.de/lxdvdrip/ >-DISTNAME= ${PORTNAME}-${PORTVERSION}-3 > EXTRACT_SUFX= .tgz > > MAINTAINER= q@galgenberg.net >@@ -22,13 +21,19 @@ > > WRKSRC= ${WRKDIR}/${PORTNAME} > >+MAN1= lxdvdrip.1 >+ > do-build: >- (cd ${WRKSRC}; ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \ >- -ldvdread -lm -o lxdvdrip lxdvdrip.c) >+ (cd ${WRKSRC}; \ >+ ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \ >+ -ldvdread -lm -o lxdvdrip lxdvdrip.c; \ >+ ${CC} ${CFLAGS} -lm -o lxac3scan lxac3scan.c) > > do-install: >- ${INSTALL_PROGRAM} ${WRKSRC}/lxdvdrip ${LOCALBASE}/bin >- ${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.* ${LOCALBASE}/etc >+ ${INSTALL_PROGRAM} ${WRKSRC}/lxdvdrip ${PREFIX}/bin >+ ${INSTALL_PROGRAM} ${WRKSRC}/lxac3scan ${PREFIX}/bin >+ ${INSTALL_MAN} ${WRKSRC}/lxdvdrip.1 ${PREFIX}/man/man1 >+ ${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.* ${PREFIX}/etc > .if !defined(NOPORTDOCS) > ${MKDIR} ${DOCSDIR} > cd ${WRKSRC}/doc-pak && ${CP} Changelog* README.* TODO freebsd.doc ${DOCSDIR} >diff -Nru /usr/ports/multimedia/lxdvdrip/distinfo multimedia/lxdvdrip/distinfo >--- /usr/ports/multimedia/lxdvdrip/distinfo Sat Jan 29 16:00:19 2005 >+++ multimedia/lxdvdrip/distinfo Sat Jun 25 08:48:35 2005 >@@ -1,2 +1,2 @@ >-MD5 (lxdvdrip-1.41-3.tgz) = bd325a8a4a5519a2146a2ca9ecfea3b3 >-SIZE (lxdvdrip-1.41-3.tgz) = 456578 >+MD5 (lxdvdrip-1.46.tgz) = 025fc4b3c1de1a716a579b90fd9bb1b6 >+SIZE (lxdvdrip-1.46.tgz) = 512236 >diff -Nru /usr/ports/multimedia/lxdvdrip/files/patch-lxdvdrip.c multimedia/lxdvdrip/files/patch-lxdvdrip.c >--- /usr/ports/multimedia/lxdvdrip/files/patch-lxdvdrip.c Sat Jan 29 16:00:20 2005 >+++ multimedia/lxdvdrip/files/patch-lxdvdrip.c Thu Jan 1 01:00:00 1970 >@@ -1,94 +0,0 @@ >---- lxdvdrip.c.orig Wed Jan 12 23:31:49 2005 >-+++ lxdvdrip.c Wed Jan 26 21:31:51 2005 >-@@ -229,6 +229,11 @@ >- #include <string.h> >- #include <sys/stat.h> >- #include <sys/types.h> >-+#include <sys/param.h> >-+#include <sys/mount.h> >-+#ifndef __FreeBSD__ >-+#include <sys/statfs.h> >-+#endif >- #include <stdio.h> >- #include <stdlib.h> >- #include <unistd.h> >-@@ -621,16 +626,19 @@ >- // Gibt die Groesse einer Datei zurueck, ohne die stat Beschraenkung auf < 2 GB >- long long filesize64 (char * szFileName) >- { >-+#ifdef __FreeBSD__ >-+ struct stat buf; >-+ >-+ if (stat(szFileName, &buf) < 0) >-+ return 0LL; >-+ >-+ return buf.st_size; >-+#else >- FILE * fp; >- long long lSize; >- char szBuffer[128]; >- char szTempl[32] = "/tmp/groesse.lxdvdrip"; >--// FreeBSD hat fopen64 als Standard >--#ifdef _FREEBSD >-- fp = (FILE*)fopen (szFileName, "rb"); >--#else >- fp = (FILE*)fopen64 (szFileName, "rb"); >--#endif >- if (!fp) >- { >- return (long long)0; >-@@ -644,39 +652,28 @@ >- system ("rm /tmp/groesse.lxdvdrip"); >- lSize = atoll (szBuffer); >- return lSize; >-+#endif >- } >- >- // Berechnet freien Festplattenplatz >- long long calculate_discfree (char * szPfad, long lSprache) >- { >-- char szTempl[32] = "/tmp/lxdf.lxdvdrip"; >-- char szBefehl[1024]; >-+ struct statfs buf; >- long long lGroesse=0; >-- sprintf (szBefehl, "stat -f %s -c ", szPfad); >-- strcat (szBefehl, "'%a %s' > "); >-- strcat (szBefehl, szTempl); >-- if (system (szBefehl) == 0) >-+ >-+ if (statfs(szPfad, &buf) < 0) >-+ return 0; >-+ >-+ lGroesse = buf.f_bavail*buf.f_bsize; >-+ >-+ switch (lSprache) >- { >-- FILE * fTmp; >-- long long lFrei; >-- long long lBlockGroesse; >-- fTmp = fopen(szTempl,"r"); >-- if (fTmp) >-- { >-- fscanf (fTmp, "%lld %lld", &lFrei, &lBlockGroesse); >-- fclose (fTmp); >-- lGroesse = lFrei * lBlockGroesse; >-- } >-- system ("rm /tmp/lxdf.lxdvdrip"); >-- switch (lSprache) >-- { >-- case 0: printf ("Frei in %s: %lld Bytes\n", szPfad, lGroesse); >-- break; >-- case 1: printf ("Free in %s: %lld Bytes\n", szPfad, lGroesse); >-- break; >-- case 2: printf ("Espace libre sur %s: %lld octets\n", szPfad, lGroesse); >-- break; >-- } >-+ case 0: printf ("Frei in %s: %lld Bytes\n", szPfad, lGroesse); >-+ break; >-+ case 1: printf ("Free in %s: %lld Bytes\n", szPfad, lGroesse); >-+ break; >-+ case 2: printf ("Espace libre sur %s: %lld octets\n", szPfad, lGroesse); >-+ break; >- } >- return lGroesse; >- } >diff -Nru /usr/ports/multimedia/lxdvdrip/pkg-plist multimedia/lxdvdrip/pkg-plist >--- /usr/ports/multimedia/lxdvdrip/pkg-plist Sat Jan 29 16:00:19 2005 >+++ multimedia/lxdvdrip/pkg-plist Sun Jul 3 11:00:00 2005 >@@ -1,4 +1,5 @@ > bin/lxdvdrip >+bin/lxac3scan > etc/lxdvdrip.conf.DE > etc/lxdvdrip.conf.EN > etc/lxdvdrip.conf.FR
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 82917
: 54810 |
54811