aboutsummaryrefslogtreecommitdiffstats
path: root/news/fidogate/Makefile
blob: 539e49938bc8200b141e2bfa503e796bf639bf7f (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
71
72
# New ports collection makefile for:    fidogate
# Date created:         02 Dez 1997
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=   fidogate
PORTVERSION=    4.4.1
CATEGORIES= news mail
MASTER_SITES=   ftp://ftp.fido.de/pub/fidogate/ \
        ftp://ftp.gwdg.de/pub/linux/fido/fidogate/ \
        ftp://ftp.fu-berlin.de/unix/news/fidogate/ \
        ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= system/fido

MAINTAINER= dirk.meyer@dinoex.sub.org

# you may commet out this line if you have another transfer-agent
RUN_DEPENDS=    ${LOCALBASE}/libexec/ifmail/ifcico:${PORTSDIR}/news/ifmail

.if defined(PARALLEL_PACKAGE_BUILD)
FORBIDDEN=  indefinite hang
.endif

USE_GMAKE=  yes
USE_PERL5=  yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 300000
EXTRA_PATCHES+= ${PATCHDIR}/patch-perl
.endif

pre-configure:
    @${MV} ${WRKSRC}/config.make ${WRKSRC}/config.make.sed
    @${SED} -e 's/\$${PREFIX}/${PREFIX:S/\//\\\//g}/g' \
        < ${WRKSRC}/config.make.sed > ${WRKSRC}/config.make

pre-install:
    ${MKDIR} ${PREFIX}/libexec/fidogate
    ${MKDIR} ${PREFIX}/share/doc/fidogate/html
    ${MKDIR} ${PREFIX}/share/doc/fidogate/info
    ${MKDIR} ${PREFIX}/share/doc/fidogate/fido
    ${MKDIR} ${PREFIX}/share/doc/fidogate/howto
    ${MKDIR} ${PREFIX}/share/doc/fidogate/misc
    ${MKDIR} ${PREFIX}/share/doc/fidogate/gatebau

DOCLIST=    \
    fidogate.texi fidogate.txt \
    gatebau94.txt kludge-rfc.doc msgid.doc \
    qmail.txt texinfo.tex \
    dirs.html index.html template.html \
    fido \
    howto \
    misc \
    rfc \
    gatebau/msgid.sgml \
    gatebau/msgid.tex \
    gatebau/msgid.txt

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/fidogate
    @cd ${WRKSRC}/doc; tar cf - ${DOCLIST} |\
        (cd ${PREFIX}/share/doc/fidogate; tar xf -)
    ${MKDIR} ${PREFIX}/share/examples/fidogate
    @cd ${WRKSRC}/examples; tar cf - . |\
        (cd ${PREFIX}/share/examples/fidogate; tar xf -)
.endif

.include <bsd.port.post.mk>