# -*- 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                debianutils
version             5.23.2
categories          sysutils
license             GPL-2+
maintainers         {raimue @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            https://tracker.debian.org/pkg/debianutils
master_sites        debian:d/debianutils
distname            ${name}_${version}
worksrcdir          work
use_xz              yes

checksums           rmd160  6ea9ee976eb90470bd4e9d06008fa5632fa7864f \
                    sha256  79e524b7526dba2ec5c409d0ee52ebec135815cf5b2907375d444122e0594b69 \
                    size    82376

use_autoreconf      yes

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
