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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Aug 26 03:45:56 2003 UTC (16 years, 3 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
default pid file #27277

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.6-r1.ebuild,v 1.7 2003/07/16 14:29:39 pvdabeel Exp $
4
5 DESCRIPTION="File transfer program to keep remote files into sync"
6 HOMEPAGE="http://rsync.samba.org/"
7 SRC_URI="http://rsync.samba.org/ftp/rsync/${P}.tar.gz"
8
9 LICENSE="GPL-2"
10 KEYWORDS="x86 hppa arm sparc ~mips ppc"
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 mv rsync.h rsync.h.orig
23 sed <rsync.h.orig >rsync.h \
24 -e 's|/etc/rsyncd.conf|/etc/rsync/rsyncd.conf|g'
25
26 # yes, updating the man page is very important.
27 mv rsyncd.conf.5 rsyncd.conf.5.orig
28 sed <rsyncd.conf.5.orig >rsyncd.conf.5 \
29 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g'
30 }
31
32 src_compile() {
33 [ -n "$(use build)" ] \
34 && POPTSETTING="--with-included-popt" \
35 || POPTSETTING=""
36 [ -z "${CC}" ] && CC=gcc
37 if [ "`${CC} -dumpversion | cut -d. -f1,2`" = "2.95" ] ; then
38 export LDFLAGS="${LDFLAGS} -lpthread"
39 fi
40 econf ${POPTSETTING} || die
41 use static && export LDFLAGS="${LDFLAGS} -static"
42 emake || die
43 }
44
45 src_install() {
46 einstall || die
47 insinto /etc/conf.d && newins ${FILESDIR}/rsyncd.conf.d rsyncd
48 exeinto /etc/init.d && newexe ${FILESDIR}/rsyncd.init.d rsyncd
49 keepdir /etc/rsync
50 if [ -z "`use build`" ] ; then
51 dodir /etc/rsync
52 dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
53 else
54 rm -rf ${D}/usr/share
55 fi
56 }

  ViewVC Help
Powered by ViewVC 1.1.20