ports/113393: pkg_add should have a command line option synonmous with PACKAGESITE environment variable
Jo Rhett
jrhett at svcolo.com
Tue Jun 5 22:20:04 UTC 2007
>Number: 113393
>Category: ports
>Synopsis: pkg_add should have a command line option synonmous with PACKAGESITE environment variable
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Jun 05 22:20:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Jo Rhett
>Release: 6.2
>Organization:
Silicon Valley Colocation, Inc.
>Environment:
FreeBSD triceratops.netconsonance.com 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:41:06 UTC 2007 root at i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
On May 9, 2007, at 5:07 AM, Clement Laforet wrote:
pkg_add really needs a command line option instead of only using the
environment variables...
"pkg_add -r http://my.freebsd-repo.com/packages/All/my_packages-1.0.tbz"
works fine ;-)
The behavior is not identical. For example, this works only for a single package.
/usr/sbin/pkg_add -r http://my.location/packages/{pkgname}
This works for multiple packages:
export PACKAGESITE=http://my.location/packages/
/usr/sbin/pkg_add -r {pkgname} {pkgname2}
Also, the former will not resolve dependancies properly (it alters the path), whereas the latter will.
In short, they are not synonymous. A command line option which is synonymous with the environment variable would be very useful in scripts/cfengine/etc.
>How-To-Repeat:
Try to run a single command which installs multiple packages from a single location.
-or-
Have the named package need dependancies.
>Fix:
An option which has the exact same effect as PACKAGESITE environment variable would be very useful, and should be trivial to implement.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list