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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Mar 1 07:11:39 2002 UTC (18 years, 1 month ago) by drobbins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
DoS fix redux

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

  ViewVC Help
Powered by ViewVC 1.1.20