aboutsummaryrefslogtreecommitdiffstats
path: root/news/ifmail/Makefile
blob: 9da1ba0ba309cfaff7ffa0b3ae111ea3127c276c (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
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
69
70
# $FreeBSD$

PORTNAME=   ifmail
PORTVERSION=    2.15
PORTREVISION=   7
CATEGORIES= news comms
MASTER_SITES=   SUNSITE/system/fido

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    FidoNet(tm) support package for UN*X platform

USES=       shebangfix
USERS=      ifmail
CFLAGS+=    -DHAS_STDARG_H -Wall
GID!=       id -g
MAKE_ARGS=  OWNER=${UID} CC="${CC}" GROUP=${GID} CFLAGS="${CFLAGS}"

LMAN3=      parsedate.3
LMAN8=      ifmail.8 iftoss.8
SHEBANG_FILES=  misc/contrib/a2dbm \
        misc/contrib/abbs2nf/abbs2nf.pl \
        misc/contrib/areafix-0.5.07/areafix.pl \
        misc/contrib/areafix-0.5.07-jv10/areafix.pl \
        misc/contrib/areafix-0.6.02/areafix \
        misc/contrib/edalias \
        misc/contrib/edalias.cgi \
        misc/contrib/ifinfo \
        misc/contrib/ifinfo.pl \
        misc/contrib/ifman \
        misc/contrib/ifreq \
        misc/contrib/ldbm \
        misc/contrib/lmsgid \
        misc/contrib/sumlog \
        misc/contrib/tic/checker.pl \
        misc/contrib/tic/lister.pl \
        misc/contrib/tic/makeconfig.pl \
        misc/contrib/tic/poster.pl \
        misc/contrib/tic/process_tics.pl \
        misc/contrib/tic/purge_history.pl \
        misc/contrib/u-tic/make_machdep.pl \
        misc/contrib/u-tic/u-attach.pl \
        misc/contrib/u-tic/u-fix.pl \
        misc/contrib/u-tic/u-tic.pl

OPTIONS_DEFINE= DOCS EXAMPLES

pre-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ifmail

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/libexec/ifmail/*
.for i in ${LMAN8}
    ${INSTALL_MAN} ${WRKSRC}/ifgate/${i} ${STAGEDIR}${PREFIX}/man/man8/
.endfor
.for i in ${LMAN3}
    ${INSTALL_MAN} ${WRKSRC}/iflib/${i} ${STAGEDIR}${PREFIX}/man/man3/
.endfor

post-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.for i in ifcico ifgate iflib
    ${INSTALL_DATA} ${WRKSRC}/${i}/README ${STAGEDIR}${DOCSDIR}/README.${i}
.endfor

post-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    @${TAR} -C ${WRKSRC}/misc -cf - . | ${TAR} -C ${STAGEDIR}${EXAMPLESDIR} -xf -

.include <bsd.port.mk>