|
Lines 2-36
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/rdist/rdist-6.1.5-r1.ebuild,v 1.4 2004/07/15 03:23:10 agriffis Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/rdist/rdist-6.1.5-r1.ebuild,v 1.4 2004/07/15 03:23:10 agriffis Exp $ |
| 4 |
|
4 |
|
|
|
5 |
inherit eutils |
| 6 |
|
| 5 |
DESCRIPTION="Remote software distribution system" |
7 |
DESCRIPTION="Remote software distribution system" |
| 6 |
HOMEPAGE="http://www.magnicomp.com/rdist/rdist.shtml" |
8 |
HOMEPAGE="http://www.magnicomp.com/rdist/rdist.shtml" |
| 7 |
SRC_URI="http://www.magnicomp.com/download/rdist/${P}.tar.gz" |
9 |
SRC_URI="http://www.magnicomp.com/download/rdist/${P}.tar.gz" |
| 8 |
|
10 |
|
| 9 |
LICENSE="RDist" |
11 |
LICENSE="RDist" |
| 10 |
SLOT="1" |
12 |
SLOT="1" |
| 11 |
KEYWORDS="x86 sparc alpha ia64 ~ppc" |
13 |
KEYWORDS="x86 sparc alpha ia64 ppc amd64 ppc64" |
| 12 |
IUSE="" |
14 |
IUSE="crypt" |
| 13 |
|
15 |
|
| 14 |
DEPEND="dev-util/yacc >=sys-apps/sed-4" |
16 |
DEPEND="sys-devel/bison >=sys-apps/sed-4" |
| 15 |
RDEPEND="" # yacc only needed for compile |
17 |
RDEPEND="crypt? ( virtual/ssh )" |
| 16 |
|
18 |
|
| 17 |
src_unpack() { |
19 |
src_unpack() { |
| 18 |
unpack ${A} && cd ${S} || die |
20 |
unpack ${A} && cd ${S} || die |
| 19 |
|
21 |
|
| 20 |
# Fix for bug 41781: Build with yacc instead of bison and change |
22 |
# Fix for varargs bug 41781 (10 Mar 2004 agriffis) |
| 21 |
# the following #define (10 Mar 2004 agriffis) |
|
|
| 22 |
sed -i -e 's/^\(#define ARG_TYPE\).*/\1 ARG_STDARG/' config/os-linux.h |
23 |
sed -i -e 's/^\(#define ARG_TYPE\).*/\1 ARG_STDARG/' config/os-linux.h |
| 23 |
assert "sed ARG_TYPE failed" |
24 |
assert "sed ARG_TYPE failed" |
|
|
25 |
|
| 26 |
# Linux switched from a.out to ELF years ago... |
| 27 |
sed -i -e 's/^\(#define EXE_TYPE\).*/\1 EXE_ELF/' config/os-linux.h |
| 28 |
assert "sed EXE_TYPE failed" |
| 29 |
sed -i -e 's/a\.out/ELF/g' doc/rdist.man |
| 30 |
assert "sed a.out failed" |
| 31 |
|
| 32 |
# crypto lovers prefer ssh to rsh |
| 33 |
if use crypt; then |
| 34 |
sed -i -e 's,^\(#define _PATH_REMSH\).*,\1 "/usr/bin/ssh",' config/os-linux.h |
| 35 |
assert "sed _PATH_REMSH failed" |
| 36 |
fi |
| 37 |
|
| 38 |
# remove yacc-isms eshewed by modern bisons |
| 39 |
sed -i -e '/^%type/ s/,//g' -e 's/= {/{/g' src/gram.y |
| 40 |
assert "fixup of gram.y failed" |
| 41 |
|
| 42 |
# use mkstemp(3) instead of mktemp(3) |
| 43 |
epatch ${FILESDIR}/rdist_mkstemp.patch |
| 24 |
} |
44 |
} |
| 25 |
|
45 |
|
| 26 |
src_compile() { |
46 |
src_compile() { |
| 27 |
emake || die "emake failed" |
47 |
# pull in <string.h> so strerror() is defined properly (64-bit bug) |
|
|
48 |
emake DEFS_LOCAL=-DNEED_STRING_H YACC='bison -y' || die "emake failed" |
| 28 |
} |
49 |
} |
| 29 |
|
50 |
|
| 30 |
src_install() { |
51 |
src_install() { |
| 31 |
dodir /usr/bin /usr/share/man/man{1,8} |
52 |
dodir /usr/bin /usr/share/man/man{1,8} |
| 32 |
make install BIN_DIR=${D}/usr/bin || die "make install failed" |
53 |
make install \ |
|
|
54 |
BIN_GROUP=root \ |
| 55 |
BIN_DIR=${D}/usr/bin \ |
| 56 |
|| die "make install failed" |
| 33 |
make install.man \ |
57 |
make install.man \ |
|
|
58 |
MAN_GROUP=root \ |
| 34 |
MAN_1_DIR=${D}/usr/share/man/man1 MAN_8_DIR=${D}/usr/share/man/man8 \ |
59 |
MAN_1_DIR=${D}/usr/share/man/man1 MAN_8_DIR=${D}/usr/share/man/man8 \ |
| 35 |
|| die "make install.man failed" |
60 |
|| die "make install.man failed" |
| 36 |
} |
61 |
} |