Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 390183
Collapse All | Expand All

(-)vsftpd-2.3.4.ebuild (-18 / +19 lines)
Lines 2-7 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.3.4.ebuild,v 1.7 2011/05/18 15:25:43 jer Exp $
3
# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.3.4.ebuild,v 1.7 2011/05/18 15:25:43 jer Exp $
4
4
5
EAPI=4
6
5
inherit eutils toolchain-funcs
7
inherit eutils toolchain-funcs
6
8
7
DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
9
DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
Lines 22-31 Link Here
22
	selinux? ( sec-policy/selinux-ftpd )
24
	selinux? ( sec-policy/selinux-ftpd )
23
	xinetd? ( sys-apps/xinetd )"
25
	xinetd? ( sys-apps/xinetd )"
24
26
25
src_unpack() {
27
src_prepare() {
26
	unpack ${A}
27
	cd "${S}"
28
29
	# as-needed patch. Bug #335977
28
	# as-needed patch. Bug #335977
30
	epatch "${FILESDIR}/${PN}-2.3.2-as-needed.patch"
29
	epatch "${FILESDIR}/${PN}-2.3.2-as-needed.patch"
31
30
Lines 45-90 Link Here
45
44
46
	# Ensure that we don't link against libcap unless asked
45
	# Ensure that we don't link against libcap unless asked
47
	if ! use caps ; then
46
	if ! use caps ; then
48
		sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c
47
		sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
49
		epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
48
		epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
50
	fi
49
	fi
51
50
52
	# Let portage control stripping
51
	# Let portage control stripping
53
	sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile
52
	sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
54
}
53
}
55
54
56
src_compile() {
55
src_compile() {
57
	emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
56
	emake \
57
		CFLAGS="${CFLAGS}" \
58
		CC="$(tc-getCC)"
58
}
59
}
59
60
60
src_install() {
61
src_install() {
61
	into /usr
62
	into /usr
62
	doman vsftpd.conf.5 vsftpd.8 || die "doman failed"
63
	doman vsftpd.conf.5 vsftpd.8
63
	dosbin vsftpd || die "disbin failed"
64
	dosbin vsftpd
64
65
65
	dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
66
	dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
66
		README README.security REWARD SIZE \
67
		README README.security REWARD SIZE \
67
		SPEED TODO TUNING || die "dodoc failed"
68
		SPEED TODO TUNING
68
	newdoc vsftpd.conf vsftpd.conf.example || die "newdoc failed"
69
	newdoc vsftpd.conf vsftpd.conf.example
69
70
70
	docinto security
71
	docinto security
71
	dodoc SECURITY/* || die "dodoc failed"
72
	dodoc SECURITY/*
72
73
73
	insinto "/usr/share/doc/${PF}/examples"
74
	insinto "/usr/share/doc/${PF}/examples"
74
	doins -r EXAMPLE/* || die "doins faileD"
75
	doins -r EXAMPLE/*
75
76
76
	insinto /etc/vsftpd
77
	insinto /etc/vsftpd
77
	newins vsftpd.conf vsftpd.conf.example || die "newins failed"
78
	newins vsftpd.conf vsftpd.conf.example
78
79
79
	insinto /etc/logrotate.d
80
	insinto /etc/logrotate.d
80
	newins "${FILESDIR}/vsftpd.logrotate" vsftpd || die "newins failed"
81
	newins "${FILESDIR}/vsftpd.logrotate" vsftpd
81
82
82
	if use xinetd ; then
83
	if use xinetd ; then
83
		insinto /etc/xinetd.d
84
		insinto /etc/xinetd.d
84
		newins "${FILESDIR}/vsftpd.xinetd" vsftpd || die "newins failed"
85
		newins "${FILESDIR}/vsftpd.xinetd" vsftpd
85
	fi
86
	fi
86
87
87
	newinitd "${FILESDIR}/vsftpd.init" vsftpd || die "newinitd failed"
88
	newinitd "${FILESDIR}/vsftpd.init" vsftpd
88
89
89
	keepdir /usr/share/vsftpd/empty
90
	keepdir /usr/share/vsftpd/empty
90
}
91
}
Lines 93-99 Link Here
93
	# If we use xinetd, then we set listen=NO
94
	# If we use xinetd, then we set listen=NO
94
	# so that our default config works under xinetd - fixes #78347
95
	# so that our default config works under xinetd - fixes #78347
95
	if use xinetd ; then
96
	if use xinetd ; then
96
		sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/vsftpd/vsftpd.conf.example
97
		sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/vsftpd/vsftpd.conf.example || die
97
	fi
98
	fi
98
}
99
}
99
100

Return to bug 390183