mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- rename files/moftpd.sh -> files/moftpd.in
- move load_config above variables checks - Bump PORTREVISION PR: ports/125651 Submitted by: pgollucci Approved by: araujo (mentor, implicit), maintainer timeout (clement 5 months)
This commit is contained in:
parent
6cb3df0ae3
commit
1df6d16216
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=224788
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= moftpd
|
||||
PORTVERSION= 1.2.3
|
||||
PORTREVISION= 6
|
||||
PORTREVISION= 7
|
||||
CATEGORIES= ftp ipv6
|
||||
MASTER_SITES= ftp://ftp.morth.org/moftpd/ \
|
||||
${MASTER_SITE_LOCAL}
|
||||
@ -18,14 +18,13 @@ COMMENT= A powerful FTP server supporting IPv6, TLS, and much more
|
||||
|
||||
USE_AUTOTOOLS= autoconf:262
|
||||
USE_GMAKE= yes
|
||||
USE_RC_SUBR= yes
|
||||
USE_RC_SUBR= moftpd
|
||||
USE_PERL5_BUILD=yes
|
||||
CONFIGURE_ENV+= LIBS="${LIBS}" CFLAGS="${CFLAGS}"
|
||||
CONFIGURE_ARGS= --localstatedir=/var
|
||||
|
||||
MAN8= moftpd.8 moftpadmin.8
|
||||
LIBS+= -lcrypt
|
||||
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
||||
|
||||
.if defined(WITHOUT_TLS)
|
||||
CONFIGURE_ARGS+= --without-tls
|
||||
@ -46,11 +45,4 @@ LIBS+= -L${LOCALBASE}/lib/mysql
|
||||
CONFIGURE_ARGS+= --without-sql
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${FILESDIR}/moftpd.sh > ${WRKDIR}/moftpd.sh
|
||||
|
||||
post-install:
|
||||
@${INSTALL_SCRIPT} ${WRKDIR}/moftpd.sh ${PREFIX}/etc/rc.d/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
# $FreeBSD: /tmp/pcvs/ports/ftp/moftpd/files/Attic/moftpd.in,v 1.1 2008-12-26 04:32:41 pgollucci Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: moftpd
|
||||
@ -28,12 +28,13 @@ command="%%PREFIX%%/sbin/moftpd"
|
||||
pidfile="/var/run/moftpd.pid"
|
||||
required_files=%%PREFIX%%/etc/moftpd.conf
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
[ -z "$moftpd_enable" ] && moftpd_enable="NO"
|
||||
[ -z "$moftpd_flags" ] && moftpd_flags=""
|
||||
[ -z "$moftpdlimits_enable" ] && moftpdlimits_enable="NO"
|
||||
[ -z "$moftpdlimits_args" ] && moftpdlimits_args="-e -C daemon"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
checkyesno moftpdlimits_enable && \
|
||||
start_precmd="eval `/usr/bin/limits ${moftpdlimits_args}` 2>/dev/null"
|
@ -1,4 +1,3 @@
|
||||
etc/rc.d/moftpd.sh
|
||||
etc/moftpd.conf.dist
|
||||
sbin/moftpadmin
|
||||
sbin/moftpd
|
||||
|
Loading…
Reference in New Issue
Block a user