summaryrefslogtreecommitdiff
path: root/security/smtpd/Makefile
blob: fe07873e669c3d2bffec765682b711e6366f8fda (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
# $NetBSD: Makefile,v 1.1.1.1 2000/04/21 10:57:33 mjl Exp $
#

DISTNAME=	smtpd-2.0
CATEGORIES=	mail security
MASTER_SITES=	ftp://ftp.obtuse.com/pub/smtpd/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}

PATCHFILES=	patch-smtpd-2.0-RBL.gz

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.obtuse.com/smtpd.html

EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

SPOOL=		/var/spool/smtpd

pre-install:
		-${MKDIR} -p ${SPOOL}/etc
		for f in antirelay_check_rules_example antispam_check_rules.example smtpd_check_rules.example ; do ${INSTALL_DATA} ${WRKSRC}/$$f ${SPOOL}/etc; done
		${CHOWN} -R uucp.mail ${SPOOL}
		${CHMOD} -R g=,o= ${SPOOL}
		${CP} /etc/localtime /etc/resolv.conf ${SPOOL}/etc
		

post-build:
		@cd ${PKGDIR}; \
		for f in DEINSTALL MESSAGE; do \
		  ${SED} -e 's#@PREFIX@#${PREFIX}#g' <$$f >$$f.1; \
		  ${MV} -f $$f.1 $$f; \
		done

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