Commit graph

7 commits

Author SHA1 Message Date
Kurt Jaeger
006d036ae6 sysutils/bsdadminscripts: fix distviper
Adds a -H to all uses of find(1) in distviper so symlinks are handled
correctly

By default find(1) will not follow symlinks given on the command-line.
There are several places in distviper where find is used without
allowing for this.

In particular in the default mode, if PORTSDIR is a link and DISTDIR
isn't, then no distinfo files are found and all the distfiles are
deleted.

This can be fixed by either making sure that find is given directory
names that end in a "/" or with the -H option.

PR:		194567
Submitted by:	rwmaillists@googlemail.com
Approved by:	Carlos Jacobo Puga Medina <cpm@fbsd.es> (maintainer)
2014-11-07 22:53:13 +00:00
Rene Ladan
40771ce9fa sysutils/bsdadminscripts: fix scripts at runtime.
Previously, pkg_libchk, pkg_upgrade, and uma failed to run.
Bump PORTREVISION

PR:		193003
Submitted by:	Carlos Jacobo Puga Medina <cpm@fbsd.es>
Reviewed by:	marino
2014-08-26 18:57:57 +00:00
John Marino
fcb4da4e07 Stage sysutils/bsdadminscripts and assign maintainership to submitter
PR:		192979
Submitted by:	Carlos JPM
2014-08-25 08:58:15 +00:00
Lars Engels
173838519c - Make pkg_libchk work with ports-mgmt/pkg-devel
- Bump PORTREVISION

Approved by:	maintainer (implicit; discussed with ehaupt)
2013-06-27 08:32:59 +00:00
Emanuel Haupt
10fbaa934c Check WITH_PKGNG through /usr/share/mk/bsd.port.mk.
Discussed with:	bdrewery
Approved by:	maintainer (implicit)
2012-12-14 17:44:12 +00:00
Emanuel Haupt
a9bb4c65f8 Provide a patch to make pkg_libchk pkgng aware.
PR:		174387
Approved by:	Dominic Fandrey <kamikaze@bsdforen.de> (maintainer, implicit)
2012-12-14 14:38:15 +00:00
Eygene Ryabinkin
03ceb9d488 Allow pkg_libchk to work from non-CSH shells
/bin/sh does not set OSTYPE, so this variable is inherited from the
shell from which pkg_libchk is invoked.  From all standard shells in
the base system, only csh and tcsh do set this variable, so when
pkg_libchk is invoked from sh (that is not invoked from csh-like
shell), this variable will be empty.  Moreover, bash sets OSTYPE to
freebsdX.Y, so grepping on output of 'readelf -e' wont work either.

'uname -s' provides much more reliable way to get the name of the
operating system and all *BSD ELF ABI types inside readelf correspond
to the 'uname -s':
{{{
    case ELFOSABI_NETBSD:       return "UNIX - NetBSD";
    case ELFOSABI_FREEBSD:      return "UNIX - FreeBSD";
    case ELFOSABI_OPENBSD:      return "UNIX - OpenBSD";
}}}

PR: ports/158967
Approved-by: Dominic Fandrey <kamikaze@bsdforen.de> (maintainer), erwin (mentor)
Feature-safe: yes
2011-07-18 10:06:50 +00:00