debian/0000755000000000000000000000000011616447201007170 5ustar debian/watch0000644000000000000000000000011411616445667010233 0ustar version=3 http://zakalwe.fi/~shd/foss/cksfv/files/cksfv-([0-9.]+)\.tar\.gz debian/compat0000644000000000000000000000000211616445667010404 0ustar 5 debian/rules0000755000000000000000000000060211616445667010264 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/buildcore.mk common-configure-arch:: Makefile common-build-arch:: src/cksfv Makefile: ./configure --prefix=$(CURDIR)/debian/cksfv/usr src/cksfv: $(MAKE) common-install-arch:: $(MAKE) install clean:: [ ! -f Makefile ] || $(MAKE) clean dh_clean Makefile src/Makefile src/config.h debian/patches/0000755000000000000000000000000011616446274010630 5ustar debian/patches/612741.patch0000644000000000000000000000164111616446245012415 0ustar --- cksfv-1.3.14.orig/cksfv.1 +++ cksfv-1.3.14/cksfv.1 @@ -52,8 +52,9 @@ .B \-f file Verify checksums in the sfv file .TP -.B \-g path -Go to the path name directory and verify checksums in the sfv file +.B \-g file +Change current directory to the path name of the file and verify checksums +in the sfv. .TP .B \-i Ignore case in filenames. This is used in the checksum verification mode. --- cksfv-1.3.14.orig/src/readsfv.c +++ cksfv-1.3.14/src/readsfv.c @@ -84,6 +84,18 @@ fprintf(stderr, "cksfv: %s: %s\n", fn, strerror(errno)); return 1; } + if (fstat(fileno(fd), &st)) { + if (!TOTALLY_QUIET) + fprintf(stderr, "cksfv: can not fstat %s: %s\n", fn, strerror(errno)); + fclose(fd); + return 1; + } + if (S_ISDIR(st.st_mode)) { + if (!TOTALLY_QUIET) + fprintf(stderr, "cksfv: %s: Is a directory\n", fn); + fclose(fd); + return 1; + } if (chdir(dir) != 0) { if (!TOTALLY_QUIET) debian/patches/series0000644000000000000000000000001511616446274012041 0ustar 612741.patch debian/examples0000644000000000000000000000002211616445667010741 0ustar scripts/CheckSFV debian/control0000644000000000000000000000123211616447201010571 0ustar Source: cksfv Section: utils Priority: optional Maintainer: Sebastien NOEL DM-Upload-Allowed: yes Homepage: http://zakalwe.fi/~shd/foss/cksfv/ Build-Depends: cdbs, debhelper (>> 5) Standards-Version: 3.9.2 Package: cksfv Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: sfv checker and generator SFV, Simple File Verification, uses crc32 checksums to verify that files are intact. cksfv automates the task of generating and checking .sfv sheets. For integrity, md5 checksums are probably a better alternative, but sfv is a widely used method for verification on the USENET binary newsgroups and other places. debian/copyright0000644000000000000000000000470411616445667011146 0ustar This package was debianized by Stefan Alfredsson stefan@alfredsson.org on Thu, 15 Jun 2000 11:24:13 +0200. The current Debian maintainer is Sebastien NOEL It was downloaded from http://zakalwe.fi/~shd/foss/cksfv/ Copyright (C) 2000-2001 Bryan Call 2004-2009 Heikki Orsila 1997 Todd C. Miller License (except win32/basename.c): This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 License (win32/basename.c): Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/changelog0000644000000000000000000000415311616445733011055 0ustar cksfv (1.3.14-2) unstable; urgency=low * src/readsfv.c : check if the filename provided by the user is a directory (Closes: #612741) * cksfv.1 : clarify usage of "-g" * Switch to dpkg-source 3.0 (quilt) format -- Sebastien NOEL Thu, 04 Aug 2011 09:35:36 +0200 cksfv (1.3.14-1) unstable; urgency=low * New upstream release -- Sebastien NOEL Sun, 12 Apr 2009 18:55:32 +0200 cksfv (1.3.13-1) unstable; urgency=low * New upstream release. * New Maintainer. * debian/rules: rewrite using cdbs. -- Sebastien NOEL Sun, 08 Feb 2009 11:01:21 +0100 cksfv (1.3.5-1) unstable; urgency=low * New upstream release * Due to the non-reachable developer, Heikki Orsila has taken over the development of cksfv. This new release is from his homepage at http://www.modeemi.fi/~shd/foss/cksfv/ (Closes: #320032) -- Stefan Alfredsson Wed, 3 Aug 2005 17:53:15 +0200 cksfv (1.3-3) unstable; urgency=low * Applied patch from Heikki Orsila to explicitly define 32 bit integers instead of assuming that longs are 32 bits (i.e. on AMD64, longs are 64-bit, which cause misbehaviour) (Closes: #145369, #245984). * Status messages are a bit more consistent, by reporting BAD for all cases where the status is not OK (Closes: #123656) -- Stefan Alfredsson Mon, 26 Apr 2004 18:12:50 +0200 cksfv (1.3-2) unstable; urgency=low * Months were one-off due to struct tm/tm_mon begins at 0, fixed. (closes: Bug#132356) * Changed maintainer email to my @debian.org address, to be consistent with the other packages maintained. -- Stefan Alfredsson Tue, 5 Feb 2002 00:03:28 +0100 cksfv (1.3-1) unstable; urgency=low * New upstream release * Checked that it conforms to the latest standard * ITP'd and uploaded (had been packaged privately before) -- Stefan Alfredsson Thu, 12 Jul 2001 14:46:20 +0200 cksfv (1.1-1) unstable; urgency=low * Initial release. -- Stefan Alfredsson Thu, 15 Jun 2000 11:24:13 +0200 debian/source/0000755000000000000000000000000011616445707010501 5ustar debian/source/format0000644000000000000000000000001411616445707011707 0ustar 3.0 (quilt)