blob: 1b664ca64ee7f51f535fe72b1fad5f1e7f0782da (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: mortzu
pkgname='inetutils-syslogd'
_pkgname='inetutils'
pkgver='2.5'
pkgrel='1'
pkgdesc='A small syslogd'
arch=('i686' 'x86_64')
url='http://www.gnu.org/software/inetutils/'
license=('GPL3')
groups=('base')
depends=('readline' 'ncurses' 'pam')
options=('!emptydirs')
provides=('logger')
backup=('etc/syslog.conf')
_srcdir="${_pkgname}-${pkgver}"
source=(
"https://ftp.gnu.org/gnu/inetutils/${_pkgname}-${pkgver}.tar.gz"
'syslog.conf'
'inetutils-syslogd.service'
)
md5sums=('96526671eca6c2c531352d28dd6246fd'
'71d7027920dd7641653705de65fd0d97'
'f528a4b680e878a13f745a38f9499e06')
sha256sums=('fa043bbbc426eae1869070d2b6e29a98069615ac00681cdb92e20911d9292260'
'a0fdd3eef46ac1a671c6a5743cd8a57213ea179c844f091eae37647f8246edde'
'84086b9b3ce93db7af58d8a47cbd30e664dec83640e62b5145140b87554c82ba')
build() {
cd "${_srcdir}"
sed -e '/gets is a security/d' -i 'lib/stdio.in.h'
local _conf=(
--prefix='/usr'
--libexec='/usr/bin'
--localstatedir='/var'
--sysconfdir='/etc'
--mandir='/usr/share/man'
--infodir='/usr/share/info'
--without-wrap
--with-pam
--disable-dnsdomainname
--disable-ftp
--disable-ftpd
--disable-telnet
--disable-telnetd
--disable-talk
--disable-talkd
--disable-rlogin
--disable-rlogind
--disable-rsh
--disable-rshd
--disable-rexec
--disable-rexecd
--disable-rcp
--disable-hostname
--disable-tftp
--disable-tftpd
--disable-ping
--disable-ping6
--disable-logger
--enable-syslogd
--disable-inetd
--disable-whois
--disable-uucpd
--disable-ifconfig
--disable-traceroute
)
./configure "${_conf[@]}"
make
}
check() {
cd "${_srcdir}"
make check
}
package() {
cd "${_srcdir}"
make DESTDIR="${pkgdir}" install
rm -Rf "${pkgdir}/usr/share/info"
install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
install -Dm644 "${srcdir}/syslog.conf" "${pkgdir}/etc/syslog.conf"
}
|