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.6.ebuild
Date: Thu, 14 Feb 2008 16:34:17
Message-Id: E1JPh2K-0006pB-7H@stork.gentoo.org
1 armin76 08/02/14 16:34:12
2
3 Modified: ChangeLog
4 Added: vsftpd-2.0.6.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.90 net-ftp/vsftpd/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/ChangeLog?rev=1.90&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/ChangeLog?rev=1.90&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/ChangeLog?r1=1.89&r2=1.90
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v
19 retrieving revision 1.89
20 retrieving revision 1.90
21 diff -u -r1.89 -r1.90
22 --- ChangeLog 25 Dec 2007 16:23:11 -0000 1.89
23 +++ ChangeLog 14 Feb 2008 16:34:11 -0000 1.90
24 @@ -1,6 +1,11 @@
25 # ChangeLog for net-ftp/vsftpd
26 -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.89 2007/12/25 16:23:11 phreak Exp $
28 +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.90 2008/02/14 16:34:11 armin76 Exp $
30 +
31 +*vsftpd-2.0.6 (14 Feb 2008)
32 +
33 + 14 Feb 2008; Raúl Porcel <armin76@g.o> +vsftpd-2.0.6.ebuild:
34 + Version bump
35
36 25 Dec 2007; Christian Heim <phreak@g.o> metadata.xml:
37 Removing uberlord from metadata.xml as per #199318. Assigning to
38
39
40
41 1.1 net-ftp/vsftpd/vsftpd-2.0.6.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/vsftpd-2.0.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-ftp/vsftpd/vsftpd-2.0.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: vsftpd-2.0.6.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.0.6.ebuild,v 1.1 2008/02/14 16:34:11 armin76 Exp $
51
52 inherit eutils toolchain-funcs
53
54 DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
55 HOMEPAGE="http://vsftpd.beasts.org/"
56 SRC_URI="ftp://vsftpd.beasts.org/users/cevans/${P}.tar.gz"
57
58 LICENSE="GPL-2"
59 SLOT="0"
60 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
61 IUSE="caps logrotate pam tcpd ssl selinux xinetd"
62
63 DEPEND="caps? ( sys-libs/libcap )
64 pam? ( || ( virtual/pam sys-libs/pam ) )
65 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
66 ssl? ( >=dev-libs/openssl-0.9.7d )"
67 RDEPEND="${DEPEND}
68 net-ftp/ftpbase
69 logrotate? ( app-admin/logrotate )
70 selinux? ( sec-policy/selinux-ftpd )
71 xinetd? ( sys-apps/xinetd )"
72
73 src_unpack() {
74 unpack ${A}
75 cd "${S}"
76
77 # Patch the source, config and the manpage to use /etc/vsftpd/
78 epatch "${FILESDIR}/${PN}-2.0.3-gentoo.patch"
79
80 # Fix building without the libcap
81 epatch "${FILESDIR}/${PN}-2.0.5-caps.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 }
155
156
157
158 --
159 gentoo-commits@l.g.o mailing list