Magellan Linux

Contents of /branches/magellan-next/core/netkit-rsh/netkit-rsh-0.17-r10.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8836 - (show annotations) (download)
Tue Aug 2 11:28:23 2011 UTC (12 years, 9 months ago) by niro
File size: 3929 byte(s)
-use new system-auth stack
1 # $Id$
2
3 PNAME="netkit-rsh"
4 PVER="0.17"
5 PBUILD="r10"
6
7 PCATEGORIE="net-misc"
8
9 DESCRIPTION="Clients for remote access commands (rsh, rlogin, rcp)."
10 HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
11
12 DEPEND=">= sys-libs/ncurses-5.9
13 >= sys-libs/pam-1.1"
14
15 REXEC_SRCFILE="rexec-1.5.tar.gz"
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mtools
20
21 SRC_URI=(
22 mirror://${PNAME}/${SRCFILE}
23 #ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/${SRCFILE}
24 mirror://${PNAME}/${REXEC_SRCFILE}
25 mirror://${PNAME}/rexec.pam-systemauth
26 mirror://${PNAME}/rlogin.pam-systemauth
27 mirror://${PNAME}/rsh.pam-systemauth
28 mirror://${PNAME}/${PNAME}-${PVER}-sectty.patch
29 mirror://${PNAME}/${PNAME}-${PVER}-rexec.patch
30 mirror://${PNAME}/${PNAME}-${PVER}-stdarg.patch
31 mirror://${PNAME}/${PNAME}-${PVER}-jbj.patch
32 mirror://${PNAME}/${PNAME}-${PVER}-jbj4.patch
33 mirror://${PNAME}/${PNAME}-${PVER}-prompt.patch
34 mirror://${PNAME}/${PNAME}-${PVER}-rlogin-rsh.patch
35 mirror://${PNAME}/${PNAME}-${PVER}-nokrb.patch
36 mirror://${PNAME}/${PNAME}-${PVER}-jbj5.patch
37 mirror://${PNAME}/${PNAME}-${PVER}-userandhost.patch
38 mirror://${PNAME}/${PNAME}-${PVER}-strip.patch
39 mirror://${PNAME}/${PNAME}-${PVER}-lfs.patch
40 mirror://${PNAME}/${PNAME}-${PVER}-chdir.patch
41 mirror://${PNAME}/${PNAME}-${PVER}-pam-nologin.patch
42 mirror://${PNAME}/${PNAME}-${PVER}-nohostcheck.patch
43 mirror://${PNAME}/${PNAME}-${PVER}-rexec-netrc.patch
44 mirror://${PNAME}/${PNAME}-${PVER}-pam-sess.patch
45 mirror://${PNAME}/${PNAME}-${PVER}-errno.patch
46 mirror://${PNAME}/${PNAME}-${PVER}-rexec-sig.patch
47 mirror://${PNAME}/${PNAME}-${PVER}-nohost.patch
48 mirror://${PNAME}/${PNAME}-${PVER}-ignchld.patch
49 mirror://${PNAME}/${PNAME}-${PVER}-checkdir.patch
50 mirror://${PNAME}/${PNAME}-${PVER}-max-arg.patch
51 )
52
53 UP2DATE="updatecmd ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/ | grep ${PNAME}- | lasttarball gz"
54
55 src_prepare()
56 {
57 munpack ${SRCFILE} || die
58
59 # remove includes rexec and use a fixed one
60 [[ -d ${SRCDIR}/rexec ]] && rm -rf ${SRCDIR}/rexec
61 munpack ${REXEC_SRCFILE} ${SRCDIR} || die
62 cd ${SRCDIR}
63
64 # patch work (fedora patches)
65 mpatch ${PNAME}-${PVER}-sectty.patch || die
66 mpatch ${PNAME}-${PVER}-rexec.patch || die
67 mpatch ${PNAME}-${PVER}-stdarg.patch || die
68 mpatch ${PNAME}-${PVER}-jbj.patch || die
69 mpatch ${PNAME}-${PVER}-jbj4.patch || die
70 mpatch ${PNAME}-${PVER}-prompt.patch || die
71 mpatch ${PNAME}-${PVER}-rlogin-rsh.patch || die
72 mpatch ${PNAME}-${PVER}-nokrb.patch || die
73 mpatch ${PNAME}-${PVER}-jbj5.patch || die
74 mpatch ${PNAME}-${PVER}-userandhost.patch || die
75 mpatch ${PNAME}-${PVER}-strip.patch || die
76 mpatch ${PNAME}-${PVER}-lfs.patch || die
77 mpatch ${PNAME}-${PVER}-chdir.patch || die
78 mpatch ${PNAME}-${PVER}-pam-nologin.patch || die
79 mpatch ${PNAME}-${PVER}-nohostcheck.patch || die
80 mpatch ${PNAME}-${PVER}-rexec-netrc.patch || die
81 mpatch ${PNAME}-${PVER}-pam-sess.patch || die
82 mpatch ${PNAME}-${PVER}-errno.patch || die
83 mpatch ${PNAME}-${PVER}-rexec-sig.patch || die
84 mpatch ${PNAME}-${PVER}-nohost.patch || die
85 mpatch ${PNAME}-${PVER}-ignchld.patch || die
86 mpatch ${PNAME}-${PVER}-checkdir.patch || die
87 mpatch ${PNAME}-${PVER}-max-arg.patch || die
88 }
89
90 src_compile()
91 {
92 cd ${SRCDIR}
93
94 ./configure --with-c-compiler=gcc || die
95
96 # fix CFLAGS and some build issues
97 sed -i -e "s:-pipe -O2:${CFLAGS}:" \
98 -e "s:-Wpointer-arith::" \
99 -e "s:^BINDIR=.*$:BINDIR=/bin:" \
100 -e "s:^MANDIR=.*$:MANDIR=/usr/share/man:" \
101 -e "s:^SBINDIR=.*$:SBINDIR=/sbin:" \
102 MCONFIG || die
103 mmake || die
104 }
105
106 src_install()
107 {
108 cd ${SRCDIR}
109
110 # needed directories
111 install -d ${BINDIR}/{s,}bin || die
112 install -d ${BINDIR}/usr/share/man/man{1,5,8} || die
113
114 make INSTALLROOT=${BINDIR} BINDIR=/bin MANDIR=/usr/share/man install || die
115
116 minstallpam rexec.pam-systemauth rexec || die
117 minstallpam rlogin.pam-systemauth rlogin || die
118 minstallpam rsh.pam-systemauth rsh || die
119
120 minstalldocs ChangeLog README BUGS
121 }