Contents of /branches/magellan-next/core/inetutils/inetutils-1.9.1-r1.smage2
Parent Directory | Revision Log
Revision 9764 -
(show annotations)
(download)
Tue Jan 10 22:03:15 2012 UTC (12 years, 8 months ago) by niro
File size: 1568 byte(s)
Tue Jan 10 22:03:15 2012 UTC (12 years, 8 months ago) by niro
File size: 1568 byte(s)
auto added: ver bump to 1.9.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="inetutils" |
4 | PVER="1.9.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mtools |
20 | |
21 | SRC_URI=( |
22 | gnu://${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | ) |
25 | |
26 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
27 | |
28 | src_prepare() |
29 | { |
30 | munpack ${SRCFILE} || die |
31 | cd ${SRCDIR} |
32 | |
33 | # fix missing include |
34 | sed -i "1i\#include <stdlib.h>" libicmp/icmp_timestamp.c || die |
35 | } |
36 | |
37 | src_compile() |
38 | { |
39 | cd ${SRCDIR} |
40 | |
41 | # NOTE: |
42 | # we want use inet; later it will be xinet; |
43 | # we also use ifconfig from net-tools |
44 | # and disable all other (insecure) servers; |
45 | # whois and logger also disabled (too old); |
46 | |
47 | mconfigure \ |
48 | --libexecdir=/usr/sbin \ |
49 | --disable-ftpd \ |
50 | --enable-inetd \ |
51 | --disable-rexecd \ |
52 | --disable-rlogind \ |
53 | --disable-rshd \ |
54 | --disable-syslogd \ |
55 | --disable-talkd \ |
56 | --disable-telnetd \ |
57 | --disable-tftpd \ |
58 | --disable-uucpd \ |
59 | --enable-ftp \ |
60 | --enable-ping \ |
61 | --enable-rcp \ |
62 | --enable-rlogin \ |
63 | --enable-rsh \ |
64 | --disable-logger \ |
65 | --enable-talk \ |
66 | --enable-telnet \ |
67 | --enable-tftp \ |
68 | --disable-whois \ |
69 | --disable-ifconfig \ |
70 | || die |
71 | |
72 | mmake || die |
73 | } |
74 | |
75 | src_install() |
76 | { |
77 | cd ${SRCDIR} |
78 | |
79 | # needed directories |
80 | minstalldir /bin || die |
81 | |
82 | minstall libexecdir=${BINDIR}/usr/sbin || die |
83 | mv ${BINDIR}/usr/bin/ping{,6} ${BINDIR}/bin || die |
84 | |
85 | minstalldocs AUTHORS COPYING ChangeLog* NEWS README THANKS TODO || die |
86 | } |