pkgsrc/security/cvm/Makefile
schmonz 3948870bde Retire 'djbware-errno-hack' and associated options.mk cleverness.
Instead:

1. Package makefiles including their own options.mk
2. Packages say "SUBST_CLASSES+=djberrno" to get the hack, if needed
3. Packages adjust SUBST_FILES.djberrno, if needed

Should fix bulk build failures due to multiple inclusions of options.mk
and/or incorrect definitions of DJB_ERRNO_HACK.

Approved during the freeze by wiz@.
2020-06-25 05:42:36 +00:00

59 lines
1.3 KiB
Makefile

# $NetBSD: Makefile,v 1.27 2020/06/25 05:42:37 schmonz Exp $
#
DISTNAME= cvm-0.97
PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${HOMEPAGE}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= https://untroubled.org/cvm/
COMMENT= Credential Validation Modules
LICENSE= gnu-gpl-v2
MAKE_JOBS_SAFE= no
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
DJB_RESTRICTED= NO
DJB_MAKE_TARGETS= NO
INSTALL_ENV+= install_prefix=${DESTDIR:Q}
USE_LIBTOOL= yes
SUBST_CLASSES+= paths
SUBST_STAGE.paths= do-configure
SUBST_FILES.paths= qmail-init.c
SUBST_SED.paths= -e 's|/var/qmail|${QMAILDIR}|g'
SUBST_MESSAGE.paths= Fixing paths.
SUBST_CLASSES+= shlibs
SUBST_STAGE.shlibs= do-configure
SUBST_FILES.shlibs= INSTHIER
SUBST_VARS.shlibs= CVM_LIB_EXT
SUBST_MESSAGE.shlibs= Fixing shlibs.
RCD_SCRIPTS= cvm
PKG_GROUPS+= cvmlog
PKG_USERS+= cvmlog:cvmlog
BUILD_DEFS+= QMAILDIR
PLIST_SUBST+= CVM_LIB_EXT=${CVM_LIB_EXT:Q}
DJB_CONFIG_CMDS= \
${ECHO} ${DJB_CONFIG_PREFIX}/include > conf-include; \
${ECHO} ${DJB_CONFIG_PREFIX}/lib > conf-lib;
.include "../../mk/bsd.prefs.mk"
.if ${SHLIB_TYPE} == "dylib"
CVM_LIB_EXT= dylib
.else
CVM_LIB_EXT= so
.endif
LDFLAGS.SunOS+= -lsocket -lnsl
.include "../../devel/bglibs/buildlink3.mk"
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"