- Update to 0.7.1

- Add SQLite2 support
- add startup file to run ldconfig
This commit is contained in:
Sergey Matveychuk 2004-11-06 17:38:23 +00:00
parent 55272fe62f
commit e3ea92b343
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120976
4 changed files with 40 additions and 4 deletions

View File

@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= hk_classes
PORTVERSION= 0.7
PORTVERSION= 0.7.1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= hk-classes
@ -30,7 +30,8 @@ LDCONFIG_DIRS+= ${PREFIX}/lib/hk_classes/
OPTIONS= MYSQL "Build MySQL driver" on \
POSTGRESQL "Build PostrgreSQL driver" off \
ODBC "Build unixODBC driver" off
ODBC "Build unixODBC driver" off \
SQLITE "Build with sqlite2 driver" off
MAN1= hk_report.1man hk_actionquery.1man hk_exportxml.1man \
hk_exporthtml.1man hk_exportcsv.1man hk_importcsv.1man
@ -72,4 +73,19 @@ CONFIGURE_ARGS+= --without-odbc
PLIST_SUB+= ODBC="@comment "
.endif
.if defined(WITH_SQLITE)
LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite2
CONFIGURE_ARGS+= --with-sqlite-incdir=${LOCALBASE}/include/\
--with-sqlite-libdir=${LOCALBASE}/lib
PLIST_SUB+= SQLITE=""
.else
CONFIGURE_ARGS+= --without-sqlite
PLIST_SUB+= SQLITE="@comment "
.endif
post-install:
@${SED} -e 's#%%PREFIX%%#${PREFIX}#' ${FILESDIR}/hk_classes.sh > \
${PREFIX}/etc/rc.d/hk_classes.sh; \
${CHMOD} a+x ${PREFIX}/etc/rc.d/hk_classes.sh
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
MD5 (hk_classes-0.7.tar.bz2) = 35c16e935947b0b41b31b8ce5f10d0f1
SIZE (hk_classes-0.7.tar.bz2) = 514364
MD5 (hk_classes-0.7.1.tar.bz2) = 7f114a568f695488cb6194bde66d31fb
SIZE (hk_classes-0.7.1.tar.bz2) = 518136

View File

@ -0,0 +1,15 @@
#!/bin/sh
case "$1" in
start)
/sbin/ldconfig -m %%PREFIX%%/lib/hk_classes
;;
stop)
;;
*)
echo ""
echo "Usage: `basename $0` { start | stop }"
echo ""
exit 64
;;
esac

View File

@ -1,3 +1,4 @@
etc/rc.d/hk_classes.sh
bin/hk_actionquery
bin/hk_exportcsv
bin/hk_exporthtml
@ -45,6 +46,7 @@ include/hk_classes/hk_reportutils.h
include/hk_classes/hk_storagecolumn.h
include/hk_classes/hk_storagedatasource.h
include/hk_classes/hk_string.h
include/hk_classes/hk_subform.h
include/hk_classes/hk_visible.h
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.la
%%MYSQL%%lib/hk_classes/drivers/libhk_mysqldriver.so
@ -55,6 +57,9 @@ include/hk_classes/hk_visible.h
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.la
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so
%%POSTGRESQL%%lib/hk_classes/drivers/libhk_postgresdriver.so.0
%%SQLITE%%lib/hk_classes/drivers/libhk_sqlite2driver.la
%%SQLITE%%lib/hk_classes/drivers/libhk_sqlite2driver.so
%%SQLITE%%lib/hk_classes/drivers/libhk_sqlite2driver.so.0
%%PYTHON_SITELIBDIR%%/_hk_classes.so
%%PYTHON_SITELIBDIR%%/hk_classes.py
%%PYTHON_SITELIBDIR%%/hk_classes.pyc