Date: Mon, 21 Apr 2003 08:30:11 -0700 (PDT) From: Alex Kiesel <kiesel@schlund.de> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/51130: databases/freetds overwrites config file Message-ID: <200304211530.h3LFUB6Z010373@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/51130; it has been noted by GNATS. From: Alex Kiesel <kiesel@schlund.de> To: freebsd-gnats-submit@FreeBSD.org, olive@oban.frmug.org Cc: nork@freebsd.org Subject: Re: ports/51130: databases/freetds overwrites config file Date: Mon, 21 Apr 2003 17:22:58 +0200 Hi, I'm the maintainer of databases/freetds. Please apply the following patch to correct the overwrite of configuration files (following chapter 15.15 of the Porter's Handbook): --- patch begins here --- --- Makefile 11 Apr 2003 15:51:25 -0000 1.28 +++ Makefile 21 Apr 2003 15:19:33 -0000 @@ -44,18 +44,21 @@ =20 post-extract: @cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.dist + @cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.dist + @cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.dist =20 post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|<malloc.h>|<stdlib.h>| ; \ s|/freetds.conf|/freetds.conf.dist|g ; \ + s|/locales.conf|/locales.conf.dist|g ; \ + s|/pool.conf|/pool.conf.dist|g ; \ s| common.h||g' =20 post-install: -.if !exists(${PREFIX}/etc/freetds.conf) - @${CP} ${PREFIX}/etc/freetds.conf.dist ${PREFIX}/etc/freetds.conf -.endif @${MKDIR} ${PREFIX}/etc/freetds - ${INSTALL_DATA} ${WRKSRC}/interfaces ${PREFIX}/etc/freetds + @${INSTALL_DATA} ${WRKSRC}/interfaces ${PREFIX}/etc/freetds/interfaces.di= st + @${ECHO_CMD} "Sample configuration files have been installed in ${PREFIX}= /etc" + @${ECHO_CMD} "You should edit them and remove the .dist-suffix from their= names" =20 .include <bsd.port.mk> --- pkg-plist 11 Apr 2003 15:51:25 -0000 1.11 +++ pkg-plist 21 Apr 2003 15:19:33 -0000 @@ -1,11 +1,10 @@ bin/freebcp bin/tdspool bin/tsql -@unexec if cmp -s %D/etc/freetds.conf.dist %D/etc/freetds.conf; then rm -f= %D/etc/freetds.conf; fi etc/freetds.conf.dist -etc/freetds/interfaces -etc/locales.conf -etc/pool.conf +etc/freetds/interfaces.dist +etc/locales.conf.dist +etc/pool.conf.dist include/bkpublic.h include/cspublic.h include/cstypes.h --- patch ends here --- I'd be happy if someone could commit this patch. Greets, Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304211530.h3LFUB6Z010373>