aboutsummaryrefslogtreecommitdiff
path: root/databases/freetds-devel/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-08-05 04:28:23 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-08-05 04:28:23 +0000
commit57f25fdb015e491e32a16d49c8fd89dda7925e1c (patch)
tree60d70374d418c7241c245fc1c9f699ea37d4027b /databases/freetds-devel/Makefile
parent0d4770a3036cac82ccee7fa18f9ae06be16af071 (diff)
o Fix PLIST
o Better packaging and removal of configuration file PR: 29428 Submitted by: Pete Fritchman <petef@databits.net>
Notes
Notes: svn path=/head/; revision=45818
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>