diff --git a/ftp/smbftpd/Makefile b/ftp/smbftpd/Makefile index d83ebecc6a2c..83f6ec45b9c7 100644 --- a/ftp/smbftpd/Makefile +++ b/ftp/smbftpd/Makefile @@ -1,43 +1,43 @@ PORTNAME= smbftpd PORTVERSION= 2.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp MASTER_SITES= SF/${PORTNAME}/SmbFTPD/${PORTVERSION} \ http://www.twbsd.org/download/download.php?file=smbftpd/ MAINTAINER= jnlin@freebsd.cs.nctu.edu.tw COMMENT= FTP daemon using Samba-like share management mechanism WWW= https://www.twbsd.org/enu/smbftpd/index.php USES= cpe perl5 USE_RC_SUBR= ${PORTNAME} HAS_CONFIGURE= yes CONFIGURE_ARGS+= "--prefix=${PREFIX}" MAKE_ENV+= OSTYPE=FreeBSD OPTIONS_DEFINE= PGSQL SSL ICONV ICONV_DESC= Enable codepage to unicode conversion for UTF-8 FTP ICONV_USES= iconv ICONV_CONFIGURE_WITH= iconv PGSQL_USES= pgsql PGSQL_CONFIGURE_WITH= pgsql SSL_CONFIGURE_WITH= ssl post-extract: ${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC} post-patch: ${REINPLACE_CMD} -e '/^CONFIGS = / s|\.conf|&.sample|g' ${WRKSRC}/Makefile cd ${WRKSRC}/conf/ && (${LS} *.conf | ${XARGS} -I % ${MV} % %.sample) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-user ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKSRC}/conf/*.sample ${STAGEDIR}${ETCDIR} .include diff --git a/ftp/smbftpd/files/smbftpd.in b/ftp/smbftpd/files/smbftpd.in index e4bd5cc2e6fb..f08cf4f4f23f 100644 --- a/ftp/smbftpd/files/smbftpd.in +++ b/ftp/smbftpd/files/smbftpd.in @@ -1,28 +1,29 @@ #!/bin/sh # PROVIDE: smbftpd # REQUIRE: NETWORKING SERVERS # BEFORE: DAEMON # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf to enable pure-ftpd: # # smbftpd_enable="YES" . /etc/rc.subr name=smbftpd rcvar=smbftpd_enable load_rc_config $name command=%%PREFIX%%/sbin/smbftpd smbftpd_config=${smbftpd_config:-"%%PREFIX%%/etc/smbftpd/smbftpd.conf"} required_files=${smbftpd_config} pidfile=/var/run/smbftpd.pid procname=%%PREFIX%%/sbin/smbftpd smbftpd_enable=${smbftpd_enable:-"NO"} +: ${smbftpd_svcj_options:="net_basic"} command_args="-D -s ${smbftpd_config}" run_rc_command "$1"