blob: 40489f01df10c2d789c31553ce6dda08d6104f61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic
DESCRIPTION="Taylor UUCP"
HOMEPAGE="https://www.airs.com/ian/uucp.html"
SRC_URI="mirror://gnu/uucp/uucp-${PV}.tar.gz"
S="${WORKDIR}/uucp-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~ia64 ppc sparc x86"
PATCHES=(
"${FILESDIR}"/${P}-gentoo.patch
"${FILESDIR}"/${P}-fprintf.patch
"${FILESDIR}"/${P}-remove-extern.patch
)
src_prepare() {
default
mv configure.{in,ac} || die
sed -i 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die
eautoreconf
}
src_configure() {
append-cppflags -D_GNU_SOURCE -fno-strict-aliasing
econf --with-newconfigdir=/etc/uucp
}
src_install() {
dodir /usr/share/man/man{1,8}
dodir /usr/share/info
dodir /usr/bin /usr/sbin
diropts -o uucp -g uucp -m 0750
keepdir /var/log/uucp /var/spool/uucp
diropts -o uucp -g uucp -m 0775
keepdir /var/spool/uucppublic
emake \
"prefix=${ED}/usr" \
"sbindir=${ED}/usr/sbin" \
"bindir=${ED}/usr/bin" \
"man1dir=${ED}/usr/share/man/man1" \
"man8dir=${ED}/usr/share/man/man8" \
"newconfigdir=${ED}/etc/uucp" \
"infodir=${ED}/usr/share/info" \
install install-info
sed -i -e 's:/usr/spool:/var/spool:g' sample/config
insinto etc/uucp
doins sample/*
dodoc ChangeLog NEWS README TODO
}
pkg_preinst() {
usermod -s /bin/bash uucp || die
}
|