aboutsummaryrefslogtreecommitdiffstats
path: root/www/roxen/Makefile
blob: 47d2b926b2ea011fde972d82cbaeb7d956475cec (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
# New ports collection makefile for:    Roxen WebServer
# Date created:             07 April 2001
# Whom:                 Kai Voigt (k@123.org)
#
# $FreeBSD$
#

PORTNAME=   roxen
PORTVERSION=    2.1.231
CATEGORIES= www
MASTER_SITES=   http://download.roxen.com/2.1/lzw/dl.html/
FETCH_CMD=  /usr/bin/fetch
DISTNAME=   roxen-dist-2.1.231
WRKSRC=     ${WRKDIR}/roxen-${PORTVERSION}-src
MAINTAINER= k@123.org
HAS_CONFIGURE=  yes
PKGMESSAGE=     ${WRKSRC}/MESSAGE
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/roxen.sh.sample

post-patch:
    @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" ${FILESDIR}/roxen.sh.in > \
      ${WRKDIR}/roxen.sh
    @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" ${FILESDIR}/MESSAGE.in > \
      ${PKGMESSAGE}

do-configure:
    @(cd ${WRKSRC}; \
      ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS})

post-install:
    @if [ ! -f ${STARTUP_SCRIPT} ]; then \
      ${ECHO} "Installing ${STARTUP_SCRIPT} startup file."; \
      ${INSTALL_SCRIPT} ${WRKDIR}/roxen.sh ${STARTUP_SCRIPT}; \
    fi
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if defined(PARALLEL_PACKAGE_BUILD) && ${OSVERSION} >= 500000
FORBIDDEN=  hang
.endif

.include <bsd.port.post.mk>