diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2010-07-11 01:14:57 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2010-07-11 01:14:57 +0800 |
commit | 762043450fba5e3ebdba0dbf1d2b21c3ce625497 (patch) | |
tree | 36cb64bd3d9b9a0c74078cbaa4128687d235124d /archivers/deb2targz | |
parent | fe824e44313aa53171cdcad239d7d0b5ebb1dde2 (diff) | |
download | freebsd-ports-gnome-762043450fba5e3ebdba0dbf1d2b21c3ce625497.tar.gz freebsd-ports-gnome-762043450fba5e3ebdba0dbf1d2b21c3ce625497.tar.zst freebsd-ports-gnome-762043450fba5e3ebdba0dbf1d2b21c3ce625497.zip |
Update to 20100710. This update is actually a shell replacement of the original
perl script.
Benefits:
- perl is no longer required as a dependency
- other contents than data.tar.gz (data.tar, data.tar.bz2, data.tar.lzma,
data.tar.xz) is now properly dealt with
- deb package isn't sucked into memory anymore
Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>
Diffstat (limited to 'archivers/deb2targz')
-rw-r--r-- | archivers/deb2targz/Makefile | 14 | ||||
-rw-r--r-- | archivers/deb2targz/distinfo | 3 | ||||
-rw-r--r-- | archivers/deb2targz/files/deb2targz.sh | 25 | ||||
-rw-r--r-- | archivers/deb2targz/pkg-descr | 6 |
4 files changed, 32 insertions, 16 deletions
diff --git a/archivers/deb2targz/Makefile b/archivers/deb2targz/Makefile index 6e870d945294..eef88c7ae392 100644 --- a/archivers/deb2targz/Makefile +++ b/archivers/deb2targz/Makefile @@ -6,23 +6,19 @@ # PORTNAME= deb2targz -PORTVERSION= 20021217 -CATEGORIES= archivers perl5 -MASTER_SITES= CRITICAL +PORTVERSION= 20100710 +CATEGORIES= archivers +MASTER_SITES= # none +DISTFILES= # none MAINTAINER= ehaupt@FreeBSD.org COMMENT= A command-line utility for converting a Debian .deb file to a .tar.gz -USE_PERL5= yes NO_BUILD= yes PLIST_FILES= bin/deb2targz -post-patch: - @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' \ - ${WRKSRC}/${PORTNAME} - do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_SCRIPT} ${FILESDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} .include <bsd.port.mk> diff --git a/archivers/deb2targz/distinfo b/archivers/deb2targz/distinfo deleted file mode 100644 index a4b6f89c5d1b..000000000000 --- a/archivers/deb2targz/distinfo +++ /dev/null @@ -1,3 +0,0 @@ -MD5 (deb2targz-20021217.tar.gz) = faa652c6447bd04ebb89d5d23c54f9a3 -SHA256 (deb2targz-20021217.tar.gz) = 9b23a6489e3da14e1f634ad6695e9c982a550eb559c216ab8e2dec1883389749 -SIZE (deb2targz-20021217.tar.gz) = 1275 diff --git a/archivers/deb2targz/files/deb2targz.sh b/archivers/deb2targz/files/deb2targz.sh new file mode 100644 index 000000000000..5762f939c6d0 --- /dev/null +++ b/archivers/deb2targz/files/deb2targz.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PATH=/bin:/usr/bin + +[ $# -eq 0 ] && { + echo 1>&2 "Usage: ${0##*/} <deb-file> [<deb-file> ...]"; + exit 1; +} + +for i in "$@"; do + [ "${i##*.}" != "deb" ] && { + echo "${0##*/}: ignoring '$i' (not a .deb)"; + continue; + } + + for file in `tar tf "$i"`; do + [ "${file%%.*}" = "data" ] && { + tar xOf "${i}" "${file}" > "${i%%.deb}.${file#data.}" + } + done +done + diff --git a/archivers/deb2targz/pkg-descr b/archivers/deb2targz/pkg-descr index c0c99fe50996..f5e0a2645b1f 100644 --- a/archivers/deb2targz/pkg-descr +++ b/archivers/deb2targz/pkg-descr @@ -1,4 +1,2 @@ -deb2targz is a very small perl script for converting Debian Linux .deb packages -to a .tar.gz. deb2targz does not need any external programs like 'ar' or 'tar'. - -WWW: http://www.miketaylor.org.uk/tech/deb/ +deb2targz is a very small shell script for converting Debian Linux .deb packages +to a .tar.gz. |