db-move: moved firefox-i18n from [testing] to [extra] (any)
[arch-packages.git] / inetutils / trunk / PKGBUILD
blob8efe0bc3cf811e6c031d9fa4210f6cc438d2ec57
1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Eric BĂ©langer <eric@archlinux.org>
4 pkgname=inetutils
5 pkgver=2.4
6 pkgrel=1
7 pkgdesc="A collection of common network programs"
8 arch=('x86_64')
9 url="https://www.gnu.org/software/inetutils/"
10 license=('GPL3')
11 depends=('pam' 'libcap' 'readline' 'ncurses' 'libxcrypt'
12              libpam.so libcrypt.so libreadline.so libncursesw.so)
13 makedepends=('help2man')
14 backup=('etc/xinetd.d/telnet' 'etc/xinetd.d/talk'
15         'etc/xinetd.d/rlogin' 'etc/xinetd.d/rsh'
16         'etc/pam.d/rlogin' 'etc/pam.d/rsh')
17 options=('!emptydirs')
18 install=inetutils.install
19 source=("https://ftp.gnu.org/gnu/inetutils/${pkgname}-${pkgver}.tar.xz"{,.sig}
20         'ftpd.service' 'rlogin.pam' 'rlogin@.service' 'rlogin.socket' 'rlogin.xinetd'
21         'rsh.pam' 'rsh@.service' 'rsh.socket' 'rsh.xinetd' 'talk.service' 'talk.socket'
22         'talk.xinetd' 'telnet@.service' 'telnet.socket' 'telnet.xinetd')
23 sha512sums=('e7e6a5d7e2e02f07a2a6cfc09694e3c0a4e4a8ef8a435eed41902eba13caeed329ae6d6ba94b0de8f789e307f04656d12c48c1c0217b69d162bc5efb0ff6adee'
24             'SKIP'
25             'df5b37c9fc072e012f0e67d849db7e535a62ddb17a37e865acb157f2bc16ffd72d84f24fef1e788dacbbe7e5675e87e141fbd36e53339cc7810dde1b9c54a3b8'
26             '432a45af5cd4f9f2dee4b631b45745b734e47cf631553e79db31905fa0839988914bcfed1dfcdd00d2ea6e4029b0674d46623c33ce0bd0678c2628fbaa0d1b25'
27             '5c2d1040484f4053cc6e114d38e3a671792c6f196f666a6f6529276d55589870fa9040ac32ac9b521c80c14931b03c97738d2a6ffb50d3a658363a5123ea9e6e'
28             '8857dd03794a0ed48b87e6a876c4e17246f3bb4083dc2a9593d8c05d831b03d944d133ae8dc44bc23d1b9d7fe82dd7ab166cb87f53b859a62fc1479e9a49a1de'
29             '7091c983bb6d96da3b471fa95d6fdda02cee5b42c4abb93048f7db0d313c17f6c11356cafa835ab4ad01401a30c2169288da2d6a1c4e661c93c36496c04cf507'
30             'c957708315ea2d873da55691bb0d0997ee3e2dcb40fb47cef19fd60c25379f1660d0605edd8fb0a477252c5af3e422b44b5e0aaa5b76220dadc90791dd526801'
31             'b71e7c25bb1fe3e35420ea3d7eda9b44ed61423ec54973a42a0b5bdac01e8d131aa9656a1e050d74f27723a976fe058a79a04bb34ed70dc5eeb7c49b9be078b4'
32             '9fc711b8260f4340188b8f6bc5ac944958d1609a1a506d76b3be917a01caa4493edae89da3c1eaa55294bbddaa6744c68ecb1cd322bb2d74e284d2d6fcd0d2c8'
33             '6f5f8b2e1ed24bccfdd08f37d2efca3750d632a5ff4188ed12a10b6cbfe84e85be996020704dfab7b427c023fcc3f328bbda23d69266eba98af0069dcb9de6ea'
34             'ca9704da96c457cfb5ca1b5d404470984597af23e5224c53e84c191c98d201b699ad0f712b779a4152b9256e870806b63fefd669bb2532a0f2ef4017bb01b18c'
35             '502ca66fb2c0a2df0ea8827c820c199c29a91ab5ccff26866e02a4219007ee7fa36ed4b6001207212db332047a574edc70744e6fcc130d62aab02faa3c9566f7'
36             'd440094014d13ca7c3afb4eef735d3526ed8de2cc2de98a48d9682bee9aa197ea750de916c90a6b9e9839529a30b98138fb52427d89e1ee541a87e3401d892b2'
37             '6b1f170c1c680bfa2186e0cb3bf555124048c46669bee0265948d22723493b5a23a735f52a8a72304e6cd020dbf2c9991d6cbc4e006bf38dc3b7d6c1addcf1e8'
38             '218f2b5686ca0321a9f7a5a991c69b289aa297b7a295e654020636d38fbb5a37d09e720c1e2f950ba14616b0e7dafc2cb6a5e325e3b117dfe0ab3c733b98e5eb'
39             '7445417b3cde6dd5a8ad5568c1272ac0b9b4a2375735c707c0cff09ad98a2ba322e6921945b5b1efd0e86212db13eacb5606bd3fa841da9515df5d40f75ad4a2')
40 # GNU Keyring: https://ftp.gnu.org/gnu/gnu-keyring.gpg
41 validpgpkeys=(
42   '4FBD67621082C4C502448E3B180551BAD95A3C35' # Alfred M. Szmidt <ams@gnu.org>
43   '9AA9BDB11BB1B99A21285A330664A76954265E8C' # Simon Josefsson <simon@josefsson.org>
44   'B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE' # simon@josefsson.org
47 build() {
48   cd ${pkgname}-${pkgver}
49   ./configure \
50     --prefix=/usr \
51     --libexec=/usr/bin \
52     --localstatedir=/var \
53     --sysconfdir=/etc \
54     --without-wrap \
55     --with-pam \
56     --enable-ftp \
57     --enable-ftpd \
58     --enable-telnet \
59     --enable-telnetd \
60     --enable-talk \
61     --enable-talkd \
62     --enable-rlogin \
63     --enable-rlogind \
64     --enable-rsh \
65     --enable-rshd \
66     --enable-rcp \
67     --enable-hostname \
68     --enable-dnsdomainname \
69     --disable-rexec \
70     --disable-rexecd \
71     --disable-tftp \
72     --disable-tftpd \
73     --disable-ping \
74     --disable-ping6 \
75     --disable-logger \
76     --disable-syslogd \
77     --disable-inetd \
78     --disable-whois \
79     --disable-uucpd \
80     --disable-ifconfig \
81     --disable-traceroute
82   make
85 check() {
86   cd ${pkgname}-${pkgver}
87   make check
90 package() {
91   cd ${pkgname}-${pkgver}
92   make DESTDIR="${pkgdir}" install
94   chmod -s "${pkgdir}"/usr/bin/{rcp,rlogin,rsh}
96   install -D -m644 "${srcdir}/telnet.xinetd" "${pkgdir}/etc/xinetd.d/telnet"
97   install -D -m644 "${srcdir}/talk.xinetd" "${pkgdir}/etc/xinetd.d/talk"
98   install -D -m644 "${srcdir}/rlogin.xinetd" "${pkgdir}/etc/xinetd.d/rlogin"
99   install -D -m644 "${srcdir}/rsh.xinetd" "${pkgdir}/etc/xinetd.d/rsh"
101   install -D -m644 "${srcdir}/rlogin.pam" "${pkgdir}/etc/pam.d/rlogin"
102   install -D -m644 "${srcdir}/rsh.pam" "${pkgdir}/etc/pam.d/rsh"
104   install -D -m644 "${srcdir}/ftpd.service" "${pkgdir}/usr/lib/systemd/system/ftpd.service"
105   install -D -m644 "${srcdir}/rlogin@.service" "${pkgdir}/usr/lib/systemd/system/rlogin@.service"
106   install -D -m644 "${srcdir}/rlogin.socket" "${pkgdir}/usr/lib/systemd/system/rlogin.socket"
107   install -D -m644 "${srcdir}/rsh@.service" "${pkgdir}/usr/lib/systemd/system/rsh@.service"
108   install -D -m644 "${srcdir}/rsh.socket" "${pkgdir}/usr/lib/systemd/system/rsh.socket"
109   install -D -m644 "${srcdir}/talk.service" "${pkgdir}/usr/lib/systemd/system/talk.service"
110   install -D -m644 "${srcdir}/talk.socket" "${pkgdir}/usr/lib/systemd/system/talk.socket"
111   install -D -m644 "${srcdir}/telnet@.service" "${pkgdir}/usr/lib/systemd/system/telnet@.service"
112   install -D -m644 "${srcdir}/telnet.socket" "${pkgdir}/usr/lib/systemd/system/telnet.socket"