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

Contents of /net-misc/rsync/rsync-2.5.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun May 18 21:01:01 2003 UTC (16 years, 6 months ago) by mholzer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
cleanup

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.5.5.ebuild,v 1.7 2003/02/13 15:06:10 vapier 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 ppc sparc "
10 LICENSE="GPL-2"
11 SLOT="0"
12
13 DEPEND="virtual/glibc"
14
15 src_unpack() {
16 unpack ${A}
17 cd ${S}
18
19 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
20 # configure option doesn't work
21 cp rsync.h rsync.h.orig
22 sed -e 's:RSYNCD_CONF "/etc/rsyncd.conf":RSYNCD_CONF "/etc/rsync/rsyncd.conf":g' rsync.h.orig > rsync.h
23
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