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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Jan 9 18:18:21 2011 UTC (9 years, 4 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Complete fail of a revbump on my part, sorry about that, lets try it again.

(Portage version: 2.2.0_alpha14/cvs/Linux x86_64)

1 robbat2 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 robbat2 1.2 # $Header: /var/cvsroot/gentoo-x86/net-misc/rsync/rsync-3.0.7-r1.ebuild,v 1.1 2011/01/09 09:27:36 robbat2 Exp $
4 robbat2 1.1
5     inherit eutils flag-o-matic
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/src/${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 ~x86 ~sparc-fbsd ~x86-fbsd"
14     IUSE="acl iconv ipv6 static xattr"
15    
16     DEPEND=">=dev-libs/popt-1.5
17     acl? ( virtual/acl )
18     xattr? ( kernel_linux? ( sys-apps/attr ) )
19     iconv? ( virtual/libiconv )"
20    
21     S=${WORKDIR}/${P/_/}
22    
23     src_unpack() {
24     unpack ${A}
25     cd "${S}"
26     epatch_user
27     }
28    
29     src_compile() {
30     use static && append-ldflags -static
31     econf \
32     --without-included-popt \
33     $(use_enable acl acl-support) \
34     $(use_enable xattr xattr-support) \
35     $(use_enable ipv6) \
36     $(use_enable iconv) \
37     --with-rsyncd-conf=/etc/rsyncd.conf \
38     || die
39     emake || die
40     }
41    
42     src_install() {
43     emake DESTDIR="${D}" install || die
44     newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
45     newinitd "${FILESDIR}"/rsyncd.init.d rsyncd || die
46     dodoc NEWS OLDNEWS README TODO tech_report.tex
47     insinto /etc
48     doins "${FILESDIR}"/rsyncd.conf || die
49    
50     insinto /etc/logrotate.d
51     newins "${FILESDIR}"/rsyncd.logrotate rsyncd
52    
53     insinto /etc/xinetd.d
54     newins "${FILESDIR}"/rsyncd.xinetd rsyncd
55    
56     # Install the useful contrib scripts
57     exeinto /usr/share/rsync/
58     doexe atomic-rsync cvs2includes deny-rsync file-attr-restore files-to-excludes git-set-file-times logfilter lsh mnt-excl munge-symlinks rrsync rsyncstats
59     }
60    
61     pkg_postinst() {
62     if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
63     "${ROOT}"/etc/rsyncd.conf "${ROOT}"/etc/rsync/rsyncd.conf ; then
64     ewarn "You have disabled chroot support in your rsyncd.conf. This"
65     ewarn "is a security risk which you should fix. Please check your"
66     ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
67     fi
68     }

  ViewVC Help
Powered by ViewVC 1.1.20