diff options
author | xmj <xmj@FreeBSD.org> | 2014-04-15 04:14:01 +0800 |
---|---|---|
committer | xmj <xmj@FreeBSD.org> | 2014-04-15 04:14:01 +0800 |
commit | 9e99cdee664aa056e41a45439deccd00b6d5ccdf (patch) | |
tree | 7094efbd4f2be318c4bc3113c3be4365205045bb /security/cfv | |
parent | 369495c5e556e4cc6567e3c039c7c4873fa2649e (diff) | |
download | freebsd-ports-gnome-9e99cdee664aa056e41a45439deccd00b6d5ccdf.tar.gz freebsd-ports-gnome-9e99cdee664aa056e41a45439deccd00b6d5ccdf.tar.zst freebsd-ports-gnome-9e99cdee664aa056e41a45439deccd00b6d5ccdf.zip |
security/cfv: Resurrection, stage, assign maintainer
- Resurrection
- Assign maintainer to matthew@reztek.cz
- Stagify
PR: ports/188584
PR: ports/188564
Submitted by: Matthew Rezny
Approved by: swills (mentor)
Diffstat (limited to 'security/cfv')
-rw-r--r-- | security/cfv/Makefile | 21 | ||||
-rw-r--r-- | security/cfv/distinfo | 2 | ||||
-rw-r--r-- | security/cfv/files/patch-Makefile | 37 | ||||
-rw-r--r-- | security/cfv/pkg-descr | 15 | ||||
-rw-r--r-- | security/cfv/pkg-plist | 5 |
5 files changed, 80 insertions, 0 deletions
diff --git a/security/cfv/Makefile b/security/cfv/Makefile new file mode 100644 index 000000000000..8e0713a4ffdd --- /dev/null +++ b/security/cfv/Makefile @@ -0,0 +1,21 @@ +# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= cfv +PORTVERSION= 1.18.3 +CATEGORIES= security +MASTER_SITES= SF + +MAINTAINER= matthew@reztek.cz +COMMENT= Utility to both test and create .sfv, .csv, and md5sum files + +USE_PYTHON= 2 +ALL_TARGET= cfv.wrapper +INSTALL_TARGET= install-wrapper +MAKE_ARGS= PYTHON=${PYTHON_CMD} + +post-patch: + @${REINPLACE_CMD} -e "s,%%SITELIBDIR%%,${PYTHON_SITELIBDIR},g" \ + -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile + +.include <bsd.port.mk> diff --git a/security/cfv/distinfo b/security/cfv/distinfo new file mode 100644 index 000000000000..efc8e7a00caa --- /dev/null +++ b/security/cfv/distinfo @@ -0,0 +1,2 @@ +SHA256 (cfv-1.18.3.tar.gz) = ff28a8aa679932b83eb3b248ed2557c6da5860d5f8456ffe24686253a354cff6 +SIZE (cfv-1.18.3.tar.gz) = 68030 diff --git a/security/cfv/files/patch-Makefile b/security/cfv/files/patch-Makefile new file mode 100644 index 000000000000..722613d5812d --- /dev/null +++ b/security/cfv/files/patch-Makefile @@ -0,0 +1,37 @@ +--- Makefile.orig Fri Dec 7 17:01:19 2001 ++++ Makefile Fri Dec 7 17:01:56 2001 +@@ -1,10 +1,7 @@ + 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.. +-pkgdir=`$(PYTHON) -c 'import sys,re; x=filter(lambda x: re.match("$(prefix).*site-packages",x),sys.path); y=filter(lambda y: re.search("site-packages",y),sys.path); x.sort(lambda x,y: cmp(len(x),len(y))); y.sort(lambda x,y: cmp(len(x),len(y))); x.extend(y); print x[0]'` +-#nice little expression, huh? ;) ++pkgdir=%%SITELIBDIR%% + + bindir=${exec_prefix}/bin + mandir=${prefix}/man +@@ -39,16 +36,16 @@ + 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])' + +-$(DESTDIR)$(mandir)/man1 $(DESTDIR)$(bindir): ++$(DESTDIR)$(mandir)/man1 $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdir): + $(install_dir) $@ + +-install-wrapper-only: $(DESTDIR)$(bindir) cfv.wrapper install_man ++install-wrapper-only: $(DESTDIR)$(pkgdir) $(DESTDIR)$(bindir) cfv.wrapper + $(install_data) cfv $(DESTDIR)$(pkgdir)/cfv.py + $(install_script) cfv.wrapper $(DESTDIR)$(bindir)/cfv + +-install-wrapper: install-wrapper-only +- $(PYTHON) -c "import py_compile; py_compile.compile('$(DESTDIR)$(pkgdir)/cfv.py')" +- $(PYTHON) -O -c "import py_compile; py_compile.compile('$(DESTDIR)$(pkgdir)/cfv.py')" ++install-wrapper: install-wrapper-only install_man ++ $(PYTHON) -m compileall -d $(pkgdir) -l $(DESTDIR)$(pkgdir) ++ $(PYTHON) -O -m compileall -d $(pkgdir) -l $(DESTDIR)$(pkgdir) + + install: $(DESTDIR)$(bindir) install_man + $(install_script) cfv $(DESTDIR)$(bindir)/cfv diff --git a/security/cfv/pkg-descr b/security/cfv/pkg-descr new file mode 100644 index 000000000000..6fa67034f29c --- /dev/null +++ b/security/cfv/pkg-descr @@ -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/ diff --git a/security/cfv/pkg-plist b/security/cfv/pkg-plist new file mode 100644 index 000000000000..93bbea53d7b5 --- /dev/null +++ b/security/cfv/pkg-plist @@ -0,0 +1,5 @@ +bin/cfv +%%PYTHON_SITELIBDIR%%/cfv.py +%%PYTHON_SITELIBDIR%%/cfv.pyc +%%PYTHON_SITELIBDIR%%/cfv.pyo +man/man1/cfv.1.gz |