diff options
author | oliver <oliver@FreeBSD.org> | 2003-06-19 03:01:24 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2003-06-19 03:01:24 +0800 |
commit | 5ff067abc288d34532c2d121c5d412ba1f65b54f (patch) | |
tree | 0ce92e8fc552cf7310319eba866c9249c80b27ff /ftp/pure-ftpd | |
parent | 5ceb410d5d5ebb0feab6fcf56bc5511869d4489b (diff) | |
download | freebsd-ports-gnome-5ff067abc288d34532c2d121c5d412ba1f65b54f.tar.gz freebsd-ports-gnome-5ff067abc288d34532c2d121c5d412ba1f65b54f.tar.zst freebsd-ports-gnome-5ff067abc288d34532c2d121c5d412ba1f65b54f.zip |
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]
Diffstat (limited to 'ftp/pure-ftpd')
-rw-r--r-- | ftp/pure-ftpd/Makefile | 31 | ||||
-rw-r--r-- | ftp/pure-ftpd/distinfo | 2 | ||||
-rw-r--r-- | ftp/pure-ftpd/files/pure-ftpd.sh.sample | 25 | ||||
-rw-r--r-- | ftp/pure-ftpd/pkg-plist | 1 |
4 files changed, 50 insertions, 9 deletions
diff --git a/ftp/pure-ftpd/Makefile b/ftp/pure-ftpd/Makefile index 707d76e2a7e8..80a895896205 100644 --- a/ftp/pure-ftpd/Makefile +++ b/ftp/pure-ftpd/Makefile @@ -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} diff --git a/ftp/pure-ftpd/distinfo b/ftp/pure-ftpd/distinfo index 696431aa41dd..ceb655e0836d 100644 --- a/ftp/pure-ftpd/distinfo +++ b/ftp/pure-ftpd/distinfo @@ -1 +1 @@ -MD5 (pure-ftpd-1.0.14.tar.gz) = 20a1231e701d6d78fd754b712016f3df +MD5 (pure-ftpd-1.0.15.tar.gz) = 3783fa94c7fd0723da2a497334430ad0 diff --git a/ftp/pure-ftpd/files/pure-ftpd.sh.sample b/ftp/pure-ftpd/files/pure-ftpd.sh.sample new file mode 100644 index 000000000000..ecda1ea1ff62 --- /dev/null +++ b/ftp/pure-ftpd/files/pure-ftpd.sh.sample @@ -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 diff --git a/ftp/pure-ftpd/pkg-plist b/ftp/pure-ftpd/pkg-plist index 16975721536b..9670547d559d 100644 --- a/ftp/pure-ftpd/pkg-plist +++ b/ftp/pure-ftpd/pkg-plist @@ -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 |