From pst@jnx.com  Tue Apr 29 10:14:05 1997
Received: from red.jnx.com (red.jnx.com [208.197.169.254])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA26604;
          Tue, 29 Apr 1997 10:13:59 -0700 (PDT)
Received: from base.jnx.com (base.jnx.com [208.197.169.238])
	by red.jnx.com (8.8.5/8.8.5) with ESMTP id KAA08558;
	Tue, 29 Apr 1997 10:13:28 -0700 (PDT)
Received: (from pst@localhost) by base.jnx.com (8.8.5/8.7.3) id KAA17508; Tue, 29 Apr 1997 10:13:28 -0700 (PDT)
Message-Id: <199704291713.KAA17508@base.jnx.com>
Date: Tue, 29 Apr 1997 10:13:28 -0700 (PDT)
From: Paul Traina <pst@jnx.com>
Reply-To: pst@jnx.com
To: FreeBSD-gnats-submit@freebsd.org
Cc: jkh@freebsd.org
Subject: pkg_create doesn't always create gzip'ed tarball
X-Send-Pr-Version: 3.2

>Number:         3418
>Category:       bin
>Synopsis:       pkg_create doesn't always create gzip'ed tarball
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jkh
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 29 10:20:01 PDT 1997
>Closed-Date:    Mon Sep 7 20:08:03 PDT 1998
>Last-Modified:  Mon Sep  7 20:15:08 PDT 1998
>Originator:     Paul Traina
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
Juniper Networks
>Environment:

>Description:

If I create a package with the name foo-beta-1.0 using the pkg_add
command:

	pkg_create -v -f pkg/PLIST -c pkg/COMMENT -d pkg/DESC \
		foo-beta_1.0

I end up with a file called "foo-beta_1.0" that is in .tar format,
even though I get the message "creating gzip'ed tarball in ...".

If I do the same command, with a different name:

	pkg_create -v -f pkg/PLIST -c pkg/COMMENT -d pkg/DESC \
		foo-beta_1_0

a file called foo-beta_1_0.tgz is created which /is/ a gzipped tarball.

My half-assed guess w/o looking at the source code is that someone's
trying to do some suffix stripping.

>How-To-Repeat:

	

>Fix:


Fix the man pages to document that files must end in .tar or .tgz

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Wed Aug 12 01:23:00 PDT 1998 
Responsible-Changed-Why:  
Jordans area. 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Mon Sep 7 20:08:03 PDT 1998 
State-Changed-Why:  
Your half-assed guess (in the bug report) was correct. :) 
Fixed. 
>Unformatted:
