pkgsrc/www/w3c-httpd/Makefile

52 lines
1.6 KiB
Makefile
Raw Normal View History

2006-01-08 21:45:45 +01:00
# $NetBSD: Makefile,v 1.16 2006/01/08 20:45:45 joerg Exp $
DISTNAME= w3c-httpd-3.0A
CATEGORIES= www
MASTER_SITES= ftp://ftp.w3.org/pub/httpd/ \
ftp://ftp-eu.w3.org/pub/httpd/
MAINTAINER= tech-pkg@NetBSD.org
1999-05-09 23:12:32 +02:00
HOMEPAGE= http://www.w3.org/pub/WWW/Daemon/
COMMENT= WWW server from the W3 Consortium (W3C)
WRKSRC= ${WRKDIR}
SUBST_CLASSES+= strcasestr
SUBST_STAGE.strcasestr= post-patch
SUBST_FILES.strcasestr= Daemon/Implementation/HTWild.c \
Library/Implementation/HTString.c \
Library/Implementation/HTString.h \
Library/Implementation/HTString.h
SUBST_SED.strcasestr= -e "s,\([[:blank:]]\)\(strcasestr\),\1x\2,g"
INSTALLATION_DIRS= bin sbin
pre-configure:
.if !defined(MD5_PW)
2000-03-16 15:14:50 +01:00
@${ECHO} ""
@${ECHO} "Defaulting to DES encrypted passwords."
@${ECHO} "Set the environment variable MD5_PW if you want MD5 encrypted passwords."
@${ECHO} ""
.else
2000-03-16 15:14:50 +01:00
@${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"
2006-01-08 21:45:45 +01:00
.if (${OPSYS} == "FreeBSD") || (${OPSYS} == "DragonFly")
OSNAME= freebsd
.else
# covers OpenBSD too
OSNAME= netbsd
.endif