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

Contents of /net-misc/rsync/rsync-3.0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Tue Oct 20 08:28:28 2009 UTC (10 years, 5 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.2_rc46/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20