Magellan Linux

Contents of /trunk/core/inetutils/inetutils-1.5-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 123 - (show annotations) (download)
Tue Oct 14 11:42:52 2008 UTC (15 years, 7 months ago) by niro
File size: 1742 byte(s)
-fixed missing include
1 # $Header: /magellan-cvs/smage/inetutils/inetutils-1.5-r3.smage2,v 1.1 2008/02/10 01:49:00 niro Exp $
2
3 PNAME="inetutils"
4 PVER="1.5"
5 PBUILD="r4"
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-5.2"
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 mirror://${PNAME}/inetd.rc
25 )
26
27 UP2DATE="updatecmd_gnu ${PNAME} gz"
28
29 src_prepare()
30 {
31 munpack ${SRCFILE} || die
32 cd ${SRCDIR}
33
34 # fix missing include
35 sed -i "1i\#include <stdlib.h>" libicmp/icmp_timestamp.c || die
36 }
37
38 src_compile()
39 {
40 cd ${SRCDIR}
41
42 # NOTE:
43 # we want use inet; later it will be xinet;
44 # we also use ifconfig from net-tools
45 # and disable all other (insecure) servers;
46 # whois and logger also disabled (too old);
47
48 mconfigure \
49 --libexecdir=/usr/sbin \
50 --disable-ftpd \
51 --enable-inetd \
52 --disable-rexecd \
53 --disable-rlogind \
54 --disable-rshd \
55 --disable-syslogd \
56 --disable-talkd \
57 --disable-telnetd \
58 --disable-tftpd \
59 --disable-uucpd \
60 --enable-ftp \
61 --enable-ping \
62 --enable-rcp \
63 --enable-rlogin \
64 --enable-rsh \
65 --disable-logger \
66 --enable-talk \
67 --enable-telnet \
68 --enable-tftp \
69 --disable-whois \
70 --disable-ifconfig \
71 || die
72
73 mmake || die
74 }
75
76 src_install()
77 {
78 cd ${SRCDIR}
79
80 # needed directories
81 minstalldir /bin || die
82
83 minstall libexecdir=${BINDIR}/usr/sbin || die
84 mv ${BINDIR}/usr/bin/ping{,6} ${BINDIR}/bin || die
85
86 # install our initscript
87 minstallrc inetd.rc inetd || die
88
89 minstalldocs AUTHORS COPYING ChangeLog* NEWS README THANKS TODO || die
90 }

Properties

Name Value
svn:keywords Id