aboutsummaryrefslogtreecommitdiffstats
path: root/www/zope28/Makefile
blob: 31ec2ea7089ba7add3c282fb6fe5e0664193af6e (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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# New ports collection makefile for:    Zope
# Date created:         Sat 21 Aug 1999
# Whom:                 Peter Cornelius <pcc@gmx.net>
#
# $FreeBSD$
#

PORTNAME=   zope
PORTVERSION=    2.6.0
CATEGORIES= www python zope
MASTER_SITES=   http://www.zope.org/Products/Zope/${PORTVERSION}/
DISTNAME=   Zope-${PORTVERSION}-src
EXTRACT_SUFX=   .tgz

MAINTAINER= alane@FreeBSD.org

USE_PYTHON= yes

DIST_SUBDIR=    zope

# Note: the notes that follow reflect the decisions of prior maintainers
# of this port. IOW, don't blame me if you don't like the way it's done.
# Exceptions to this are marked as such.

# Build has to be done in the final location after installing the sources
# there. It was a major action to fix all paths otherwise.
do-build:   # empty, but needs to be there for the python dependency.

# Change these, if you like, via the environment.
WEBBASEDIR?=        www
SZOPEBASEDIR?=      ${WEBBASEDIR}/Zope
SCGIBINDIR?=        ${WEBBASEDIR}/cgi-bin
SAPACHE_CONFDIR?=   etc/apache
ZOPE_HTTP_PORT?=    8080
ZOPE_FTP_PORT?=     8021
ZOPE_MONITOR_PORT?= ''

ZOPE_USER=  www

# Don't change these.
ZOPEBASEDIR=    ${PREFIX}/${SZOPEBASEDIR}
CGIBINDIR=  ${PREFIX}/${SCGIBINDIR}
APACHE_CONFDIR= ${PREFIX}/${SAPACHE_CONFDIR}

PLIST_SUB=  ZOPEBASEDIR=${SZOPEBASEDIR} \
        CGIBINDIR=${SCGIBINDIR} \
        APACHE_CONFDIR=${SAPACHE_CONFDIR} \
        VERSION=${PORTVERSION} \
        WEBBASEDIR=${WEBBASEDIR}

# Force the cgi-bin dir or link to exist.
# If we have to create it, call it -dist to emphasize that the port
# set it up. <alane>

pre-install:
    PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} PRE-INSTALL

# I decided to consider the whole souce tree to be part of the package
# since in there, Zope can live on its own. I can use Zope's own building
# mechanism.
do-install:
    @if test ! -d ${CGIBINDIR}; then \
        ${ECHO_CMD} "The directory for Zope's CGI scripts does"\
            "not exist, so I will create it.";\
        ${ECHO_CMD} "They will be placed in ${CGIBINDIR}.";\
        ${ECHO_CMD} ;\
        ${MKDIR} ${CGIBINDIR}; ${CHMOD} 0755 ${CGIBINDIR}; fi
    @if [ -e ${ZOPEBASEDIR}/var/Data.fs ] ; then \
        ${ECHO} "Saving existing Database to ${ZOPEBASEDIR}/var/Data.fs.preserve." ; \
        ${MV} ${ZOPEBASEDIR}/var/Data.fs ${ZOPEBASEDIR}/var/Data.fs.preserve; \
    fi
    @#
    @${MKDIR} ${ZOPEBASEDIR}
    @${ECHO} "===>   Please be patient, some builds need their time."
    @${ECHO} "===>   Copying..."
    @${CP} -Rp ${WRKSRC}/* ${ZOPEBASEDIR}/
    #
    # Copying some patches
    #
    #@${CP} -Rp ${WRKDIR}/lib ${ZOPEBASEDIR}/
    @#
    @${CHMOD} -R u+w ${ZOPEBASEDIR}
    @(cd ${ZOPEBASEDIR} && ${PYTHON_CMD} w_pcgi.py)
    @${CHMOD} -R u+w ${ZOPEBASEDIR}
    @(cd ${ZOPEBASEDIR} && ${PYTHON_CMD} wo_pcgi.py)
    @(cd ${ZOPEBASEDIR} && \
        ${MV} Zope.cgi Zope.cgi.orig ; \
        ${ECHO_CMD} "#! ${CGIBINDIR}/pcgi-wrapper" > Zope.cgi ; \
        ${CAT} Zope.cgi.orig >> Zope.cgi ; \
        ${RM} Zope.cgi.orig )
    @(cd ${ZOPEBASEDIR}/pcgi/Test && ${RM} *.o)
    @(cd ${ZOPEBASEDIR}/pcgi && ${RM} *.o)
    @#
    @(cd ${ZOPEBASEDIR} && \
        ${MV} Zope.cgi \
            pcgi/pcgi-wrapper \
            ${CGIBINDIR} )
    @(cd ${CGIBINDIR} && \
        ${CHMOD} 555 Zope.cgi pcgi-wrapper )
    @#
    @${ECHO} "===>   Fixing permissions of Zope's own var directory..."
    @${CHMOD} ugo+rwt ${ZOPEBASEDIR}/var
    @${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/var
    @${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/var/*
    @${RM} ${ZOPEBASEDIR}/var/.cvsignore
    @if [ -e ${ZOPEBASEDIR}/var/Data.fs.preserve ] ; then \
        ${ECHO} "Restoring existing Database from ${ZOPEBASEDIR}/var/Data.fs.preserve." ; \
        ${MV} ${ZOPEBASEDIR}/var/Data.fs.preserve ${ZOPEBASEDIR}/var/Data.fs; \
    fi
    @#
    @if [ ! -f ${ZOPEBASEDIR}/access ]; then \
        ${ECHO} "===>   Setting user/password to zopemaster/test..."; \
        (cd ${ZOPEBASEDIR} && \
            ${PYTHON_CMD} zpasswd.py -u zopemaster \
                -p test -e CLEARTEXT access ); \
    fi
    @#
    @${CHOWN} ${ZOPE_USER} ${ZOPEBASEDIR}/access
    @#
    @${ECHO} "===>   Copying Apache config file changes to ${APACHE_CONFDIR}/apache.conf.Zope-Changes."
    @${MKDIR} ${APACHE_CONFDIR}
    @${CP} -p ${FILESDIR}/apache.conf.Zope-Changes ${APACHE_CONFDIR}/
    @#
    @${ECHO} "===>   Please have a look at this file and the instructions"
    @${ECHO} "===>   therein and incorporate them to your apache.conf."
    @${ECHO} "===>   Creating rc startup file for Zope-${PORTVERSION}..."
    @${MKDIR} ${PREFIX}/etc/rc.d
    @${SED} -e "s|%%ZOPEBASEDIR%%|${ZOPEBASEDIR}|g" \
            -e "s|%%CGIBINDIR%%|${CGIBINDIR}|g" \
            -e "s|%%ZOPE_USER%%|${ZOPE_USER}|g" \
        -e "s|%%ZOPE_HTTP_PORT%%|${ZOPE_HTTP_PORT}|g" \
        -e "s|%%ZOPE_FTP_PORT%%|${ZOPE_FTP_PORT}|g" \
        -e "s|%%ZOPE_MONITOR_PORT%%|${ZOPE_MONITOR_PORT}|g" \
        < ${FILESDIR}/zope.sh.in > ${PREFIX}/etc/rc.d/zope.sh
    @${CHMOD} ug+x,o-rwx ${PREFIX}/etc/rc.d/zope.sh
    @${ECHO} "===>  Done with ${PREFIX}/etc/rc.d/zope.sh."
    @${CAT} ${FILESDIR}/Message
    @${ECHO} "===>   Your Zope base directory is ${ZOPEBASEDIR}."
    @${ECHO} "===>   The Zope license is in ${ZOPEBASEDIR}/LICENSE.txt."
    @${ECHO} "===>   For Apache changes see ${APACHE_CONFDIR}/apache.conf.Zope-Changes."
    @${ECHO} "===>   Zope.cgi and pcgi-wrapper live in ${CGIBINDIR}."

.include <bsd.port.mk>
ass='insertions'>+4 * Add a missing dependency on gnome-session.marcus2009-06-071-2/+3 * Update to version 180.60, the latest to date.danfe2009-06-062-9/+4 * Chase the vte shared lib version bump.oliver2009-06-051-0/+1 * The KDE FreeBSD team is pleased to announce KDE 4.2.4, the last bugfixmiwi2009-06-0316-36/+37 * Chase the vte shared lib version bump.marcus2009-06-034-4/+5 * . add linux-f10 ports to the rank of CONFLICTS for linux-fc4 ports;bsam2009-06-031-2/+2 * . add CONFLICTS to linux-f8 infrastructure ports;bsam2009-06-031-2/+2 * Fix a problem with GConf paths.marcus2009-06-021-2/+3 * Here are new Linux Fedora 10 infrastructure ports.bsam2009-06-024-380/+367 * - Don't use bashamdmi32009-06-011-0/+3 * - Resolve LATEST_LINK conflictpav2009-06-014-0/+5 * * Fix hardcoded use of /usr/local.marcus2009-06-013-11/+75 * Update to 2.26.2.marcus2009-05-313-4/+47 * Add a WITH_XTERM_COLOR knob to x11/rxvt-unicode port, which enable xtermthierry2009-05-311-1/+12 * - Fix local disclosure of X authority magic cookiemiwi2009-05-314-7/+392 * - Use direct launchpad urlamdmi32009-05-291-1/+1 * Fix pkg-plistrnoland2009-05-292-0/+5 * Reset maintainer: email address bounces.linimon2009-05-292-4/+1 * Remove patch from cvs also...rnoland2009-05-291-11/+0 * Update to 1.6rnoland2009-05-293-7/+16 * Update to 1.4.10rnoland2009-05-292-4/+4 * Fix an unfortunate typo which broke INDEX.erwin2009-05-281-2/+2 * Avant Window Navigator (Awn) is a dock-like bar which sits at theamdmi32009-05-287-0/+298 * Update to version 243krion2009-05-262-4/+4 * wbarconf is graphical configuration utility for wbar written in Python/GTKamdmi32009-05-265-0/+70 * - Add Backup mirrordhn2009-05-243-4/+7 * - Update to 3.03miwi2009-05-232-9/+16 * i3lock improves slock by making it fork() and therefore combinable withdhn2009-05-224-0/+45 * Presenting GNOME 2.26.2 for FreeBSD.marcus2009-05-212-2/+2 * Update to 2.26.2.kwm2009-05-213-59/+5 * Fix plist.kwm2009-05-212-1/+2 * Update to 2.26.2.kwm2009-05-203-4/+9 * - backout last commitdinoex2009-05-201-1/+1 * Update to 2.26.2.kwm2009-05-192-5/+4 * Update to 1.0.1rene2009-05-192-5/+4 * - use cups-client as depencydinoex2009-05-181-1/+1 * Correct path to file.marcus2009-05-171-1/+1 * Whoops, add two more hunks to complete XDMCP support.marcus2009-05-172-1/+21 * * Fix XDMCP support with gdm. Note: that for IPv4 support to work, onemarcus2009-05-176-12/+230 * Reorganize dependencies: check for package versions instead for files installed.makc2009-05-161-13/+13 * - Update to 1.0.1dhn2009-05-152-4/+4 * Update to 0.15.4rnoland2009-05-152-4/+4 * Chase libgmp and bump PORTREVISION.ale2009-05-134-6/+8 * Update KDE ports to 4.2.3makc2009-05-1012-27/+30 * - Update to 1.03miwi2009-05-092-5/+4 * - Mark my ports as MAKE_JOBS_SAFE (with the exception of nethack34-gnome whichwxs2009-05-092-0/+2 * - New port: x11/gambas2-gb-qt-kdeacm2009-05-093-0/+32 * - New port: x11/gambas-gb-desktopacm2009-05-093-0/+27 * Update to 0.10.kwm2009-05-082-8/+7 * Update to 1.4.2rnoland2009-05-082-4/+4 * Update to 2.0rnoland2009-05-082-4/+4 * Chase xserver update with driver port bumps.rnoland2009-05-085-5/+5 * - Update to 0.3.4amdmi32009-05-073-11/+5 * update xfce to 4.6.1oliver2009-05-0622-36/+52 * Fix a boneheaded mistake in my initial cwd patch by not using memory aftermarcus2009-05-062-7/+10 * Add support for reading a terminal's cwd on recent versions of FreeBSD.marcus2009-05-045-0/+206 * Add an explicit dependency on hal.marcus2009-05-031-1/+2 * * Add support for a gdm_lang rc.conf macro to control the locale used bymarcus2009-05-034-1/+181 * 2009-04-22 audio/snowstar: tcl8.0 support is going to be droppedmiwi2009-05-0229-569/+0 * Update to 1.0.0rene2009-04-293-8/+35 * - Update to 4.0miwi2009-04-284-10/+10 * - Update to 1.14.2miwi2009-04-252-4/+4 * - Fix build with new USB2miwi2009-04-242-6/+16 * Presenting GNOME 2.26.1 for FreeBSD.kwm2009-04-2425-47/+157 * - Update MASTER_SITESmiwi2009-04-241-1/+1 * An implementation of the XDG Base Directory specification.miwi2009-04-245-0/+39 * - Update to 0.75.0amdmi32009-04-233-4/+12 * - Update to 1.3wxs2009-04-222-7/+82 * - Mark all kde4 ports MAKE_JOBS_UNSAFEmiwi2009-04-173-3/+3 * - Fix build on HEADmiwi2009-04-162-2/+2 * Add run dependency on x11/setxkbmap to make kde layout switcher usable.makc2009-04-162-2/+6 * - Update to catch up with latest releases from NVidiadanfe2009-04-13