42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2004/01/20 12:28:00 agc Exp $
|
|
# FreeBSD Id: Makefile,v 1.19 1999/01/08 19:59:26 fenner Exp
|
|
|
|
DISTNAME= w3c-httpd-3.0A
|
|
CATEGORIES= www
|
|
MASTER_SITES= ftp://ftp.w3.org/pub/httpd/ \
|
|
ftp://ftp-eu.w3.org/pub/httpd/
|
|
|
|
MAINTAINER= package@NetBSD.org
|
|
HOMEPAGE= http://www.w3.org/pub/WWW/Daemon/
|
|
COMMENT= WWW server from the W3 Consortium (W3C)
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
pre-configure:
|
|
.if !defined(MD5_PW)
|
|
@${ECHO} ""
|
|
@${ECHO} "Defaulting to DES encrypted passwords."
|
|
@${ECHO} "Set the environment variable MD5_PW if you want MD5 encrypted passwords."
|
|
@${ECHO} ""
|
|
.else
|
|
@${ECHO} "CFLAGS += -DMD5_PW" >> ${WRKDIR}/All/${OSNAME}/Makefile.include
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/etc/w3c-httpd ${PREFIX}/share/w3c-httpd
|
|
${CP} -R ${WRKSRC}/server_root/icons ${PREFIX}/share/w3c-httpd
|
|
${CP} ${WRKSRC}/server_root/config/*.conf ${PREFIX}/etc/w3c-httpd
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Daemon/${OSNAME}/httpd ${PREFIX}/sbin/w3c-httpd
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Daemon/${OSNAME}/htadm ${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Daemon/${OSNAME}/htimage ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Daemon/${OSNAME}/cgiparse ${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Daemon/${OSNAME}/cgiutils ${PREFIX}/sbin
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
.if (${OPSYS} == "FreeBSD")
|
|
OSNAME= freebsd
|
|
.else
|
|
# covers OpenBSD too
|
|
OSNAME= netbsd
|
|
.endif
|