/[gentoo-x86]/net-misc/rsync/rsync-2.5.2-r1.ebuild
Gentoo

Contents of /net-misc/rsync/rsync-2.5.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Sep 7 12:28:01 2002 UTC (17 years, 7 months ago) by seemant
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
removed crusty ebuilds

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.5.2-r1.ebuild,v 1.4 2002/08/14 12:08:08 murphy Exp $
4
5 S=${WORKDIR}/${P}
6 DESCRIPTION="File transfer program to keep remote files into sync"
7 SRC_URI="http://rsync.samba.org/ftp/rsync/${P}.tar.gz"
8 HOMEPAGE="http://rsync.samba.org"
9 KEYWORDS="x86 sparc sparc64"
10 LICENSE="GPL-2"
11 SLOT="0"
12
13 DEPEND="virtual/glibc"
14
15 src_unpack() {
16 unpack ${A}
17 cd ${S}
18 #This next patch fixes a remote DoS:
19 #http://bugs.debian.org/128632
20 cat ${FILESDIR}/rsync-gentoo-${PV}.patch | patch -p1 -l || die
21 #change confdir to /etc/rsync rather than just /etc (the --sysconfdir configure option doesn't work
22 cp rsync.h rsync.h.orig
23 sed -e 's:RSYNCD_CONF "/etc/rsyncd.conf":RSYNCD_CONF "/etc/rsync/rsyncd.conf":g' rsync.h.orig > rsync.h
24 #yes, updating the man page is very important.
25 cp rsyncd.conf.5 rsyncd.conf.5.orig
26 sed -e 's:/etc/rsyncd:/etc/rsync/rsyncd:g' rsyncd.conf.5.orig > rsyncd.conf.5
27 }
28
29 src_compile() {
30 ./configure --prefix=/usr --host=${CHOST} || die
31 if [ "`use static`" ] ; then
32 emake LDFLAGS="-static" || die
33 else
34 emake || die
35 fi
36 }
37
38 src_install () {
39 make prefix=${D}/usr \
40 mandir=${D}/usr/share/man \
41 install || die
42 if [ -z "`use build`" ]
43 then
44 dodir /etc/rsync
45 dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
46 else
47 rm -rf ${D}/usr/share
48 fi
49 }
50
51 pkg_postinst() {
52 if [ ! -d /etc/rsync ]
53 then
54 mkdir /etc/rsync
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20