aboutsummaryrefslogtreecommitdiff
path: root/databases/unixODBC
diff options
context:
space:
mode:
authorTom McLaughlin <tmclaugh@FreeBSD.org>2007-06-25 05:13:25 +0000
committerTom McLaughlin <tmclaugh@FreeBSD.org>2007-06-25 05:13:25 +0000
commitffba539fe7214f02ce50cb517a8eab817b5a1596 (patch)
tree105314d4eb1b64261a2f3c1a3c004c0fe2ae08cb /databases/unixODBC
parent0128e7b31f006ee42c875b1ecac76b9946536e74 (diff)
downloadports-ffba539fe7214f02ce50cb517a8eab817b5a1596.tar.gz
ports-ffba539fe7214f02ce50cb517a8eab817b5a1596.zip
Notes
Diffstat (limited to 'databases/unixODBC')
-rw-r--r--databases/unixODBC/Makefile7
-rw-r--r--databases/unixODBC/files/patch-Makefile.in13
-rw-r--r--databases/unixODBC/pkg-plist8
3 files changed, 25 insertions, 3 deletions
diff --git a/databases/unixODBC/Makefile b/databases/unixODBC/Makefile
index 586bf93f01eb..468420c9851e 100644
--- a/databases/unixODBC/Makefile
+++ b/databases/unixODBC/Makefile
@@ -7,7 +7,7 @@
PORTNAME= unixODBC
PORTVERSION= 2.2.12
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://www.unixodbc.org/
@@ -56,5 +56,10 @@ post-install:
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
.endif
.endif
+.for conffile in odbc.ini odbcinst.ini
+ @if [ ! -f ${PREFIX}/etc/${conffile} ]; then \
+ ${CP} -p ${PREFIX}/etc/${conffile}.sample ${PREFIX}/etc/${conffile} ; \
+ fi
+.endfor
.include <bsd.port.mk>
diff --git a/databases/unixODBC/files/patch-Makefile.in b/databases/unixODBC/files/patch-Makefile.in
new file mode 100644
index 000000000000..9729588e857b
--- /dev/null
+++ b/databases/unixODBC/files/patch-Makefile.in
@@ -0,0 +1,13 @@
+--- Makefile.in.orig Sun Jun 24 15:44:33 2007
++++ Makefile.in Sun Jun 24 15:45:04 2007
+@@ -876,8 +876,8 @@
+
+
+ install-data-am:
+- -touch $(DESTDIR)${sysconfdir}/odbcinst.ini
+- -touch $(DESTDIR)${sysconfdir}/odbc.ini
++ -touch $(DESTDIR)${sysconfdir}/odbcinst.ini.sample
++ -touch $(DESTDIR)${sysconfdir}/odbc.ini.sample
+ -mkdir -p $(DESTDIR)${sysconfdir}/ODBCDataSources
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/databases/unixODBC/pkg-plist b/databases/unixODBC/pkg-plist
index 859c8ddcf0ac..fede01a9e81c 100644
--- a/databases/unixODBC/pkg-plist
+++ b/databases/unixODBC/pkg-plist
@@ -7,8 +7,12 @@ bin/iusql
bin/odbc_config
bin/odbcinst
%%GUI:%%bin/odbctest
-etc/odbc.ini
-etc/odbcinst.ini
+@unexec if cmp -s %D/etc/odbc.ini %D/etc/odbc.ini.sample; then rm -f %D/etc/odbc.ini; fi
+etc/odbc.ini.sample
+@exec [ -f %D/etc/odbc.ini ] || cp %D/etc/odbc.ini.sample %D/etc/odbc.ini
+@unexec if cmp -s %D/etc/odbcinst.ini %D/etc/odbcinst.ini.sample; then rm -f %D/etc/odbcinst.ini; fi
+etc/odbcinst.ini.sample
+@exec [ -f %D/etc/odbcinst.ini ] || cp %D/etc/odbcinst.ini.sample %D/etc/odbcinst.ini
include/autotest.h
include/odbcinst.h
include/odbcinstext.h