1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

update pure-ftpd to 1.0.15 [0], add knobs for MySQL 4 and OpenLDAP 2.1 [0]

change where config files get installed from /etc to PREFIX/etc [1]
add a startscript for etc/rc.d [1]

PR:		46853 [1]
Requested by:	maintainer [0]
Approved By:	maintainer [0],[1]
This commit is contained in:
Oliver Lehmann 2003-06-18 19:01:24 +00:00
parent 003667a89d
commit d599d49fcb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83264
4 changed files with 50 additions and 9 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= pure-ftpd
PORTVERSION= 1.0.14
PORTVERSION= 1.0.15
PORTREVISION= 0
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \
@ -23,12 +23,20 @@ MASTER_SITE_SUBDIR= pureftpd
MAINTAINER= j@pureftpd.org
COMMENT= A small, easy to set up, fast and very secure FTP server
.if defined(WITH_LDAP)
.if defined(WITH_LDAP) && !defined(WITH_LDAP21)
LIB_DEPENDS+= ldap:${PORTSDIR}/net/openldap20
.elif defined(WITH_LDAP21) && !defined(WITH_LDAP)
LIB_DEPENDS+= ldap:${PORTSDIR}/net/openldap21
.elif defined(WITH_LDAP21) && defined(WITH_LDAP)
BROKEN= "You may only specify WITH_LDAP xor WITH_LDAP21, but not both together"
.endif
.if defined(WITH_MYSQL)
.if defined(WITH_MYSQL) && !defined(WITH_MYSQL4)
LIB_DEPENDS+= mysqlclient:${PORTSDIR}/databases/mysql323-client
.elif defined(WITH_MYSQL4) && !defined(WITH_MYSQL)
LIB_DEPENDS+= mysqlclient.12:${PORTSDIR}/databases/mysql40-client
.elif defined(WITH_MYSQL4) && defined(WITH_MYSQL)
BROKEN= "You may only specify WITH_MYSQL xor WITH_MYSQL4, but not both together"
.endif
.if defined(WITH_PGSQL)
@ -36,23 +44,24 @@ POSTGRESQL_PORT?= databases/postgresql7
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
.endif
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-everything \
--with-paranoidmsg \
--with-virtualchroot \
--sysconfdir=/etc
--sysconfdir=${PREFIX}/etc
# language support requested?
.if defined(WITH_LANG)
CONFIGURE_ARGS+= --with-language="${WITH_LANG}"
.endif
# ldap support requested?
.if defined(WITH_LDAP)
.if defined(WITH_LDAP) || defined(WITH_LDAP21)
CONFIGURE_ARGS+= --with-ldap
.endif
# mysql support requested?
.if defined(WITH_MYSQL)
.if defined(WITH_MYSQL) || defined(WITH_MYSQL4)
CONFIGURE_ARGS+= --with-mysql
.endif
@ -99,8 +108,10 @@ CONTRIB= xml_python_processors.txt pure-vpopauth.pl
pre-fetch:
@${ECHO_CMD} "You can use the following additional options:"
@${ECHO_CMD} "WITH_LDAP=1 - Support for users in LDAP directories"
@${ECHO_CMD} "WITH_MYSQL=1 - Support for users in MySQL databases"
@${ECHO_CMD} "WITH_LDAP=1 - Support for users in LDAP directories (openldap-2.0)"
@${ECHO_CMD} "WITH_LDAP21=1 - Support for users in LDAP directories (openldap-2.1)"
@${ECHO_CMD} "WITH_MYSQL=1 - Support for users in MySQL 3.23 databases"
@${ECHO_CMD} "WITH_MYSQL4=1 - Support for users in MySQL 4 databases"
@${ECHO_CMD} "WITH_PGSQL=1 - Support for users in PostgreSQL databases"
@${ECHO_CMD} "WITH_PRIVSEP=1 - Enable privilege separation"
@${ECHO_CMD} "WITH_LANG=lang - Enable compilation of language support, lang is one of"
@ -110,6 +121,9 @@ pre-fetch:
@${ECHO_CMD} " and czech."
@${ECHO_CMD} ""
post-patch:
@${REINPLACE_CMD} -e 's|$${exec_prefix}|${PREFIX}|g' ${WRKSRC}/configuration-file/pure-config.pl.in
post-install:
${INSTALL_DATA} ${WRKSRC}/pureftpd-ldap.conf ${PREFIX}/etc/pureftpd-ldap.conf.sample
${INSTALL_DATA} ${WRKSRC}/pureftpd-mysql.conf ${PREFIX}/etc/pureftpd-mysql.conf.sample
@ -123,6 +137,7 @@ post-install:
@${MKDIR} ${PREFIX}/share/doc/pure-ftpd
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/pure-ftpd)
.endif
${INSTALL_SCRIPT} ${FILESDIR}/pure-ftpd.sh.sample ${PREFIX}/etc/rc.d/
.if defined(PAM_TEMPL)
${MKDIR} ${PAM_DIR}
${INSTALL_DATA} ${PAM_TEMPL} ${PAM_DIR}/${PAM_TARGET}

View File

@ -1 +1 @@
MD5 (pure-ftpd-1.0.14.tar.gz) = 20a1231e701d6d78fd754b712016f3df
MD5 (pure-ftpd-1.0.15.tar.gz) = 3783fa94c7fd0723da2a497334430ad0

View File

@ -0,0 +1,25 @@
#!/bin/sh
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
fi
case "$1" in
start)
[ -r ${PREFIX}/pure-ftpd.conf ] && \
${PREFIX}/sbin/pure-config.pl ${PREFIX}/etc/pure-ftpd.conf > /dev/null && \
echo -n ' pure-ftp'
;;
stop)
[ -r /var/run/pure-ftpd.pid ] && \
kill `cat /var/run/pure-ftpd.pid` > /dev/null && \
echo -n ' pure-ftp'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0

View File

@ -5,6 +5,7 @@ etc/pure-ftpd.conf.sample
etc/pureftpd-ldap.conf.sample
etc/pureftpd-mysql.conf.sample
etc/pureftpd-pgsql.conf.sample
etc/rc.d/pure-ftpd.sh.sample
sbin/pure-authd
sbin/pure-config.pl
sbin/pure-ftpd