summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-11-01 03:09:23 +0000
committerSteve Price <steve@FreeBSD.org>1999-11-01 03:09:23 +0000
commit9d286945bf36fe40911fbdf6f47769794e77e825 (patch)
tree9749f2caeed66ce69befb6c85dee7c12d21d04cd /sysutils
parentInitial import of gpart version 0.1e. (diff)
Initial import of guiTAR version 0.1.4.
A gtk+/GNOME frontend to tar, gzip, bzip2, slp, rar, lha, arj, and zip. PR: 13136 Submitted by: Dominik Brettnacher <domi@saargate.de>
Notes
Notes: svn path=/head/; revision=22801
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/guitar/Makefile35
-rw-r--r--sysutils/guitar/distinfo1
-rw-r--r--sysutils/guitar/files/patch-aa11
-rw-r--r--sysutils/guitar/pkg-comment1
-rw-r--r--sysutils/guitar/pkg-descr15
-rw-r--r--sysutils/guitar/pkg-plist2
-rw-r--r--sysutils/guitar/scripts/bsdtar2gnutar44
7 files changed, 109 insertions, 0 deletions
diff --git a/sysutils/guitar/Makefile b/sysutils/guitar/Makefile
new file mode 100644
index 000000000000..cae8000c470e
--- /dev/null
+++ b/sysutils/guitar/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: guiTAR
+# Version required: 0.1.4
+# Date created: Sat Aug 14 1999
+# Whom: domi@saargate.de
+#
+# $Id$
+#
+
+DISTNAME= guiTAR-0.1.4
+CATEGORIES= sysutils
+MASTER_SITES= http://disq.bir.net.tr/guitar/ \
+ http://artemis.efes.net/disq/guitar/
+
+MAINTAINER= domi@saargate.de
+
+LIB_DEPENDS= gtk12.3:${PORTSDIR}/x11-toolkits/gtk12
+
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+GNU_CONFIGURE= yes
+
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+CONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}"
+
+.if defined(NO_GNOME)
+CONFIGURE_ARGS += --disable-gnome
+.else
+LIB_DEPENDS= gnome.3:${PORTSDIR}/x11/gnomelibs
+.endif
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/src/guitar ${PREFIX}/bin
+ @ ${INSTALL_SCRIPT} ${SCRIPTDIR}/bsdtar2gnutar ${PREFIX}/bin
+
+.include <bsd.port.mk>
diff --git a/sysutils/guitar/distinfo b/sysutils/guitar/distinfo
new file mode 100644
index 000000000000..87f30ceded51
--- /dev/null
+++ b/sysutils/guitar/distinfo
@@ -0,0 +1 @@
+MD5 (guiTAR-0.1.4.tar.gz) = 386c1817faf3b9e7afbb8a6f285ba5f9
diff --git a/sysutils/guitar/files/patch-aa b/sysutils/guitar/files/patch-aa
new file mode 100644
index 000000000000..2a436dfd905a
--- /dev/null
+++ b/sysutils/guitar/files/patch-aa
@@ -0,0 +1,11 @@
+--- src/programs.c.orig Sat Aug 14 11:32:24 1999
++++ src/programs.c Sat Aug 14 11:38:08 1999
+@@ -1167,7 +1167,7 @@
+ {
+ f=fopen(tmp1,"w");
+ fprintf(f,"#!/bin/sh\n");
+- fprintf(f,"%s tar vtf %s >%s 2>%s",pipe,fn,tmp2,tmp3);
++ fprintf(f,"%s tar vtf %s |bsdtar2gnutar >%s 2>%s",pipe,fn,tmp2,tmp3);
+ fclose(f);
+
+ chmod(tmp1,S_IRUSR | S_IWUSR | S_IXUSR);
diff --git a/sysutils/guitar/pkg-comment b/sysutils/guitar/pkg-comment
new file mode 100644
index 000000000000..02020fb709b2
--- /dev/null
+++ b/sysutils/guitar/pkg-comment
@@ -0,0 +1 @@
+A gtk+/GNOME frontend to tar, gzip, bzip2, slp, rar, lha, arj and zip
diff --git a/sysutils/guitar/pkg-descr b/sysutils/guitar/pkg-descr
new file mode 100644
index 000000000000..98167caa669a
--- /dev/null
+++ b/sysutils/guitar/pkg-descr
@@ -0,0 +1,15 @@
+guiTAR is a generic archive tool, written in GTK+/Gnome, supporting plain
+tarballs, tar.gz, tar.bz2, slp, zip, lzh, arj, and rar format.
+
+Some features currently implemented:
+
+ Get a list of files inside an archive
+ View one or more files inside an archive (at the same time)
+ Create an archive
+ Add a file into an archive
+ Delete a file from an archive
+ Extract one or more files inside an archive to a selected directory
+ Multiple document interface
+
+WWW: http://disq.bir.net.tr/guitar/
+Mirror: http://artemis.efes.net/disq/guitar/
diff --git a/sysutils/guitar/pkg-plist b/sysutils/guitar/pkg-plist
new file mode 100644
index 000000000000..0076dcc5c949
--- /dev/null
+++ b/sysutils/guitar/pkg-plist
@@ -0,0 +1,2 @@
+bin/guitar
+bin/bsdtar2gnutar
diff --git a/sysutils/guitar/scripts/bsdtar2gnutar b/sysutils/guitar/scripts/bsdtar2gnutar
new file mode 100644
index 000000000000..cceb658c4790
--- /dev/null
+++ b/sysutils/guitar/scripts/bsdtar2gnutar
@@ -0,0 +1,44 @@
+#!/usr/bin/perl
+# converts output of BSD tar(1) into GNU tar compatible format
+# tries to support localization
+# bug reports are welcome!
+
+# Version 0.01 26.07.1999 Dominik Brettnacher <domi@saargate.de>
+
+# we need POSIX::strftime to find out the national abbreviations for
+# month names (used by BSD tar)
+use POSIX qw(strftime);
+for(0..11)
+{
+ $Month{POSIX::strftime("%b", 0, 0, 0, 1, $_, 0)} = $_ + 1;
+}
+
+while(<>)
+{
+ m/^(.*) (.{6}) ([0-9 ]{2}:\d{2}) (\d{4}) (.*)/ || die "regular expression did not match, please report";
+
+ ($day,$month) = month_or_mday_first($2);
+
+ printf("%s %i-%02i-%02i %s %s\n",$1,$4,$Month{$month},$day,$3,$5);
+}
+
+# BSD tar uses a quite "different" way to output the date, roughly:
+# $date = strftime("%c", ...);
+# $date = substr($date,4,12) . " " . substr($date,20,4);
+# as it uses localization, we must try to find out whether mday is printed
+# before or after the month name itself. this seems to be a solution:
+sub month_or_mday_first
+{
+ if($_[0] =~ m/([0-9 ]{2}) (.{3})/)
+ {
+ return ($1, $2);
+ }
+ elsif($_[0] =~ m/(.{3}) ([0-9 ]{2})/)
+ {
+ return ($2, $1);
+ }
+ else
+ {
+ die "invalid date format $_[0]";
+ }
+}