blob: 4bc37199047031ef793d34e00d0fef7ff234e499 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# $NetBSD: Makefile,v 1.14 2004/09/02 10:39:04 grant 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.options.mk"
.if !empty(PKG_OPTIONS:Mdb)
BDB_ACCEPTED= db2
CFLAGS+= -DUSE_DB
MAKE_ENV+= LIBS=${BUILDLINK_LIBS.bdb}
.endif
.include "../../mk/bsd.prefs.mk"
# to be friendly with pre-1.5 systems
.if defined(USE_INET6) && ${USE_INET6} == "YES"
MAKE_ENV+= CFLAGS_INET6=-DINET6
.endif
.if ${OPSYS} == "SunOS"
LDFLAGS+= -lnsl -lsocket
.endif
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
.if !empty(PKG_OPTIONS:Mdb)
. include "../../mk/bdb.buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"
|