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

(-)Makefile (-10 / +4 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	moftpd
8
PORTNAME=	moftpd
9
PORTVERSION=	1.2.3
9
PORTVERSION=	1.2.3
10
PORTREVISION=	6
10
PORTREVISION=	7
11
CATEGORIES=	ftp ipv6
11
CATEGORIES=	ftp ipv6
12
MASTER_SITES=	ftp://ftp.morth.org/moftpd/ \
12
MASTER_SITES=	ftp://ftp.morth.org/moftpd/ \
13
		${MASTER_SITE_LOCAL}
13
		${MASTER_SITE_LOCAL}
Lines 18-31 Link Here
18
18
19
USE_AUTOTOOLS=	autoconf:261
19
USE_AUTOTOOLS=	autoconf:261
20
USE_GMAKE=	yes
20
USE_GMAKE=	yes
21
USE_RC_SUBR=	yes
21
USE_RC_SUBR=	moftpd
22
USE_PERL5_BUILD=yes
22
USE_PERL5_BUILD=yes
23
CONFIGURE_ENV+=	LIBS="${LIBS}" CFLAGS="${CFLAGS}"
23
CONFIGURE_ENV+=	LIBS="${LIBS}" CFLAGS="${CFLAGS}"
24
CONFIGURE_ARGS=	--localstatedir=/var
24
CONFIGURE_ARGS=	--localstatedir=/var
25
25
26
.if !defined (NO_INSTALL_MANPAGES)
26
MAN8=		moftpd.8 moftpadmin.8
27
MAN8=		moftpd.8 moftpadmin.8
28
.endif
27
LIBS+=		-lcrypt
29
LIBS+=		-lcrypt
28
RC_SCRIPTS_SUB=	PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
29
30
30
.if defined(WITHOUT_TLS)
31
.if defined(WITHOUT_TLS)
31
CONFIGURE_ARGS+=	--without-tls
32
CONFIGURE_ARGS+=	--without-tls
Lines 46-56 Link Here
46
CONFIGURE_ARGS+=	--without-sql
47
CONFIGURE_ARGS+=	--without-sql
47
.endif
48
.endif
48
49
49
post-patch:
50
	@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
51
	${FILESDIR}/moftpd.sh > ${WRKDIR}/moftpd.sh
52
53
post-install:
54
	@${INSTALL_SCRIPT} ${WRKDIR}/moftpd.sh ${PREFIX}/etc/rc.d/
55
56
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)pkg-plist (-1 lines)
Lines 1-4 Link Here
1
etc/rc.d/moftpd.sh
2
etc/moftpd.conf.dist
1
etc/moftpd.conf.dist
3
sbin/moftpadmin
2
sbin/moftpadmin
4
sbin/moftpd
3
sbin/moftpd
(-)files/moftpd.in (+42 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/ftp/moftpd/files/moftpd.sh,v 1.2 2006/02/20 20:47:00 dougb Exp $
4
#
5
6
# PROVIDE: moftpd
7
# REQUIRE: NETWORKING SERVERS
8
# BEFORE: DAEMON
9
# KEYWORD: shutdown
10
11
#
12
# Add the following lines to /etc/rc.conf to enable moftpd:
13
# moftpd_enable (bool):      Set to "NO" by default.
14
# moftpdlimits_enable (bool):Set to "NO" by default.
15
#                             Set it to yes to run `limits $limits_args`
16
#                             just before moftpd starts.
17
# moftpd_flags (str):        Set to "" by default.
18
#                             Extra flags passed to start command
19
# moftpdlimits_args (str):   Default to "-e -C daemon"
20
#                             Arguments of pre-start limits run.
21
#
22
. %%RC_SUBR%%
23
24
name="moftpd"
25
rcvar=`set_rcvar`
26
27
command="%%PREFIX%%/sbin/moftpd"
28
pidfile="/var/run/moftpd.pid"
29
required_files=%%PREFIX%%/etc/moftpd.conf
30
31
load_rc_config $name
32
33
[ -z "$moftpd_enable" ]       && moftpd_enable="NO"
34
[ -z "$moftpd_flags" ]        && moftpd_flags=""
35
[ -z "$moftpdlimits_enable" ] && moftpdlimits_enable="NO"
36
[ -z "$moftpdlimits_args" ]   && moftpdlimits_args="-e -C daemon"
37
38
39
checkyesno moftpdlimits_enable && \
40
			start_precmd="eval `/usr/bin/limits ${moftpdlimits_args}` 2>/dev/null"
41
42
run_rc_command "$1"
(-)files/moftpd.sh (-41 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/ftp/moftpd/files/moftpd.sh,v 1.2 2006/02/20 20:47:00 dougb Exp $
4
#
5
6
# PROVIDE: moftpd
7
# REQUIRE: NETWORKING SERVERS
8
# BEFORE: DAEMON
9
# KEYWORD: shutdown
10
11
#
12
# Add the following lines to /etc/rc.conf to enable moftpd:
13
# moftpd_enable (bool):      Set to "NO" by default.
14
# moftpdlimits_enable (bool):Set to "NO" by default.
15
#                             Set it to yes to run `limits $limits_args`
16
#                             just before moftpd starts.
17
# moftpd_flags (str):        Set to "" by default.
18
#                             Extra flags passed to start command
19
# moftpdlimits_args (str):   Default to "-e -C daemon"
20
#                             Arguments of pre-start limits run.
21
#
22
. %%RC_SUBR%%
23
24
name="moftpd"
25
rcvar=`set_rcvar`
26
27
command="%%PREFIX%%/sbin/moftpd"
28
pidfile="/var/run/moftpd.pid"
29
required_files=%%PREFIX%%/etc/moftpd.conf
30
31
[ -z "$moftpd_enable" ]       && moftpd_enable="NO"
32
[ -z "$moftpd_flags" ]        && moftpd_flags=""
33
[ -z "$moftpdlimits_enable" ] && moftpdlimits_enable="NO"
34
[ -z "$moftpdlimits_args" ]   && moftpdlimits_args="-e -C daemon"
35
36
load_rc_config $name
37
38
checkyesno moftpdlimits_enable && \
39
			start_precmd="eval `/usr/bin/limits ${moftpdlimits_args}` 2>/dev/null"
40
41
run_rc_command "$1"

Return to bug 125651