aboutsummaryrefslogtreecommitdiffstats
path: root/mail/fastforward/Makefile
blob: edbca31e66554366f6544a524012e8955625e155 (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
37
38
39
40
41
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$

PORTNAME=   fastforward
PORTVERSION=    0.51
CATEGORIES= mail
MASTER_SITES=   http://cr.yp.to/software/

MAINTAINER= uffe@uffe.org
COMMENT=    Fastforward handles qmail forwarding according to a cdb database

USES=   gmake

ALL_TARGET= default

MAN1=   fastforward.1 printforward.1 setforward.1 newaliases.1 printmaillist.1 setmaillist.1 newinclude.1
CAT1=   fastforward.0 printforward.0 setforward.0 newaliases.0 printmaillist.0 setmaillist.0 newinclude.0

PORTDOCS=   ALIASES

PLIST_FILES=    \
        bin/fastforward bin/printforward bin/setforward bin/newaliases bin/printmaillist bin/setmaillist bin/newinclude \
        ${MAN1:S,^,man/man1/,:S,$,.gz,} ${CAT1:S,^,man/cat1/,:S,$,.gz,}

do-install:
.for binfile in fastforward printforward setforward newaliases printmaillist setmaillist newinclude
    ${INSTALL_PROGRAM} ${WRKSRC}/${binfile} ${STAGEDIR}${PREFIX}/bin/${binfile}
.endfor

.for manfile in ${MAN1}
    ${INSTALL_MAN} ${WRKSRC}/${manfile} ${STAGEDIR}${MAN1PREFIX}/man/man1/${manfile}
.endfor

.for catfile in ${CAT1}
    ${INSTALL_MAN} ${WRKSRC}/${catfile} ${STAGEDIR}${MAN1PREFIX}/man/cat1/${catfile}
.endfor

    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/ALIASES ${STAGEDIR}${DOCSDIR}/ALIASES

.include <bsd.port.mk>