pkgsrc/mail/cucipop/Makefile
jlam b67b0725c4 Rework the Berkeley DB detection in buildlink3:
* Add a db1.builtin.mk file that detects whether DB-1.85 functionality
    exists in the base system, and remove the distinction between
    "native" and the other Berkeley DB packages -- we now refer to
    db[1234].  This paves the way for any future databases/db1 package.

  * USE_DB185 shouldn't need to be set by any packages -- its correct
    value is now automatically determined by bdb.buildlink3.mk depending
    on whether we explicitly request db1 or not.  By default, if you
    include bdb.buildlink3.mk, you want DB-1.85 functionality and
    USE_DB185 defaults to "yes", but if you explicitly remove db1 from
    the list of acceptable DBs, then USE_DB185 defaults to "no".

  * Set BDB_LIBS to the library options needed to link against the DB
    library when bdb.buildlink3.mk is included.

  * We only add the DB library to the linker command automatically if
    we want DB-1.85 functionality; otherwise assume that the package
    configure process can figure out how to probe for the correct
    headers and libraries.

Edit package Makefiles to nuke redundant settings of USE_DB185.
2004-11-15 17:54:49 +00:00

62 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.18 2004/11/15 17:54:49 jlam Exp $
#
DISTNAME= cucipop-1.31
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.informatik.rwth-aachen.de/pub/packages/cucipop/
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
PATCHFILES= cucipop-1.31-v6-20010223.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= tech-pkg@NetBSD.org
COMMENT= The Cubic Circle POP3 mail server
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
LICENSE= shareware
BUILD_DEFS+= USE_INET6
MAKE_ENV+= ROOT_USER="${ROOT_USER}"
MAKE_ENV+= ROOT_GROUP="${ROOT_GROUP}"
MAKE_DIRS+= ${PREFIX}/share/cucipop/bulletins
SPECIAL_PERMS+= ${PREFIX}/sbin/cucipop ${ROOT_USER} ${ROOT_GROUP} 2755
PKG_OPTIONS_VAR= PKG_OPTIONS.cucipop
PKG_SUPPORTED_OPTIONS= db
.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mdb)
BDB_ACCEPTED= db2
CFLAGS+= -DUSE_DB
MAKE_ENV+= LIBS=${BDB_LIBS}
. include "../../mk/bdb.buildlink3.mk"
.endif
# to be friendly with pre-1.5 systems
.if defined(USE_INET6) && (${USE_INET6} == "YES")
MAKE_ENV+= CFLAGS_INET6=-DINET6
.endif
LDFLAGS.SunOS+= -lnsl -lsocket
pre-configure:
@(cd ${WRKSRC}; \
for f in config.h cucipop.8 makevpopdb.8; do \
${SED} -e 's|@prefix@|${PREFIX}|g' $$f > $$f.fixed && \
${MV} $$f.fixed $$f; \
done)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/cucipop ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/makevpopdb ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/cucipop.8 ${PREFIX}/man/man8
${INSTALL_MAN} ${WRKSRC}/makevpopdb.8 ${PREFIX}/man/man8
.include "../../mk/bsd.pkg.mk"