aboutsummaryrefslogtreecommitdiffstats
path: root/www/raqdevil/Makefile
blob: a44eaa47d270cc5521e6ed75744f4612892baff5 (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
# New ports collection makefile for:    raqdevil
# Date created:         06 September 2005
# Whom:                 Devon H. O'Dell <dodell@offmyserver.com>
#
# $FreeBSD$
#

PORTNAME=   raqdevil
PORTVERSION=    0.9.6
CATEGORIES= www sysutils
MASTER_SITES=   http://www.raqdevil.com/

MAINTAINER= dodell@offmyserver.com
COMMENT=    A port of the Sun Cobalt RaQ550 software to FreeBSD

RUN_DEPENDS=    ${LOCALBASE}/sbin/sendmail:${PORTSDIR}/mail/${SENDMAIL_MILTER_PORT} \
        ${JCODE}:${PORTSDIR}/japanese/p5-Jcode          \
        ${SITE_PERL}/mach/Quota.pm:${PORTSDIR}/sysutils/p5-Quota        \
        ${SITE_PERL}/mach/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   \
        logrotate:${PORTSDIR}/sysutils/logrotate    \
        perl:${PORTSDIR}/lang/perl5.8           \
        imapd:${PORTSDIR}/mail/imap-uw          \
        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_REINPLACE=  yes
USE_APACHE= yes

WITH_APACHE2=   yes
REINPLACE_ARGS= -i""
INSTALLS_SHLIB= yes
LDCONFIG_DIRS=  ${PREFIX}/raqdevil/lib

.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(PACKAGE_BUILDING)
    @${SH} ${FILESDIR}/warning
.endif

post-extract:
.if !defined(PACKAGE_BUILDING)
    ${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>