Fixed compile error in fujiplay
authorMaurice van der Pot <griffon26@gentoo.org>
Sat, 8 Jan 2005 13:57:42 +0000 (13:57 +0000)
committerMaurice van der Pot <griffon26@gentoo.org>
Sat, 8 Jan 2005 13:57:42 +0000 (13:57 +0000)
app-misc/fujiplay/ChangeLog
app-misc/fujiplay/Manifest
app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch [new file with mode: 0644]
app-misc/fujiplay/fujiplay-1.33.ebuild
app-misc/fujiplay/metadata.xml [new file with mode: 0644]

index 1fb6bafe594200379fd81c11360d6d56460a8b6c..7290f9b14a465991313ad130e450cde9a6f4acf7 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-misc/fujiplay
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/fujiplay/ChangeLog,v 1.7 2005/01/01 15:02:52 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/fujiplay/ChangeLog,v 1.8 2005/01/08 13:57:42 griffon26 Exp $
+
+  08 Jan 2005; Maurice van der Pot <griffon26@gentoo.org> +metadata.xml,
+  +files/fujiplay-1.33-unterminated-strings.patch, fujiplay-1.33.ebuild:
+  Fix unterminated strings, closing bug #34931.
 
   07 Dec 2003; Martin Holzer <mholzer@gentoo.org> fujiplay-1.33.ebuild:
   digest update. Closes #34931.
index 37624f26694aeddd0de56ce7e7d146464b3baf4a..828cb4427beb79fc36e2f4776a05eb03c4ebf502 100644 (file)
@@ -1,3 +1,15 @@
-MD5 33e4de506bd70668ebcd0947d3cedf17 ChangeLog 521
-MD5 4ab1cc5d7161efed0102778cf9509773 fujiplay-1.33.ebuild 1016
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 8781cbf005c98c1320c7e7afc88d6df4 metadata.xml 307
+MD5 64618929aad7f9c6780ee7d382d2ff91 fujiplay-1.33.ebuild 1128
+MD5 8c27d29e3690fda6867bc1348aac92d7 ChangeLog 715
 MD5 ffd323c4305177a6b06eeb23eb59b8cc files/digest-fujiplay-1.33 56
+MD5 c7c94e811dfa5dc89f6dfb37935a2d29 files/fujiplay-1.33-unterminated-strings.patch 3118
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFB3+bfMGnpIbeahxwRAlQGAJ4lyakcfigHhmATLVovCspnwpbafgCgm3Dj
+uKO0YFe8v7PsBCEshBCQGzc=
+=MU97
+-----END PGP SIGNATURE-----
diff --git a/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch b/app-misc/fujiplay/files/fujiplay-1.33-unterminated-strings.patch
new file mode 100644 (file)
index 0000000..5fb87be
--- /dev/null
@@ -0,0 +1,75 @@
+--- fujiplay.c 1999-02-23 10:30:31.000000000 +0100
++++ fujiplay-fixed.c   2005-01-08 14:37:08.711951696 +0100
+@@ -759,40 +759,38 @@
+       return 1;
+ }
+ 
+-const char *Usage = "\
+-Usage: fujiplay [OPTIONS] PICTURES...          (download)
+-                          charge NUMBER        (recharge the flash)
+-                          shoot                (take picture)
+-                          preview              (preview to standard output)
+-                          upload FILES...
+-                          delete FILES...
+-                          setid STRING         (set camera ID)
+-                          setflash MODE        (0=Off, 1=On, 2=Strobe, 3=Auto)
+-                          setdate gmt|local|YYYYMMDDHHMMSS
+-Options:
+-  -B NUMBER   Set baudrate (115200, 57600, 38400, 19200, 9600 or 0)
+-  -D DEVICE   Select another device file (default is /dev/fujifilm)
+-  -L          List command set
+-  -7          DS-7 compatibility mode (experimental)
+-  -d          Delete pictures after successful download
+-  -f          Force (overwrite existing files)
+-  -p          Assume picture numbers instead of frame numbers
+-  -h          Display this help message
+-  -v          Version information
+-Pictures:
+-  all         All pictures
+-  last                Last picture
+-  4           Only picture 4
+-  2-10                Pictures between 2 and 10
+-Files:
+-  DSCxxxxx.JPG        Files to delete or to upload into the camera
+-";
+-
+-const char *Copyright = "\
+-Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $
+-Written by Thierry Bousch <bousch@topo.math.u-psud.fr>
+-Public domain. Absolutely no warranty.
+-";
++const char *Usage =
++"Usage: fujiplay [OPTIONS] PICTURES...          (download)\n"
++"                          charge NUMBER        (recharge the flash)\n"
++"                          shoot                (take picture)\n"
++"                          preview              (preview to standard output)\n"
++"                          upload FILES...\n"
++"                          delete FILES...\n"
++"                          setid STRING         (set camera ID)\n"
++"                          setflash MODE        (0=Off, 1=On, 2=Strobe, 3=Auto)\n"
++"                          setdate gmt|local|YYYYMMDDHHMMSS\n"
++"Options:\n"
++"  -B NUMBER  Set baudrate (115200, 57600, 38400, 19200, 9600 or 0)\n"
++"  -D DEVICE  Select another device file (default is /dev/fujifilm)\n"
++"  -L         List command set\n"
++"  -7         DS-7 compatibility mode (experimental)\n"
++"  -d         Delete pictures after successful download\n"
++"  -f         Force (overwrite existing files)\n"
++"  -p         Assume picture numbers instead of frame numbers\n"
++"  -h         Display this help message\n"
++"  -v         Version information\n"
++"Pictures:\n"
++"  all                All pictures\n"
++"  last               Last picture\n"
++"  4          Only picture 4\n"
++"  2-10               Pictures between 2 and 10\n"
++"Files:\n"
++"  DSCxxxxx.JPG       Files to delete or to upload into the camera\n";
++
++const char *Copyright =
++"Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $\n"
++"Written by Thierry Bousch <bousch@topo.math.u-psud.fr>\n"
++"Public domain. Absolutely no warranty.\n";
+ 
+ static void sigint_handler (int sig)
+ {
index 7e0925430fdcbc009954e9c0949d4f1da169bc2b..44d97aeccd92d4865a414152d15a71925e4e3c42 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/fujiplay/fujiplay-1.33.ebuild,v 1.10 2005/01/01 15:02:52 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/fujiplay/fujiplay-1.33.ebuild,v 1.11 2005/01/08 13:57:42 griffon26 Exp $
+
+inherit eutils
 
 DESCRIPTION="Utility for Fujifilm/Leica digital cameras (via serial port)"
 HOMEPAGE="http://topo.math.u-psud.fr/~bousch/fujiplay.html"
@@ -16,6 +18,12 @@ RDEPEND=""
 
 S=${WORKDIR}
 
+src_unpack() {
+       unpack ${PN}.tgz
+       cd ${S}
+       epatch ${FILESDIR}/${P}-unterminated-strings.patch
+}
+
 src_compile() {
        emake || die
 }
diff --git a/app-misc/fujiplay/metadata.xml b/app-misc/fujiplay/metadata.xml
new file mode 100644 (file)
index 0000000..18ef3d4
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+  <email>bug-wranglers@gentoo.org</email>
+  <description>This package lacks a primary herd or maintainer.</description>
+</maintainer>
+</pkgmetadata>