gentoo/net-mail/serialmail/serialmail-0.75-r5.ebuild
Petr Vaněk 36c14dffe1
net-mail/serialmail: update LICENSE
As of today, the http://cr.yp.to/distributors.html contains following
notice:

  2022.11.15: I hereby place the serialmail package (in particular,
  serialmail-0.75.tar.gz, with SHA-256 checksum
  1825c911087f28692c3441d4f95747201c520a22575ab3e6132b5c14097038f3) into
  the public domain. The package is no longer copyrighted.

Therefore, the package license is changed appropriately and mirror
and bindist restrictions are dropped.

Bug: https://bugs.gentoo.org/444424
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
2025-01-16 10:01:23 +01:00

59 lines
1.3 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="A serialmail is a collection of tools for passing mail across serial links"
HOMEPAGE="http://cr.yp.to/serialmail.html"
SRC_URI="http://cr.yp.to/software/${P}.tar.gz
mirror://gentoo/${P}-patch.tar.bz2"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="static"
RESTRICT="test"
BDEPEND="sys-apps/groff"
DEPEND=">=sys-apps/ucspi-tcp-0.88"
RDEPEND="
${DEPEND}
virtual/daemontools
"
PATCHES=(
"${WORKDIR}"/${P}-gentoo.patch
"${WORKDIR}"/${P}-smtpauth.patch
"${WORKDIR}"/${P}-smtpauth_comp.patch
"${FILESDIR}"/${P}-implicit.patch
"${FILESDIR}"/${PN}-0.75-respect-AR-RANLIB.patch
)
src_prepare() {
default
use static && LDFLAGS+="${LDFLAGS} -static"
echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die
echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die
}
src_compile() {
sed -i -e '/(man|doc)/d' hier.c || die
tc-export AR RANLIB
emake it man
}
src_install() {
dobin serialsmtp serialqmtp maildirsmtp maildirserial maildirqmtp
dodoc AUTOTURN CHANGES FROMISP SYSDEPS THANKS TOISP \
BLURB FILES INSTALL README TARGETS TODO VERSION
doman maildirqmtp.1 maildirserial.1 maildirsmtp.1 \
serialqmtp.1 serialsmtp.1
}