Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-ftp/vsftpd: ChangeLog vsftpd-2.0.7.ebuild
Date: Thu, 31 Jul 2008 09:58:18
Message-Id: E1KOUvH-0005Xc-1p@stork.gentoo.org
1 armin76 08/07/31 09:58:15
2
3 Modified: ChangeLog
4 Added: vsftpd-2.0.7.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.100 net-ftp/vsftpd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/ChangeLog?rev=1.100&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/ChangeLog?rev=1.100&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/ChangeLog?r1=1.99&r2=1.100
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v
19 retrieving revision 1.99
20 retrieving revision 1.100
21 diff -u -r1.99 -r1.100
22 --- ChangeLog 2 Jun 2008 04:18:14 -0000 1.99
23 +++ ChangeLog 31 Jul 2008 09:58:14 -0000 1.100
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-ftp/vsftpd
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.99 2008/06/02 04:18:14 darkside Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.100 2008/07/31 09:58:14 armin76 Exp $
29 +
30 +*vsftpd-2.0.7 (31 Jul 2008)
31 +
32 + 31 Jul 2008; Raúl Porcel <armin76@g.o> +vsftpd-2.0.7.ebuild:
33 + Version bump
34
35 02 Jun 2008; Jeremy Olexa <darkside@g.o> files/vsftpd.init:
36 Modified init script to allow vsftpd to stop correctly. Thanks to Vaclav
37
38
39
40 1.1 net-ftp/vsftpd/vsftpd-2.0.7.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/vsftpd-2.0.7.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/vsftpd-2.0.7.ebuild?rev=1.1&content-type=text/plain
44
45 Index: vsftpd-2.0.7.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.0.7.ebuild,v 1.1 2008/07/31 09:58:14 armin76 Exp $
50
51 inherit eutils toolchain-funcs
52
53 DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
54 HOMEPAGE="http://vsftpd.beasts.org/"
55 SRC_URI="ftp://vsftpd.beasts.org/users/cevans/${P}.tar.gz"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
60 IUSE="caps logrotate pam tcpd ssl selinux xinetd"
61
62 DEPEND="caps? ( sys-libs/libcap )
63 pam? ( virtual/pam )
64 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
65 ssl? ( >=dev-libs/openssl-0.9.7d )"
66 RDEPEND="${DEPEND}
67 net-ftp/ftpbase
68 logrotate? ( app-admin/logrotate )
69 selinux? ( sec-policy/selinux-ftpd )
70 xinetd? ( sys-apps/xinetd )"
71
72 src_unpack() {
73 unpack ${A}
74 cd "${S}"
75
76 # Patch the source, config and the manpage to use /etc/vsftpd/
77 epatch "${FILESDIR}/${PN}-2.0.3-gentoo.patch"
78
79 # Fix building without the libcap
80 epatch "${FILESDIR}/${PN}-2.0.6-caps.patch"
81 has_version "<sys-libs/libcap-2" && epatch "${FILESDIR}"/${PN}-2.0.6-libcap1.patch
82
83 # Configure vsftpd build defaults
84 use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
85 use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
86 use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
87
88 # Ensure that we don't link against libcap unless asked
89 if ! use caps ; then
90 sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c
91 sed -i '/libcap/ d' vsf_findlibs.sh
92 fi
93
94 # Let portage control stripping
95 sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile
96 }
97
98 src_compile() {
99 emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
100 }
101
102 src_install() {
103 into /usr
104 doman vsftpd.conf.5 vsftpd.8
105 dosbin vsftpd || die
106
107 dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
108 README README.security REWARD SIZE \
109 SPEED TODO TUNING
110 newdoc vsftpd.conf vsftpd.conf.example
111
112 docinto security
113 dodoc SECURITY/*
114
115 insinto "/usr/share/doc/${PF}/examples"
116 doins -r EXAMPLE/*
117
118 insinto /etc/vsftpd
119 newins vsftpd.conf vsftpd.conf.example
120
121 if use logrotate ; then
122 insinto /etc/logrotate.d
123 newins "${FILESDIR}/vsftpd.logrotate" vsftpd
124 fi
125
126 if use xinetd ; then
127 insinto /etc/xinetd.d
128 newins "${FILESDIR}/vsftpd.xinetd" vsftpd
129 fi
130
131 newinitd "${FILESDIR}/vsftpd.init" vsftpd
132
133 keepdir /usr/share/vsftpd/empty
134 }
135
136 pkg_preinst() {
137 # If we use xinetd, then we comment out listen=YES
138 # so that our default config works under xinetd - fixes #78347
139 if use xinetd ; then
140 sed -i '/\listen=YES/s/^/#/g' "${D}"/etc/vsftpd/vsftpd.conf.example
141 fi
142 }
143
144 pkg_postinst() {
145 einfo "vsftpd init script can now be multiplexed."
146 einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
147 einfo "If you symlink the init script to another one, say vsftpd.foo"
148 einfo "then that uses /etc/vsftpd/foo.conf instead."
149 einfo
150 einfo "Example:"
151 einfo " cd /etc/init.d"
152 einfo " ln -s vsftpd vsftpd.foo"
153 einfo "You can now treat vsftpd.foo like any other service"
154 }