aboutsummaryrefslogtreecommitdiff
path: root/databases/freetds-devel
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
parent0d4770a3036cac82ccee7fa18f9ae06be16af071 (diff)
downloadports-57f25fdb015e491e32a16d49c8fd89dda7925e1c.tar.gz
ports-57f25fdb015e491e32a16d49c8fd89dda7925e1c.zip
Notes
Diffstat (limited to 'databases/freetds-devel')
-rw-r--r--databases/freetds-devel/Makefile7
-rw-r--r--databases/freetds-devel/pkg-plist8
2 files changed, 15 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>
diff --git a/databases/freetds-devel/pkg-plist b/databases/freetds-devel/pkg-plist
index 59f9d1f84a44..f1a58b6ca2e6 100644
--- a/databases/freetds-devel/pkg-plist
+++ b/databases/freetds-devel/pkg-plist
@@ -1,3 +1,6 @@
+@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
+@exec if [ ! -f %D/etc/freetds.conf ]; then cp %D/etc/%f %D/etc/freetds.conf; fi
etc/freetds/interfaces
include/bkpublic.h
include/cspublic.h
@@ -11,7 +14,9 @@ include/sybdb.h
include/syberror.h
include/sybfront.h
include/tds.h
+include/tds_configs.h
include/tdsconvert.h
+include/tdsodbc.h
include/tdsutil.h
include/tdsver.h
lib/libct.a
@@ -23,4 +28,7 @@ lib/libsybdb.so.0
lib/libtds.a
lib/libtds.so
lib/libtds.so.0
+lib/libtdssrv.a
+lib/libtdssrv.so
+lib/libtdssrv.so.0
@dirrm etc/freetds