/[gentoo-x86]/net-misc/rsync/rsync-3.0.0-r2.ebuild
Gentoo

Contents of /net-misc/rsync/rsync-3.0.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Thu Jan 8 06:09:28 2009 UTC (11 years, 4 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
old

1 vapier 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 vapier 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-3.0.0-r2.ebuild,v 1.1 2008/03/17 03:47:02 vapier Exp $
4 vapier 1.1
5     inherit eutils flag-o-matic toolchain-funcs autotools
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-3"
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 xattr xinetd"
15    
16     DEPEND=">=dev-libs/popt-1.5
17     acl? ( kernel_linux? ( sys-apps/acl ) )
18     xattr? ( kernel_linux? ( sys-apps/attr ) )
19     xinetd? ( sys-apps/xinetd )"
20    
21     S=${WORKDIR}/${P/_/}
22    
23     src_unpack() {
24     unpack ${A}
25     cd "${S}"
26     epatch "${FILESDIR}"/${P}-acl-crash.patch
27     epatch "${FILESDIR}"/${P}-NULL-config.patch
28     epatch "${FILESDIR}"/${P}-fake-super-attrs.patch
29     epatch "${FILESDIR}"/${P}-dry-run-hang.patch #193243
30     }
31    
32     src_compile() {
33     use static && append-ldflags -static
34     econf \
35     --without-included-popt \
36     $(use_enable acl acl-support) \
37     $(use_enable xattr xattr-support) \
38     $(use_enable ipv6) \
39     --with-rsyncd-conf=/etc/rsyncd.conf \
40     || die
41     emake || die "emake failed"
42     }
43    
44     pkg_preinst() {
45     if [[ -e ${ROOT}/etc/rsync/rsyncd.conf ]] && [[ ! -e ${ROOT}/etc/rsyncd.conf ]] ; then
46     mv "${ROOT}"/etc/rsync/rsyncd.conf "${ROOT}"/etc/rsyncd.conf
47     rm -f "${ROOT}"/etc/rsync/.keep
48     rmdir "${ROOT}"/etc/rsync >& /dev/null
49     fi
50     }
51    
52     src_install() {
53     emake DESTDIR="${D}" install || die "make install failed"
54     newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
55     newinitd "${FILESDIR}"/rsyncd.init.d rsyncd
56     dodoc NEWS OLDNEWS README TODO tech_report.tex
57     insinto /etc
58     doins "${FILESDIR}"/rsyncd.conf
59    
60     insinto /etc/logrotate.d
61     newins "${FILESDIR}"/rsyncd.logrotate rsyncd
62    
63     if use xinetd ; then
64     insinto /etc/xinetd.d
65     newins "${FILESDIR}"/rsyncd.xinetd rsyncd
66     fi
67     }
68    
69     pkg_postinst() {
70     ewarn "The rsyncd.conf file has been moved for you to /etc/rsyncd.conf"
71     echo
72     ewarn "Please make sure you do NOT disable the rsync server running"
73     ewarn "in a chroot. Please check /etc/rsyncd.conf and make sure"
74     ewarn "it says: use chroot = yes"
75     }

  ViewVC Help
Powered by ViewVC 1.1.20