mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
Remove obsolete ftp/proftpd-devel port.
ftp/proftpd-devel
This commit is contained in:
parent
e1ee61cc39
commit
3a0a61994b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288521
1
MOVED
1
MOVED
@ -3150,3 +3150,4 @@ www/wget4web||2012-01-01|Has expired: Depends on expired www/apache13
|
||||
www/p5-Apache-Test||2012-01-01|Has expired: Depends on expired www/apache13
|
||||
net-im/jwchat||2012-01-01|Has expired: Depends on expired www/apache13
|
||||
editors/ged||2012-01-04|Removed: Use ed from base instead
|
||||
ftp/proftpd-devel||2012-01-04|Removed
|
||||
|
@ -83,7 +83,6 @@
|
||||
SUBDIR += phpwebftp
|
||||
SUBDIR += plasma-applet-ftpmonitor
|
||||
SUBDIR += proftpd
|
||||
SUBDIR += proftpd-devel
|
||||
SUBDIR += proftpd-mysql
|
||||
SUBDIR += profxp
|
||||
SUBDIR += proma
|
||||
|
@ -1,384 +0,0 @@
|
||||
# New ports collection makefile for: proftpd
|
||||
# Date created: 26 January 1998
|
||||
# Whom: Stephane Legrand
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= proftpd
|
||||
DISTVERSION= 1.3.3rc4
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
|
||||
ftp://ftp1.at.proftpd.org/distrib/source/ \
|
||||
ftp://ftp1.ca.proftpd.org/distrib/source/ \
|
||||
ftp://ftp1.us.proftpd.org/distrib/source/ \
|
||||
https://secure.thrallingpenguin.com/redmine/attachments/download/1/:clam \
|
||||
http://www.smartftp.com/oss/proftpd/:digest \
|
||||
LOCAL/beech \
|
||||
LOCAL/beech:clam \
|
||||
LOCAL/beech:digest
|
||||
PKGNAMESUFFIX= -devel
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
||||
|
||||
MAINTAINER= guzik@anka.net.pl
|
||||
COMMENT= Highly configurable ftp daemon
|
||||
|
||||
MAN1= ftpcount.1 ftpwho.1 ftptop.1
|
||||
MAN5= xferlog.5
|
||||
MAN8= proftpd.8 ftpshut.8 ftpdctl.8 ftpscrub.8
|
||||
|
||||
PORTDOCSdoc= Configuration.html faq.html
|
||||
PORTDOCScontrib=mod_ifsession.html mod_radius.html mod_rewrite.html \
|
||||
mod_tls.html mod_wrap2.html mod_wrap2_file.html mod_wrap2_sql.html \
|
||||
mod_ban.html mod_quotatab_radius.html ftpasswd.html mod_sftp.html \
|
||||
mod_sftp_sql.html mod_sftp_pam.html
|
||||
PORTDOCSmodule= mod_auth_file.html mod_auth_pam.html mod_cap.html mod_ctrls.html \
|
||||
mod_delay.html mod_dso.html mod_facl.html mod_facts.html \
|
||||
mod_ident.html mod_lang.html
|
||||
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} ${PORTDOCSmodule}
|
||||
|
||||
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
|
||||
|
||||
USE_GMAKE= yes
|
||||
USE_AUTOTOOLS= autoconf
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
CONFLICTS= proftpd-1.[0-9].*
|
||||
|
||||
USE_RC_SUBR= proftpd.sh
|
||||
|
||||
CONFIGURE_ARGS= --localstatedir=/var/run \
|
||||
--sysconfdir=${PREFIX}/etc \
|
||||
--disable-sendfile
|
||||
|
||||
OPTIONS= IPV6 "Use IPv6" off \
|
||||
LDAP "Use LDAP" off \
|
||||
LDAP_TLS "Use LDAP TLS (Requires LDAP, OPENSSL)" off\
|
||||
MYSQL "MySQL auth (Can be combined)" off \
|
||||
PGSQL "Postgres auth (Can be combined)" off \
|
||||
SHAPER "Shaper module" off \
|
||||
SQLITE "SQLite auth (Can be combined)" off \
|
||||
ODBC "ODBC (Can be combined)" off \
|
||||
OPENSSL "Include mod_tls" on \
|
||||
QUOTA "Include mod_quota" off \
|
||||
IFSESSION "Include mod_ifsession" on \
|
||||
README "Include mod_readme" on \
|
||||
RATIO "Include mod_ratio" on \
|
||||
CTRLS "Include controls" off \
|
||||
REWRITE "Include mod_rewrite" on \
|
||||
WRAP "Include mod_wrap2" on \
|
||||
WRAP_FILE "Include mod_wrap2_file" off \
|
||||
WRAP_SQL "Include mod_wrap2_sql" off \
|
||||
RADIUS "Include mod_radius" on \
|
||||
QUOTATAB_RADIUS "include mod_quotatab_radius" off \
|
||||
BAN "Include mod_ban (Requires CTRLS)" off \
|
||||
NLS "Use nls (builds mod_lang)" off \
|
||||
UNIQUE "Include mod_unique_id" off \
|
||||
CLAMAV "Include mod_clamav" off \
|
||||
DIGEST "Include mod_digest" off \
|
||||
SFTP "Include mod_sftp" off\
|
||||
SFTP_SQL "Include mod_sftp_sql" off \
|
||||
SFTP_PAM "Include mod_sftp_pam" off
|
||||
|
||||
MODULES?=
|
||||
LIBDIRS?=
|
||||
INCLUDEDIRS?=
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITHOUT_RATIO)
|
||||
MODULES:=${MODULES}:mod_ratio
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_README)
|
||||
MODULES:=${MODULES}:mod_readme
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_REWRITE)
|
||||
MODULES:=${MODULES}:mod_rewrite
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_WRAP)
|
||||
MODULES:=${MODULES}:mod_wrap2
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${WORKDIR}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
PLIST_SUB+= WRAP=""
|
||||
.else
|
||||
PLIST_SUB+= WRAP="@comment "
|
||||
.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
|
||||
.endif
|
||||
|
||||
.if defined(WITH_RADIUS)
|
||||
MODULES:=${MODULES}:mod_radius
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SHAPER)
|
||||
MODULES:=${MODULES}:mod_shaper
|
||||
.endif
|
||||
|
||||
.if defined(WITH_QUOTATAB_RADIUS)
|
||||
MODULES:=${MODULES}:mod_quotatab_radius
|
||||
.endif
|
||||
|
||||
.if defined(WITH_BAN)
|
||||
MODULES:=${MODULES}:mod_ban
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SETPASSENT)
|
||||
CONFIGURE_ARGS+= --enable-force-setpassent
|
||||
.endif
|
||||
|
||||
.if defined(WITHOUT_PAM)
|
||||
CONFIGURE_ARGS+= --disable-auth-pam
|
||||
.endif
|
||||
|
||||
.if defined(WITH_IPV6)
|
||||
CONFIGURE_ARGS+= --enable-ipv6
|
||||
.endif
|
||||
|
||||
.if !defined(WITH_IPV6)
|
||||
CONFIGURE_ARGS+= --disable-ipv6
|
||||
.endif
|
||||
|
||||
.if defined(WITH_NLS)
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
CONFIGURE_ARGS+= --enable-nls
|
||||
USE_GETTEXT=yes
|
||||
PROFTPD_LIBS+= -lintl -L${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
#allow user to override
|
||||
MODULES?= mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_ifsession
|
||||
|
||||
INCLUDEDIRS?=
|
||||
LIBDIRS?=
|
||||
|
||||
.if defined(WITH_LDAP)
|
||||
USE_OPENLDAP= yes
|
||||
MODULES:=${MODULES}:mod_ldap
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MYSQL)
|
||||
USE_MYSQL= yes
|
||||
MODULES:=${MODULES}:mod_sql_mysql
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include:${LOCALBASE}/include/mysql
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib/mysql
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
USE_PGSQL= yes
|
||||
MODULES:=${MODULES}:mod_sql_postgres
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SQLITE)
|
||||
USE_SQLITE= yes
|
||||
MODULES:=${MODULES}:mod_sql_sqlite
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ODBC)
|
||||
LIB_DEPENDS= iodbc.3:${PORTSDIR}/databases/libiodbc
|
||||
MODULES:=${MODULES}:mod_sql_odbc
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
CONFIGURE_ARGS+=LIBS=-liodbc LD_LIBRARY_PATH=${LOCALBASE}/lib LDFLAGS=-L${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
.if ${MODULES:M*mod_sql_*}
|
||||
MODULES:=mod_sql${MODULES}
|
||||
PLIST_SUB+= SQL=""
|
||||
.else
|
||||
PLIST_SUB+= SQL="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_OPENSSL)
|
||||
.include <${PORTSDIR}/Mk/bsd.openssl.mk>
|
||||
CFLAGS+= -DHAVE_OPENSSL -I${OPENSSLINC}
|
||||
PROFTPD_LIBS+= -lssl -lcrypto -L${OPENSSLLIB}
|
||||
MODULES:=${MODULES}:mod_tls
|
||||
PLIST_SUB+= TLS=""
|
||||
.else
|
||||
PLIST_SUB+= TLS="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CTRLS)
|
||||
CONFIGURE_ARGS+= --enable-ctrls
|
||||
.if !defined(WITHOUT_CTRLS_ADMIN)
|
||||
MODULES:=${MODULES}:mod_ctrls_admin
|
||||
.endif
|
||||
PLIST_SUB+= CTRLS_ADMIN=""
|
||||
.else
|
||||
PLIST_SUB+= CTRLS_ADMIN="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_QUOTA)
|
||||
MODULES:=${MODULES}:mod_quotatab:mod_quotatab_file
|
||||
PLIST_SUB+= QUOTA=""
|
||||
.else
|
||||
PLIST_SUB+= QUOTA="@comment "
|
||||
.if defined(WITH_LDAP)
|
||||
MODULES:=${MODULES}:mod_quotatab_ldap
|
||||
.endif
|
||||
.if defined(WITH_PGSQL) || defined(WITH_MYSQL)
|
||||
MODULES:=${MODULES}:mod_quotatab_sql
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITH_UNIQUE)
|
||||
MODULES:=${MODULES}:mod_unique_id
|
||||
.endif
|
||||
|
||||
.if defined(WITH_CLAMAV)
|
||||
DISTFILES+= mod_clamav-0.11rc.tar.gz:clam
|
||||
EXTRACT_ONLY+= mod_clamav-0.11rc.tar.gz
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-modules_mod_xfer.c
|
||||
USE_CLAMAV= yes
|
||||
MODULES:=${MODULES}:mod_clamav
|
||||
LIB_DEPENDS+= clamav.7:${PORTSDIR}/security/clamav
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
PLIST_SUB+= CLAMAV=""
|
||||
.else
|
||||
PLIST_SUB+= CLAMAV="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DIGEST)
|
||||
DISTFILES+= mod_digest.c:digest
|
||||
MODULES:=${MODULES}:mod_digest
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SFTP)
|
||||
USE_SQLITE= yes
|
||||
MODULES:=${MODULES}:mod_sftp
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
PLIST_SUB+= SFTP=""
|
||||
PLIST_FILES+= include/${PORTNAME}/mod_sftp.h
|
||||
.else
|
||||
PLIST_SUB+= SFTP="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SFTP_SQL)
|
||||
USE_SQLITE= yes
|
||||
MODULES:=${MODULES}:mod_sftp_sql
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
PLIST_SUB+= SFTP_SQL=""
|
||||
.else
|
||||
PLIST_SUB+= SFTP_SQL="@comment "
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SFTP_PAM)
|
||||
USE_SQLITE= yes
|
||||
MODULES:=${MODULES}:mod_sftp_pam
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
PLIST_SUB+= SFTP_PAM=""
|
||||
.else
|
||||
PLIST_SUB+= SFTP_PAM="@comment "
|
||||
.endif
|
||||
|
||||
# mod_ifsession should be the last item in the modules list
|
||||
.if !defined(WITHOUT_IFSESSION)
|
||||
MODULES:=${MODULES}:mod_ifsession
|
||||
.endif
|
||||
|
||||
# Keep this here below, in case similar constructs need to be made
|
||||
CONFIGURE_ENV+= "LIBS=${PROFTPD_LIBS}"
|
||||
|
||||
.if !empty(MODULES)
|
||||
CONFIGURE_ARGS+= --with-modules=${MODULES}
|
||||
.endif
|
||||
|
||||
.if !empty(INCLUDEDIRS)
|
||||
CONFIGURE_ARGS+= --with-includes=${INCLUDEDIRS}
|
||||
.endif
|
||||
|
||||
.if !empty(LIBDIRS)
|
||||
CONFIGURE_ARGS+= --with-libraries=${LIBDIRS}
|
||||
.endif
|
||||
|
||||
MODULES!=${ECHO} ${MODULES} | ${SED} -e 's,^:,,' -e 's,:$$,,'
|
||||
|
||||
post-extract:
|
||||
.if defined(WITH_CLAMAV)
|
||||
@${CP} ${WRKDIR}/mod_clamav-0.11rc/mod_clamav.* ${WRKSRC}/contrib
|
||||
.endif
|
||||
.if defined(WITH_DIGEST)
|
||||
@${CP} ${DISTDIR}/${DIST_SUBDIR}/mod_digest.c ${WRKSRC}/modules/
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
.if defined(WITH_NLS)
|
||||
@${REINPLACE_CMD} -e 's|-lsupp|-lsupp -lintl|g' ${WRKSRC}/Makefile.in
|
||||
.endif
|
||||
.if defined(WITH_LDAP_TLS)
|
||||
@${REINPLACE_CMD} -e 's:/\* #define USE_LDAP_TLS \*/:#define USE_LDAP_TLS:' \
|
||||
${WRKSRC}/contrib/mod_ldap.c
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e 's|proftpd\.conf|proftpd.conf.sample|g' ${WRKSRC}/Makefile.in
|
||||
|
||||
pre-configure:
|
||||
@${ECHO_MSG} "==> Configuring with ${MODULES}"
|
||||
|
||||
post-configure:
|
||||
${REINPLACE_CMD} -e 's: -lnsl::' ${WRKSRC}/Make.rules
|
||||
${REINPLACE_CMD} -e 's:/usr/sbin:${PREFIX}/sbin:' \
|
||||
-e 's:/usr/bin:${PREFIX}/bin:' \
|
||||
${WRKSRC}/src/proftpd.8 ${WRKSRC}/utils/ftpshut.8 \
|
||||
${WRKSRC}/utils/ftpcount.1
|
||||
|
||||
pre-install:
|
||||
@cd ${PREFIX}/lib && ${INSTALL} -d pkgconfig
|
||||
|
||||
post-install:
|
||||
@cd ${PREFIX}/etc/ && ${CP} -n proftpd.conf.sample proftpd.conf
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${INSTALL} -d ${DOCSDIR}/
|
||||
@cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${PORTDOCSdoc} ${DOCSDIR}/
|
||||
@cd ${WRKSRC}/doc/contrib && ${INSTALL_DATA} ${PORTDOCScontrib} ${DOCSDIR}/
|
||||
@cd ${WRKSRC}/doc/modules && ${INSTALL_DATA} ${PORTDOCSmodule} ${DOCSDIR}/
|
||||
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCSreadme} ${DOCSDIR}/
|
||||
.endif
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${INSTALL} -d ${EXAMPLESDIR}/
|
||||
@cd ${WRKSRC}/doc/howto/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
|
||||
.endif
|
||||
.if defined(WITH_CTRLS)
|
||||
@${INSTALL_PROGRAM} ${WRKSRC}/ftpdctl ${PREFIX}/sbin/
|
||||
@${INSTALL_MAN} ${WRKSRC}/src/ftpdctl.8 ${MAN8PREFIX}/man/man8/
|
||||
.endif
|
||||
@cd ${PREFIX}/lib/pkgconfig && ${MV} proftpd.pc ${PREFIX}/libdata/pkgconfig
|
||||
@${RM} -r ${PREFIX}/lib/pkgconfig
|
||||
|
||||
.include <bsd.port.post.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (proftpd-1.3.3rc4.tar.gz) = eb6737962bcda077488efde49b16e81466d8d6fad1f4cd7dd4409b58342a8619
|
||||
SIZE (proftpd-1.3.3rc4.tar.gz) = 4842078
|
@ -1,23 +0,0 @@
|
||||
--- modules/mod_xfer.c.org Tue Jan 1 12:31:32 2008
|
||||
+++ modules/mod_xfer.c Tue Jan 1 16:45:20 2008
|
||||
@@ -42,6 +42,8 @@
|
||||
#include <regex.h>
|
||||
#endif
|
||||
|
||||
+#include "mod_clamav.h"
|
||||
+
|
||||
extern module auth_module;
|
||||
extern pid_t mpid;
|
||||
|
||||
@@ -1582,6 +1584,11 @@
|
||||
return PR_ERROR(cmd);
|
||||
}
|
||||
|
||||
+ if (clamav_scan(cmd)) {
|
||||
+ pr_data_close(FALSE);
|
||||
+ return PR_ERROR(cmd);
|
||||
+ }
|
||||
+
|
||||
if (session.xfer.path &&
|
||||
session.xfer.path_hidden) {
|
||||
if (pr_fsio_rename(session.xfer.path_hidden, session.xfer.path) != 0) {
|
@ -1,19 +0,0 @@
|
||||
--- src/fsio.c.orig 2010-04-12 12:00:00.000000000 -0700
|
||||
+++ src/fsio.c 2011-12-16 15:12:07.799166185 -0800
|
||||
@@ -50,6 +50,8 @@
|
||||
# include <acl/libacl.h>
|
||||
#endif
|
||||
|
||||
+#include <unistd.h>
|
||||
+
|
||||
typedef struct fsopendir fsopendir_t;
|
||||
|
||||
struct fsopendir {
|
||||
@@ -287,6 +289,7 @@
|
||||
static int sys_chroot(pr_fs_t *fs, const char *path) {
|
||||
if (chroot(path) < 0)
|
||||
return -1;
|
||||
+ __FreeBSD_libc_enter_restricted_mode();
|
||||
|
||||
session.chroot_path = (char *) path;
|
||||
return 0;
|
@ -1,47 +0,0 @@
|
||||
Index: src/wtmp.c
|
||||
===================================================================
|
||||
RCS file: /cvsroot/proftp/proftpd/src/wtmp.c,v
|
||||
retrieving revision 1.2
|
||||
diff -u -r1.2 wtmp.c
|
||||
--- src/wtmp.c 18 Feb 2009 18:24:50 -0000 1.2
|
||||
+++ src/wtmp.c 13 Mar 2010 17:06:33 -0000
|
||||
@@ -37,7 +37,8 @@
|
||||
int res = 0;
|
||||
|
||||
#if ((defined(SVR4) || defined(__SVR4)) || \
|
||||
- (defined(__NetBSD__) && defined(HAVE_UTMPX_H))) && \
|
||||
+ (defined(__NetBSD__) && defined(HAVE_UTMPX_H)) || \
|
||||
+ (defined(__FreeBSD_version) && __FreeBSD_version >= 900007 && defined(HAVE_UTMPX_H))) && \
|
||||
!(defined(LINUX) || defined(__hpux) || defined (_AIX))
|
||||
/* This "auxilliary" utmp doesn't exist under linux. */
|
||||
|
||||
@@ -51,8 +52,17 @@
|
||||
|
||||
static int fdx = -1;
|
||||
|
||||
-#if !defined(WTMPX_FILE) && defined(_PATH_WTMPX)
|
||||
-# define WTMPX_FILE _PATH_WTMPX
|
||||
+#if !defined(WTMPX_FILE)
|
||||
+# if defined(_PATH_WTMPX)
|
||||
+# define WTMPX_FILE _PATH_WTMPX
|
||||
+# elif defined(_PATH_UTMPX)
|
||||
+# define WTMPX_FILE _PATH_UTMPX
|
||||
+# else
|
||||
+/* This path works for FreeBSD; not sure what to do for other platforms which
|
||||
+ * don't define _PATH_WTMPX or _PATH_UTMPX.
|
||||
+ */
|
||||
+# define WTMPX_FILE "/var/log/utx.log"
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
if (fdx < 0 &&
|
||||
@@ -81,6 +91,9 @@
|
||||
memcpy(&utx.ut_ss, pr_netaddr_get_inaddr(ip), sizeof(utx.ut_ss));
|
||||
gettimeofday(&utx.ut_tv, NULL);
|
||||
|
||||
+#elif defined(__FreeBSD_version) && __FreeBSD_version >= 900007 && defined(HAVE_UTMPX_H)
|
||||
+ gettimeofday(&utx.ut_tv, NULL);
|
||||
+
|
||||
#else /* SVR4 */
|
||||
utx.ut_syslen = strlen(utx.ut_host)+1;
|
||||
|
@ -1,43 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: proftpd
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf to enable proftpd:
|
||||
#
|
||||
# proftpd_enable="YES"
|
||||
# proftpd_flags="<set as needed>"
|
||||
#
|
||||
# See proftpd(8) for flags
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=proftpd
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
command=%%PREFIX%%/sbin/proftpd
|
||||
pidfile=/var/run/proftpd.pid
|
||||
required_files=%%PREFIX%%/etc/proftpd.conf
|
||||
|
||||
stop_postcmd=stop_postcmd
|
||||
|
||||
stop_postcmd()
|
||||
{
|
||||
rm -f $pidfile
|
||||
}
|
||||
|
||||
# set defaults
|
||||
|
||||
proftpd_enable=${proftpd_enable:-"NO"}
|
||||
|
||||
extra_commands="reload"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
@ -1,10 +0,0 @@
|
||||
ProFTPD is a highly configurable ftp daemon for unix
|
||||
and unix-like operating systems. ProFTPD is designed
|
||||
to be somewhat of a "drop-in" replacement for wu-ftpd
|
||||
with a configuration format like Apache.
|
||||
|
||||
Full online documentation is available at
|
||||
http://www.proftpd.org/, including a server
|
||||
configuration directive reference manual.
|
||||
|
||||
WWW: http://www.proftpd.org/
|
@ -1,76 +0,0 @@
|
||||
bin/ftpcount
|
||||
bin/ftpdctl
|
||||
bin/ftptop
|
||||
bin/ftpwho
|
||||
bin/prxs
|
||||
@unexec if cmp -s %D/etc/proftpd.conf %D/etc/proftpd.conf.sample; then rm -f %D/etc/proftpd.conf; fi
|
||||
etc/proftpd.conf.sample
|
||||
@exec cp -n %D/%F %B/proftpd.conf
|
||||
include/proftpd/auth.h
|
||||
include/proftpd/bindings.h
|
||||
include/proftpd/buildstamp.h
|
||||
include/proftpd/child.h
|
||||
include/proftpd/class.h
|
||||
include/proftpd/cmd.h
|
||||
include/proftpd/compat.h
|
||||
include/proftpd/conf.h
|
||||
include/proftpd/config.h
|
||||
include/proftpd/ctrls.h
|
||||
include/proftpd/data.h
|
||||
include/proftpd/default_paths.h
|
||||
include/proftpd/dirtree.h
|
||||
include/proftpd/display.h
|
||||
include/proftpd/encode.h
|
||||
include/proftpd/env.h
|
||||
include/proftpd/event.h
|
||||
include/proftpd/expr.h
|
||||
include/proftpd/feat.h
|
||||
include/proftpd/filter.h
|
||||
include/proftpd/fsio.h
|
||||
include/proftpd/ftp.h
|
||||
include/proftpd/glibc-glob.h
|
||||
include/proftpd/help.h
|
||||
include/proftpd/inet.h
|
||||
include/proftpd/libsupp.h
|
||||
include/proftpd/log.h
|
||||
include/proftpd/mkhome.h
|
||||
include/proftpd/mod_ctrls.h
|
||||
%%CLAMAV%%include/proftpd/mod_clamav.h
|
||||
%%WRAP%%include/proftpd/mod_wrap2.h
|
||||
%%SQL%%include/proftpd/mod_sql.h
|
||||
%%TLS%%include/proftpd/mod_tls.h
|
||||
%%QUOTA%%include/proftpd/mod_quotatab.h
|
||||
include/proftpd/modules.h
|
||||
include/proftpd/netacl.h
|
||||
include/proftpd/netaddr.h
|
||||
include/proftpd/netio.h
|
||||
include/proftpd/options.h
|
||||
include/proftpd/parser.h
|
||||
include/proftpd/pidfile.h
|
||||
include/proftpd/pool.h
|
||||
include/proftpd/pr-syslog.h
|
||||
include/proftpd/privs.h
|
||||
include/proftpd/proctitle.h
|
||||
include/proftpd/proftpd.h
|
||||
include/proftpd/regexp.h
|
||||
include/proftpd/response.h
|
||||
include/proftpd/scoreboard.h
|
||||
include/proftpd/session.h
|
||||
include/proftpd/sets.h
|
||||
include/proftpd/str.h
|
||||
include/proftpd/support.h
|
||||
include/proftpd/table.h
|
||||
include/proftpd/throttle.h
|
||||
include/proftpd/timers.h
|
||||
include/proftpd/trace.h
|
||||
include/proftpd/var.h
|
||||
include/proftpd/version.h
|
||||
include/proftpd/xferlog.h
|
||||
libdata/pkgconfig/proftpd.pc
|
||||
sbin/ftpshut
|
||||
sbin/in.proftpd
|
||||
sbin/proftpd
|
||||
sbin/ftpscrub
|
||||
%%CTRLS_ADMIN%%sbin/ftpdctl
|
||||
@dirrm include/proftpd
|
||||
@dirrm lib/proftpd
|
Loading…
Reference in New Issue
Block a user