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

Contents of /net-misc/rsync/rsync-2.5.6_pre20021105.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Tue Dec 10 21:38:46 2002 UTC (17 years, 6 months ago) by blizzy
Branch: MAIN
new 2002-11-05 snapshot of net-misc/rsync

1 blizzy 1.1 # Copyright 1999-2002 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-r1.ebuild,v 1.6 2002/10/04 06:14:48 vapier Exp $
4    
5     S=${WORKDIR}/${P}
6     DESCRIPTION="File transfer program to keep remote files into sync"
7     SRC_URI="http://www.gentoo.org/~blizzy/${PF}.tar.bz2"
8     HOMEPAGE="http://rsync.samba.org"
9     KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
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     if [ -n "$(use build)" ]; then
31     POPTSETTING="--with-included-popt"
32     else
33     POPTSETTING=""
34     fi
35     ./configure --prefix=/usr --host=${CHOST} ${POPTSETTING} || die
36     if [ "`use static`" ] ; then
37     emake LDFLAGS="-static" || die
38     else
39     emake || die
40     fi
41     }
42    
43     src_install () {
44     make prefix=${D}/usr \
45     mandir=${D}/usr/share/man \
46     install || die
47     if [ -z "`use build`" ]
48     then
49     dodir /etc/rsync
50     dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
51     else
52     rm -rf ${D}/usr/share
53     fi
54     }
55    
56     pkg_postinst() {
57     if [ ! -d /etc/rsync ]
58     then
59     mkdir /etc/rsync
60     fi
61     }

  ViewVC Help
Powered by ViewVC 1.1.20