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

Contents of /net-misc/rsync/rsync-2.5.6_pre20021105.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Feb 22 22:41:09 2003 UTC (17 years, 1 month ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
add conf.d and init.d files

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/rsync/rsync-2.5.6_pre20021105.ebuild,v 1.5 2003/02/13 15:06:28 vapier Exp $
4
5 S=${WORKDIR}/${P}
6 DESCRIPTION="File transfer program to keep remote files into sync"
7 SRC_URI="http://cvs.gentoo.org/~blizzy/${PF}.tar.bz2"
8 HOMEPAGE="http://rsync.samba.org"
9 KEYWORDS="x86 ~ppc ~sparc ~alpha"
10 LICENSE="GPL-2"
11 SLOT="0"
12
13 DEPEND="virtual/glibc"
14
15 src_unpack() {
16 unpack ${A}
17 cd ${S}
18
19 # change confdir to /etc/rsync rather than just /etc (the --sysconfdir
20 # configure option doesn't work
21 cp rsync.h rsync.h.orig
22 sed -e 's:RSYNCD_CONF "/etc/rsyncd.conf":RSYNCD_CONF "/etc/rsync/rsyncd.conf":g' rsync.h.orig > rsync.h
23
24 # yes, updating the man page is very important.
25 cp rsyncd.conf.5 rsyncd.conf.5.orig
26 sed -e 's:/etc/rsyncd:/etc/rsync/rsyncd:g' rsyncd.conf.5.orig > rsyncd.conf.5
27 }
28
29 src_compile() {
30 if [ -n "$(use build)" ]; then
31 POPTSETTING="--with-included-popt"
32 else
33 POPTSETTING=""
34 fi
35 ./configure --prefix=/usr --host=${CHOST} ${POPTSETTING} || die
36 if [ "`use static`" ] ; then
37 emake LDFLAGS="-static" || die
38 else
39 emake || die
40 fi
41 }
42
43 src_install () {
44 make prefix=${D}/usr \
45 mandir=${D}/usr/share/man \
46 install || die
47 if [ -z "`use build`" ]
48 then
49 dodir /etc/rsync
50 dodoc COPYING NEWS OLDNEWS README TODO tech_report.tex
51 else
52 rm -rf ${D}/usr/share
53 fi
54 }
55
56 pkg_postinst() {
57 if [ ! -d /etc/rsync ]
58 then
59 mkdir /etc/rsync
60 fi
61 }

  ViewVC Help
Powered by ViewVC 1.1.20