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

Diff of /net-misc/rsync/rsync-2.6.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2004 Gentoo Technologies, Inc. 1# Copyright 1999-2004 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/Attic/rsync-2.6.2-r1.ebuild,v 1.2 2004/05/02 00:26:03 avenj Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/Attic/rsync-2.6.2-r1.ebuild,v 1.3 2004/05/02 05:09:09 vapier Exp $
4 4
5inherit eutils flag-o-matic gcc 5inherit eutils flag-o-matic gcc
6 6
7DESCRIPTION="File transfer program to keep remote files into sync" 7DESCRIPTION="File transfer program to keep remote files into sync"
8HOMEPAGE="http://rsync.samba.org/" 8HOMEPAGE="http://rsync.samba.org/"
9SRC_URI="http://rsync.samba.org/ftp/rsync/${P}.tar.gz 9SRC_URI="http://rsync.samba.org/ftp/rsync/${P}.tar.gz
10 acl? ( http://www.saout.de/misc/${P}-acl.diff.bz2 )" 10 acl? ( http://www.saout.de/misc/${P}-acl.diff.bz2 )"
11# http://www.imada.sdu.dk/~bardur/personal/patches/${PN}-proxy-auth/${PN}-2.5.6-proxy-auth-1.patch
12 11
13LICENSE="GPL-2" 12LICENSE="GPL-2"
14SLOT="0" 13SLOT="0"
15KEYWORDS="x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa amd64 ~ia64 ~ppc64 s390" 14KEYWORDS="x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa amd64 ~ia64 ~ppc64 s390"
16IUSE="build static acl" 15IUSE="build static acl"
22 acl? ( sys-apps/acl )" 21 acl? ( sys-apps/acl )"
23 22
24src_unpack() { 23src_unpack() {
25 unpack "${P}.tar.gz" 24 unpack "${P}.tar.gz"
26 cd ${S} 25 cd ${S}
27 # proxy patch seems to be merged in now 2.6.2
28 # epatch "${DISTDIR}/${PN}-2.5.6-proxy-auth-1.patch"
29 use acl && epatch ${DISTDIR}/${P}-acl.diff.bz2 26 use acl && epatch ${DISTDIR}/${P}-acl.diff.bz2
30 27
31 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir 28 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
32 # configure option doesn't work 29 # configure option doesn't work
33 sed -i \ 30 sed -i \
34 -e 's|/etc/rsyncd.conf|/etc/rsync/rsyncd.conf|g' rsync.h \ 31 -e 's|/etc/rsyncd.conf|/etc/rsync/rsyncd.conf|g' \
32 rsync.h \
35 || die "sed rsync.h failed" 33 || die "sed rsync.h failed"
36 # yes, updating the man page is very important. 34 # yes, updating the man page is very important.
37 sed -i \ 35 sed -i \
38 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' rsyncd.conf.5 \ 36 -e 's|/etc/rsyncd|/etc/rsync/rsyncd|g' \
37 rsyncd.conf.5 \
39 || die "sed rsyncd.conf.5 failed" 38 || die "sed rsyncd.conf.5 failed"
40} 39}
41 40
42src_compile() { 41src_compile() {
43 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread 42 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
44 use static && append-ldflags -static 43 use static && append-ldflags -static
45 export LDFLAGS 44 export LDFLAGS
45 econf \
46 econf $(use_with build included-popt) \ 46 $(use_with build included-popt) \
47 $(use_with acl acl-support) || die 47 $(use_with acl acl-support) \
48 || die
48 emake || die "emake failed" 49 emake || die "emake failed"
49} 50}
50 51
51src_install() { 52src_install() {
52 make DESTDIR="${D}" install || die "make install failed" 53 make DESTDIR="${D}" install || die "make install failed"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20