1 # Template file for 'inetutils'
5 build_style=gnu-configure
6 configure_args="--without-wrap --with-pam"
7 makedepends="pam-devel readline-devel"
8 short_desc="GNU network utilities"
9 maintainer="Juan RP <xtraeme@voidlinux.eu>"
11 homepage="http://www.gnu.org/software/inetutils"
12 distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
13 checksum=849d96f136effdef69548a940e3e0ec0624fc0c81265296987986a0dd36ded37
15 subpackages="inetutils-dnsdomainname inetutils-ftp inetutils-hostname
16 inetutils-ifconfig inetutils-inetd inetutils-ping inetutils-rexec
17 inetutils-syslog inetutils-telnet inetutils-tftp inetutils-traceroute
18 inetutils-uucpd inetutils-whois"
20 case "$XBPS_TARGET_MACHINE" in
22 # Some packages don't build on musl, so explicitly disable them
23 configure_args+=" --disable-rcp --disable-rlogin --disable-rlogind --disable-rsh --disable-rshd --disable-talk --disable-talkd"
26 subpackages+=" inetutils-rcp inetutils-rlogin inetutils-rsh inetutils-talk"
29 depends="${subpackages}"
32 sed -i 's|_GL_WARN_ON_USE (gets|//_GL_WARN_ON_USE (gets|' lib/stdio.in.h
33 # Create a definition to allow the ifconfig program to build properly
34 echo '#define PATH_PROCNET_DEV "/proc/net/dev"' >> ifconfig/system/linux.h
37 # Keep just usr/share/info/inetutils.info.gz
38 rm -r ${DESTDIR}/usr/bin
39 rm -r ${DESTDIR}/usr/share/man
40 rm -r ${DESTDIR}/usr/libexec
43 inetutils-dnsdomainname_package() {
44 short_desc+=" - dnsdomainname tool"
46 vbin src/dnsdomainname
47 vman man/dnsdomainname.1
50 inetutils-hostname_package() {
51 short_desc+=" - hostname tool"
53 hostname:hostname:/usr/bin/${pkgname}
54 hostname:hostname.1:/usr/share/man/man1/${pkgname}.1
57 vbin src/hostname ${pkgname}
58 vman man/hostname.1 ${pkgname}.1
61 inetutils-ifconfig_package() {
62 short_desc+=" - ifconfig tool"
64 ifconfig:ifconfig:/usr/bin/${pkgname}
65 ifconfig:ifconfig.1:/usr/share/man/man1/${pkgname}.1
68 vbin ifconfig/ifconfig ${pkgname}
69 vman man/ifconfig.1 ${pkgname}.1
72 inetutils-ftp_package() {
73 short_desc+=" - ftp client and server (file transfer protocol)"
75 ftp:ftp:/usr/bin/${pkgname}
76 ftp:ftp.1:/usr/share/man/man1/${pkgname}.1
79 vbin ftp/ftp ${pkgname}
80 vman man/ftp.1 ${pkgname}.1
83 # TODO: write etc/inet.d/ftp.conf or add an etc/inetd.conf line
86 inetutils-ping_package() {
87 short_desc+=" - ping tool (IPv4 and IPv6)"
89 ping:ping:/usr/bin/${pkgname}
90 ping:ping.1:/usr/share/man/man1/${pkgname}.1
91 ping6:ping6:/usr/bin/${pkgname}6
92 ping6:ping6.1:/usr/share/man/man1/${pkgname}6.1
95 vbin ping/ping ${pkgname}
96 vman man/ping.1 ${pkgname}.1
97 vbin ping/ping6 ${pkgname}6
98 vman man/ping6.1 ${pkgname}6.1
101 inetutils-rcp_package() {
102 short_desc+=" - rcp client (remote copy)"
108 inetutils-rexec_package() {
109 short_desc+=" - rexec client and server (remote exec)"
110 conf_files="/etc/xinetd.d/rexec"
116 vinstall ${FILESDIR}/rexec.xinetd 644 etc/xinetd.d rexec
117 # TODO: write etc/inet.d/rexec.conf or add an etc/inetd.conf line
120 inetutils-rlogin_package() {
121 short_desc+=" - rlogin client and server (remote login)"
122 conf_files="/etc/xinetd.d/rlogin"
128 vinstall ${FILESDIR}/rlogin.xinetd 644 etc/xinetd.d rlogin
129 # TODO: write etc/inet.d/rlogin.conf or add an etc/inetd.conf line
132 inetutils-rsh_package() {
133 short_desc+=" - rsh client and server (remote shell)"
134 conf_files="/etc/xinetd.d/rsh"
140 vinstall ${FILESDIR}/rsh.xinetd 644 etc/xinetd.d rsh
141 # TODO: write etc/inet.d/rsh.conf or add an etc/inetd.conf line
144 inetutils-talk_package() {
145 short_desc+=" - talk client and server"
146 conf_files="/etc/xinetd.d/talk"
152 vinstall ${FILESDIR}/talk.xinetd 644 etc/xinetd.d talk
153 # TODO: write etc/inet.d/talk.conf or add an etc/inetd.conf line
156 inetutils-telnet_package() {
157 short_desc+=" - telnet client and server"
158 conf_files="/etc/xinetd.d/telnet"
164 vinstall ${FILESDIR}/telnet.xinetd 644 etc/xinetd.d telnet
165 # TODO: write etc/inet.d/telnet.conf or add an etc/inetd.conf line
168 inetutils-tftp_package() {
169 short_desc+="- tftp client and server (trivial file transfer protocol)"
170 conf_files="/etc/xinetd.d/tftp"
172 tftp:tftp:/usr/bin/${pkgname}
173 tftp:tftp.1:/usr/share/man/man1/${pkgname}.1
176 vbin src/tftp ${pkgname}
177 vman man/tftp.1 ${pkgname}.1
180 vinstall ${FILESDIR}/tftp.xinetd 644 etc/xinetd.d tftp
181 # TODO: write etc/inet.d/tftp.conf or add an etc/inetd.conf line
184 inetutils-traceroute_package() {
185 short_desc+=" - traceroute tool"
187 traceroute:traceroute:/usr/bin/${pkgname}
188 traceroute:traceroute.1:/usr/share/man/man1/${pkgname}.1
191 vbin src/traceroute ${pkgname}
192 vman man/traceroute.1 ${pkgname}.1
195 inetutils-whois_package() {
196 short_desc+=" - whois tool"
198 whois:whois:/usr/bin/${pkgname}
199 whois:whois.1:/usr/share/man/man1/${pkgname}.1
202 vbin whois/whois ${pkgname}
203 vman man/whois.1 ${pkgname}.1
206 inetutils-inetd_package() {
207 short_desc+=" - inet daemon"
211 # TODO: Install default config files with all services disabled?
212 # Add config_files="/etc/inetd.conf /etc/hosts.deny /etc/hosts.allow"
215 inetutils-syslog_package() {
216 short_desc+=" - logger tool and syslog daemon"
218 logger:logger:/usr/bin/inetutils-logger
219 logger:logger.1:/usr/share/man/man1/inetutils-logger.1
222 vbin src/logger inetutils-logger
223 vman man/logger.1 inetutils-logger.1
228 inetutils-uucpd_package() {
229 short_desc+=" - uucpd daemon (unix to unix copy)"
230 conf_files="/etc/xinetd.d/uucp"
234 vinstall ${FILESDIR}/uucp.xinetd 644 etc/xinetd.d uucp
235 # TODO: write etc/inet.d/uucp.conf or add an etc/inetd.conf line