ports/databases/cego/Makefile
Björn Lemke 3e3c5c10d1 databases/cego: update 2.49.10 -> 2.49.11
- Patch added for memory leak in CegoSelect::cleanUp and
  CegoSelect::reset, for both methods, _pCacheList has to checked and
  freed, since for uncompleted queries ( e.g. exists clause ) the
  _pCacheList was still not deleted
- Another fix for memory leak added in CegoFieldValue::getLocalCopy,
  Before allocation, _len has to be checked for _len < STATICFIELDBUF
  and then use _staticBuf, otherwise, the memory is lost
2024-10-25 16:29:18 +02:00

48 lines
1.2 KiB
Makefile

PORTNAME= cego
PORTVERSION= 2.49.11
CATEGORIES= databases
MASTER_SITES= http://www.lemke-it.com/
MAINTAINER= pi@FreeBSD.org
COMMENT= Relational and transactional database system
WWW= https://www.lemke-it.com/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= liblfcbase.so:devel/lfcbase \
liblfcxml.so:devel/lfcxml
RUN_DEPENDS= ${LOCALBASE}/bin/sudo:security/sudo \
bash:shells/bash
USES= libtool localbase ncurses readline shebangfix
SHEBANG_FILES= tools/cgbackup tools/cgrecover tools/cgsimload \
tools/logManager tools/backupManager
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
TEST_TARGET= check
USERS= cego
GROUPS= cego
PLIST_SUB+= USER=${USERS}
post-patch:
${REINPLACE_CMD} -e 's,-O3,,g' \
${WRKSRC}/src/Makefile.in \
${WRKSRC}/cgpluscheck/Makefile.in \
${WRKSRC}/cgwrapcheck/Makefile.in
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${CP} ${WRKSRC}/tools/* ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
${REINPLACE_CMD} -e 's/%%USER%%/${USERS}/g' ${WRKSRC}/samples/rc/cego
${CP} ${WRKSRC}/samples/rc/cego ${STAGEDIR}${PREFIX}/etc/rc.d/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcego.so.2.0.0
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcgwrap.so.2.0.0
.include <bsd.port.mk>