1998-02-13 18:39:02 +01:00
|
|
|
# New ports collection makefile for: proftpd
|
|
|
|
# Date created: 26 January 1998
|
|
|
|
# Whom: Stephane Legrand
|
|
|
|
#
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1998-02-13 18:39:02 +01:00
|
|
|
#
|
|
|
|
|
2000-04-12 07:31:29 +02:00
|
|
|
PORTNAME= proftpd
|
2007-10-06 21:12:44 +02:00
|
|
|
DISTVERSION= 1.3.1
|
2008-06-06 16:33:40 +02:00
|
|
|
PORTREVISION= 14
|
1999-08-02 12:44:03 +02:00
|
|
|
CATEGORIES= ftp
|
2004-11-15 18:10:45 +01:00
|
|
|
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
|
2004-11-16 09:52:36 +01:00
|
|
|
ftp://ftp.fastorama.com/mirrors/ftp.proftpd.org/distrib/source/ \
|
|
|
|
ftp://ftp.dataguard.no/ftp/pub/proftpd/distrib/source/ \
|
|
|
|
ftp://spirit.bentel.sk/mirrors/Proftpd/distrib/source/ \
|
|
|
|
ftp://proftpd.networkedsystems.co.uk/distrib/source/ \
|
2007-06-15 11:32:11 +02:00
|
|
|
http://mirrors.ibiblio.org/pub/mirrors/proftpd/distrib/source/ \
|
2007-08-30 20:33:30 +02:00
|
|
|
http://www.mirrorservice.org/sites/ftp.proftpd.org/distrib/source/ \
|
2008-02-16 23:43:28 +01:00
|
|
|
CENKES:clam \
|
|
|
|
http://www.smartftp.com/oss/proftpd/:digest \
|
|
|
|
http://lev.serebryakov.spb.ru/mod_comb/:comb\
|
2008-02-20 22:04:16 +01:00
|
|
|
http://labratsoftware.com/mod_sql_tds/:sql_tds \
|
2008-02-16 23:43:28 +01:00
|
|
|
LOCAL/beech:digest \
|
2008-02-20 22:04:16 +01:00
|
|
|
LOCAL/beech:comb \
|
|
|
|
LOCAL/beech:sql_tds
|
2007-08-30 20:33:30 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2008-02-16 23:43:28 +01:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1999-08-23 02:00:19 +02:00
|
|
|
|
2007-06-15 11:32:11 +02:00
|
|
|
MAINTAINER?= beech@FreeBSD.org
|
2004-05-14 08:46:12 +02:00
|
|
|
COMMENT?= Highly configurable ftp daemon
|
1998-02-13 18:39:02 +01:00
|
|
|
|
2003-03-24 14:33:28 +01:00
|
|
|
MAN1= ftpcount.1 ftpwho.1 ftptop.1
|
1999-10-11 06:41:55 +02:00
|
|
|
MAN5= xferlog.5
|
2005-06-22 20:48:39 +02:00
|
|
|
MAN8= proftpd.8 ftpshut.8 ftpdctl.8
|
1998-02-13 18:39:02 +01:00
|
|
|
|
2004-01-11 12:54:29 +01:00
|
|
|
PORTDOCSdoc= Configuration.html faq.html
|
|
|
|
PORTDOCScontrib=mod_ifsession.html mod_radius.html mod_rewrite.html \
|
2006-12-21 23:13:40 +01:00
|
|
|
mod_tls.html mod_wrap2.html mod_wrap2_file.html mod_wrap2_sql.html \
|
|
|
|
mod_ban.html mod_quotatab_radius.html ftpasswd.html
|
2007-11-14 22:00:58 +01:00
|
|
|
PORTDOCSreadme= README README.DSO README.FreeBSD README.IPv6 README.LDAP README.PAM \
|
|
|
|
README.capabilities README.classes README.facl README.modules \
|
|
|
|
README.ports RELEASE_NOTES
|
|
|
|
PORTDOCS= ${PORTDOCSdoc} ${PORTDOCScontrib} ${PORTDOCSreadme}
|
2004-01-11 12:54:29 +01:00
|
|
|
|
2007-07-06 07:45:08 +02:00
|
|
|
PORTEXAMPLES= ASCII.html CreateHome.html Filters.html SQL.html Umask.html \
|
|
|
|
AuthFiles.html DNS.html Globbing.html SSH.html Upgrade.html \
|
|
|
|
Authentication.html DSO.html Limit.html Scoreboard.html Vhost.html \
|
|
|
|
BCP.html Debugging.html ListOptions.html ServerType.html \
|
|
|
|
VirtualUsers.html Chroot.html Directory.html Logging.html Stopping.html \
|
|
|
|
index.html Classes.html DisplayFiles.html NAT.html TLS.html ConfigFile.html \
|
|
|
|
FTP.html Quotas.html Timestamps.html Controls.html \
|
|
|
|
FXP.html Regex.html Tracing.html
|
|
|
|
|
1998-02-13 18:39:02 +01:00
|
|
|
USE_GMAKE= yes
|
2003-03-24 14:33:28 +01:00
|
|
|
USE_BZIP2= yes
|
2007-09-30 06:47:36 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:261
|
2007-02-27 08:39:18 +01:00
|
|
|
GNU_CONFIGURE= yes
|
1998-02-13 18:39:02 +01:00
|
|
|
|
2008-04-18 11:38:32 +02:00
|
|
|
CONFLICTS= proftpd-devel-1.[0-9].*
|
|
|
|
|
2005-06-22 20:48:39 +02:00
|
|
|
USE_RC_SUBR= proftpd.sh
|
2003-11-03 20:40:38 +01:00
|
|
|
|
1999-12-22 19:05:00 +01:00
|
|
|
CONFIGURE_ARGS= --localstatedir=/var/run \
|
2007-07-06 07:45:08 +02:00
|
|
|
--sysconfdir=${PREFIX}/etc \
|
1999-12-22 19:05:00 +01:00
|
|
|
--disable-sendfile
|
1999-12-05 20:29:55 +01:00
|
|
|
|
2004-12-14 07:16:43 +01:00
|
|
|
OPTIONS= IPV6 "Use IPv6" off \
|
|
|
|
LDAP "Use LDAP" off \
|
2007-08-30 20:33:30 +02:00
|
|
|
LDAP_TLS "Use LDAP TLS (Requires LDAP, OPENSSL)" off\
|
2008-02-20 22:04:16 +01:00
|
|
|
MYSQL "MySQL auth (Can be combined with PGSQL)" off \
|
|
|
|
PGSQL "Postgres auth (Can be combined with MYSQL)" off \
|
|
|
|
TDS "FreeTDS - Sybase & MS-SQL auth (Exclusive)" off \
|
2007-09-15 22:41:29 +02:00
|
|
|
OPENSSL "Include mod_tls" on \
|
2004-12-14 07:16:43 +01:00
|
|
|
QUOTA "Include mod_quota" off \
|
|
|
|
IFSESSION "Include mod_ifsession" on \
|
|
|
|
README "Include mod_readme" on \
|
|
|
|
RATIO "Include mod_ratio" on \
|
2007-08-30 20:33:30 +02:00
|
|
|
CTRLS "Include controls" off \
|
2004-12-14 07:16:43 +01:00
|
|
|
REWRITE "Include mod_rewrite" on \
|
2006-12-21 23:13:40 +01:00
|
|
|
WRAP "Include mod_wrap2" on \
|
2007-08-30 20:33:30 +02:00
|
|
|
WRAP_FILE "Include mod_wrap2_file" off \
|
|
|
|
WRAP_SQL "Include mod_wrap2_sql" off \
|
2007-09-15 22:41:29 +02:00
|
|
|
RADIUS "Include mod_radius" on \
|
2006-12-21 23:13:40 +01:00
|
|
|
QUOTATAB_RADIUS "include mod_quotatab_radius" off \
|
2007-08-30 20:33:30 +02:00
|
|
|
BAN "Include mod_ban (Requires CTRLS)" off \
|
2007-02-27 08:39:18 +01:00
|
|
|
NLS "Use nls (builds mod_lang)" off \
|
2008-02-16 23:43:28 +01:00
|
|
|
CLAMAV "Include mod_clamav" off \
|
|
|
|
DIGEST "Include mod_digest" off \
|
2008-03-27 20:36:11 +01:00
|
|
|
COMB "Include mod_comb (multistream upload)" off \
|
2008-08-06 16:32:25 +02:00
|
|
|
CODECONV "Use charset conversion (possibly broken)" off
|
2004-12-14 07:16:43 +01:00
|
|
|
|
2006-05-20 11:52:39 +02:00
|
|
|
MODULES?=
|
2006-12-26 17:59:14 +01:00
|
|
|
LIBDIRS?=
|
|
|
|
INCLUDEDIRS?=
|
2006-05-20 11:52:39 +02:00
|
|
|
|
2004-12-14 07:16:43 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-05-20 11:52:39 +02:00
|
|
|
.if !defined(WITHOUT_RATIO)
|
2004-12-14 07:16:43 +01:00
|
|
|
MODULES:=${MODULES}:mod_ratio
|
|
|
|
.endif
|
|
|
|
|
2006-05-20 11:52:39 +02:00
|
|
|
.if !defined(WITHOUT_README)
|
2004-12-14 07:16:43 +01:00
|
|
|
MODULES:=${MODULES}:mod_readme
|
|
|
|
.endif
|
|
|
|
|
2006-05-20 11:52:39 +02:00
|
|
|
.if !defined(WITHOUT_REWRITE)
|
2004-12-14 07:16:43 +01:00
|
|
|
MODULES:=${MODULES}:mod_rewrite
|
|
|
|
.endif
|
|
|
|
|
2006-05-20 11:52:39 +02:00
|
|
|
.if !defined(WITHOUT_WRAP)
|
2006-12-21 23:13:40 +01:00
|
|
|
MODULES:=${MODULES}:mod_wrap2
|
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${WORKDIR}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
2007-05-26 22:09:07 +02:00
|
|
|
PLIST_FILES+= include/proftpd/mod_wrap2.h
|
2006-12-21 23:13:40 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WRAP_FILE)
|
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
|
|
|
MODULES:=${MODULES}:mod_wrap2_file
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_WRAP_SQL)
|
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
|
|
|
MODULES:=${MODULES}:mod_wrap2_sql
|
2004-12-14 07:16:43 +01:00
|
|
|
.endif
|
|
|
|
|
2005-10-10 07:38:26 +02:00
|
|
|
.if defined(WITH_RADIUS)
|
|
|
|
MODULES:=${MODULES}:mod_radius
|
|
|
|
.endif
|
|
|
|
|
2006-12-21 23:13:40 +01:00
|
|
|
.if defined(WITH_QUOTATAB_RADIUS)
|
|
|
|
MODULES:=${MODULES}:mod_quotatab_radius
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_BAN)
|
|
|
|
MODULES:=${MODULES}:mod_ban
|
|
|
|
.endif
|
|
|
|
|
2001-10-18 21:17:41 +02:00
|
|
|
.if defined(WITH_SETPASSENT)
|
|
|
|
CONFIGURE_ARGS+= --enable-force-setpassent
|
|
|
|
.endif
|
|
|
|
|
2001-03-07 01:32:00 +01:00
|
|
|
.if defined(WITHOUT_PAM)
|
2005-04-20 02:24:49 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-auth-pam
|
2001-03-07 01:32:00 +01:00
|
|
|
.endif
|
|
|
|
|
2004-03-26 21:17:38 +01:00
|
|
|
.if defined(WITH_IPV6)
|
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2006-05-20 11:52:39 +02:00
|
|
|
.if !defined(WITH_IPV6)
|
2004-10-17 06:45:43 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
2006-12-21 23:13:40 +01:00
|
|
|
.if defined(WITH_NLS)
|
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2006-12-30 23:45:40 +01:00
|
|
|
USE_GETTEXT=yes
|
|
|
|
PROFTPD_LIBS+= -lintl -L${LOCALBASE}/lib
|
2006-12-21 23:13:40 +01:00
|
|
|
.endif
|
|
|
|
|
2000-11-24 23:29:11 +01:00
|
|
|
#allow user to override
|
2006-12-30 23:45:40 +01:00
|
|
|
MODULES?= mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_ifsession
|
1999-12-05 20:29:55 +01:00
|
|
|
|
2006-11-04 01:39:33 +01:00
|
|
|
INCLUDEDIRS?=
|
|
|
|
LIBDIRS?=
|
2001-05-31 21:23:18 +02:00
|
|
|
|
2000-11-24 23:40:01 +01:00
|
|
|
.if defined(WITH_LDAP)
|
2003-11-03 20:40:38 +01:00
|
|
|
USE_OPENLDAP= yes
|
2001-03-07 01:33:55 +01:00
|
|
|
MODULES:=${MODULES}:mod_ldap
|
2005-07-30 06:51:41 +02:00
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
2000-11-24 23:40:01 +01:00
|
|
|
.endif
|
|
|
|
|
2000-12-16 05:33:48 +01:00
|
|
|
.if defined(WITH_MYSQL)
|
2003-11-03 20:40:38 +01:00
|
|
|
USE_MYSQL= yes
|
2007-04-06 11:59:20 +02:00
|
|
|
MODULES:=${MODULES}:mod_sql_mysql
|
2007-01-17 23:45:20 +01:00
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include:${LOCALBASE}/include/mysql
|
2005-07-30 06:51:41 +02:00
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib/mysql
|
2000-12-16 05:33:48 +01:00
|
|
|
.endif
|
|
|
|
|
2007-04-06 11:59:20 +02:00
|
|
|
.if defined(WITH_PGSQL)
|
2005-01-31 01:35:55 +01:00
|
|
|
USE_PGSQL= yes
|
2007-04-06 11:59:20 +02:00
|
|
|
MODULES:=${MODULES}:mod_sql_postgres
|
2005-07-30 06:51:41 +02:00
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
2001-08-17 21:00:51 +02:00
|
|
|
.endif
|
|
|
|
|
2007-04-06 11:59:20 +02:00
|
|
|
.if ${MODULES:M*mod_sql_*}
|
2007-05-20 21:27:55 +02:00
|
|
|
MODULES:=mod_sql${MODULES}
|
2007-07-07 13:35:24 +02:00
|
|
|
PLIST_FILES+= include/proftpd/mod_sql.h
|
2007-04-06 11:59:20 +02:00
|
|
|
.endif
|
|
|
|
|
2003-11-03 20:40:38 +01:00
|
|
|
.if defined(WITH_OPENSSL)
|
2005-07-26 21:46:51 +02:00
|
|
|
.include <${PORTSDIR}/Mk/bsd.openssl.mk>
|
2008-01-07 21:55:35 +01:00
|
|
|
CFLAGS+= -DHAVE_OPENSSL -I${OPENSSLINC}
|
|
|
|
PROFTPD_LIBS+= -lssl -lcrypto -L${OPENSSLLIB}
|
2005-07-26 21:46:51 +02:00
|
|
|
MODULES:=${MODULES}:mod_tls
|
2003-11-03 20:40:38 +01:00
|
|
|
.endif
|
|
|
|
|
2004-08-08 02:06:27 +02:00
|
|
|
.if defined(WITH_CTRLS)
|
2004-10-17 23:43:54 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ctrls
|
2005-10-10 07:28:57 +02:00
|
|
|
PLIST_FILES+= sbin/ftpdctl
|
|
|
|
.if !defined(WITHOUT_CTRLS_ADMIN)
|
|
|
|
MODULES:=${MODULES}:mod_ctrls_admin
|
|
|
|
.endif
|
2004-08-08 02:06:27 +02:00
|
|
|
.endif
|
|
|
|
|
2004-08-28 20:10:38 +02:00
|
|
|
.if defined(WITH_QUOTA)
|
|
|
|
MODULES:=${MODULES}:mod_quotatab:mod_quotatab_file
|
2007-07-07 13:35:24 +02:00
|
|
|
PLIST_FILES+= include/proftpd/mod_quotatab.h
|
2004-08-28 20:10:38 +02:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
MODULES:=${MODULES}:mod_quotatab_ldap
|
|
|
|
.endif
|
2007-04-06 11:59:20 +02:00
|
|
|
.if defined(WITH_PGSQL) || defined(WITH_MYSQL)
|
2004-08-28 20:10:38 +02:00
|
|
|
MODULES:=${MODULES}:mod_quotatab_sql
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2007-08-30 20:33:30 +02:00
|
|
|
.if defined(WITH_CLAMAV)
|
|
|
|
#http://www.uglyboxindustries.com/mod_clamav_new.c
|
2007-12-14 00:39:02 +01:00
|
|
|
DISTFILES+= mod_clamav-0.5.1.tar.bz2:clam
|
2008-02-16 23:43:28 +01:00
|
|
|
EXTRACT_ONLY+= mod_clamav-0.5.1.tar.bz2
|
2007-08-30 20:33:30 +02:00
|
|
|
USE_CLAMAV= yes
|
|
|
|
MODULES:=${MODULES}:mod_clamav
|
2008-04-16 18:10:19 +02:00
|
|
|
LIB_DEPENDS+= clamav.4:${PORTSDIR}/security/clamav
|
2007-08-30 20:33:30 +02:00
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
|
|
|
.endif
|
|
|
|
|
2008-02-16 23:43:28 +01:00
|
|
|
.if defined(WITH_DIGEST)
|
|
|
|
DISTFILES+= mod_digest.c:digest
|
|
|
|
MODULES:=${MODULES}:mod_digest
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_COMB)
|
|
|
|
COMB_VERSION= 0.1
|
|
|
|
DISTFILES+= mod_comb-${COMB_VERSION}.tar.bz2:comb
|
|
|
|
EXTRACT_ONLY+= mod_comb-${COMB_VERSION}.tar.bz2
|
|
|
|
MODULES:=${MODULES}:mod_comb
|
|
|
|
PORTDOCScontrib+=mod_comb.html
|
|
|
|
PORTDOCSreadme+=README.mod_comb
|
|
|
|
.endif
|
|
|
|
|
2008-02-20 22:04:16 +01:00
|
|
|
.if defined(WITH_TDS)
|
|
|
|
DISTFILES+= mod_sql_tds-4.5.tar.bz2:sql_tds
|
|
|
|
EXTRACT_ONLY+= mod_sql_tds-4.5.tar.bz2
|
|
|
|
MODULES:=${MODULES}:mod_sql_tds
|
|
|
|
MODULES:=mod_sql${MODULES}
|
|
|
|
PLIST_FILES+= include/proftpd/mod_sql.h
|
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
|
|
|
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds
|
|
|
|
.endif
|
|
|
|
|
2008-03-27 20:36:11 +01:00
|
|
|
.if defined(WITH_CODECONV)
|
|
|
|
USE_ICONV= YES
|
|
|
|
MODULES:=${MODULES}:mod_codeconv
|
|
|
|
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
|
|
|
CONFIGURE_ARGS+= --disable-sendfile
|
|
|
|
PROFTPD_LIBS+= -liconv -L${LOCALBASE}/lib
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-mod-codeconv
|
|
|
|
.endif
|
|
|
|
|
2005-10-10 07:38:26 +02:00
|
|
|
# mod_ifsession should be the last item in the modules list
|
2006-05-20 11:52:39 +02:00
|
|
|
.if !defined(WITHOUT_IFSESSION)
|
2005-10-10 07:38:26 +02:00
|
|
|
MODULES:=${MODULES}:mod_ifsession
|
|
|
|
.endif
|
|
|
|
|
2003-11-03 20:40:38 +01:00
|
|
|
# Keep this here below, in case similar constructs need to be made
|
|
|
|
CONFIGURE_ENV+= "LIBS=${PROFTPD_LIBS}"
|
2003-12-17 04:51:50 +01:00
|
|
|
|
1999-12-22 19:05:00 +01:00
|
|
|
.if !empty(MODULES)
|
2003-12-17 04:51:50 +01:00
|
|
|
CONFIGURE_ARGS+= --with-modules=${MODULES}
|
1999-12-22 19:05:00 +01:00
|
|
|
.endif
|
1999-12-05 20:29:55 +01:00
|
|
|
|
2001-05-31 21:23:18 +02:00
|
|
|
.if !empty(INCLUDEDIRS)
|
2003-12-17 04:51:50 +01:00
|
|
|
CONFIGURE_ARGS+= --with-includes=${INCLUDEDIRS}
|
2001-05-31 21:23:18 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !empty(LIBDIRS)
|
2003-12-17 04:51:50 +01:00
|
|
|
CONFIGURE_ARGS+= --with-libraries=${LIBDIRS}
|
2000-11-24 23:40:01 +01:00
|
|
|
.endif
|
|
|
|
|
2004-12-14 07:16:43 +01:00
|
|
|
MODULES!=${ECHO} ${MODULES} | ${SED} -e 's,^:,,' -e 's,:$$,,'
|
|
|
|
|
2007-08-30 20:33:30 +02:00
|
|
|
post-extract:
|
|
|
|
.if defined(WITH_CLAMAV)
|
|
|
|
@${MV} ${WRKDIR}/mod_clamav_new.c ${WRKSRC}/modules/mod_clamav.c
|
|
|
|
.endif
|
2008-02-16 23:43:28 +01:00
|
|
|
.if defined(WITH_DIGEST)
|
|
|
|
@${CP} ${DISTDIR}/${DIST_SUBDIR}/mod_digest.c ${WRKSRC}/modules/
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_COMB)
|
|
|
|
@${MV} ${WRKDIR}/mod_comb-${COMB_VERSION}/mod_comb.c ${WRKSRC}/contrib/
|
|
|
|
@${MV} ${WRKDIR}/mod_comb-${COMB_VERSION}/README ${WRKSRC}/README.mod_comb
|
|
|
|
@${MV} ${WRKDIR}/mod_comb-${COMB_VERSION}/mod_comb.html ${WRKSRC}/doc/contrib/
|
|
|
|
.endif
|
2007-08-30 20:33:30 +02:00
|
|
|
|
2008-02-20 22:04:16 +01:00
|
|
|
.if defined(WITH_TDS)
|
|
|
|
@${MV} ${WRKDIR}/mod_sql_tds.c ${WRKSRC}/contrib/
|
|
|
|
.endif
|
|
|
|
|
2007-03-02 21:12:49 +01:00
|
|
|
post-patch:
|
|
|
|
.if defined(WITH_NLS)
|
2007-07-06 07:45:08 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lsupp|-lsupp -lintl|g' ${WRKSRC}/Makefile.in
|
2007-08-30 20:33:30 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_LDAP_TLS)
|
|
|
|
@${REINPLACE_CMD} -e 's:/\* #define USE_LDAP_TLS \*/:#define USE_LDAP_TLS:' \
|
|
|
|
${WRKSRC}/contrib/mod_ldap.c
|
2007-03-02 21:12:49 +01:00
|
|
|
.endif
|
2007-07-06 07:45:08 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|proftpd\.conf|proftpd.conf.sample|g' ${WRKSRC}/Makefile.in
|
2007-03-02 21:12:49 +01:00
|
|
|
|
1999-12-05 20:29:55 +01:00
|
|
|
pre-configure:
|
|
|
|
@${ECHO_MSG} "==> Configuring with ${MODULES}"
|
1998-02-13 18:39:02 +01:00
|
|
|
|
1998-02-20 07:39:07 +01:00
|
|
|
post-configure:
|
2005-06-22 20:48:39 +02:00
|
|
|
${REINPLACE_CMD} -e 's: -lnsl::' ${WRKSRC}/Make.rules
|
|
|
|
${REINPLACE_CMD} -e 's:/usr/sbin:${PREFIX}/sbin:' \
|
1998-02-20 07:39:07 +01:00
|
|
|
-e 's:/usr/bin:${PREFIX}/bin:' \
|
2005-06-22 20:48:39 +02:00
|
|
|
${WRKSRC}/src/proftpd.8 ${WRKSRC}/utils/ftpshut.8 \
|
|
|
|
${WRKSRC}/utils/ftpcount.1
|
|
|
|
|
|
|
|
post-install:
|
2007-07-06 07:45:08 +02:00
|
|
|
@cd ${PREFIX}/etc/ && ${CP} -n proftpd.conf.sample proftpd.conf
|
2000-11-24 23:23:38 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2007-07-06 07:45:08 +02:00
|
|
|
@${INSTALL} -d ${DOCSDIR}/
|
|
|
|
@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCSdoc} ${DOCSDIR}/
|
|
|
|
@cd ${WRKSRC}/doc/contrib && ${INSTALL_DATA} ${PORTDOCScontrib} ${DOCSDIR}/
|
2007-11-14 22:00:58 +01:00
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCSreadme} ${DOCSDIR}/
|
2007-07-06 07:45:08 +02:00
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
@${INSTALL} -d ${EXAMPLESDIR}/
|
|
|
|
@cd ${WRKSRC}/doc/howto/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
|
2000-11-24 23:23:38 +01:00
|
|
|
.endif
|
2005-10-10 07:28:57 +02:00
|
|
|
.if defined(WITH_CTRLS)
|
2007-07-06 07:45:08 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/ftpdctl ${PREFIX}/sbin/
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/src/ftpdctl.8 ${MAN8PREFIX}/man/man8/
|
2005-10-10 07:28:57 +02:00
|
|
|
.endif
|
|
|
|
|
2004-12-14 07:16:43 +01:00
|
|
|
.include <bsd.port.post.mk>
|