# $Id: Portfile 109336 2013-08-13 16:00:48Z raimue@macports.org $

PortSystem          1.0

name                debianutils
version             4.4
categories          sysutils
platforms           darwin
license             GPL-2+
maintainers         raimue \
                    openmaintainer
description         Miscellaneous utilities from Debian
long_description \
    ${name} is a collection of miscellaneous utilities developed by the Debian \
    project for their Linux distribution. This port provides the utilities \
    run-parts and tempfile.

# There are other tools provided by upstream, but they have been excluded from
# this port for the following reasons:
#   add-shell, remove-shell  Helper tool for debian packages
#   installkernel            Only useful for building Linux kernel
#   ischroot                 Does not work on Mac OS X
#   savelog                  Excluded due to unknown SMAIL GENERAL PUBLIC LICENSE,
#                            see http://packages.debian.org/changelogs/pool/main/d/debianutils/current/debianutils.copyright
#   which                    Unnecessary, /usr/bin/which is provided by the operating system

homepage            http://packages.qa.debian.org/d/debianutils.html
master_sites        debian:d/debianutils
distname            ${name}_${version}
worksrcdir          ${name}-${version}

checksums           rmd160  eea7bf4ae504e87745ce1a2362f9268cbb61de4a \
                    sha256  190850cdd6b5302e0a1ba1aaed1bc7074d67d3bd8d04c613f242f7145afa53a6

build.target run-parts tempfile

destroot {
    xinstall -W ${worksrcpath} run-parts   ${destroot}${prefix}/sbin
    xinstall -W ${worksrcpath} run-parts.8 ${destroot}${prefix}/share/man/man8
    xinstall -W ${worksrcpath} tempfile    ${destroot}${prefix}/bin
    xinstall -W ${worksrcpath} tempfile.1  ${destroot}${prefix}/share/man/man1
}

livecheck.type  regex
livecheck.regex ${name}_(\\d+(?:.\\d+)+).dsc
