mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
Resurrect security/cfv and remove optional dependency on
security/py-fchksum; the port works just fine without it. Feature safe: yes
This commit is contained in:
parent
aff1d05882
commit
e6cecb1d38
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=306850
32
security/cfv/Makefile
Normal file
32
security/cfv/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= cfv
|
||||
PORTVERSION= 1.18.3
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= SF
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Utility to both test and create .sfv, .csv, and md5sum files
|
||||
|
||||
USE_PYTHON= yes
|
||||
ALL_TARGET= cfv.wrapper
|
||||
INSTALL_TARGET= install-wrapper
|
||||
|
||||
MAN1= cfv.1
|
||||
|
||||
OPTIONS_DEFINE_i386= PSYCO
|
||||
PSYCO_DESC= Enable devel/py-psyco optimization support
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MPSYCO}
|
||||
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
|
||||
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-psyco-patch-Makefile
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
2
security/cfv/distinfo
Normal file
2
security/cfv/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (cfv-1.18.3.tar.gz) = ff28a8aa679932b83eb3b248ed2557c6da5860d5f8456ffe24686253a354cff6
|
||||
SIZE (cfv-1.18.3.tar.gz) = 68030
|
11
security/cfv/files/extra-psyco-patch-Makefile
Normal file
11
security/cfv/files/extra-psyco-patch-Makefile
Normal file
@ -0,0 +1,11 @@
|
||||
--- Makefile.orig 2009-03-05 21:47:26.000000000 -0300
|
||||
+++ Makefile 2009-03-05 21:51:11.000000000 -0300
|
||||
@@ -37,7 +37,7 @@
|
||||
#this will create a wrapper script that calls python directly (if we can find it), or using the bin/env trick.
|
||||
#we don't need to check for PYTHON being set to something, since os.path.join handles the case of the component being an absolute path
|
||||
cfv.wrapper:
|
||||
- $(PYTHON) -c 'import string,os; py=filter(lambda x: os.path.isfile(x),map(lambda x: os.path.join(x,"$(PYTHON)"),string.split(os.environ["PATH"],":"))); py.append(" /usr/bin/env $(PYTHON)"); open("cfv.wrapper","w").write("#!%s\nimport cfv\ncfv.main()\n"%py[0])'
|
||||
+ $(PYTHON) -c 'import string,os; py=filter(lambda x: os.path.isfile(x),map(lambda x: os.path.join(x,"$(PYTHON)"),string.split(os.environ["PATH"],":"))); py.append(" /usr/bin/env $(PYTHON)"); open("cfv.wrapper","w").write("#!%s\ntry:\n import psyco\n import re\n psyco.cannotcompile(re.compile)\n psyco.profile()\nexcept ImportError:\n pass\nimport cfv\ncfv.main()\n"%py[0])'
|
||||
|
||||
$(DESTDIR)$(mandir)/man1 $(DESTDIR)$(bindir):
|
||||
$(install_dir) $@
|
9
security/cfv/files/patch-Makefile
Normal file
9
security/cfv/files/patch-Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
--- Makefile.orig Fri Dec 7 17:01:19 2001
|
||||
+++ Makefile Fri Dec 7 17:01:56 2001
|
||||
@@ -1,5 +1,5 @@
|
||||
PYTHON=python
|
||||
-prefix=/usr/local
|
||||
+prefix=%%PREFIX%%
|
||||
exec_prefix=${prefix}
|
||||
|
||||
#finds the site-packages dir that matches the selected prefix, or if none do, falls back to wherever it can find one..
|
15
security/cfv/pkg-descr
Normal file
15
security/cfv/pkg-descr
Normal file
@ -0,0 +1,15 @@
|
||||
cfv is a utility to both test and create .sfv, .csv and md5sum files. These
|
||||
files are commonly used to ensure the correct retrieval or storage of data.
|
||||
|
||||
Features:
|
||||
- supports .sfv, .csv(2, 3, and 4 field variants), md5sum, bsd md5
|
||||
sha1sum, .torrent and (test-only) .par, .par2 file formats
|
||||
- automatic checksum file naming ability in create mode
|
||||
- recursive operation
|
||||
- show unverified files option
|
||||
- ignore case and fix path separator options for cross platform use
|
||||
- transparent gzip support for checksum files
|
||||
- configurable renaming of bad files (with testing against previous bad
|
||||
files, to save only unique differing copies)
|
||||
|
||||
WWW: http://cfv.sourceforge.net/
|
4
security/cfv/pkg-plist
Normal file
4
security/cfv/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/cfv
|
||||
%%PYTHON_SITELIBDIR%%/cfv.py
|
||||
%%PYTHON_SITELIBDIR%%/cfv.pyc
|
||||
%%PYTHON_SITELIBDIR%%/cfv.pyo
|
Loading…
Reference in New Issue
Block a user