summaryrefslogtreecommitdiff
path: root/www/raqdevil/Makefile
blob: a79c90e45036d7b965ae69182f2edd45080ceea4 (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# New ports collection makefile for:    raqdevil
# Date created:         06 September 2005
# Whom:                 Devon H. O'Dell <devon.odell@coyotepoint.com>
#
# $FreeBSD$
#

PORTNAME=	raqdevil
PORTVERSION=	1.0
PORTREVISION=	5
CATEGORIES=	www sysutils
MASTER_SITES=	http://www.raqdevil.com/

MAINTAINER=	devon.odell@gmail.com
COMMENT=	A port of the Sun Cobalt RaQ550 software to FreeBSD

# The explicit dependencies on p5-Net, p5-Digest, p5-Authen-SASL,
# p5-Test-Harness, p5-Test-Simple, p5-Authen-SASL and p5-MIME-Base64
# are necessary due to ports/86310. This is a work-around: RAQdevil
# does not depend on these ports itself.

RUN_DEPENDS=	${LOCALBASE}/sbin/sendmail:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT}	\
		${SITE_PERL}/Authen/SASL.pm:${PORTSDIR}/security/p5-Authen-SASL		\
		${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
		${SITE_PERL}/Digest.pm:${PORTSDIR}/security/p5-Digest			\
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
		${SITE_PERL}/Net/Cmd.pm:${PORTSDIR}/net/p5-Net				\
		${SITE_PERL}/Test/Harness.pm:${PORTSDIR}/devel/p5-Test-Harness		\
		${SITE_PERL}/Test/Simple.pm:${PORTSDIR}/devel/p5-Test-Simple		\
		${LOCALBASE}/libexec/imapd:${PORTSDIR}/mail/imap-uw			\
		${SITE_PERL}/Jcode.pm:${PORTSDIR}/japanese/p5-Jcode			\
		${SITE_PERL}/${PERL_ARCH}/Quota.pm:${PORTSDIR}/sysutils/p5-Quota		\
		${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext	\
		${SITE_PERL}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph		\
		${SITE_PERL}/Mail/SPF/Query.pm:${PORTSDIR}/mail/p5-Mail-SPF-Query	\
		${JCODE}:${PORTSDIR}/japanese/p5-Jcode		\
		expect:${PORTSDIR}/lang/expect			\
		logrotate:${PORTSDIR}/sysutils/logrotate	\
		pcretest:${PORTSDIR}/devel/pcre			\
		snmpd:${PORTSDIR}/net-mgmt/net-snmp		\
		proftpd:${PORTSDIR}/ftp/proftpd			\
		qpopauth:${PORTSDIR}/mail/qpopper		\
		xinetd:${PORTSDIR}/security/xinetd		\
		spamc:${PORTSDIR}/mail/p5-Mail-SpamAssassin	\
		procmail:${PORTSDIR}/mail/procmail		\
		clamscan:${PORTSDIR}/security/clamav		\
		analog:${PORTSDIR}/www/analog
BUILD_DEPENDS=	re2c:${PORTSDIR}/devel/re2c

USE_GNOME=	glib20
USE_PHP=	pcre session xml
USE_GMAKE=	yes
USE_PERL5=	yes
USE_APACHE=	yes

WITHOUT_X11=	yes
WITH_APACHE2=	yes
REINPLACE_ARGS=	-i""
USE_LDCONFIG=	yes
LDCONFIG_DIRS=	${PREFIX}/raqdevil/lib
NO_PACKAGE=	Workaround for Pointyhat and Tinderbox.

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500801
JCODE=	${SITE_PERL}/${PERL_ARCH}/Jcode.pm
.else
JCODE=	${SITE_PERL}/Jcode.pm
.endif

.if !defined(SENDMAIL_MILTER_PORT)
SENDMAIL_MILTER_PORT?=	sendmail-sasl
.else
.if ${SENDMAIL_MILTER_PORT} != "sendmail-sasl"
pre-everything::
	@${ECHO_MSG} "SENDMAIL_MILTER_PORT=${SENDMAIL_MILTER_PORT}
	@${ECHO_MSG} "RAQdevil makes use of the sendmail-sasl metaport. Please set"
	@${ECHO_MSG} "SENDMAIL_MILTER_PORT=sendmail-sasl in /etc/make.conf"
	@${FALSE}
.endif
.endif

pre-extract:
.if !defined(BATCH)
	@${SH} ${FILESDIR}/warning
.endif

post-extract:
.if !defined(BATCH)
	${CC} -o ${WRKSRC}/rdqchk ${FILESDIR}/rdqchk.c
	${WRKSRC}/rdqchk
.endif

post-patch:
	@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -e \
		's|[(]prefix[)]|${PREFIX}|g' ;
	@${FIND} ${WRKSRC} -type f -name \*-e | ${XARGS} ${RM} -f

post-install:
	@PKG_PREFIX=${PREFIX} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>