Port deletes .conf file on update

Simon Olofsson simon at olofsson.de
Tue Jan 2 03:51:42 PST 2007


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


More information about the freebsd-ports mailing list