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

Contents of /net-misc/rsync/rsync-2.5.1-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, 3 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.1-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 two problems:
19 #http://bugs.debian.org/128632
20 #http://bugs.debian.org/129135
21 cat ${FILESDIR}/rsync-gentoo-${PV}.patch | patch -p1 -l || die
22 #change confdir to /etc/rsync rather than just /etc (the --sysconfdir configure option doesn't work
23 cp rsync.h rsync.h.orig
24 sed -e 's:RSYNCD_CONF "/etc/rsyncd.conf":RSYNCD_CONF "/etc/rsync/rsyncd.conf":g' rsync.h.orig > rsync.h
25 #yes, updating the man page is very important.
26 cp rsyncd.conf.5 rsyncd.conf.5.orig
27 sed -e 's:/etc/rsyncd:/etc/rsync/rsyncd:g' rsyncd.conf.5.orig > rsyncd.conf.5
28 }
29
30 src_compile() {
31 ./configure --prefix=/usr --host=${CHOST} || die
32 if [ "`use static`" ] ; then
33 emake LDFLAGS="-static" || die
34 else
35 emake || die
36 fi
37 }
38
39 src_install () {
40 make prefix=${D}/usr \
41 mandir=${D}/usr/share/man \
42 install || die
43 if [ -z "`use build`" ]
44 then
45 dodir /etc/rsync
46 dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
47 else
48 rm -rf ${D}/usr/share
49 fi
50 }
51
52 pkg_postinst() {
53 if [ ! -d /etc/rsync ]
54 then
55 mkdir /etc/rsync
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20