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
|
# $NetBSD: Makefile,v 1.2 2010/03/15 04:34:05 schmonz Exp $
#
DISTNAME= relay-ctrl-3.1.1
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}
MAINTAINER= schmonz@NetBSD.org
HOMEPAGE= http://untroubled.org/relay-ctrl/
COMMENT= Allows relaying via POP/IMAP-before-SMTP
PKG_DESTDIR_SUPPORT= destdir
BUILD_DEPENDS+= bglibs-[0-9]*:../../devel/bglibs
DJB_RESTRICTED= NO
DJB_MAKE_TARGETS= NO
DOCDIR= share/doc/${PKGBASE}
INSTALLATION_DIRS= bin ${PKGMANDIR}/man8 ${DOCDIR}
INSTALL_ENV+= install_prefix=${DESTDIR:Q}
OWN_DIRS_PERMS+= ${RELAY_CTRL_DIR} ${ROOT_USER} ${ROOT_GROUP} 700
OWN_DIRS_PERMS+= ${RELAY_CTRL_DIR}/allow ${ROOT_USER} ${ROOT_GROUP} 777
MESSAGE_SUBST+= RELAY_CTRL_DIR=${RELAY_CTRL_DIR:Q} DOCDIR=${DOCDIR:Q}
BUILD_DEFS+= RELAY_CTRL_DIR
ADDON_SCRIPTS= dovecot-settcpremoteip ifrelayclient
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${ADDON_SCRIPTS}
SUBST_SED.paths= -e 's,@ECHO@,${ECHO},g'
SUBST_SED.paths+= -e 's,@GREP@,${GREP},g'
SUBST_SED.paths+= -e 's,@SED@,${SED},g'
SUBST_SED.paths+= -e 's,@SETENV@,${SETENV},g'
SUBST_SED.paths+= -e 's,@SH@,${SH},g'
SUBST_STAGE.paths= do-configure
post-extract:
for f in ${ADDON_SCRIPTS}; do \
${CP} ${FILESDIR}/$$f.sh ${WRKSRC}/$$f; \
done
post-install:
${RUN}cd ${WRKSRC}; \
for f in ANNOUNCEMENT COPYING NEWS README TODO packet.html; do \
${INSTALL_DATA} ${WRKSRC}/$${f} \
${DESTDIR}${PREFIX}/${DOCDIR}; \
done
for f in ${ADDON_SCRIPTS}; do \
${INSTALL_SCRIPT} ${WRKSRC}/$${f} \
${DESTDIR}${PREFIX}/bin; \
done
.include "../../mk/djbware.mk"
.include "../../mk/bsd.pkg.mk"
|