blob: 2621a5a017e19f8f56efbb2ab6a13dce9c3f2f3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/sitecopy/sitecopy-0.15.1.ebuild,v 1.4 2006/02/22 05:03:02 chriswhite Exp $
inherit eutils toolchain-funcs
IUSE="expat gssapi nls rsh sftp ssl webdav xml2 zlib"
DESCRIPTION="sitecopy is for easily maintaining remote web sites"
SRC_URI="http://www.lyra.org/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.lyra.org/sitecopy/"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
LICENSE="GPL-2"
SLOT="0"
# gnome support is disabled at this point
# as the gnome frontend appears to be
# very unstable! - Chris White
# gnome? (
# gnome-base/gnome-libs
# =x11-libs/gtk+-1* )
DEPEND="rsh? ( net-misc/netkit-rsh )
sftp? ( net-misc/openssh )
>=net-misc/neon-0.24.6"
pkg_setup() {
ewarn "gnome support has been disabled"
ewarn "until some major bugs can"
ewarn "be fixed regarding it!"
}
src_unpack() {
unpack ${A}
cd ${S}
if [ $(gcc-version) = "3.4" ]
then
epatch ${FILESDIR}/${PN}-gcc3.4.patch
fi
sed -i -e \
"s:docdir \= .*:docdir \= \$\(prefix\)\/share/doc\/${PF}:" \
Makefile.in || die "Documentation directory patching failed"
}
src_compile() {
einfo "Sitecopy uses neon unconditionally for a security bug."
einfo "The sitecopy system also checks for zlib, ssl, and xml"
einfo "support through neon instead of the actual system libraries"
einfo "therefore support must be built into neon."
if use zlib ; then
built_with_use net-misc/neon zlib || die "neon needs zlib support"
fi
if use ssl ; then
built_with_use net-misc/neon ssl || die "neon needs ssl support"
myconf="${myconf} --with-ssl=openssl"
fi
if use expat ; then
built_with_use net-misc/neon expat || die "neon needs expat support"
fi
if use xml2 ; then
built_with_use net-misc/neon expat && die "neon needs expat support disabled for
xml2 support to be enabled"
fi
# Bug 51585, GLSA 200406-03
einfo "Forcing the use of the system-wide neon library (BR #51585)."
myconf="${myconf} --with-neon"
econf ${myconf} \
$(use_enable webdav) \
$(use_with gssapi) \
$(use_enable nls) \
$(use_enable rsh) \
$(use_enable sftp) \
$(use_with expat) \
$(use_with xml2 libxml2 ) \
|| die "configuration failed"
# fixes some gnome compile issues
# if use gnome
# then
# echo "int fe_accept_cert(const ne_ssl_certificate *cert, int failures) { return 0; }" >> gnome/gcommon.c
# sed -i -e "s:-lglib:-lglib -lgthread:" Makefile
# fi
emake || die "Make failed"
}
src_install() {
make DESTDIR=${D} install || die "install failed"
}
pkg_postinst() {
if use sftp
then
einfo "Please note that in order to use sftp"
einfo "You must have 'protocol sftp instead of ftp"
einfo "This is not documented in the man page"
fi
}
|