blob: 7aeea20d3831c414934f9a8f7d55642d553b3f0e (
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
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.29 2007/11/26 08:27:24 plunky Exp $
DISTNAME= nullmailer-1.03
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE:Q}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://untroubled.org/nullmailer/
COMMENT= Simple relay-only mail transport agent
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --localstatedir=${VARBASE}/spool
CONFIGURE_ARGS+= --bindir=${PREFIX}/libexec/nullmailer
CONFIGURE_ARGS+= --sbindir=${PREFIX}/libexec/nullmailer
INSTALL_TARGET= install install-data-local install-root
.include "../../mk/bsd.prefs.mk"
NULLMAILER_GROUP?= nullmail
NULLMAILER_USER?= nullmail
PKG_GROUPS= ${NULLMAILER_GROUP}
PKG_USERS= ${NULLMAILER_USER}:${NULLMAILER_GROUP}
PKG_GROUPS_VARS+= NULLMAILER_GROUP
PKG_USERS_VARS+= NULLMAILER_USER
MAKE_ENV+= NULLMAILER_GROUP=${NULLMAILER_GROUP:Q}
MAKE_ENV+= NULLMAILER_USER=${NULLMAILER_USER:Q}
FILES_SUBST+= VARBASE=${VARBASE:Q} \
NULLMAILER_GROUP=${NULLMAILER_GROUP:Q} \
NULLMAILER_USER=${NULLMAILER_USER:Q}
RCD_SCRIPTS= nullmailer
MAKE_DIRS+= ${PKG_SYSCONFDIR}/nullmailer
.for i in nullmailer nullmailer/queue nullmailer/tmp
OWN_DIRS_PERMS+= ${VARBASE}/spool/${i} ${NULLMAILER_USER} \
${NULLMAILER_GROUP} 700
.endfor
SPECIAL_PERMS+= libexec/nullmailer/mailq \
${NULLMAILER_USER} ${NULLMAILER_GROUP} 4555
SPECIAL_PERMS+= libexec/nullmailer/nullmailer-queue \
${NULLMAILER_USER} ${NULLMAILER_GROUP} 4555
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${WRKDIR}/mailer.conf
SUBST_FILES.paths+= doc/nullmailer-send.8 doc/nullmailer-queue.8
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.paths+= -e 's,@VARBASE@,${VARBASE},g'
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
SUBST_STAGE.paths= post-configure
INSTALLATION_DIRS= share/doc/${PKGBASE} share/examples/${PKGBASE}
BUILD_DEFS+= VARBASE
post-extract:
${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
post-install:
cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS BUGS COPYING ChangeLog \
HOWTO NEWS README TODO ${PREFIX}/share/doc/nullmailer
${INSTALL_DATA} ${WRKDIR}/mailer.conf \
${PREFIX}/share/examples/nullmailer/
.include "../../mk/bsd.pkg.mk"
|