From owner-freebsd-ports Sat Aug 14 5:12:35 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 212DC14C3B for ; Sat, 14 Aug 1999 05:12:32 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA19541; Sat, 14 Aug 1999 05:10:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from dominik.saargate.de (dominik.saargate.de [212.88.132.246]) by hub.freebsd.org (Postfix) with ESMTP id 3003414C2D for ; Sat, 14 Aug 1999 05:00:46 -0700 (PDT) (envelope-from domi@dominik.saargate.de) Received: (from domi@localhost) by dominik.saargate.de (8.9.3/8.9.3) id NAA26798; Sat, 14 Aug 1999 13:45:36 +0200 (CEST) (envelope-from domi) Message-Id: <199908141145.NAA26798@dominik.saargate.de> Date: Sat, 14 Aug 1999 13:45:36 +0200 (CEST) From: domi@saargate.de Reply-To: domi@saargate.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/13136: new port: guiTAR 0.1.4 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 13136 >Category: ports >Synopsis: new port: guiTAR 0.1.4 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Aug 14 05:10:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Dominik Brettnacher >Release: FreeBSD 3.2-STABLE i386 >Organization: >Environment: >Description: >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # guiTAR # guiTAR/pkg # guiTAR/pkg/DESCR # guiTAR/pkg/COMMENT # guiTAR/pkg/PLIST # guiTAR/scripts # guiTAR/scripts/bsdtar2gnutar # guiTAR/Makefile # guiTAR/files # guiTAR/files/md5 # guiTAR/patches # guiTAR/patches/patch-aa # echo c - guiTAR mkdir -p guiTAR > /dev/null 2>&1 echo c - guiTAR/pkg mkdir -p guiTAR/pkg > /dev/null 2>&1 echo x - guiTAR/pkg/DESCR sed 's/^X//' >guiTAR/pkg/DESCR << 'END-of-guiTAR/pkg/DESCR' XguiTAR is a generic archive tool, written in GTK+/Gnome, supporting plain tarballs, tar.gz, tar.bz2, slp, zip, Xlzh, arj, and rar format. X XSome features currently implemented: X X Get a list of files inside an archive X View one or more files inside an archive (at the same time) X Create an archive X Add a file into an archive X Delete a file from an archive X Extract one or more files inside an archive to a selected directory X Multiple document interface X XWWW: http://disq.bir.net.tr/guitar/ XMirror: http://artemis.efes.net/disq/guitar/ END-of-guiTAR/pkg/DESCR echo x - guiTAR/pkg/COMMENT sed 's/^X//' >guiTAR/pkg/COMMENT << 'END-of-guiTAR/pkg/COMMENT' Xa gtk+/GNOME frontend to tar, gzip, bzip2, slp, rar, lha, arj and zip END-of-guiTAR/pkg/COMMENT echo x - guiTAR/pkg/PLIST sed 's/^X//' >guiTAR/pkg/PLIST << 'END-of-guiTAR/pkg/PLIST' Xbin/guitar Xbin/bsdtar2gnutar END-of-guiTAR/pkg/PLIST echo c - guiTAR/scripts mkdir -p guiTAR/scripts > /dev/null 2>&1 echo x - guiTAR/scripts/bsdtar2gnutar sed 's/^X//' >guiTAR/scripts/bsdtar2gnutar << 'END-of-guiTAR/scripts/bsdtar2gnutar' X#!/usr/bin/perl X# converts output of BSD tar(1) into GNU tar compatible format X# tries to support localization X# bug reports are welcome! X X# Version 0.01 26.07.1999 Dominik Brettnacher X X# we need POSIX::strftime to find out the national abbreviations for X# month names (used by BSD tar) Xuse POSIX qw(strftime); Xfor(0..11) X{ X $Month{POSIX::strftime("%b", 0, 0, 0, 1, $_, 0)} = $_ + 1; X} X Xwhile(<>) X{ X m/^(.*) (.{6}) ([0-9 ]{2}:\d{2}) (\d{4}) (.*)/ || die "regular expression did not match, please report"; X X ($day,$month) = month_or_mday_first($2); X X printf("%s %i-%02i-%02i %s %s\n",$1,$4,$Month{$month},$day,$3,$5); X} X X# BSD tar uses a quite "different" way to output the date, roughly: X# $date = strftime("%c", ...); X# $date = substr($date,4,12) . " " . substr($date,20,4); X# as it uses localization, we must try to find out whether mday is printed X# before or after the month name itself. this seems to be a solution: Xsub month_or_mday_first X{ X if($_[0] =~ m/([0-9 ]{2}) (.{3})/) X { X return ($1, $2); X } X elsif($_[0] =~ m/(.{3}) ([0-9 ]{2})/) X { X return ($2, $1); X } X else X { X die "invalid date format $_[0]"; X } X} END-of-guiTAR/scripts/bsdtar2gnutar echo x - guiTAR/Makefile sed 's/^X//' >guiTAR/Makefile << 'END-of-guiTAR/Makefile' X# New ports collection makefile for: guiTAR X# Version required: 0.1.4 X# Date created: Sat Aug 14 1999 X# Whom: domi@saargate.de X# X# $Id$ X# X XDISTNAME= guiTAR-0.1.4 XCATEGORIES= security XMASTER_SITES= http://disq.bir.net.tr/guitar/ \ X http://artemis.efes.net/disq/guitar/ X XMAINTAINER= domi@saargate.de X XLIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 X XUSE_GMAKE= yes XUSE_X_PREFIX= yes XGNU_CONFIGURE= yes X XGTK_CONFIG?= ${X11BASE}/bin/gtk12-config XCONFIGURE_ENV= GTK_CONFIG="${GTK_CONFIG}" X Xfetch-depends: X.if defined(NO_GNOME) XCONFIGURE_ARGS += --disable-gnome X.else XLIB_DEPENDS= gnome.2:${PORTSDIR}/x11/gnomelibs X.endif X Xdo-install: X @ ${INSTALL_PROGRAM} ${WRKSRC}/src/guitar ${PREFIX}/bin X @ ${INSTALL_SCRIPT} ${SCRIPTDIR}/bsdtar2gnutar ${PREFIX}/bin X X.include END-of-guiTAR/Makefile echo c - guiTAR/files mkdir -p guiTAR/files > /dev/null 2>&1 echo x - guiTAR/files/md5 sed 's/^X//' >guiTAR/files/md5 << 'END-of-guiTAR/files/md5' XMD5 (guiTAR-0.1.4.tar.gz) = 386c1817faf3b9e7afbb8a6f285ba5f9 END-of-guiTAR/files/md5 echo c - guiTAR/patches mkdir -p guiTAR/patches > /dev/null 2>&1 echo x - guiTAR/patches/patch-aa sed 's/^X//' >guiTAR/patches/patch-aa << 'END-of-guiTAR/patches/patch-aa' X--- src/programs.c.orig Sat Aug 14 11:32:24 1999 X+++ src/programs.c Sat Aug 14 11:38:08 1999 X@@ -1167,7 +1167,7 @@ X { X f=fopen(tmp1,"w"); X fprintf(f,"#!/bin/sh\n"); X- fprintf(f,"%s tar vtf %s >%s 2>%s",pipe,fn,tmp2,tmp3); X+ fprintf(f,"%s tar vtf %s |bsdtar2gnutar >%s 2>%s",pipe,fn,tmp2,tmp3); X fclose(f); X X chmod(tmp1,S_IRUSR | S_IWUSR | S_IXUSR); END-of-guiTAR/patches/patch-aa exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message