mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Update to 2.0
Added file(s): - files/patch-Makefile - files/smbftpd.sh.in PR: ports/124363 Submitted by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw> (maintainer)
This commit is contained in:
parent
b6dbbfe765
commit
4056323dea
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215746
@ -6,17 +6,46 @@
|
||||
#
|
||||
|
||||
PORTNAME= smbftpd
|
||||
PORTVERSION= 0.97
|
||||
PORTVERSION= 2.0
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= http://www.twbsd.org/download/download.php?file=smbftpd/
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
||||
http://www.twbsd.org/download/download.php?file=smbftpd/
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
||||
MAINTAINER= jnlin@csie.nctu.edu.tw
|
||||
COMMENT= FTP daemon using Samba-like share management mechanism
|
||||
|
||||
OPTIONS= MYSQL "Users database is a MySQL database" off \
|
||||
PGSQL "Users database is a PostgreSQL database" off \
|
||||
SSL "Enable SSL/TLS support" off \
|
||||
ICONV "Enable codepage to unicode conversion for UTF-8 FTP" off
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
USE_OPENSSL= yes
|
||||
USE_PERL5= yes
|
||||
|
||||
MAKE_ENV= OSTYPE=FreeBSD
|
||||
CONFIGURE_ARGS= "--prefix=${PREFIX}"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
USE_PERL5= yes
|
||||
USE_RC_SUBR= smbftpd.sh
|
||||
|
||||
.if defined(WITH_MYSQL)
|
||||
USE_MYSQL= yes
|
||||
CONFIGURE_ARGS+= "--with-mysql"
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= "--with-pgsql"
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ICONV)
|
||||
USE_ICONV= yes
|
||||
CONFIGURE_ARGS+= "--with-iconv"
|
||||
.endif
|
||||
|
||||
.if defined(WITH_SSL)
|
||||
CONFIGURE_ARGS+= "--with-ssl"
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (smbftpd-0.97.tar.gz) = e4c7e4f3b432d79cfd5b3cfafdbff069
|
||||
SHA256 (smbftpd-0.97.tar.gz) = 6e4508f885a08e07c744f5861cccdc6d1813e079ce9d6fa9f3eae55cf5635819
|
||||
SIZE (smbftpd-0.97.tar.gz) = 123190
|
||||
MD5 (smbftpd-2.0.tar.gz) = 771c938073501bb9bb7d1e3e44ae4aae
|
||||
SHA256 (smbftpd-2.0.tar.gz) = a3b8aeb444a8fe1275dc243911a206785e83465a87d4f3b89baca0d97cf7d818
|
||||
SIZE (smbftpd-2.0.tar.gz) = 138529
|
||||
|
18
ftp/smbftpd/files/patch-Makefile
Normal file
18
ftp/smbftpd/files/patch-Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
--- Makefile.orig 2008-05-17 11:33:53.160728999 +0800
|
||||
+++ Makefile 2008-05-17 11:34:04.012697489 +0800
|
||||
@@ -126,15 +126,3 @@
|
||||
install -c -m 400 cert/conf/ssl.key/server.key $(CONFIGDIR)/ssl.key/;\
|
||||
fi;
|
||||
|
||||
- @if [ "$(OSTYPE)" = "FreeBSD" ]; then \
|
||||
- echo "install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/"; \
|
||||
- [ -d $(PREFIX)/etc/rc.d ] || install -d $(PREFIX)/etc/rc.d; \
|
||||
- install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/; \
|
||||
- elif [ "$(OSTYPE)" = "linux" ]; then \
|
||||
- if [ ! -f /etc/pam.d/ftpd ]; then \
|
||||
- echo "install install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd"; \
|
||||
- install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd; \
|
||||
- fi; \
|
||||
- fi;
|
||||
-
|
||||
-
|
30
ftp/smbftpd/files/smbftpd.sh.in
Normal file
30
ftp/smbftpd/files/smbftpd.sh.in
Normal file
@ -0,0 +1,30 @@
|
||||
#!/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"
|
||||
#
|
||||
|
||||
. %%RC_SUBR%%
|
||||
|
||||
name=smbftpd
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
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=smbftpd
|
||||
|
||||
smbftpd_enable=${smbftpd_enable:-"NO"}
|
||||
command_args="-D -s ${smbftpd_config}"
|
||||
|
||||
run_rc_command "$1"
|
@ -1,6 +1,8 @@
|
||||
@comment $FreeBSD$
|
||||
etc/rc.d/smbftpd.sh
|
||||
bin/smbftpd-user
|
||||
etc/smbftpd/smbftpd.conf
|
||||
etc/smbftpd/smbftpd_share.conf
|
||||
etc/smbftpd/smbftpd_mysql.conf
|
||||
etc/smbftpd/smbftpd_pgsql.conf
|
||||
sbin/smbftpd
|
||||
@dirrmtry etc/smbftpd
|
||||
|
Loading…
Reference in New Issue
Block a user