Fix file modes after extracting.
Some port's archives contains files modes that are a bit too restrictive
for some usage. For example:
BUILD_DEPENDS= ${NONEXISTENT}:foo/bar:configure
When building as a regular user, dependencies are installed/built as
root, so if the archive contains files that have a mode of, say, 600,
they will not be readable by the port requesting the dependency.
This will also fix broken distribution files where directories don't
have the executable bit on.
OSVERSION 1100077 is after base r283997:
Change directory permissions in pre-order.
In this order, it won't try to recurse into a directory for which it
doesn't have permission, before changing that permission.
This follows an existing behavior in other BSDs, linux, OS X.
PR: 213574
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight

MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight

- Correctly fix schg flag and make clean problem. It is ${WRKDIR}/var/empty
that has the flag set and that directory is not under ${WRKSRC}
PR: ports/114878
Submitted by: Scot Hetzel <swhetzel at gmail.com

Avoid clobbering ${ARCH} variable for amd64 which resulted in this port
being unfechable as a dependency of another port. Introduce instead
COMPAT4X_ARCH which is the same as ARCH except on amd64 where it is "i386"
and replace relevant occurances of ARCH with it.
This also unbreaks ".if ${ARCH} == amd64" comparison that comes after ARCH
was modified to "i386" before.
While here, avoid installing ldconfig/compat4x for amd64 which only needs
ldconfig32/compat4x.
Unfetchability hinted at by: pointyhat via kris

Update this port for FreeBSD 5.3. The new libraries are taken from
the compat4x distribution of 5.3-BETA7 (based in turn upon libraries
from 4.10), hosted in MASTER_SITE_LOCAL since that beta will soon
disappear from the ftp site.
Approved by: portmgr

Update to the latest library set and unmark FORBIDDEN excpet:
- On 5-CURRENT/alpha: still FORBIDDEN because no updated libc/libc_r
is available yet.
- By default, OpenSSL libraries are not installed because they are
known to be vulnerable. (cf. FreeBSD-SA-02:33.openssl) They are
installed only when FORCE_VULNERABLE_OPENSSL is defined, although
in that case the port is marked FORBIDDEN. So, one must specify
-DFORCE_VULNERABLE_OPENSSL -DNO_IGNORE to install this port with
vulnerable OpenSSL libraries.

Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command; the ECHO
macro is set to "echo" by default, but it is set to "true" if make(1) is
invoked with the -s option while ECHO_CMD is always set to the echo command.