summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2013-04-27 09:45:09 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2013-04-27 09:45:09 +0000
commitff64eb583f34748dc71ef4d5dcaf92f896d455ba (patch)
treefedca41a2359caa7f2815360a491ea0698dfe344 /net-ftp
parentsys-kernel/aufs-sources: Bump to linux 3.8.10 and latest aufs3 release (diff)
downloadgentoo-2-ff64eb583f34748dc71ef4d5dcaf92f896d455ba.tar.gz
gentoo-2-ff64eb583f34748dc71ef4d5dcaf92f896d455ba.tar.bz2
gentoo-2-ff64eb583f34748dc71ef4d5dcaf92f896d455ba.zip
Install the checkconfig.sh script for every version. Bug #467410. Remove old
(Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)
Diffstat (limited to 'net-ftp')
-rw-r--r--net-ftp/vsftpd/ChangeLog7
-rw-r--r--net-ftp/vsftpd/vsftpd-2.2.2.ebuild104
-rw-r--r--net-ftp/vsftpd/vsftpd-2.3.2-r1.ebuild110
-rw-r--r--net-ftp/vsftpd/vsftpd-2.3.2.ebuild104
-rw-r--r--net-ftp/vsftpd/vsftpd-2.3.4.ebuild110
-rw-r--r--net-ftp/vsftpd/vsftpd-2.3.5.ebuild7
-rw-r--r--net-ftp/vsftpd/vsftpd-3.0.0.ebuild112
-rw-r--r--net-ftp/vsftpd/vsftpd-3.0.2.ebuild5
8 files changed, 15 insertions, 544 deletions
diff --git a/net-ftp/vsftpd/ChangeLog b/net-ftp/vsftpd/ChangeLog
index 2d05d97d311d..a753656efb9a 100644
--- a/net-ftp/vsftpd/ChangeLog
+++ b/net-ftp/vsftpd/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-ftp/vsftpd
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.167 2013/04/20 16:51:02 hwoarang Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/ChangeLog,v 1.168 2013/04/27 09:45:08 hwoarang Exp $
+
+ 27 Apr 2013; Markos Chandras <hwoarang@gentoo.org> -vsftpd-2.2.2.ebuild,
+ -vsftpd-2.3.2-r1.ebuild, -vsftpd-2.3.2.ebuild, -vsftpd-2.3.4.ebuild,
+ -vsftpd-3.0.0.ebuild, vsftpd-2.3.5.ebuild, vsftpd-3.0.2.ebuild:
+ Install the checkconfig.sh script for every version. Bug #467410. Remove old
*vsftpd-3.0.2-r1 (20 Apr 2013)
diff --git a/net-ftp/vsftpd/vsftpd-2.2.2.ebuild b/net-ftp/vsftpd/vsftpd-2.2.2.ebuild
deleted file mode 100644
index 8f0c8a8576a6..000000000000
--- a/net-ftp/vsftpd/vsftpd-2.2.2.ebuild
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.2.2.ebuild,v 1.6 2012/05/13 10:57:37 swift Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
-HOMEPAGE="http://vsftpd.beasts.org/"
-SRC_URI="ftp://vsftpd.beasts.org/users/cevans/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-IUSE="caps pam tcpd ssl selinux xinetd"
-
-DEPEND="caps? ( >=sys-libs/libcap-2 )
- pam? ( virtual/pam )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- ssl? ( >=dev-libs/openssl-0.9.7d )"
-RDEPEND="${DEPEND}
- net-ftp/ftpbase
- selinux? ( sec-policy/selinux-ftp )
- xinetd? ( sys-apps/xinetd )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Patch the source, config and the manpage to use /etc/vsftpd/
- epatch "${FILESDIR}/${PN}-2.2.0-gentoo.patch"
-
- # Fix building without the libcap
- epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
-
- # Configure vsftpd build defaults
- use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
- use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
- use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
-
- # Ensure that we don't link against libcap unless asked
- if ! use caps ; then
- sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c
- epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
- fi
-
- # Let portage control stripping
- sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
-}
-
-src_install() {
- into /usr
- doman vsftpd.conf.5 vsftpd.8
- dosbin vsftpd || die
-
- dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
- README README.security REWARD SIZE \
- SPEED TODO TUNING
- newdoc vsftpd.conf vsftpd.conf.example
-
- docinto security
- dodoc SECURITY/*
-
- insinto "/usr/share/doc/${PF}/examples"
- doins -r EXAMPLE/*
-
- insinto /etc/vsftpd
- newins vsftpd.conf vsftpd.conf.example
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/vsftpd.logrotate" vsftpd
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}/vsftpd.xinetd" vsftpd
- fi
-
- newinitd "${FILESDIR}/vsftpd.init" vsftpd
-
- keepdir /usr/share/vsftpd/empty
-}
-
-pkg_preinst() {
- # If we use xinetd, then we set listen=NO
- # so that our default config works under xinetd - fixes #78347
- if use xinetd ; then
- sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/vsftpd/vsftpd.conf.example
- fi
-}
-
-pkg_postinst() {
- einfo "vsftpd init script can now be multiplexed."
- einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
- einfo "If you symlink the init script to another one, say vsftpd.foo"
- einfo "then that uses /etc/vsftpd/foo.conf instead."
- einfo
- einfo "Example:"
- einfo " cd /etc/init.d"
- einfo " ln -s vsftpd vsftpd.foo"
- einfo "You can now treat vsftpd.foo like any other service"
-}
diff --git a/net-ftp/vsftpd/vsftpd-2.3.2-r1.ebuild b/net-ftp/vsftpd/vsftpd-2.3.2-r1.ebuild
deleted file mode 100644
index 38e8d35beeb7..000000000000
--- a/net-ftp/vsftpd/vsftpd-2.3.2-r1.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.3.2-r1.ebuild,v 1.8 2012/05/13 10:57:37 swift Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
-HOMEPAGE="http://vsftpd.beasts.org/"
-SRC_URI="ftp://vsftpd.beasts.org/users/cevans/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-IUSE="caps pam tcpd ssl selinux xinetd"
-
-DEPEND="caps? ( >=sys-libs/libcap-2 )
- pam? ( virtual/pam )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- ssl? ( >=dev-libs/openssl-0.9.7d )"
-RDEPEND="${DEPEND}
- net-ftp/ftpbase
- selinux? ( sec-policy/selinux-ftp )
- xinetd? ( sys-apps/xinetd )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # as-needed patch. Bug #335977
- epatch "${FILESDIR}/${P}-as-needed.patch"
-
- # kerberos patch. bug #335980
- epatch "${FILESDIR}/${P}-kerberos.patch"
-
- # Patch the source, config and the manpage to use /etc/vsftpd/
- epatch "${FILESDIR}/${PN}-2.2.0-gentoo.patch"
-
- # Fix building without the libcap
- epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
-
- # Configure vsftpd build defaults
- use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
- use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
- use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
-
- # Ensure that we don't link against libcap unless asked
- if ! use caps ; then
- sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c
- epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
- fi
-
- # Let portage control stripping
- sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
-}
-
-src_install() {
- into /usr
- doman vsftpd.conf.5 vsftpd.8 || die "doman failed"
- dosbin vsftpd || die "disbin failed"
-
- dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
- README README.security REWARD SIZE \
- SPEED TODO TUNING || die "dodoc failed"
- newdoc vsftpd.conf vsftpd.conf.example || die "newdoc failed"
-
- docinto security
- dodoc SECURITY/* || die "dodoc failed"
-
- insinto "/usr/share/doc/${PF}/examples"
- doins -r EXAMPLE/* || die "doins faileD"
-
- insinto /etc/vsftpd
- newins vsftpd.conf vsftpd.conf.example || die "newins failed"
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/vsftpd.logrotate" vsftpd || die "newins failed"
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}/vsftpd.xinetd" vsftpd || die "newins failed"
- fi
-
- newinitd "${FILESDIR}/vsftpd.init" vsftpd || die "newinitd failed"
-
- keepdir /usr/share/vsftpd/empty
-}
-
-pkg_preinst() {
- # If we use xinetd, then we set listen=NO
- # so that our default config works under xinetd - fixes #78347
- if use xinetd ; then
- sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/vsftpd/vsftpd.conf.example
- fi
-}
-
-pkg_postinst() {
- einfo "vsftpd init script can now be multiplexed."
- einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
- einfo "If you symlink the init script to another one, say vsftpd.foo"
- einfo "then that uses /etc/vsftpd/foo.conf instead."
- einfo
- einfo "Example:"
- einfo " cd /etc/init.d"
- einfo " ln -s vsftpd vsftpd.foo"
- einfo "You can now treat vsftpd.foo like any other service"
-}
diff --git a/net-ftp/vsftpd/vsftpd-2.3.2.ebuild b/net-ftp/vsftpd/vsftpd-2.3.2.ebuild
deleted file mode 100644
index 76a040af9d7e..000000000000
--- a/net-ftp/vsftpd/vsftpd-2.3.2.ebuild
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.3.2.ebuild,v 1.2 2012/05/13 10:57:37 swift Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
-HOMEPAGE="http://vsftpd.beasts.org/"
-SRC_URI="ftp://vsftpd.beasts.org/users/cevans/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-IUSE="caps pam tcpd ssl selinux xinetd"
-
-DEPEND="caps? ( >=sys-libs/libcap-2 )
- pam? ( virtual/pam )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- ssl? ( >=dev-libs/openssl-0.9.7d )"
-RDEPEND="${DEPEND}
- net-ftp/ftpbase
- selinux? ( sec-policy/selinux-ftp )
- xinetd? ( sys-apps/xinetd )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # Patch the source, config and the manpage to use /etc/vsftpd/
- epatch "${FILESDIR}/${PN}-2.2.0-gentoo.patch"
-
- # Fix building without the libcap
- epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
-
- # Configure vsftpd build defaults
- use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
- use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
- use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
-
- # Ensure that we don't link against libcap unless asked
- if ! use caps ; then
- sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c
- epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
- fi
-
- # Let portage control stripping
- sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
-}
-
-src_install() {
- into /usr
- doman vsftpd.conf.5 vsftpd.8 || die "doman failed"
- dosbin vsftpd || die "disbin failed"
-
- dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
- README README.security REWARD SIZE \
- SPEED TODO TUNING || die "dodoc failed"
- newdoc vsftpd.conf vsftpd.conf.example || die "newdoc failed"
-
- docinto security
- dodoc SECURITY/* || die "dodoc failed"
-
- insinto "/usr/share/doc/${PF}/examples"
- doins -r EXAMPLE/* || die "doins faileD"
-
- insinto /etc/vsftpd
- newins vsftpd.conf vsftpd.conf.example || die "newins failed"
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/vsftpd.logrotate" vsftpd || die "newins failed"
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}/vsftpd.xinetd" vsftpd || die "newins failed"
- fi
-
- newinitd "${FILESDIR}/vsftpd.init" vsftpd || die "newinitd failed"
-
- keepdir /usr/share/vsftpd/empty
-}
-
-pkg_preinst() {
- # If we use xinetd, then we set listen=NO
- # so that our default config works under xinetd - fixes #78347
- if use xinetd ; then
- sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/vsftpd/vsftpd.conf.example
- fi
-}
-
-pkg_postinst() {
- einfo "vsftpd init script can now be multiplexed."
- einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
- einfo "If you symlink the init script to another one, say vsftpd.foo"
- einfo "then that uses /etc/vsftpd/foo.conf instead."
- einfo
- einfo "Example:"
- einfo " cd /etc/init.d"
- einfo " ln -s vsftpd vsftpd.foo"
- einfo "You can now treat vsftpd.foo like any other service"
-}
diff --git a/net-ftp/vsftpd/vsftpd-2.3.4.ebuild b/net-ftp/vsftpd/vsftpd-2.3.4.ebuild
deleted file mode 100644
index 6a7a2fee437e..000000000000
--- a/net-ftp/vsftpd/vsftpd-2.3.4.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.3.4.ebuild,v 1.9 2012/05/13 10:57:37 swift Exp $
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
-HOMEPAGE="http://vsftpd.beasts.org/"
-SRC_URI="ftp://vsftpd.beasts.org/users/cevans/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 arm ~hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
-IUSE="caps pam tcpd ssl selinux xinetd"
-
-DEPEND="caps? ( >=sys-libs/libcap-2 )
- pam? ( virtual/pam )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- ssl? ( >=dev-libs/openssl-0.9.7d )"
-RDEPEND="${DEPEND}
- net-ftp/ftpbase
- selinux? ( sec-policy/selinux-ftp )
- xinetd? ( sys-apps/xinetd )"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
-
- # as-needed patch. Bug #335977
- epatch "${FILESDIR}/${PN}-2.3.2-as-needed.patch"
-
- # kerberos patch. bug #335980
- epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
-
- # Patch the source, config and the manpage to use /etc/vsftpd/
- epatch "${FILESDIR}/${PN}-2.2.0-gentoo.patch"
-
- # Fix building without the libcap
- epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
-
- # Configure vsftpd build defaults
- use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
- use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
- use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
-
- # Ensure that we don't link against libcap unless asked
- if ! use caps ; then
- sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c
- epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
- fi
-
- # Let portage control stripping
- sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile
-}
-
-src_compile() {
- emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die
-}
-
-src_install() {
- into /usr
- doman vsftpd.conf.5 vsftpd.8 || die "doman failed"
- dosbin vsftpd || die "disbin failed"
-
- dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
- README README.security REWARD SIZE \
- SPEED TODO TUNING || die "dodoc failed"
- newdoc vsftpd.conf vsftpd.conf.example || die "newdoc failed"
-
- docinto security
- dodoc SECURITY/* || die "dodoc failed"
-
- insinto "/usr/share/doc/${PF}/examples"
- doins -r EXAMPLE/* || die "doins faileD"
-
- insinto /etc/vsftpd
- newins vsftpd.conf vsftpd.conf.example || die "newins failed"
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/vsftpd.logrotate" vsftpd || die "newins failed"
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}/vsftpd.xinetd" vsftpd || die "newins failed"
- fi
-
- newinitd "${FILESDIR}/vsftpd.init" vsftpd || die "newinitd failed"
-
- keepdir /usr/share/vsftpd/empty
-}
-
-pkg_preinst() {
- # If we use xinetd, then we set listen=NO
- # so that our default config works under xinetd - fixes #78347
- if use xinetd ; then
- sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/vsftpd/vsftpd.conf.example
- fi
-}
-
-pkg_postinst() {
- einfo "vsftpd init script can now be multiplexed."
- einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
- einfo "If you symlink the init script to another one, say vsftpd.foo"
- einfo "then that uses /etc/vsftpd/foo.conf instead."
- einfo
- einfo "Example:"
- einfo " cd /etc/init.d"
- einfo " ln -s vsftpd vsftpd.foo"
- einfo "You can now treat vsftpd.foo like any other service"
-}
diff --git a/net-ftp/vsftpd/vsftpd-2.3.5.ebuild b/net-ftp/vsftpd/vsftpd-2.3.5.ebuild
index 496d236f4e1b..2e93fa055009 100644
--- a/net-ftp/vsftpd/vsftpd-2.3.5.ebuild
+++ b/net-ftp/vsftpd/vsftpd-2.3.5.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.3.5.ebuild,v 1.9 2012/05/28 14:50:42 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-2.3.5.ebuild,v 1.10 2013/04/27 09:45:08 hwoarang Exp $
EAPI="4"
@@ -89,6 +89,9 @@ src_install() {
newinitd "${FILESDIR}/${PN}.init" ${PN}
keepdir /usr/share/${PN}/empty
+
+ exeinto /usr/libexec
+ doexe "${FILESDIR}/vsftpd-checkconfig.sh"
}
pkg_preinst() {
diff --git a/net-ftp/vsftpd/vsftpd-3.0.0.ebuild b/net-ftp/vsftpd/vsftpd-3.0.0.ebuild
deleted file mode 100644
index 9ccbd279b522..000000000000
--- a/net-ftp/vsftpd/vsftpd-3.0.0.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-3.0.0.ebuild,v 1.2 2012/05/13 10:57:37 swift Exp $
-
-EAPI="4"
-
-inherit eutils toolchain-funcs
-
-DESCRIPTION="Very Secure FTP Daemon written with speed, size and security in mind"
-HOMEPAGE="http://vsftpd.beasts.org/"
-SRC_URI="http://security.appspot.com/downloads/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
-IUSE="caps pam tcpd ssl selinux xinetd"
-
-DEPEND="caps? ( >=sys-libs/libcap-2 )
- pam? ( virtual/pam )
- tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
- ssl? ( >=dev-libs/openssl-0.9.7d )"
-RDEPEND="${DEPEND}
- net-ftp/ftpbase
- selinux? ( sec-policy/selinux-ftp )
- xinetd? ( sys-apps/xinetd )"
-
-src_prepare() {
-
- # kerberos patch. bug #335980
- epatch "${FILESDIR}/${PN}-2.3.2-kerberos.patch"
-
- # Patch the source, config and the manpage to use /etc/vsftpd/
- epatch "${FILESDIR}/${PN}-2.3.5-gentoo.patch"
-
- # Fix building without the libcap
- epatch "${FILESDIR}/${PN}-2.1.0-caps.patch"
-
- # Configure vsftpd build defaults
- use tcpd && echo "#define VSF_BUILD_TCPWRAPPERS" >> builddefs.h
- use ssl && echo "#define VSF_BUILD_SSL" >> builddefs.h
- use pam || echo "#undef VSF_BUILD_PAM" >> builddefs.h
-
- # Ensure that we don't link against libcap unless asked
- if ! use caps ; then
- sed -i '/^#define VSF_SYSDEP_HAVE_LIBCAP$/ d' sysdeputil.c || die
- epatch "${FILESDIR}"/${PN}-2.2.0-dont-link-caps.patch
- fi
-
- # Let portage control stripping
- sed -i '/^LINK[[:space:]]*=[[:space:]]*/ s/-Wl,-s//' Makefile || die
-
- #Bug #335977
- epatch "${FILESDIR}"/${P}-Makefile.patch
-}
-
-src_compile() {
- CFLAGS="${CFLAGS}" \
- CC="$(tc-getCC)" \
- emake
-}
-
-src_install() {
- into /usr
- doman ${PN}.conf.5 ${PN}.8
- dosbin ${PN} || die "disbin failed"
-
- dodoc AUDIT BENCHMARKS BUGS Changelog FAQ \
- README README.security REWARD SIZE \
- SPEED TODO TUNING || die "dodoc failed"
- newdoc ${PN}.conf ${PN}.conf.example
-
- docinto security
- dodoc SECURITY/* || die "dodoc failed"
-
- insinto "/usr/share/doc/${PF}/examples"
- doins -r EXAMPLE/* || die "doins faileD"
-
- insinto /etc/${PN}
- newins ${PN}.conf{,.example}
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}/${PN}.logrotate" ${PN}
-
- if use xinetd ; then
- insinto /etc/xinetd.d
- newins "${FILESDIR}/${PN}.xinetd" ${PN}
- fi
-
- newinitd "${FILESDIR}/${PN}.init" ${PN}
-
- keepdir /usr/share/${PN}/empty
-}
-
-pkg_preinst() {
- # If we use xinetd, then we set listen=NO
- # so that our default config works under xinetd - fixes #78347
- if use xinetd ; then
- sed -i 's/listen=YES/listen=NO/g' "${D}"/etc/${PN}/${PN}.conf.example
- fi
-}
-
-pkg_postinst() {
- einfo "vsftpd init script can now be multiplexed."
- einfo "The default init script forces /etc/vsftpd/vsftpd.conf to exist."
- einfo "If you symlink the init script to another one, say vsftpd.foo"
- einfo "then that uses /etc/vsftpd/foo.conf instead."
- einfo
- einfo "Example:"
- einfo " cd /etc/init.d"
- einfo " ln -s vsftpd vsftpd.foo"
- einfo "You can now treat vsftpd.foo like any other service"
-}
diff --git a/net-ftp/vsftpd/vsftpd-3.0.2.ebuild b/net-ftp/vsftpd/vsftpd-3.0.2.ebuild
index 114070947ebe..dbc9a300eaea 100644
--- a/net-ftp/vsftpd/vsftpd-3.0.2.ebuild
+++ b/net-ftp/vsftpd/vsftpd-3.0.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-3.0.2.ebuild,v 1.9 2013/01/01 18:52:29 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/vsftpd-3.0.2.ebuild,v 1.10 2013/04/27 09:45:08 hwoarang Exp $
EAPI="4"
@@ -92,6 +92,9 @@ src_install() {
newinitd "${FILESDIR}/${PN}.init" ${PN}
keepdir /usr/share/${PN}/empty
+
+ exeinto /usr/libexec
+ doexe "${FILESDIR}/vsftpd-checkconfig.sh"
}
pkg_preinst() {