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

Contents of /net-misc/rsync/rsync-2.6.0-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Feb 3 21:34:30 2007 UTC (13 years, 4 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

1 vapier 1.2 # Copyright 1999-2006 Gentoo Foundation
2 vapier 1.1 # Distributed under the terms of the GNU General Public License v2
3 vapier 1.3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.6.0-r6.ebuild,v 1.2 2006/01/02 18:56:09 vapier Exp $
4 vapier 1.1
5     inherit eutils flag-o-matic toolchain-funcs
6    
7     DESCRIPTION="File transfer program to keep remote files into sync"
8     HOMEPAGE="http://rsync.samba.org/"
9     SRC_URI="http://rsync.samba.org/ftp/rsync/old-versions/${P}.tar.gz
10     http://www.imada.sdu.dk/~bardur/personal/40-patches/rsync-proxy-auth/rsync-2.5.6-proxy-auth-1.patch
11     acl? ( http://www.saout.de/misc/${P}-acl.diff.bz2 )"
12    
13     LICENSE="GPL-2"
14     SLOT="0"
15     KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
16 vapier 1.2 IUSE="acl build livecd static xinetd"
17 vapier 1.1
18     RDEPEND="!build? ( >=dev-libs/popt-1.5 )
19     acl? ( sys-apps/acl )"
20     DEPEND="${RDEPEND}
21     >=sys-apps/portage-2.0.51"
22    
23     src_unpack() {
24     unpack ${P}.tar.gz
25     cd "${S}"
26     epatch "${FILESDIR}"/${P}-sanitize.patch
27     epatch "${DISTDIR}"/${PN}-2.5.6-proxy-auth-1.patch
28     epatch "${FILESDIR}"/${P}-cvsignore.patch
29     use acl && epatch "${DISTDIR}"/${P}-acl.diff.bz2
30     use livecd && epatch ${FILESDIR}/${P}-livecd-sigmask.patch
31    
32     # apply security patch from bug #60309
33     epatch "${FILESDIR}"/${PN}-pathsanitize.patch
34     }
35    
36     src_compile() {
37     [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
38     use static && append-ldflags -static
39     export LDFLAGS
40     econf \
41     $(use_with build included-popt) \
42     $(use_with acl acl-support) \
43     || die
44     emake || die "emake failed"
45     }
46    
47     pkg_preinst() {
48     if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
49     mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
50     rm -f "${ROOT}"/etc/rsync/.keep
51     rmdir "${ROOT}"/etc/rsync >& /dev/null
52     fi
53     }
54    
55     src_install() {
56     make DESTDIR="${D}" install || die "make install failed"
57     newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
58     newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
59     if ! use build ; then
60     dodoc NEWS OLDNEWS README TODO tech_report.tex
61     insinto /etc
62     doins "${FILESDIR}"/rsyncd.conf
63 vapier 1.2 if use xinetd ; then
64     insinto /etc/xinetd.d
65     newins "${FILESDIR}"/rsyncd.xinetd rsyncd
66     fi
67 vapier 1.1 else
68     rm -r "${D}"/usr/share
69     fi
70     }
71    
72     pkg_postinst() {
73     ewarn "The rsyncd.conf file has been moved for you to /etc/rsyncd.conf"
74     echo
75     ewarn "Please make sure you do NOT disable the rsync server running"
76     ewarn "in a chroot. Please check /etc/rsyncd.conf and make sure"
77     ewarn "it says: use chroot = yes"
78     echo
79     einfo 'This patch enables usage of user:pass@proxy.foo:port'
80     einfo 'in the RSYNC_PROXY environment variable to support'
81     einfo 'the "Basic" proxy authentication scheme if you are'
82     einfo 'behind a password protected HTTP proxy.'
83     }

  ViewVC Help
Powered by ViewVC 1.1.20