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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Feb 20 04:23:29 2008 UTC (11 years, 9 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2007 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.9-r1.ebuild,v 1.2 2007/03/03 06:05:44 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/${P/_/}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
14 IUSE="acl ipv6 static xinetd"
15
16 DEPEND=">=dev-libs/popt-1.5
17 acl? ( kernel_linux? ( sys-apps/acl ) )"
18
19 S=${WORKDIR}/${P/_/}
20
21 src_unpack() {
22 unpack ${P/_/}.tar.gz
23 cd "${S}"
24 if use acl ; then
25 epatch patches/{acls,xattrs}.diff
26 epatch "${FILESDIR}"/${P}-delete-acls-xattr.patch
27 ./prepare-source || die
28 fi
29 }
30
31 src_compile() {
32 [[ $(gcc-version) == "2.95" ]] && append-ldflags -lpthread
33 use static && append-ldflags -static
34
35 econf \
36 --without-included-popt \
37 $(use_enable acl acl-support) \
38 $(use_enable acl xattr-support) \
39 $(use_enable ipv6) \
40 --with-rsyncd-conf=/etc/rsyncd.conf \
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 emake DESTDIR="${D}" install || die "make install failed"
55 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
56 newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
57 dodoc NEWS OLDNEWS README TODO tech_report.tex
58 insinto /etc
59 doins "${FILESDIR}"/rsyncd.conf
60 if use xinetd ; then
61 insinto /etc/xinetd.d
62 newins "${FILESDIR}"/rsyncd.xinetd rsyncd
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 }

  ViewVC Help
Powered by ViewVC 1.1.20