View | Details | Raw Unified | Return to bug 124363
Collapse All | Expand All

(-)/home/users/jnlin/ports/smbftpd/Makefile (-5 / +34 lines)
Lines 6-22 Link Here
6
#
6
#
7
7
8
PORTNAME=	smbftpd
8
PORTNAME=	smbftpd
9
PORTVERSION=	0.97
9
PORTVERSION=	2.0
10
CATEGORIES=	ftp
10
CATEGORIES=	ftp
11
MASTER_SITES=	http://www.twbsd.org/download/download.php?file=smbftpd/
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
12
		http://www.twbsd.org/download/download.php?file=smbftpd/
13
MASTER_SITE_SUBDIR=	${PORTNAME}
12
14
13
MAINTAINER=	jnlin@csie.nctu.edu.tw
15
MAINTAINER=	jnlin@csie.nctu.edu.tw
14
COMMENT=	FTP daemon using Samba-like share management mechanism
16
COMMENT=	FTP daemon using Samba-like share management mechanism
15
17
18
OPTIONS=	MYSQL "Users database is a MySQL database" off \
19
		PGSQL "Users database is a PostgreSQL database" off \
20
		SSL "Enable SSL/TLS support" off \
21
		ICONV "Enable codepage to unicode conversion for UTF-8 FTP" off
22
16
HAS_CONFIGURE=	yes
23
HAS_CONFIGURE=	yes
17
USE_OPENSSL=	yes
24
MAKE_ENV=	OSTYPE=FreeBSD
25
CONFIGURE_ARGS=	"--prefix=${PREFIX}"
26
27
.include <bsd.port.pre.mk>
28
18
USE_PERL5=	yes
29
USE_PERL5=	yes
30
USE_RC_SUBR=	smbftpd.sh
19
31
20
MAKE_ENV=	OSTYPE=FreeBSD
32
.if defined(WITH_MYSQL)
33
USE_MYSQL=	yes
34
CONFIGURE_ARGS+=	"--with-mysql"
35
.endif
36
37
.if defined(WITH_PGSQL)
38
USE_PGSQL=	yes
39
CONFIGURE_ARGS+=	"--with-pgsql"
40
.endif
41
42
.if defined(WITH_ICONV)
43
USE_ICONV=	yes
44
CONFIGURE_ARGS+=	"--with-iconv"
45
.endif
46
47
.if defined(WITH_SSL)
48
CONFIGURE_ARGS+=	"--with-ssl"
49
.endif
21
50
22
.include <bsd.port.mk>
51
.include <bsd.port.post.mk>
(-)/home/users/jnlin/ports/smbftpd/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (smbftpd-0.97.tar.gz) = e4c7e4f3b432d79cfd5b3cfafdbff069
1
MD5 (smbftpd-2.0.tar.gz) = 771c938073501bb9bb7d1e3e44ae4aae
2
SHA256 (smbftpd-0.97.tar.gz) = 6e4508f885a08e07c744f5861cccdc6d1813e079ce9d6fa9f3eae55cf5635819
2
SHA256 (smbftpd-2.0.tar.gz) = a3b8aeb444a8fe1275dc243911a206785e83465a87d4f3b89baca0d97cf7d818
3
SIZE (smbftpd-0.97.tar.gz) = 123190
3
SIZE (smbftpd-2.0.tar.gz) = 138529
(-)/home/users/jnlin/ports/smbftpd/files/patch-Makefile (+18 lines)
Line 0 Link Here
1
--- Makefile.orig	2008-05-17 11:33:53.160728999 +0800
2
+++ Makefile	2008-05-17 11:34:04.012697489 +0800
3
@@ -126,15 +126,3 @@
4
 		install -c -m 400 cert/conf/ssl.key/server.key $(CONFIGDIR)/ssl.key/;\
5
 	fi;
6
 
7
-	@if [ "$(OSTYPE)" = "FreeBSD" ]; then \
8
-		echo "install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/"; \
9
-		[ -d $(PREFIX)/etc/rc.d ] || install -d $(PREFIX)/etc/rc.d; \
10
-		install -c -m 755 os/FreeBSD/smbftpd.sh $(PREFIX)/etc/rc.d/; \
11
-	elif [ "$(OSTYPE)" = "linux" ]; then \
12
-		if [ ! -f /etc/pam.d/ftpd ]; then       \
13
-			echo "install install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd"; \
14
-			install -c -m 644 os/linux/ftpd.pam /etc/pam.d/ftpd;    \
15
-		fi;     \
16
-	fi;
17
-
18
-
(-)/home/users/jnlin/ports/smbftpd/files/smbftpd.sh.in (+30 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# PROVIDE: smbftpd
4
# REQUIRE: NETWORKING SERVERS
5
# BEFORE: DAEMON
6
# KEYWORD: shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
10
#
11
# smbftpd_enable="YES"
12
#
13
14
. %%RC_SUBR%%
15
16
name=smbftpd
17
rcvar=`set_rcvar`
18
19
load_rc_config $name
20
21
command=%%PREFIX%%/sbin/smbftpd
22
smbftpd_config=${smbftpd_config:-"%%PREFIX%%/etc/smbftpd/smbftpd.conf"}
23
required_files=${smbftpd_config}
24
pidfile=/var/run/smbftpd.pid
25
procname=smbftpd
26
27
smbftpd_enable=${smbftpd_enable:-"NO"}
28
command_args="-D -s ${smbftpd_config}"
29
30
run_rc_command "$1"
(-)/home/users/jnlin/ports/smbftpd/pkg-plist (-1 / +3 lines)
Lines 1-6 Link Here
1
@comment $FreeBSD: ports/ftp/smbftpd/pkg-plist,v 1.1 2006/01/23 19:37:26 pav Exp $
1
@comment $FreeBSD: ports/ftp/smbftpd/pkg-plist,v 1.1 2006/01/23 19:37:26 pav Exp $
2
etc/rc.d/smbftpd.sh
2
bin/smbftpd-user
3
etc/smbftpd/smbftpd.conf
3
etc/smbftpd/smbftpd.conf
4
etc/smbftpd/smbftpd_share.conf
4
etc/smbftpd/smbftpd_share.conf
5
etc/smbftpd/smbftpd_mysql.conf
6
etc/smbftpd/smbftpd_pgsql.conf
5
sbin/smbftpd
7
sbin/smbftpd
6
@dirrmtry etc/smbftpd
8
@dirrmtry etc/smbftpd

Return to bug 124363