Date: Tue, 2 Jan 2007 09:51:00 +0100 From: "Simon Olofsson" <simon@olofsson.de> To: freebsd-ports@freebsd.org Cc: freebsd@alaskaparadise.com Subject: Re: Port deletes .conf file on update Message-ID: <20070102085100.GA3624@olofsson.de> In-Reply-To: <200701011956.14607.freebsd@alaskaparadise.com> References: <200701011956.14607.freebsd@alaskaparadise.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Did you try the way it's described in the Porter's Handbook? http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/plist-config.html Regards, Simon On Mon, Jan 01, 2007 at 07:56:12PM -0900, Beech Rintoul wrote: > ftp/proftpd deletes /usr/local/etc/proftpd.conf when updating. I thought I had > it fixed, but it continues to delete the config. Here's the section in the > makefile: > > post-install: > [ -f ${PREFIX}/etc/proftpd.conf ] || \ > ${CP} ${EXAMPLESDIR}/etc/proftpd.conf ${PREFIX}/etc/proftpd.conf.sample > > .if !defined(NOPORTDOCS) > @${MKDIR} ${PREFIX}/share/doc/proftpd > .for f in ${PORTDOCSdoc} > @${INSTALL_DATA} ${WRKSRC}/doc/${f} ${PREFIX}/share/doc/proftpd > .endfor > .for f in ${PORTDOCScontrib} > @${INSTALL_DATA} ${WRKSRC}/doc/contrib/${f} ${PREFIX}/share/doc/proftpd > .endfor > .endif > > .if !defined(WITHOUT_PAM) > @${CAT} ${PKGMESSAGE} > .endif > > .if defined(WITH_CTRLS) > @${INSTALL_PROGRAM} ${WRKSRC}/ftpdctl ${PREFIX}/sbin/ftpdctl > @${INSTALL_MAN} ${WRKSRC}/src/ftpdctl.8 ${PREFIX}/man/man8/ftpdctl.8 > .endif > > It creates proftpd.conf.sample properly, but then deletes proftpd.conf. BTW > proftpd.conf is not in the pkg-plist. > > How do I fix this? > > Beech (Maintainer) -- http://olofsson.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070102085100.GA3624>