aboutsummaryrefslogtreecommitdiffstats
path: root/www/campsite/Makefile
blob: 73ac12aaf081af62b589af5fddcb3f024780faa6 (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
# New ports collection makefile for:    campsite
# Date created:             5 August 2005
# Whom:                 Ondra Koutek <koutek@o-k.cz>
#
# $FreeBSD$
#

PORTNAME=   campsite
PORTVERSION=    2.6.7
PORTREVISION=   8
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}/OldFiles

MAINTAINER= ports@FreeBSD.org
COMMENT=    The free and open multilingual web publishing tool for news sites

DEPRECATED= Does not work
EXPIRATION_DATE=    2011-08-01

LIB_DEPENDS=    idn.17:${PORTSDIR}/dns/libidn \
        GraphicsMagick.1:${PORTSDIR}/graphics/GraphicsMagick
BUILD_DEPENDS=  bash:${PORTSDIR}/shells/bash \
        gm4:${PORTSDIR}/devel/m4 \
        pear:${PORTSDIR}/devel/pear
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash \
        ${LOCALBASE}/share/pear/HTTP/Client.php:${PORTSDIR}/www/pear-HTTP_Client \
        ${LOCALBASE}/share/pear/File.php:${PORTSDIR}/sysutils/pear-File \
        ${LOCALBASE}/share/pear/File/Find.php:${PORTSDIR}/sysutils/pear-File_Find \
        ${LOCALBASE}/share/pear/XML/Util.php:${PORTSDIR}/devel/pear-XML_Util \
        ${LOCALBASE}/share/pear/XML/Parser.php:${PORTSDIR}/devel/pear-XML_Parser

MAKE_JOBS_UNSAFE=   yes

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_APACHE= 13

USE_MYSQL=  yes
USE_PHP=    mysql curl pcre xml xmlrpc gd session
WANT_PHP_CLI=   YES
USE_PHP_BUILD=  YES

HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --apache_user ${WWWOWN} --apache_group ${WWWGRP} --prefix ${PREFIX}

USE_GMAKE=  yes

SUB_FILES+= pkg-message pkg-install pkg-deinstall crontab.in

post-patch:
    @${FIND} ${WRKSRC} -type f -perm 755 \
                -or -name campsite_create_instance \
                -or -name global_functions \
                -or -name check4_functions \
                -or -name conf_functions | ${XARGS} \
            ${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|'
    @${FIND} ${WRKSRC} -type f -name autopublish | ${XARGS} \
            ${REINPLACE_CMD} -e 's|php |${LOCALBASE}/bin/php |'
    @${FIND} ${WRKSRC} -type f -name "*.php" | ${XARGS} \
            ${REINPLACE_CMD} -e 's|$cmd = "pushd |$cmd = "${LOCALBASE}/bin/bash -c \\\"pushd |'
    @${FIND} ${WRKSRC} -type f -name "*.php" | ${XARGS} \
            ${REINPLACE_CMD} -e 's|popd > /dev/null";|popd > /dev/null\\\"";|'
    @${FIND} ${WRKSRC} -name "*.bak" -delete

post-install:
    @${INSTALL_DATA} ${WRKDIR}/crontab.in ${PREFIX}/campsite/etc
    @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>