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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Apr 2 14:29:43 2011 UTC (3 years, 8 months ago) by armin76
Branch: MAIN
Changes since 1.5: +2 -2 lines
alpha/arm/ia64/m68k/s390/sh/sparc/x86 stable wrt #360891

(Portage version: 2.1.9.44/cvs/Linux ia64)

1 # Copyright 1999-2011 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.8.ebuild,v 1.5 2011/03/29 03:55:49 xarthisius 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 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 support/* || die
59 rm -f "${D}"/usr/share/rsync/{Makefile*,*.c}
60 }
61
62 pkg_postinst() {
63 if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
64 "${ROOT}"/etc/rsyncd.conf "${ROOT}"/etc/rsync/rsyncd.conf ; then
65 ewarn "You have disabled chroot support in your rsyncd.conf. This"
66 ewarn "is a security risk which you should fix. Please check your"
67 ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
68 fi
69 }

  ViewVC Help
Powered by ViewVC 1.1.20