Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 21515 | Differences between
and this patch

Collapse All | Expand All

(-)proftpd-1.2.8.ebuild (-5 / +30 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
1
# Copyright 1999-2003 Gentoo Technologies, Inc.
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: /home/cvsroot/gentoo-x86/net-ftp/proftpd/proftpd-1.2.8.ebuild,v 1.2 2003/04/17 17:17:32 mholzer Exp $
3
# $Header: /users/markwag/projects/cvs/portage/net-ftp/proftpd/proftpd-1.2.8-r1.ebuild,v 1.4 2003/05/22 22:54:46 markwag Exp $
4
4
5
IUSE="ldap pam postgres mysql ssl tcpd"
5
IUSE="ldap pam postgres mysql ssl tcpd opie"
6
6
7
MY_P=${P/_/}
7
MY_P=${P/_/}
8
S=${WORKDIR}/${MY_P}
8
S=${WORKDIR}/${MY_P}
Lines 20-37 Link Here
20
	ldap? ( >=net-nds/openldap-1.2.11 )
20
	ldap? ( >=net-nds/openldap-1.2.11 )
21
	postgres? ( >=dev-db/postgresql-7.1 )
21
	postgres? ( >=dev-db/postgresql-7.1 )
22
	ssl? ( >=dev-libs/openssl-0.9.6f )
22
	ssl? ( >=dev-libs/openssl-0.9.6f )
23
	tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )"
23
	tcpd? ( >=sys-apps/tcp-wrappers-7.6-r3 )
24
	opie? ( >=app-crypt/opie-2.4 )"
25
26
MOD_OPIE_P="proftpd-mod-otp-0.9"
27
28
[ "`use opie`" ] && SRC_URI="$SRC_URI http://www.castaglia.org/proftpd/modules/${MOD_OPIE_P}.tar.gz"
24
29
25
src_unpack() {
30
src_unpack() {
26
	unpack ${MY_P}.tar.bz2
31
	unpack ${MY_P}.tar.bz2
27
	cd ${S}
32
	if [ "`use opie`" ]; then
33
		unpack ${MOD_OPIE_P}.tar.gz
34
		cd ${WORKDIR}/mod_otp/
35
		epatch ${FILESDIR}/${MOD_OPIE_P}-gentoo.diff
36
	fi
28
}	
37
}	
29
38
30
31
src_compile() {
39
src_compile() {
32
	local modules myconf
40
	local modules myconf
33
41
34
	modules="mod_ratio:mod_readme"
42
	modules="mod_ratio:mod_readme"
43
44
	if [ "`use opie`" ]; then
45
		cd ${WORKDIR}/mod_otp/
46
		econf --with-opie
47
		cp mod_otp.h ${S}/contrib/
48
		cp mod_otp.c ${S}/contrib/
49
		modules="${modules}:mod_otp"
50
	fi
51
52
	cd ${S}
53
35
	use pam && modules="${modules}:mod_auth_pam"
54
	use pam && modules="${modules}:mod_auth_pam"
36
	use tcpd && modules="${modules}:mod_wrap"
55
	use tcpd && modules="${modules}:mod_wrap"
37
56
Lines 81-86 Link Here
81
	keepdir /home/ftp
100
	keepdir /home/ftp
82
	keepdir /var/run/proftpd
101
	keepdir /var/run/proftpd
83
102
103
	if [ "`use opie`" ]; then
104
		cd ${WORKDIR}/mod_otp/
105
		newdoc README README.mod_otp
106
		cd ${S}
107
	fi
108
84
	dodoc contrib/README.mod_sql ${FILESDIR}/proftpd.conf \
109
	dodoc contrib/README.mod_sql ${FILESDIR}/proftpd.conf \
85
		COPYING CREDITS ChangeLog NEWS README* \
110
		COPYING CREDITS ChangeLog NEWS README* \
86
		doc/{license.txt,GetConf}
111
		doc/{license.txt,GetConf}

Return to bug 21515