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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 11 04:18:04 2005 UTC (14 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.6.0-r4.ebuild,v 1.1 2005/03/18 02:01:59 vapier Exp $
4
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 IUSE="build static acl"
17
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 use acl && epatch "${DISTDIR}"/${P}-acl.diff.bz2
29
30 # apply security patch from bug #60309
31 epatch "${FILESDIR}"/${PN}-pathsanitize.patch
32 }
33
34 src_compile() {
35 [ "`gcc-version`" == "2.95" ] && append-ldflags -lpthread
36 use static && append-ldflags -static
37 export LDFLAGS
38 econf \
39 $(use_with build included-popt) \
40 $(use_with acl acl-support) \
41 || die
42 emake || die "emake failed"
43 }
44
45 pkg_preinst() {
46 if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
47 mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
48 rm -f "${ROOT}"/etc/rsync/.keep
49 rmdir "${ROOT}"/etc/rsync >& /dev/null
50 fi
51 }
52
53 src_install() {
54 make DESTDIR="${D}" install || die "make install failed"
55 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
56 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
57 if ! use build ; then
58 dodoc NEWS OLDNEWS README TODO tech_report.tex
59 insinto /etc
60 doins "${FILESDIR}"/rsyncd.conf
61 else
62 rm -r "${D}"/usr/share
63 fi
64 }
65
66 pkg_postinst() {
67 ewarn "The rsyncd.conf file has been moved for you to /etc/rsyncd.conf"
68 echo
69 ewarn "Please make sure you do NOT disable the rsync server running"
70 ewarn "in a chroot. Please check /etc/rsyncd.conf and make sure"
71 ewarn "it says: use chroot = yes"
72 echo
73 einfo 'This patch enables usage of user:pass@proxy.foo:port'
74 einfo 'in the RSYNC_PROXY environment variable to support'
75 einfo 'the "Basic" proxy authentication scheme if you are'
76 einfo 'behind a password protected HTTP proxy.'
77 }

  ViewVC Help
Powered by ViewVC 1.1.20