aboutsummaryrefslogtreecommitdiffstats
path: root/databases/freetds-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/freetds-devel/Makefile')
-rw-r--r--databases/freetds-devel/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/databases/freetds-devel/Makefile b/databases/freetds-devel/Makefile
index 78a2a03ef9c5..b3793c545a07 100644
--- a/databases/freetds-devel/Makefile
+++ b/databases/freetds-devel/Makefile
@@ -22,5 +22,12 @@ INSTALLS_SHLIB= yes
post-patch:
@find ${WRKSRC}/src -name Makefile.in | xargs ${PERL} -pi -e \
's| install-includeHEADERS||g'
+ @${PERL} -pi -e 's!/freetds.conf!/freetds.conf.dist!g' \
+ ${WRKSRC}/Makefile.in
+
+post-install:
+.if !exists(${PREFIX}/etc/freetds.conf)
+ @${CP} ${PREFIX}/etc/freetds.conf.dist ${PREFIX}/etc/freetds.conf
+.endif
.include <bsd.port.mk>