summaryrefslogtreecommitdiff
path: root/mail/yatsvrs/Makefile
blob: 747fee44511f4109fd452b9678278e94aadf8439 (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
# $NetBSD: Makefile,v 1.15 2005/12/29 06:21:54 jlam Exp $
#

DISTNAME=		yatsvrs-5.00p6
PKGNAME=		${DISTNAME:S/p/./}
PKGREVISION=		4
CATEGORIES=		mail
MASTER_SITES=		ftp://ftp.jone-system.com/pub/jepro/yatsvr/

MAINTAINER=		taca@NetBSD.org
HOMEPAGE=		# not available
COMMENT=		Extended POP3 server and some supporting servers

CONFLICTS=		ascyd-* yatsvr4-*

GNU_CONFIGURE=		yes
DOCS=			IMPORTANT README UPDATE doc/YATCONF doc/YATEXT4
DOCDIR=			${PREFIX}/share/doc/yatsvr5
EXAMPLES=		yatrc2 yatsvrrc
EXAMPLESDIR=		${PREFIX}/share/examples/yatsvr5

CONFIGURE_ARGS+=	--enable-popper-xmit
CONFIGURE_ARGS+=	--with-log-facility=${YATSVR_LOGFAC:Q}
CONFIGURE_ARGS+=	--with-yat-sys-dir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--with-yat-sys-old-dir-v4=${OLDCONFDIR:Q}
CONFIGURE_ARGS+=	--enable-shadow-password

DEINSTALL_FILE=		${WRKDIR}/DEINSTALL
INSTALL_FILE=		${WRKDIR}/INSTALL

FILES_SUBST+=		DEFAULT_ADMIN=${DEFAULT_YATADMIN:Q}
FILES_SUBST+=		YATSVR_MINGID=${YATSVR_MINGID:Q}
FILES_SUBST+=		YATSVR_MAXGID=${YATSVR_MAXGID:Q}

DEINSTALL_EXTRA_TMPL=	${.CURDIR}/DEINSTALL
INSTALL_EXTRA_TMPL=	${.CURDIR}/INSTALL

.for f in ${EXAMPLES}
CONF_FILES+=		${EXAMPLESDIR}/${f}	${PKG_SYSCONFDIR}/${f}
.endfor
OWN_DIRS+=		${PKG_SYSCONFDIR}

.include "../../mk/bsd.prefs.mk"

YATSVR_LOGFAC?=		LOG_LOCAL4
YATSVR_MINGID?=		1001
YATSVR_MAXGID?=		64999
DEFAULT_YATADMIN?=	root
PKG_SYSCONFSUBDIR?=	yatsvr5
OLDCONFDIR?=		${PKG_SYSCONFBASE}/yat

post-install:
	${INSTALL_DATA_DIR} ${DOCDIR}
.for f in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}
.endfor
	${INSTALL_DATA_DIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
	${INSTALL_DATA} ${WRKSRC}/sample/${f} ${EXAMPLESDIR}/${f}
.endfor

.include "../../mk/bsd.pkg.mk"