pkgsrc/mail/popa3d/Makefile

45 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.39 2005/04/11 21:46:22 tv Exp $
#
DISTNAME= popa3d-0.6.4.1
PKGREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://www.openwall.com/popa3d/ \
ftp://ftp.openwall.com/pub/projects/popa3d/ \
ftp://ftp.false.com/pub/security/popa3d/
MAINTAINER= wiz@NetBSD.org
HOMEPAGE= http://www.openwall.com/popa3d/
COMMENT= Secure, reliable, performant, and small pop3 server
POPA3D_USER?= popa3d
POPA3D_GROUP?= popa3d
PKG_GROUPS= ${POPA3D_GROUP}
PKG_USERS= ${POPA3D_USER}:${POPA3D_GROUP}
USE_PKGINSTALL= YES
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
RCD_SCRIPTS= popa3d
FILES_SUBST+= POPA3D_USER=${POPA3D_USER}
FILES_SUBST+= POPA3D_GROUP=${POPA3D_GROUP}
SUBST_CLASSES+= params
SUBST_STAGE.params= post-patch
SUBST_FILES.params= params.h
SUBST_SED.params= -e 's,/var/empty,${PREFIX}/share/empty,' \
-e 's,@@POPA3D_USER@@,"${POPA3D_USER}",'
do-install:
${INSTALL_PROGRAM} -m 500 ${WRKSRC}/popa3d ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/popa3d.8 ${PREFIX}/man/man8/
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/popa3d
cd ${WRKSRC} && ${INSTALL_DATA} DESIGN INSTALL LICENSE \
${PREFIX}/share/doc/popa3d
${INSTALL_DATA_DIR} ${PREFIX}/share/empty
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"