summaryrefslogtreecommitdiff
path: root/mail/popa3d/Makefile
blob: e24d6fd1558306835a8900b6f426370c754f6b60 (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
# $NetBSD: Makefile,v 1.50 2008/03/04 17:57:19 jlam Exp $
#

DISTNAME=	popa3d-1.0.2
PKGREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://www.openwall.com/popa3d/ \
		ftp://ftp.openwall.com/pub/projects/popa3d/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.openwall.com/popa3d/
COMMENT=	Secure, reliable, performant, and small pop3 server

PKG_DESTDIR_SUPPORT=	user-destdir

POPA3D_USER?=	popa3d
POPA3D_GROUP?=	popa3d

PKG_GROUPS=	${POPA3D_GROUP}
PKG_USERS=	${POPA3D_USER}:${POPA3D_GROUP}

PKG_GROUPS_VARS+=	POPA3D_GROUP
PKG_USERS_VARS+=	POPA3D_USER

RCD_SCRIPTS=	popa3d

FILES_SUBST+=	POPA3D_USER=${POPA3D_USER:Q}
FILES_SUBST+=	POPA3D_GROUP=${POPA3D_GROUP:Q}

SUBST_CLASSES+=		params
SUBST_STAGE.params=	pre-configure
SUBST_FILES.params=	params.h
SUBST_SED.params=	-e 's,/var/empty,${PREFIX}/share/empty,'	\
			-e 's,@@POPA3D_USER@@,"${POPA3D_USER}",'

INSTALLATION_DIRS=	${PKGMANDIR}/man8 sbin

do-install:
	${INSTALL_PROGRAM} -m 500 ${WRKSRC}/popa3d ${DESTDIR}${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/popa3d.8 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/popa3d
	cd ${WRKSRC} && ${INSTALL_DATA} DESIGN INSTALL LICENSE \
		${DESTDIR}${PREFIX}/share/doc/popa3d
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/empty

.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"