Magellan Linux

Contents of /branches/R11-stable/core/inetutils/inetutils-1.9.1-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14782 - (show annotations) (download)
Wed Jan 2 09:24:52 2013 UTC (11 years, 4 months ago) by niro
File size: 1492 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="inetutils"
4 PVER="1.9.1"
5 PBUILD="r4"
6
7 PCAT="sys-apps"
8
9 DESCRIPTION="Collections of programs to control linux networking."
10 HOMEPAGE="http://www.gnu.org/software/inetutils/"
11
12 DEPEND=">= virtual/glibc
13 >= sys-libs/readline-6.2
14 >= sys-libs/ncurses-5.9"
15
16 PROVIDE="virtual/inetutils"
17
18 SRCFILE="${PNAME}-${PVER}.tar.gz"
19 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20
21 sminclude mbuild mtools
22
23 SRC_URI=(
24 gnu://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${PNAME}-${PVER}-gnulib-gets.patch
27 )
28
29 UP2DATE="updatecmd_gnu ${PNAME} gz"
30
31 src_prepare()
32 {
33 munpack ${SRCFILE} || die
34 cd ${SRCDIR}
35
36 # fix ftbfs against newer glibc (>=2.16)
37 mpatch ${PNAME}-${PVER}-gnulib-gets.patch || die
38
39 # fix missing include
40 sed -i "1i\#include <stdlib.h>" libicmp/icmp_timestamp.c || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46
47 # NOTE:
48 # we want use inet; later it will be xinet;
49 # we also use ifconfig from net-tools
50 # and disable all other (insecure) servers;
51 # whois and logger also disabled (too old);
52
53 mconfigure \
54 --libexecdir=/usr/sbin \
55 --disable-ftpd \
56 --disable-inetd \
57 --disable-rexecd \
58 --disable-rlogind \
59 --disable-rshd \
60 --disable-syslogd \
61 --disable-talkd \
62 --disable-telnetd \
63 --disable-tftpd \
64 --disable-uucpd \
65 --enable-ftp \
66 --enable-ping \
67 --enable-rcp \
68 --enable-rlogin \
69 --enable-rsh \
70 --disable-logger \
71 --enable-talk \
72 --enable-telnet \
73 --enable-tftp \
74 --disable-whois \
75 --disable-ifconfig \
76 || die
77
78 mmake || die
79 }