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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Oct 19 03:13:35 2003 UTC (16 years, 5 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
old

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-r1.ebuild,v 1.12 2003/09/05 22:01:49 msterret 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 alpha mips"
10 LICENSE="GPL-2"
11 SLOT="0"
12
13 DEPEND="virtual/glibc
14 !build? ( >=dev-libs/popt-1.5 )"
15
16 src_unpack() {
17 unpack ${A}
18 cd ${S}
19
20 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
21 # 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
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 if [ -n "$(use build)" ]; then
32 POPTSETTING="--with-included-popt"
33 else
34 POPTSETTING=""
35 fi
36 ./configure --prefix=/usr --host=${CHOST} ${POPTSETTING} || die
37 if [ "`use static`" ] ; then
38 emake LDFLAGS="-static" || die
39 else
40 emake || die
41 fi
42 }
43
44 src_install () {
45 make prefix=${D}/usr \
46 mandir=${D}/usr/share/man \
47 install || die
48 if [ -z "`use build`" ]
49 then
50 dodir /etc/rsync
51 dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
52 else
53 rm -rf ${D}/usr/share
54 fi
55 }
56
57 pkg_postinst() {
58 if [ ! -d /etc/rsync ]
59 then
60 mkdir /etc/rsync
61 fi
62 }

  ViewVC Help
Powered by ViewVC 1.1.20