From a3ef45bb2a872c62da7278546c5575dcb2ed11f3 Mon Sep 17 00:00:00 2001 From: heinz Date: Fri, 25 Nov 2005 01:48:02 +0000 Subject: Initial import of convmv-1.08. Convmv is meant to help convert a single filename, a directory tree and the contained files or a whole filesystem into a different encoding. It just converts the filenames, not the content of the files. A special feature of convmv is that it also converts the symlink target pointer in case the symlink target is being converted, too. --- converters/convmv/DESCR | 5 +++ converters/convmv/Makefile | 44 ++++++++++++++++++ converters/convmv/PLIST | 3 ++ converters/convmv/distinfo | 7 +++ converters/convmv/patches/patch-aa | 29 ++++++++++++ converters/convmv/patches/patch-ab | 91 ++++++++++++++++++++++++++++++++++++++ 6 files changed, 179 insertions(+) create mode 100644 converters/convmv/DESCR create mode 100644 converters/convmv/Makefile create mode 100644 converters/convmv/PLIST create mode 100644 converters/convmv/distinfo create mode 100644 converters/convmv/patches/patch-aa create mode 100644 converters/convmv/patches/patch-ab diff --git a/converters/convmv/DESCR b/converters/convmv/DESCR new file mode 100644 index 00000000000..63c004fbe78 --- /dev/null +++ b/converters/convmv/DESCR @@ -0,0 +1,5 @@ +Convmv is meant to help convert a single filename, a directory tree and +the contained files or a whole filesystem into a different encoding. It +just converts the filenames, not the content of the files. A special +feature of convmv is that it also converts the symlink target pointer in +case the symlink target is being converted, too. diff --git a/converters/convmv/Makefile b/converters/convmv/Makefile new file mode 100644 index 00000000000..396e2fe9dae --- /dev/null +++ b/converters/convmv/Makefile @@ -0,0 +1,44 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/11/25 01:48:02 heinz Exp $ + +DISTNAME= convmv-1.08 +CATEGORIES= converters +MASTER_SITES= http://www.j3e.de/linux/convmv/ + +MAINTAINER= heinz@NetBSD.org +HOMEPAGE= http://j3e.de/linux/convmv/ +COMMENT= Converts filenames from one encoding to another + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +BUILD_DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils + +USE_LANGUAGES= # empty +USE_TOOLS+= perl:run + +MANCOMPRESSED= yes +NO_BUILD= yes + +# the test script needs the GNU versions +MAKE_ENV+= CONVMV_LS=${GNU_PROGRAM_PREFIX}ls \ + CONVMV_CP=${GNU_PROGRAM_PREFIX}cp + +MAKEFLAGS+= MANDIR=${PREFIX}/man \ + INSTALL_MAN_DIR=${INSTALL_MAN_DIR:Q} \ + INSTALL_SCRIPT_DIR=${INSTALL_SCRIPT_DIR:Q} \ + INSTALL_MAN=${INSTALL_MAN:Q} \ + INSTALL_SCRIPT=${INSTALL_SCRIPT:Q} + +REPLACE_PERL+= ${WRKSRC}/convmv + +SUBST_CLASSES+= convmv +SUBST_STAGE.convmv= pre-configure +SUBST_FILES.convmv= ${WRKSRC}/suite/dotests.sh +SUBST_SED.convmv= 1s|/bin/sh|${SH}| + +TEST_TARGET= test + +post-extract: + @# use option p to get the right permissions for symlinks + @cd ${WRKSRC} && ${TAR} -xpf testsuite.tar + +.include "../../mk/bsd.pkg.mk" diff --git a/converters/convmv/PLIST b/converters/convmv/PLIST new file mode 100644 index 00000000000..20cb4f42dce --- /dev/null +++ b/converters/convmv/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/25 01:48:02 heinz Exp $ +bin/convmv +man/man1/convmv.1 diff --git a/converters/convmv/distinfo b/converters/convmv/distinfo new file mode 100644 index 00000000000..bd71e209edc --- /dev/null +++ b/converters/convmv/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/11/25 01:48:02 heinz Exp $ + +SHA1 (convmv-1.08.tar.gz) = 02c90654a40fcab7369dac44c8a6678a4259c5d3 +RMD160 (convmv-1.08.tar.gz) = 99c7d56dd7eb243ec32474de97c748aa0c6fde25 +Size (convmv-1.08.tar.gz) = 20657 bytes +SHA1 (patch-aa) = 9f369bfffcaa4c62b2b9a96828fe25a5ce936e83 +SHA1 (patch-ab) = b62dafd008904e722929fbecff42ef8d48c0c2be diff --git a/converters/convmv/patches/patch-aa b/converters/convmv/patches/patch-aa new file mode 100644 index 00000000000..f8656c510c7 --- /dev/null +++ b/converters/convmv/patches/patch-aa @@ -0,0 +1,29 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/11/25 01:48:02 heinz Exp $ + +--- Makefile.orig Thu Jul 24 16:46:30 2003 ++++ Makefile +@@ -1,14 +1,18 @@ + DESTDIR= +-PREFIX=/usr/local +-MANDIR=$(PREFIX)/share/man ++PREFIX?=/usr/local ++MANDIR?=$(PREFIX)/share/man ++INSTALL_MAN_DIR?=mkdir -p ++INSTALL_SCRIPT_DIR?=mkdir -p ++INSTALL_MAN?=cp ++INSTALL_SCRIPT?=install -m 755 + + all: manpage + + install: all +- mkdir -p $(DESTDIR)$(MANDIR)/man1/ +- mkdir -p $(DESTDIR)$(PREFIX)/bin/ +- cp convmv.1.gz $(DESTDIR)$(MANDIR)/man1/ +- install -m 755 convmv $(DESTDIR)$(PREFIX)/bin/ ++ ${INSTALL_MAN_DIR} $(DESTDIR)$(MANDIR)/man1 ++ ${INSTALL_SCRIPT_DIR} $(DESTDIR)$(PREFIX)/bin ++ ${INSTALL_MAN} convmv.1.gz $(DESTDIR)$(MANDIR)/man1 ++ ${INSTALL_SCRIPT} convmv $(DESTDIR)$(PREFIX)/bin + + manpage: + pod2man --section 1 --center=" " convmv | gzip > convmv.1.gz diff --git a/converters/convmv/patches/patch-ab b/converters/convmv/patches/patch-ab new file mode 100644 index 00000000000..a462b883750 --- /dev/null +++ b/converters/convmv/patches/patch-ab @@ -0,0 +1,91 @@ +$NetBSD: patch-ab,v 1.1.1.1 2005/11/25 01:48:02 heinz Exp $ + +--- suite/dotests.sh.orig Sun Dec 14 05:56:54 2003 ++++ suite/dotests.sh +@@ -1,63 +1,72 @@ + #!/bin/sh +-for d in `ls -d test*` ; do cd $d ; ls -R -g -G --time-style=+ >../out-$d ; cd .. ; done ++ ++# make this overridable on non-GNU systems which may have those commands ++# as gls and gcp ++CONVMV_LS=${CONVMV_LS:-ls} ++CONVMV_CP=${CONVMV_CP:-cp} ++ ++# to get 0777 permissions for symlinks on non-Linux systems ++umask 0 ++ ++for d in `${CONVMV_LS} -d test*` ; do cd $d ; ${CONVMV_LS} -R -g -G --time-style=+ >../out-$d ; cd .. ; done + # + rm -rf test2 +-cp -a test test2 ++${CONVMV_CP} -a test test2 + ../convmv -f iso8859-15 -t utf8 --notest -r test2 + cd test2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + diff out-test out2 || { echo "smartness-test failed." ; exit 1; } + # + ../convmv -f iso8859-15 -t utf8 --notest -r --nosmart test2 + cd test2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + pwd + diff out-test-utf8 out2 || { echo "double-utf8 test failed." ; exit 1; } + # + ../convmv -f utf8 -t iso8859-15 --notest -r test2 + cd test2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + pwd + diff out-test out2 || { echo undo-double-utf8 test failed. ; exit 1; } + # + rm -r test2 +-cp -a test test2 ++${CONVMV_CP} -a test test2 + ../convmv -f utf8 -t iso8859-15 --notest -r test2 + cd test2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + diff out-test-iso8859-15 out2 || { echo iso8859-15-test failed. ; exit 1; } + # + rm -r test2 +-cp -a test test2 ++${CONVMV_CP} -a test test2 + ../convmv -f utf8 -t utf8 --nfd --notest -r test2 + cd test2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + diff out-test-nfd out2 || { echo nfd-test failed. ; exit 1; } + # + ../convmv -f utf8 -t utf8 --nfc --notest -r test2 + cd test2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + diff out-test out2 || { echo nfc-test failed. ; exit 1; } + # + rm -r test2 +-cp -a test-escaped test2 ++${CONVMV_CP} -a test-escaped test2 + ../convmv --unescape --notest -r test2 + cd test2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + diff out-test out2 || { echo escaped-test failed. ; exit 1; } + # + rm -r test2 +-cp -a test test2 ++${CONVMV_CP} -a test test2 + ../convmv --upper -f utf8 --notest -r test2 + cd TEST2 +-ls -R -g -G --time-style=+ >../out2 ++${CONVMV_LS} -R -g -G --time-style=+ >../out2 + cd .. + rm -r TEST2 + diff out-test-upper out2 || { echo upper-test failed. ; exit 1; } -- cgit v1.2.3