diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2009-10-26 15:06:15 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2009-10-26 15:06:15 +0000 |
commit | eb07ea5f945afeb08e1e5759efd390a992091346 (patch) | |
tree | 1c8232eec6523637c5c88082b7a9871b54a0c8e2 /net-ftp | |
parent | Stable for HPPA (bug #290545). (diff) | |
download | historical-eb07ea5f945afeb08e1e5759efd390a992091346.tar.gz historical-eb07ea5f945afeb08e1e5759efd390a992091346.tar.bz2 historical-eb07ea5f945afeb08e1e5759efd390a992091346.zip |
Version bumps, by Bernd Lommerzheim <bernd@lommerzheim.com> in bug #290262
Package-Manager: portage-2.2_rc46/cvs/Linux x86_64
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/proftpd/ChangeLog | 9 | ||||
-rw-r--r-- | net-ftp/proftpd/Manifest | 7 | ||||
-rw-r--r-- | net-ftp/proftpd/proftpd-1.3.2b.ebuild | 277 | ||||
-rw-r--r-- | net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild | 218 |
4 files changed, 509 insertions, 2 deletions
diff --git a/net-ftp/proftpd/ChangeLog b/net-ftp/proftpd/ChangeLog index 541b93f0ad56..bc5037775473 100644 --- a/net-ftp/proftpd/ChangeLog +++ b/net-ftp/proftpd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-ftp/proftpd # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.209 2009/09/24 15:42:20 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/ChangeLog,v 1.210 2009/10/26 15:06:15 voyageur Exp $ + +*proftpd-1.3.3_rc2 (26 Oct 2009) +*proftpd-1.3.2b (26 Oct 2009) + + 26 Oct 2009; Bernard Cafarelli <voyageur@gentoo.org> + +proftpd-1.3.2b.ebuild, +proftpd-1.3.3_rc2.ebuild: + Version bumps, by Bernd Lommerzheim <bernd@lommerzheim.com> in bug #290262 24 Sep 2009; Bernard Cafarelli <voyageur@gentoo.org> proftpd-1.3.3_rc1-r1.ebuild: diff --git a/net-ftp/proftpd/Manifest b/net-ftp/proftpd/Manifest index c5d36504e34f..99acb537f324 100644 --- a/net-ftp/proftpd/Manifest +++ b/net-ftp/proftpd/Manifest @@ -13,15 +13,20 @@ DIST mod_gss-1.3.1.tar.gz 113778 RMD160 b961395bcd4898a39d2867da33594d14aebb29dc DIST mod_gss-1.3.2.tar.gz 114142 RMD160 5dba4a716fd2abd99a83a7b263f53c07062ada9d SHA1 9f1c4530ba8ce9d96141bcb18cc123adbc04e505 SHA256 e66ee593628880e38bd0694ab256244c40fe80baa6663ea96003ce73b94e1336 DIST proftpd-1.3.2.tar.bz2 2457498 RMD160 cefc52ad19bd633a24b28438a2cde12fd99c2a56 SHA1 b48bfb0acde11bd2a2f7a7c74a1d72d497cca46a SHA256 1cadcaf9bb0ff8a2fddcc20fc93844568cf52db872a3aea9f90ab22efa7baf1e DIST proftpd-1.3.2a.tar.bz2 2506692 RMD160 7a2d84a4a0fdeedb78fd20a4da1267a6126e730b SHA1 a1972d656091963b60194949ca347cc704abf3ec SHA256 59d5ff059763d23c0693b0e73ebb6de35a2ab38280994c4b8e7c3f0067af5dcd +DIST proftpd-1.3.2b.tar.bz2 2507569 RMD160 eac9ebe625c60b362d96965cc72a0fbb4e2479bb SHA1 facd51ff9c35fa8bf2959d2829da1304a63c646a SHA256 ac99969b0bb12f02098dcdf5c23d45c85b05ba2453b78f56fce5e7352d0ac192 DIST proftpd-1.3.3rc1.tar.bz2 4077391 RMD160 c0aea8024109f1e1b62604c8f1a90e7316895956 SHA1 fd0fe2e6a9cfb4dc5f3ba362950b8ac992fb4688 SHA256 db0f658ca261f8bf8b8724b669d89d4ebe1ad26b32de4f30f7beba93a674f811 +DIST proftpd-1.3.3rc2.tar.bz2 4136569 RMD160 c45497aeffcb90716e3df2d1d7168e463637b3bf SHA1 0d9145ff8eab61b2f1d8797534226886f86172d9 SHA256 9ba5c1acaede560b21a2ee6113e6ffd31722f23340c24150a10d65ed9e15f9ee DIST proftpd-mod-case-0.3.tar.gz 4781 RMD160 99f46a2cfb88ec2f3070d632dbc17d89d12ec30b SHA1 c8ea2c4604ab2ffa5853284d0696b1dfe518ae84 SHA256 a9affd47558020b2b3f369c9a945ac91d22b45368734d839404b76e0fbdaaf7c DIST proftpd-mod-deflate-0.3.1.tar.gz 7934 RMD160 680aeec6be2b99e2d7ed188ab9a7f3dd7a6ad663 SHA1 ba00a242f9b915eb9f7d56655e5ba8e275469933 SHA256 e23f77a4fea5888777fbe466452b830c9f0a2bd8c7246eef72aaa5849b2eb7de DIST proftpd-mod-deflate-0.3.3.tar.gz 11000 RMD160 6b5a73e1fc29a749484553a206d47a680e4bae0e SHA1 c4bb771820bd7687e24996f0884022f854b0aec5 SHA256 335a87ea4879ff1115e33f9a200558c23dd14b77b9db9314f00e775c392cd255 +DIST proftpd-mod-deflate-0.4.tar.gz 2779844 RMD160 e6c7689b281ef015ceefa1d2939f5cf0a6fffc72 SHA1 2f42c3761445657e032739ea67c1cf359e527a98 SHA256 4451d9af02900aabe769f0d8a5efa80bdf2973efc4db2d138623b01b3ef72b69 DIST proftpd-mod-shaper-0.6.5.tar.gz 19175 RMD160 233f399c08c18514b0f23dcc3b0fd0d0670dca42 SHA1 7c841543e7ac3005c914b0f77670c94dc7a8d51f SHA256 dc69e352b0ffd7d76f4d08cad631b6401ed9a67447995f3ce47752e4fc69e935 DIST proftpd-mod-vroot-0.8.3.tar.gz 6999 RMD160 7a8d5a29e7c2754b774cebe649f8a28fc4bf9f85 SHA1 c5448ca0a7c2f1a73093ae6834f6516092cd1508 SHA256 ed3031d8330467e4c1ccb7a395b41a1d5628a89f4fcde80e3bb7ed62e987d85a DIST proftpd-mod-vroot-0.8.5.tar.gz 8349 RMD160 0e9c3ea9615ed74556fcaf6145863922ee45bedf SHA1 fea69382f4dda36b620780e69cef5872f41f86fe SHA256 305ad1e3b320dc21172982c54a614a09d43373f7289b63202788de640145bbd4 EBUILD proftpd-1.3.2-r2.ebuild 8258 RMD160 ff347403170e81ceef75b3a67a96bc81c33787c3 SHA1 b9443a84b36ee8e5cb74039ef3d5ec8e51eff587 SHA256 cd85a13ac1b5dbe65a529c82e61ed0cfe1f78a2b6ce980c0ca80c2d36723519a EBUILD proftpd-1.3.2a.ebuild 8250 RMD160 74d619c6a9799c13025425a1bb498d91466ae1ae SHA1 a5424542984ef749eaa104c6bb9cffae09486c37 SHA256 04c011cb7a33aa7d89e3c8125af70e03bbda51af8193a8b23b4fbc09eaa114d6 +EBUILD proftpd-1.3.2b.ebuild 8248 RMD160 31c746dfa75a43217c2d04ff566b345fbba1413e SHA1 6e0736dd910bbb64a9f461c10c9c0739ffab3b8a SHA256 c3604dbe8a7c3e632992e47b4eadba3105076d7627c4e46836196029ad0f7ba0 EBUILD proftpd-1.3.3_rc1-r1.ebuild 7679 RMD160 8ff5c6b01ffe1f7e4d8f36f331bb9617240427eb SHA1 517ee48ea747a384d744a413b732aa058873d897 SHA256 a53b5aad721688b8ba755dc991fb2d9921dfa6cc8a3fe1219b6e453a39ca9ada -MISC ChangeLog 35681 RMD160 1690a33a15c88528cd085fef984bbaa76fa8d677 SHA1 00fb5767169f9a2909ede0143e8ff775d095500f SHA256 1b49655d77e724e976aba5a87f151e7e4b68280283e1e8804615935eaabca79b +EBUILD proftpd-1.3.3_rc2.ebuild 7143 RMD160 a46f7e5e01812b8cc74947b651dccf8e2b84b6e9 SHA1 0634774df493c6a30a3d639774f24b684379456b SHA256 a8dbebbd4482334b0295b49aea25f07afa7fae5c16ccb4e78c50ee4c84382655 +MISC ChangeLog 35931 RMD160 380a88eaa04e58214caeb5408a880a54206043fd SHA1 a05dd4716c7d24a70f05d03522615b5ea5e79c2c SHA256 292ef06e27104678763f6cd49c15c16b379177e5cc8b60eeea0905e5289fc8f5 MISC metadata.xml 1903 RMD160 a15236976f8f0d3f1102ca97f5d9ee1d3e9abe42 SHA1 7cad7067da6c4fe1a5e882792f1516b8a0bb53a6 SHA256 0283e9ccb80ad1b1892a1ee84074210add15433c59b6e4daad5a55d39ff30fd7 diff --git a/net-ftp/proftpd/proftpd-1.3.2b.ebuild b/net-ftp/proftpd/proftpd-1.3.2b.ebuild new file mode 100644 index 000000000000..f6c1ba9e286a --- /dev/null +++ b/net-ftp/proftpd/proftpd-1.3.2b.ebuild @@ -0,0 +1,277 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.2b.ebuild,v 1.1 2009/10/26 15:06:15 voyageur Exp $ + +inherit eutils flag-o-matic toolchain-funcs autotools + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" + +IUSE="acl authfile ban case clamav deflate hardened ifsession ipv6 kerberos ldap mysql ncurses nls noauthunix opensslcrypt pam postgres radius rewrite selinux shaper sitemisc softquota ssl tcpd vroot xinetd" + +CASE_VER="0.3" +CLAMAV_VER="0.11rc" +DEFLATE_VER="0.4" +MODGSS_VER="1.3.2" +SHAPER_VER="0.6.5" +VROOT_VER="0.8.3" + +DESCRIPTION="An advanced and very configurable FTP server." + +SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 + case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) + clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) + deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) + kerberos? ( mirror://sourceforge/gssmod/mod_gss-${MODGSS_VER}.tar.gz ) + shaper? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-shaper-${SHAPER_VER}.tar.gz ) + vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" + +HOMEPAGE="http://www.proftpd.org/ + http://www.castaglia.org/proftpd/ + http://www.thrallingpenguin.com/resources/mod_clamav.htm + http://gssmod.sourceforge.net" + +SLOT="0" +LICENSE="GPL-2" + +DEPEND="acl? ( sys-apps/acl sys-apps/attr ) + clamav? ( app-antivirus/clamav ) + kerberos? ( || ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal ) ) + ldap? ( >=net-nds/openldap-1.2.11 ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + opensslcrypt? ( >=dev-libs/openssl-0.9.6f ) + pam? ( virtual/pam ) + postgres? ( virtual/postgresql-base ) + ssl? ( >=dev-libs/openssl-0.9.6f ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 ) + xinetd? ( virtual/inetd )" + +RDEPEND="${DEPEND} + net-ftp/ftpbase + selinux? ( sec-policy/selinux-ftpd )" + +S="${WORKDIR}/${P/_/}" + +pkg_setup() { + # Add the proftpd user to make the default config + # work out-of-the-box + enewgroup proftpd + enewuser proftpd -1 -1 -1 proftpd +} + +src_unpack() { + unpack ${P/_/}.tar.bz2 + cd "${S}" + + # Fix parallel build (committed upstream in 1.3.3rc1) + epatch "${FILESDIR}"/${PN}-1.3.2-parallel-build.patch + # Fix mysql include when both backends are enabled + epatch "${FILESDIR}"/${PN}-1.3.2-mysql-include.patch + # Do not use bundled libltdl when compiling mod_dso + epatch "${FILESDIR}"/${PN}-1.3.2-system-libltdl.patch + + # Fix stripping of files + sed -e "s| @INSTALL_STRIP@||g" -i Make* + + if use case ; then + unpack ${PN}-mod-case-${CASE_VER}.tar.gz + cp -f mod_case/mod_case.c contrib/ + cp -f mod_case/mod_case.html doc/ + fi + + if use clamav ; then + unpack mod_clamav-${CLAMAV_VER}.tar.gz + cp -f mod_clamav-${CLAMAV_VER}/mod_clamav.* contrib/ + epatch mod_clamav-${CLAMAV_VER}/${PN}.patch + fi + + if use deflate ; then + unpack ${PN}-mod-deflate-${DEFLATE_VER}.tar.gz + cp -f mod_deflate/mod_deflate.c contrib/ + cp -f mod_deflate/mod_deflate.html doc/ + fi + + if use kerberos ; then + unpack mod_gss-${MODGSS_VER}.tar.gz + fi + + if use shaper ; then + unpack ${PN}-mod-shaper-${SHAPER_VER}.tar.gz + cp -f mod_shaper/mod_shaper.c contrib/ + cp -f mod_shaper/mod_shaper.html doc/ + fi + + if use vroot ; then + unpack ${PN}-mod-vroot-${VROOT_VER}.tar.gz + cp -f mod_vroot/mod_vroot.c contrib/ + cp -f mod_vroot/mod_vroot.html doc/ + fi + + # Fix bug #221275 + # extract custom PR_ macros from aclocal.m4 to acinclude.m4 + # and delete the provided aclocal.m4 before running autoreconf + einfo "Extract custom m4 macros from aclocal.m4 ..." + sed -e '/libtool\.m4/q' aclocal.m4 > acinclude.m4 + rm -f aclocal.m4 + + eautoreconf +} + +src_compile() { + addpredict /etc/krb5.conf + local modules myconf mylibs + + modules="mod_ratio:mod_readme:mod_ctrls_admin" + use acl && modules="${modules}:mod_facl" + use ban && modules="${modules}:mod_ban" + use case && modules="${modules}:mod_case" + use clamav && modules="${modules}:mod_clamav" + use deflate && modules="${modules}:mod_deflate" + use pam && modules="${modules}:mod_auth_pam" + use radius && modules="${modules}:mod_radius" + use rewrite && modules="${modules}:mod_rewrite" + use shaper && modules="${modules}:mod_shaper" + use sitemisc && modules="${modules}:mod_site_misc" + use ssl && modules="${modules}:mod_tls" + use tcpd && modules="${modules}:mod_wrap" + use vroot && modules="${modules}:mod_vroot" + + # pam needs to be explicitely disabled + use pam || myconf="${myconf} --enable-auth-pam=no" + + if use ldap ; then + modules="${modules}:mod_ldap" + mylibs="${mylibs} -lresolv" + use ssl && CFLAGS="${CFLAGS} -DUSE_LDAP_TLS" + fi + + if use opensslcrypt ; then + myconf="${myconf} --enable-openssl --with-includes=/usr/include/openssl" + mylibs="${mylibs} -lcrypto" + CFLAGS="${CFLAGS} -DHAVE_OPENSSL" + fi + + use nls && myconf="${myconf} --enable-nls" + + if use mysql || use postgres ; then + modules="${modules}:mod_sql" + if use mysql ; then + modules="${modules}:mod_sql_mysql" + myconf="${myconf} --with-includes=/usr/include/mysql" + fi + if use postgres ; then + modules="${modules}:mod_sql_postgres" + myconf="${myconf} --with-includes=/usr/include/postgresql" + fi + fi + + if use softquota ; then + modules="${modules}:mod_quotatab" + if use mysql || use postgres ; then + modules="${modules}:mod_quotatab_sql" + fi + if use radius ; then + modules="${modules}:mod_quotatab_radius" + fi + if use ldap ; then + modules="${modules}:mod_quotatab_file:mod_quotatab_ldap" + else + modules="${modules}:mod_quotatab_file" + fi + fi + + # mod_ifsession should be the last module in the --with-modules list + # see http://www.castaglia.org/proftpd/modules/mod_ifsession.html#Installation + use ifsession && modules="${modules}:mod_ifsession" + + # bug #30359 + use hardened && echo > lib/libcap/cap_sys.c + gcc-specs-pie && echo > lib/libcap/cap_sys.c + + if use noauthunix ; then + myconf="${myconf} --disable-auth-unix" + else + myconf="${myconf} --enable-auth-unix" + fi + + if use kerberos ; then + cd "${S}"/mod_gss-${MODGSS_VER} + # Generate source files for installed virtual/krb5 provider + if has_version app-crypt/mit-krb5; then + econf --enable-mit + else + econf --enable-heimdal + fi + cd "${S}" + # copy the generated files + cp -f mod_gss-${MODGSS_VER}/mod_gss.c contrib/ + cp -f mod_gss-${MODGSS_VER}/mod_gss.h include/ + cp -f mod_gss-${MODGSS_VER}/mod_auth_gss.c contrib/ + + myconf="${myconf} --enable-dso --with-shared=mod_gss:mod_auth_gss" + fi + + LIBS="${mylibs}" econf \ + --sbindir=/usr/sbin \ + --localstatedir=/var/run \ + --sysconfdir=/etc/proftpd \ + --enable-shadow \ + --enable-autoshadow \ + --enable-ctrls \ + --with-modules=${modules} \ + $(use_enable acl facl) \ + $(use_enable authfile auth-file) \ + $(use_enable ipv6) \ + $(use_enable ncurses) \ + ${myconf} || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + keepdir /var/run/proftpd + + dodoc "${FILESDIR}/proftpd.conf" \ + COPYING CREDITS ChangeLog NEWS README* \ + doc/license.txt + dohtml doc/*.html + dohtml doc/howto/*.html + + docinto rfc + dodoc doc/rfc/*.txt + + mv -f "${D}/etc/proftpd/proftpd.conf" "${D}/etc/proftpd/proftpd.conf.distrib" + + insinto /etc/proftpd + newins "${FILESDIR}/proftpd.conf" proftpd.conf.sample + + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}/proftpd.xinetd" proftpd + fi + + newinitd "${FILESDIR}/proftpd.rc6" proftpd +} + +pkg_postinst() { + elog + elog "You can find the config files in /etc/proftpd" + elog + ewarn "With the introduction of net-ftp/ftpbase the ftp user is now ftp." + ewarn "Remember to change that in the configuration file." + ewarn + if use mysql && use postgres ; then + ewarn "ProFTPD has been build with the MySQL and PostgreSQL modules." + ewarn "You can use the 'SQLBackend' directive to specify the used SQL" + ewarn "backend. Without this directive the default backend is MySQL." + ewarn + fi + if use clamav ; then + ewarn "mod_clamav was updated to a new version, which uses Clamd" + ewarn "only for virus scanning, so you'll have to set Clamd up" + ewarn "and start it, also re-check the mod_clamav docs." + ewarn + fi +} diff --git a/net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild b/net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild new file mode 100644 index 000000000000..aca916653e59 --- /dev/null +++ b/net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild @@ -0,0 +1,218 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.3.3_rc2.ebuild,v 1.1 2009/10/26 15:06:15 voyageur Exp $ + +EAPI="2" +inherit eutils + +CASE_VER="0.3" +CLAMAV_VER="0.11rc" +DEFLATE_VER="0.4" +GSS_VER="1.3.2" +VROOT_VER="0.8.5" + +DESCRIPTION="An advanced and very configurable FTP server." +HOMEPAGE="http://www.proftpd.org/ + http://www.castaglia.org/proftpd/ + http://www.thrallingpenguin.com/resources/mod_clamav.htm + http://gssmod.sourceforge.net/" +SRC_URI="ftp://ftp.proftpd.org/distrib/source/${P/_/}.tar.bz2 + case? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-case-${CASE_VER}.tar.gz ) + clamav? ( https://secure.thrallingpenguin.com/redmine/attachments/download/1/mod_clamav-${CLAMAV_VER}.tar.gz ) + deflate? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-deflate-${DEFLATE_VER}.tar.gz ) + kerberos? ( mirror://sourceforge/gssmod/mod_gss-${GSS_VER}.tar.gz ) + vroot? ( http://www.castaglia.org/${PN}/modules/${PN}-mod-vroot-${VROOT_VER}.tar.gz )" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="acl authfile ban +caps case clamav +ctrls deflate doc exec hardened ifsession ident ipv6 kerberos ldap mysql ncurses nls pam postgres radius ratio readme rewrite selinux sftp shaper sitemisc softquota ssl tcpd trace vroot xinetd" + +DEPEND="acl? ( sys-apps/acl sys-apps/attr ) + caps? ( sys-libs/libcap ) + clamav? ( app-antivirus/clamav ) + kerberos? ( || ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal ) ) + ldap? ( net-nds/openldap ) + mysql? ( virtual/mysql ) + ncurses? ( sys-libs/ncurses ) + pam? ( virtual/pam ) + postgres? ( virtual/postgresql-base ) + sftp? ( dev-libs/openssl ) + ssl? ( dev-libs/openssl ) + tcpd? ( sys-apps/tcp-wrappers ) + xinetd? ( virtual/inetd )" +RDEPEND="${DEPEND} + net-ftp/ftpbase + selinux? ( sec-policy/selinux-ftpd )" + +S="${WORKDIR}/${P/_/}" + +__prepare_module() { + mv "${WORKDIR}"/$1/$1.c contrib + mv "${WORKDIR}"/$1/$1.html doc/contrib + rm -rf "${WORKDIR}"/$1 +} + +pkg_setup() { + if [ -f "${ROOT}"/var/run/proftpd.pid ] ; then + eerror "Your ProFTPD server is running. In order to install this update" + eerror "you have to stop the running server. If you are using ProFTPD in" + eerror "the standalone mode you can stop the server by executing:" + eerror " /etc/init.d/proftpd stop" + eerror "If you are sure that ProFTPD is not running anymore you have to" + eerror "delete the /var/run/proftpd.pid file." + die "This update requires to stop the ProFTPD server!" + fi +} + +src_prepare() { + use case && __prepare_module mod_case + if use clamav ; then + mv "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/mod_clamav.{c,h} contrib + epatch "${WORKDIR}"/mod_clamav-${CLAMAV_VER}/${PN}.patch + rm -rf "${WORKDIR}"/mod_clamav-${CLAMAV_VER} + fi + use deflate && __prepare_module mod_deflate + use vroot && __prepare_module mod_vroot + + # Fix MySQL includes + sed -i -e "s/<mysql.h>/<mysql\/mysql.h>/g" contrib/mod_sql_mysql.c + + # Fix Gentoo Bug #284853 + use kerberos && sed -i -e "s/krb5_principal2principalname/_\0/" \ + "${WORKDIR}"/mod_gss-${GSS_VER}/mod_auth_gss.c.in + + # Manipulate build system + sed -i -e "s/utils install-conf install/utils install/g" Makefile.in + sed -i -e "s/ @INSTALL_STRIP@//g" Make.rules.in +} + +src_configure() { + local myc myl mym + + use acl && mym="${mym}:mod_facl" + use ban && mym="${mym}:mod_ban" + use case && mym="${mym}:mod_case" + use clamav && mym="${mym}:mod_clamav" + if use ctrls || use shaper ; then + myc="${myc} --enable-ctrls" + mym="${mym}:mod_ctrls_admin" + fi + use deflate && mym="${mym}:mod_deflate" + use exec && mym="${mym}:mod_exec" + if use kerberos ; then + cd "${WORKDIR}"/mod_gss-${GSS_VER} + if has_version <app-crypt/mit-krb5-1.7 ; then + econf --enable-mit + else + econf --enable-heimdal + fi + mv mod_{auth_gss,gss}.c "${S}"/contrib + mv mod_gss.h "${S}"/include + mv README.mod_{auth_gss,gss} "${S}" + mv mod_gss.html "${S}"/doc/contrib + mv rfc{1509,2228}.txt "${S}"/doc/rfc + cd "${S}" + rm -rf "${WORKDIR}"/mod_gss-${GSS_VER} + mym="${mym}:mod_gss:mod_auth_gss" + fi + if use ldap ; then + myl="${myl} -lresolv" + mym="${mym}:mod_ldap" + fi + if use mysql || use postgres ; then + mym="${mym}:mod_sql:mod_sql_passwd" + if use mysql ; then + myc="${myc} --with-includes=/usr/include/mysql" + mym="${mym}:mod_sql_mysql" + fi + if use postgres ; then + myc="${myc} --with-includes=/usr/include/postgresql" + mym="${mym}:mod_sql_postgres" + fi + fi + if use sftp || use ssl ; then + CFLAGS="${CFLAGS} -DHAVE_OPENSSL" + myc="${myc} --enable-openssl --with-includes=/usr/include/openssl" + myl="${myl} -lcrypto" + fi + use radius && mym="${mym}:mod_radius" + use ratio && mym="${mym}:mod_ratio" + use readme && mym="${mym}:mod_readme" + use rewrite && mym="${mym}:mod_rewrite" + if use sftp ; then + mym="${mym}:mod_sftp" + use pam && mym="${mym}:mod_sftp_pam" + if use mysql || use postgres ; then + mym="${mym}:mod_sftp_sql" + fi + fi + use shaper && mym="${mym}:mod_shaper" + use sitemisc && mym="${mym}:mod_site_misc" + if use softquota ; then + mym="${mym}:mod_quotatab:mod_quotatab_file" + use ldap && mym="${mym}:mod_quotatab_ldap" + use radius && mym="${mym}:mod_quotatab_radius" + if use mysql || use postgres ; then + mym="${mym}:mod_quotatab_sql" + fi + fi + use ssl && mym="${mym}:mod_tls:mod_tls_shmcache" + use tcpd && mym="${mym}:mod_wrap" + use vroot && mym="${mym}:mod_vroot" + # mod_ifsession needs to be the last module in the mym list. + use ifsession && mym="${mym}:mod_ifsession" + + [ -z ${mym} ] || myc="${myc} --with-modules=${mym:1}" + LIBS="${myl}" econf --sbindir=/usr/sbin --localstatedir=/var/run/proftpd \ + --sysconfdir=/etc/proftpd --enable-shadow --enable-autoshadow \ + $(use_enable acl facl) \ + $(use_enable authfile auth-file) \ + $(use_enable caps cap) \ + $(use_enable ident) \ + $(use_enable ipv6) \ + $(use_enable ncurses) \ + $(use_enable nls) \ + $(use_enable trace) \ + $(use_enable pam auth-pam) \ + ${myc:1} || die "econf failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + keepdir /var/run/proftpd + newinitd "${FILESDIR}"/proftpd.rc7 proftpd + if use xinetd ; then + insinto /etc/xinetd.d + newins "${FILESDIR}"/proftpd.xinetd proftpd + fi + insinto /etc/proftpd + doins "${FILESDIR}"/proftpd.conf.sample + + dodoc ChangeLog CREDITS INSTALL NEWS README* RELEASE_NOTES + if use doc ; then + dohtml doc/*.html doc/contrib/*.html doc/howto/*.html doc/modules/*.html + docinto rfc + dodoc doc/rfc/*.txt + fi +} + +pkg_postinst() { + if use mysql && use postgres ; then + elog + elog "ProFTPD has been built with the MySQL and PostgreSQL modules." + elog "You can use the 'SQLBackend' directive to specify the used SQL" + elog "backend. Without this directive the default backend is MySQL." + elog + fi + if use exec ; then + ewarn + ewarn "ProFTPD has been built with the mod_exec module. This module" + ewarn "can be a security risk for your server as it executes external" + ewarn "programs. Vulnerables in these external programs may disclose" + ewarn "information or even compromise your server." + ewarn "You have been warned! Use this module at your own risk!" + ewarn + fi +} |