aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postpals/Makefile
blob: f0613d8601dde7430fe59a5f452846745c01dff8 (plain) (blame)
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
# Created by: Sahil Tandon <sahil@tandon.net>
# $FreeBSD$

PORTNAME=   postpals
PORTVERSION=    0.01
CATEGORIES= mail
MASTER_SITES=   http://mailfud.org/${PORTNAME}/
DISTFILES=  ${PORTNAME} ${PORTNAME}-taillog
EXTRACT_ONLY=   # none

MAINTAINER= sahil@FreeBSD.org
COMMENT=    Postpals is a simple policy daemon for Postfix

RUN_DEPENDS=    p5-IO-Multiplex>=0:${PORTSDIR}/devel/p5-IO-Multiplex \
        p5-Net-Server>=0:${PORTSDIR}/net/p5-Net-Server \
        p5-File-Tail>=0:${PORTSDIR}/devel/p5-File-Tail

SUB_FILES=  pkg-message

USE_RC_SUBR=    ${PORTNAME} ${PORTNAME}-taillog
USES=       perl5
USE_PERL5=  run
NO_BUILD=   yes

USERS=      postpals
GROUPS=     postpals

NO_STAGE=   yes
do-install:
    @${INSTALL_SCRIPT} ${DISTFILES:S|^|${DISTDIR}/|} ${PREFIX}/sbin/
    @${INSTALL} -o ${PORTNAME} -g ${PORTNAME} -m 700 -d /var/db/postpals

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>