summaryrefslogtreecommitdiff
path: root/mail/qpopper/Makefile
blob: 26ea01a75c4831358ab74f8c46eda0d5193bc830 (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
# $NetBSD: Makefile,v 1.28 2001/06/10 15:08:40 taca Exp $
#

DISTNAME=		qpopper${VERSION}
PKGNAME=		qpopper-${VERSION}
CATEGORIES=		mail
MASTER_SITES=		ftp://ftp.qualcomm.com/eudora/servers/unix/popper/

PATCH_SITES=		http://www.imasy.or.jp/~ume/ipv6/
PATCHFILES=		qpopper4.0.3-ipv6-20010504.diff.gz
PATCH_DIST_STRIP=	-p1

MAINTAINER=		mellon@fugue.com
HOMEPAGE=		http://www.eudora.com/qpopper/
COMMENT=		Qualcomm's POP server for Eudora

VERSION=		4.0.3

.include "Makefile.common"

.if exists(/usr/sbin/user)
USER_CMD=	/usr/sbin/user
GROUP_CMD=	/usr/sbin/group
.else
DEPENDS+=	user>=20000313:../../sysutils/user
USER_CMD=	${LOCALBASE}/sbin/user
GROUP_CMD=	${LOCALBASE}/sbin/group
.endif

pre-build:
	${SED} 's"/usr/local/lib"${LOCALBASE}/libexec"' \
		${WRKSRC}/man/popper.8 > ${WRKSRC}/man/popper.8.$$ && \
	${MV} -f ${WRKSRC}/man/popper.8.$$ ${WRKSRC}/man/popper.8

pre-install:
	@${USER_CMD} info -e ${QPOPPER_USER} || \
		${USER_CMD} add -g ${BINGRP} \
			-d /nonexistent -s /sbin/nologin ${QPOPPER_USER}

post-install:
	@if [ -f ${DESTDIR}/etc/apop.auth.db ]; then \
		${CHOWN} ${QPOPPER_USER} ${DESTDIR}/etc/apop.auth.db; \
		${CHGRP} ${BINGRP} ${DESTDIR}/etc/apop.auth.db; \
	fi
	${INSTALL_DATA} ${WRKSRC}/License.txt ${LOCALBASE}/share/doc/qpopper.License
	${INSTALL_DATA} ${WRKSRC}/samples/qpopper.config \
		 ${LOCALBASE}/share/examples
	@${SETENV} PKG_PREFIX=${LOCALBASE} ${SH} ${INSTALL_FILE}

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