# upstream doesn't change the filename for revision changes
version ${up_version}-${up_revision}
# Contains some code under the "Frontier Artistic License", which is based on
# Artistic-1, which FSF considers to be GPL-incompatible
license GPL Artistic-1 Restrictive
homepage https://fex.belwue.de/saft/sendfile.html
description A saft suite for asynchronous transfers
long_description Sendfile is a SAFT implementation for UNIX and serves as a tool for \
asynchronous sending of files in the internet, conserving their file \
attributes. It consists of the following parts: \
sendfiled - the server daemon \
sendfile - a client for sending files \
sendmsg - a client for sending one-line text messages \
receive - a client for receiving spooled files
distname ${name}-${up_version}
dist_subdir ${name}/${version}
master_sites https://fex.belwue.de/download/
checksums rmd160 44f5cf03e02f1b620da12cccc62ece87f1a98873 \
sha256 d0b4305c38e635d67bb2e316ccaf1d3afde63e67b748a104582d0ce9cf7f2a8c \
patchfiles patch-makeconfig.diff patch-sendfiled.c.diff
pre-build { reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/makeconfig
reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/makeconfig
reinplace "s|/var/log|${prefix}/var/log|" ${worksrcpath}/makeconfig
reinplace "s|/opt/bin|${prefix}/bin|" ${worksrcpath}/etc/sendfile.cf
build.args config CC=${configure.cc} CFLAGS="${configure.cflags} [get_canonical_archflags cc] -D_FORTIFY_SOURCE=0"
post-build { reinplace "s|/var/spool|${prefix}/var/spool|" ${worksrcpath}/etc/sfconf
reinplace "s|/var/spool|${prefix}/var/spool|g" ${worksrcpath}/etc/sfdconf
reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/sfdconf
destroot.destdir ${destroot}${prefix}
destroot { xinstall -m 755 -v -W ${worksrcpath}/src \
sendfile sendmsg receive fetchfile utf7encode wlock \
xinstall -m 755 -v -W ${worksrcpath}/etc \
sfconf sfdconf check_sendfile \
xinstall -m 644 -v -W ${worksrcpath}/etc \
sendfile.cf sendfile.deny \
xinstall -m 644 -v -W ${worksrcpath}/doc \
sendmsg.1 sendfile.1 receive.1 fetchfile.1 utf7encode.1 wlock.1 \