aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-08-05 12:28:23 +0800
committerlioux <lioux@FreeBSD.org>2001-08-05 12:28:23 +0800
commitaef18bed170d54d60fb30732c797d207b27f9852 (patch)
treea292dc0ec1d64b252c3ed970ef49a52237353439 /databases
parent8c5e65d8d8d2f04a952b38aea8d165213faf9d95 (diff)
downloadfreebsd-ports-gnome-aef18bed170d54d60fb30732c797d207b27f9852.tar.gz
freebsd-ports-gnome-aef18bed170d54d60fb30732c797d207b27f9852.tar.zst
freebsd-ports-gnome-aef18bed170d54d60fb30732c797d207b27f9852.zip
o Fix PLIST
o Better packaging and removal of configuration file PR: 29428 Submitted by: Pete Fritchman <petef@databits.net>
Diffstat (limited to 'databases')
-rw-r--r--databases/freetds-devel/Makefile7
-rw-r--r--databases/freetds-devel/pkg-plist8
-rw-r--r--databases/freetds/Makefile7
-rw-r--r--databases/freetds/pkg-plist8
4 files changed, 30 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
diff --git a/databases/freetds/Makefile b/databases/freetds/Makefile
index 78a2a03ef9c5..b3793c545a07 100644
--- a/databases/freetds/Makefile
+++ b/databases/freetds/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/pkg-plist b/databases/freetds/pkg-plist
index 59f9d1f84a44..f1a58b6ca2e6 100644
--- a/databases/freetds/pkg-plist
+++ b/databases/freetds/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