Annotation of /branches/magellan-next/core/inetutils/inetutils-1.8-r2.smage2
Parent Directory | Revision Log
Revision 7480 -
(hide annotations)
(download)
Tue Mar 15 22:01:21 2011 UTC (13 years, 1 month ago) by niro
File size: 1773 byte(s)
Tue Mar 15 22:01:21 2011 UTC (13 years, 1 month ago) by niro
File size: 1773 byte(s)
auto added: ver bump to 1.8-r2
1 | niro | 7480 | # $Id: inetutils-1.6-r4.smage2 4786 2009-12-28 10:56:11Z niro $ |
2 | |||
3 | PNAME="inetutils" | ||
4 | PVER="1.8" | ||
5 | PBUILD="r2" | ||
6 | |||
7 | PCATEGORIE="sys-apps" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Collections of programs to control linux networking." | ||
11 | HOMEPAGE="http://www.gnu.org/software/inetutils/" | ||
12 | |||
13 | DEPEND=">= virtual/glibc | ||
14 | >= sys-libs/readline-6.2 | ||
15 | >= sys-libs/ncurses-5.8" | ||
16 | |||
17 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
19 | |||
20 | RC_CVS_REV=1.2 | ||
21 | |||
22 | sminclude mtools | ||
23 | |||
24 | SRC_URI=( | ||
25 | gnu://${PNAME}/${SRCFILE} | ||
26 | mirror://${PNAME}/${SRCFILE} | ||
27 | mirror://${PNAME}/inetd.rc-${RC_CVS_REV} | ||
28 | ) | ||
29 | |||
30 | UP2DATE="updatecmd_gnu ${PNAME} gz" | ||
31 | |||
32 | src_prepare() | ||
33 | { | ||
34 | munpack ${SRCFILE} || die | ||
35 | cd ${SRCDIR} | ||
36 | |||
37 | # fix missing include | ||
38 | sed -i "1i\#include <stdlib.h>" libicmp/icmp_timestamp.c || die | ||
39 | } | ||
40 | |||
41 | src_compile() | ||
42 | { | ||
43 | cd ${SRCDIR} | ||
44 | |||
45 | # NOTE: | ||
46 | # we want use inet; later it will be xinet; | ||
47 | # we also use ifconfig from net-tools | ||
48 | # and disable all other (insecure) servers; | ||
49 | # whois and logger also disabled (too old); | ||
50 | |||
51 | mconfigure \ | ||
52 | --libexecdir=/usr/sbin \ | ||
53 | --disable-ftpd \ | ||
54 | --enable-inetd \ | ||
55 | --disable-rexecd \ | ||
56 | --disable-rlogind \ | ||
57 | --disable-rshd \ | ||
58 | --disable-syslogd \ | ||
59 | --disable-talkd \ | ||
60 | --disable-telnetd \ | ||
61 | --disable-tftpd \ | ||
62 | --disable-uucpd \ | ||
63 | --enable-ftp \ | ||
64 | --enable-ping \ | ||
65 | --enable-rcp \ | ||
66 | --enable-rlogin \ | ||
67 | --enable-rsh \ | ||
68 | --disable-logger \ | ||
69 | --enable-talk \ | ||
70 | --enable-telnet \ | ||
71 | --enable-tftp \ | ||
72 | --disable-whois \ | ||
73 | --disable-ifconfig \ | ||
74 | || die | ||
75 | |||
76 | mmake || die | ||
77 | } | ||
78 | |||
79 | src_install() | ||
80 | { | ||
81 | cd ${SRCDIR} | ||
82 | |||
83 | # needed directories | ||
84 | minstalldir /bin || die | ||
85 | |||
86 | minstall libexecdir=${BINDIR}/usr/sbin || die | ||
87 | mv ${BINDIR}/usr/bin/ping{,6} ${BINDIR}/bin || die | ||
88 | |||
89 | # install our initscript | ||
90 | minstallrc inetd.rc-${RC_CVS_REV} inetd || die | ||
91 | |||
92 | minstalldocs AUTHORS COPYING ChangeLog* NEWS README THANKS TODO || die | ||
93 | } |