aboutsummaryrefslogtreecommitdiffstats
path: root/german/unix-connect/Makefile
blob: 6ce4a47970327425833e0c0c5de5d62662002295 (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
73
74
75
76
77
78
79
80
# $FreeBSD$

PORTNAME=   unix-connect
PORTVERSION=    0.95
PORTREVISION=   2
CATEGORIES= german comms news mail
MASTER_SITES=   ftp://ftp.dinoex.org/pub/unix-connect/ \
        SF

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    Unix-Connect - mail+news-gateway for Zconnect (tm)

BUILD_DEPENDS=  lrz:comms/lrzsz

LICENSE_COMB=   multi
LICENSE=    GPLv2 BSD3CLAUSE

MANUAL_PACKAGE_BUILD=   needs hostname

USES=       fakeroot gperf

WRKSRC=     ${WRKDIR}/${DISTNAME}
GNU_CONFIGURE=  yes
.if !defined(INSTALL_AS_USER)
CONFIGURE_ARGS+=--with-user=news
CONFIGURE_ARGS+=--with-group=dialer
.else
CONFIGURE_ARGS+=--with-user=`id -u -n`
CONFIGURE_ARGS+=--with-group=`id -g -n`
.endif
CONFIGURE_ARGS+=--with-execdir=${PREFIX}/libexec/uconnect
CONFIGURE_ARGS+=--with-confdir=${PREFIX}/etc/uconnect
CONFIGURE_ARGS+=--with-spooldir=/var/spool/uconnect
CONFIGURE_ARGS+=--enable-testing
CFLAGS+=    -g
CFLAGS:=    ${CFLAGS:S/-O[0-9]*//g} # gcc generates broken code in uwsmtp

DOC1=   README INSTALL TODO ChangeLog ChangeLog.configure

OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= MAIL NEWS
OPTIONS_SINGLE_MAIL=    SENDMAIL POSTFIX QMAIL SMAIL NO_MAIL
OPTIONS_SINGLE_NEWS=    CNEWS INN NO_NEWS
OPTIONS_DEFAULT=SENDMAIL CNEWS
NO_OPTIONS_SORT=yes
OPTIONS_SUB=    yes
SENDMAIL_DESC=  build mail scripts for sendmail
POSTFIX_DESC=   build mail scripts for postfix
QMAIL_DESC= build mail scripts for qmail
SMAIL_DESC= build mail scripts for smail
NOMAIL_DESC=    no mail scripts
CNEWS_DESC= build news scripts for cnews
INN_DESC=   build news scripts for inn
NO_NEWS_DESC=   no news scripts
SENDMAIL_CONFIGURE_ON=  --with-mail=sendmail
POSTFIX_CONFIGURE_ON=   --with-mail=postfix
QMAIL_CONFIGURE_ON= --with-mail=qmail
SMAIL_CONFIGURE_ON= --with-mail=smail
NOMAIL_CONFIGURE_ON=    --with-mail=no
CNEWS_CONFIGURE_ON= --with-news=cnews
INN_CONFIGURE_ON=   --with-news=inn
NO_NEWS_CONFIGURE_ON=   --with-news=no

.include <bsd.port.options.mk>

pre-install:
    ${MKDIR} ${STAGEDIR}/var/spool

post-install:
.if ${PORT_OPTIONS:MCNEWS}
    ${INSTALL_SCRIPT} ${WRKSRC}/mail-and-news/cnews/viazconnect \
        ${STAGEDIR}${PREFIX}/libexec/uconnect/
.endif
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${DOC1:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
    ${TAR} -C ${WRKSRC}/docs -cf - . | ${TAR} -C ${STAGEDIR}${DOCSDIR} -xf -
.endif

.include <bsd.port.mk>