Date: Sun, 31 Dec 2006 16:16:01 GMT From: Tommy Scheunemann<net@arrishq.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/107376: Proftpd Configuration File overwritten while installation Message-ID: <200612311616.kBVGG1hu001717@www.freebsd.org> Resent-Message-ID: <200612311620.kBVGKCFp039054@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 107376 >Category: ports >Synopsis: Proftpd Configuration File overwritten while installation >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Dec 31 16:20:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Tommy Scheunemann >Release: FreeBSD 6.1-RELEASE-p9 i386 >Organization: >Environment: FreeBSD apollon.arrishq.local 6.1-RELEASE-p9 FreeBSD 6.1-RELEASE-p9 #0: Sat Sep 30 15:22:43 CEST 2006 root@apollon.arrishq.local:/usr/obj/usr/src/sys/APOLLON i386 >Description: When having Proftpd installed and doing an upgrade the configuration file /usr/local/etc/proftpd.conf gets overwritten with the sample file. The appended patch should fix this problem by using ${PREFIX}/etc/proftpd.conf.sample instead of ${PREFIX}/etc/proftpd.conf >How-To-Repeat: By installing the port and doing an upgrade later. cd /usr/ports/proftpd make install then edit the configuration file ${PREFIX}/etc/proftpd.conf to fit your needs. Now an upgrade / reinstall of the port: cd /usr/ports/proftpd make deinstall && make install overwrites the edited configuration file with the one shipped with Proftpd. >Fix: diff -ruN proftpd_old/Makefile proftpd/Makefile --- proftpd_old/Makefile Sun Dec 31 13:17:10 2006 +++ proftpd/Makefile Sun Dec 31 16:54:51 2006 @@ -228,7 +228,7 @@ post-install: [ -f ${PREFIX}/etc/proftpd.conf ] || \ - ${CP} ${EXAMPLESDIR}/etc/proftpd.conf ${PREFIX}/etc/proftpd.conf + ${CP} ${EXAMPLESDIR}/etc/proftpd.conf ${PREFIX}/etc/proftpd.conf.sample .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/proftpd diff -ruN proftpd_old/pkg-plist proftpd/pkg-plist --- proftpd_old/pkg-plist Wed Dec 27 17:47:41 2006 +++ proftpd/pkg-plist Sun Dec 31 16:54:56 2006 @@ -2,7 +2,7 @@ bin/ftpdctl bin/ftptop bin/ftpwho -etc/proftpd.conf +etc/proftpd.conf.sample include/proftpd/auth.h include/proftpd/bindings.h include/proftpd/buildstamp.h >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612311616.kBVGG1hu001717>