sthen a13880e19f Initialize sa->sa_socket / sa_config earlier in access_authorize(). Seems to
fix crashes in cvsyncd now made visible by malloc's junk-after-free default.

From patrick keshishian who says 'I think protocol_exchange() will eventually
"realize" that status and/or error are not ok, and will return false, and
server thread will call assess_done(), which will socket_close() and
config_revoke().' Thanks for looking into this and suggesting the diff.

Survived 24h+ on my server, and looks good to naddy.
2014-11-19 23:49:41 +00:00

36 lines
892 B
Makefile

# $OpenBSD: Makefile,v 1.52 2014/11/19 23:49:41 sthen Exp $
COMMENT= CVS repository synchronization utility
PKGNAME= cvsync-0.25.0pre0
DISTNAME= cvsync-0.24.19
REVISION= 1
CATEGORIES= net
HOMEPAGE= http://www.cvsync.org/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB= c pthread z
MASTER_SITES= http://www.cvsync.org/dist/ \
ftp://ftp.allbsd.org/pub/cvsync/
USE_GMAKE= Yes
MAKE_ENV= CVSYNC_DEFAULT_CONFIG="${SYSCONFDIR}/cvsync.conf" \
CVSYNCD_DEFAULT_CONFIG="${SYSCONFDIR}/cvsyncd.conf" \
INSTALL_MAN_OPTS="-o ${MANOWN} -g ${MANGRP} -m ${MANMODE}" \
INSTALL_BIN_OPTS="-o ${BINOWN} -g ${BINGRP} -m ${BINMODE} ${INSTALL_STRIP}" \
INSTALL=install
NO_TEST= Yes
EXAMPLESDIR= ${PREFIX}/share/examples/cvsync
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${FILESDIR}/*.conf ${EXAMPLESDIR}
.include <bsd.port.mk>