Date: Wed, 8 Jan 2003 17:06:27 +1300 (NZDT) From: Andrew Thompson <andy@fud.org.nz> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/46853: pure-ftp uses /etc for config Message-ID: <20030108040627.6AB8E59D0A@heidi.fud.org.nz>
next in thread | raw e-mail | index | archive | help
>Number: 46853 >Category: ports >Synopsis: pure-ftp uses /etc for config >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jan 07 20:10:02 PST 2003 >Closed-Date: >Last-Modified: >Originator: Andrew Thompson >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: System: FreeBSD heidi.fud.org.nz 4.7-STABLE FreeBSD 4.7-STABLE #0: Tue Nov 5 17:52:52 NZDT 2002 root@heidi.fud.org.nz:/usr/obj/usr/src/sys/HEIDI i386 >Description: Change the configure options so that pure-ftp uses /usr/local/etc instead of /etc for config files, as per porting guidelines >How-To-Repeat: >Fix: Apply patch. It could even use /usr/local/etc/pure-ftp/, as there are a few files. Also there is no startup script in /usr/local/etc/rc.d/, I have attached one below the patch. --- Makefile.orig Wed Jan 8 16:52:10 2003 +++ Makefile Wed Jan 8 16:44:17 2003 @@ -37,7 +37,7 @@ CONFIGURE_ARGS+= --with-everything \ --with-paranoidmsg \ --with-virtualchroot \ - --sysconfdir=/etc + --sysconfdir=${PREFIX}/etc # language support requested? .if defined(WITH_LANG) CONFIGURE_ARGS+= --with-language="${WITH_LANG}" --- pure-ftpd.sh.orig Wed Jan 8 17:04:13 2003 +++ pure-ftpd.sh Wed Jan 8 17:03:22 2003 @@ -0,0 +1,15 @@ +#!/bin/sh + +case "$1" in +start) + [ -r /usr/local/etc/pure-ftpd.conf ] && /usr/local/sbin/pure-config.pl /usr/local/etc/pure-ftpd.conf > /dev/null && echo -n ' pure-ftp' + ;; +stop) + [ -r /var/run/pure-ftpd.pid ] && kill `cat /var/run/pure-ftpd.pid` > /dev/null && echo -n ' pure-ftp' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + ;; +esac + +exit 0 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030108040627.6AB8E59D0A>