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

Contents of /net-misc/rsync/rsync-3.1.1_pre2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jul 7 07:51:31 2014 UTC (5 years, 9 months ago) by polynomial-c
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
changelog

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)

1 # Copyright 1999-2014 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.1.1_pre2.ebuild,v 1.2 2014/05/27 07:32:45 polynomial-c Exp $
4
5 EAPI="5"
6
7 inherit eutils flag-o-matic prefix systemd
8
9 DESCRIPTION="File transfer program to keep remote files into sync"
10 HOMEPAGE="http://rsync.samba.org/"
11 SRC_URI="http://rsync.samba.org/ftp/rsync/src/${P/_/}.tar.gz"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
16 IUSE="acl iconv ipv6 static xattr"
17
18 if [[ ${PV} = *pre* ]] ; then
19 SRC_URI="http://rsync.samba.org/ftp/rsync/src-previews/${P/_/}.tar.gz"
20 KEYWORDS=""
21 fi
22
23 LIB_DEPEND="acl? ( virtual/acl[static-libs(+)] )
24 xattr? ( kernel_linux? ( sys-apps/attr[static-libs(+)] ) )
25 >=dev-libs/popt-1.5[static-libs(+)]"
26 RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
27 iconv? ( virtual/libiconv )"
28 DEPEND="${RDEPEND}
29 static? ( ${LIB_DEPEND} )"
30
31 S=${WORKDIR}/${P/_/}
32
33 src_prepare() {
34 epatch_user
35 }
36
37 src_configure() {
38 use static && append-ldflags -static
39 econf \
40 --without-included-popt \
41 $(use_enable acl acl-support) \
42 $(use_enable xattr xattr-support) \
43 $(use_enable ipv6) \
44 $(use_enable iconv) \
45 --with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf
46 touch proto.h-tstamp #421625
47 }
48
49 src_install() {
50 emake DESTDIR="${D}" install
51 newconfd "${FILESDIR}"/rsyncd.conf.d rsyncd
52 newinitd "${FILESDIR}"/rsyncd.init.d-r1 rsyncd
53 dodoc NEWS OLDNEWS README TODO tech_report.tex
54 insinto /etc
55 newins "${FILESDIR}"/rsyncd.conf-3.0.9-r1 rsyncd.conf
56
57 insinto /etc/logrotate.d
58 newins "${FILESDIR}"/rsyncd.logrotate rsyncd
59
60 insinto /etc/xinetd.d
61 newins "${FILESDIR}"/rsyncd.xinetd-3.0.9-r1 rsyncd
62
63 # Install the useful contrib scripts
64 exeinto /usr/share/rsync
65 doexe support/*
66 rm -f "${ED}"/usr/share/rsync/{Makefile*,*.c}
67
68 eprefixify "${ED}"/etc/{,xinetd.d}/rsyncd*
69
70 systemd_dounit "${FILESDIR}/rsyncd.service"
71 }
72
73 pkg_postinst() {
74 if egrep -qis '^[[:space:]]use chroot[[:space:]]*=[[:space:]]*(no|0|false)' \
75 "${EROOT}"/etc/rsyncd.conf "${EROOT}"/etc/rsync/rsyncd.conf ; then
76 ewarn "You have disabled chroot support in your rsyncd.conf. This"
77 ewarn "is a security risk which you should fix. Please check your"
78 ewarn "/etc/rsyncd.conf file and fix the setting 'use chroot'."
79 fi
80 }

  ViewVC Help
Powered by ViewVC 1.1.20