Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (51 sloc) 2.12 KB
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
name file
version 5.38
checksums rmd160 dbd032c805572d82f90d982ccd8fa3c5de8b9f55 \
sha256 593c2ffc2ab349c5aea0f55fedfe4d681737b6b62376a9b3ad1e77b2cc19fa34 \
size 932528
categories sysutils
license BSD
maintainers {ryandesign @ryandesign} openmaintainer
description File - determine file type
long_description \
File tests each argument in an attempt to classify it. There are three \
sets of tests, performed in this order: filesystem tests, magic number \
tests, and language tests. The first test that succeeds causes the file \
type to be printed. \
For information on Mach-O binaries, it is suggested that one uses the command \
`otool -fv`.
platforms darwin
master_sites freebsd \
gentoo \${name}/ \${name}/ \${name}/
patchfiles \
configure.args --disable-silent-rules \
depends_lib port:zlib
use_autoreconf yes
autoreconf.args -fvi
if {${name} eq ${subport}} {
revision 0
depends_lib-append port:libmagic
destroot {
xinstall -W ${worksrcpath}/src/.libs file ${destroot}${prefix}/bin
xinstall -m 0644 -W ${worksrcpath}/doc file.1 ${destroot}${prefix}/share/man/man1
livecheck.type regex
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
} else {
livecheck.type none
subport libmagic {
revision 0
post-destroot {
delete ${destroot}${prefix}/bin/file ${destroot}${prefix}/share/man/man1/file.1
You can’t perform that action at this time.