diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2008-12-26 12:32:41 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2008-12-26 12:32:41 +0800 |
commit | 3563c06001fa4a951e298a7f7d75098408ad2157 (patch) | |
tree | 4e95f8ed1d5c1ac4bf97fcf5b33be30aeeaab649 | |
parent | e010f36a0f692b351a48d127bf26983eb9e33d6e (diff) | |
download | freebsd-ports-gnome-3563c06001fa4a951e298a7f7d75098408ad2157.tar.gz freebsd-ports-gnome-3563c06001fa4a951e298a7f7d75098408ad2157.tar.zst freebsd-ports-gnome-3563c06001fa4a951e298a7f7d75098408ad2157.zip |
- 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)
-rw-r--r-- | ftp/moftpd/Makefile | 12 | ||||
-rw-r--r-- | ftp/moftpd/files/moftpd.in (renamed from ftp/moftpd/files/moftpd.sh) | 5 | ||||
-rw-r--r-- | ftp/moftpd/pkg-plist | 1 |
3 files changed, 5 insertions, 13 deletions
diff --git a/ftp/moftpd/Makefile b/ftp/moftpd/Makefile index 64b426e9f648..d84004f6c797 100644 --- a/ftp/moftpd/Makefile +++ b/ftp/moftpd/Makefile @@ -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> diff --git a/ftp/moftpd/files/moftpd.sh b/ftp/moftpd/files/moftpd.in index a1c407313bf6..6379b96c1879 100644 --- a/ftp/moftpd/files/moftpd.sh +++ b/ftp/moftpd/files/moftpd.in @@ -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" diff --git a/ftp/moftpd/pkg-plist b/ftp/moftpd/pkg-plist index 942da2ac1cad..706f329afc1f 100644 --- a/ftp/moftpd/pkg-plist +++ b/ftp/moftpd/pkg-plist @@ -1,4 +1,3 @@ -etc/rc.d/moftpd.sh etc/moftpd.conf.dist sbin/moftpadmin sbin/moftpd |