2007-09-15 16:38:20 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2007/09/15 20:38:22 merdely Exp $
|
2002-03-15 12:43:14 -05:00
|
|
|
|
2007-09-15 16:38:20 -04:00
|
|
|
COMMENT= Microsoft FrontPage Server extensions for Apache
|
2001-03-04 12:21:21 -05:00
|
|
|
|
2001-08-13 11:50:22 -04:00
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
|
2003-02-23 17:36:36 -05:00
|
|
|
VERSION= 1.6.2
|
|
|
|
DISTNAME= mod_frontpage_mirfak-${VERSION}
|
2007-06-30 11:32:30 -04:00
|
|
|
PKGNAME= mod_frontpage-${VERSION}p1
|
2001-03-04 12:21:21 -05:00
|
|
|
CATEGORIES= www
|
2003-02-23 17:36:36 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mirfak/}
|
2001-03-04 12:21:21 -05:00
|
|
|
|
2003-02-23 17:36:36 -05:00
|
|
|
HOMEPAGE= http://mirfak.sourceforge.net
|
2001-03-04 12:21:21 -05:00
|
|
|
|
|
|
|
MAINTAINER= Dan Harnett <danh@openbsd.org>
|
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODULES+= apache-module
|
|
|
|
|
2003-10-18 15:44:41 -04:00
|
|
|
# Apache
|
2003-02-23 17:36:36 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-11 08:29:20 -05:00
|
|
|
WANTLIB= c
|
2001-03-04 12:21:21 -05:00
|
|
|
|
2003-02-23 17:36:36 -05:00
|
|
|
SEPARATE_BUILD= concurrent
|
2001-03-04 12:21:21 -05:00
|
|
|
|
2007-06-26 15:19:45 -04:00
|
|
|
MODAPACHE_NAME= frontpage
|
|
|
|
|
2002-01-16 10:41:27 -05:00
|
|
|
APXS= /usr/sbin/apxs
|
|
|
|
CC!= ${APXS} -q CC
|
|
|
|
CFLAGS!= ${APXS} -q CFLAGS
|
|
|
|
INCLUDES!= ${APXS} -q INCLUDEDIR
|
|
|
|
|
2003-02-23 17:36:36 -05:00
|
|
|
DEF= -DFPEXEC_BIN=\\\"/usr/local/sbin/fpexec\\\" \
|
|
|
|
-DFPSTATIC_BIN=\\\"/usr/local/sbin/fpstatic\\\"
|
|
|
|
|
|
|
|
DEF2= -DFP_HTTPD_USER=\"www\" -DFP_UID_MIN=1000 -DFP_GID_MIN=1000 \
|
|
|
|
-DFP_LOG_EXEC=\"/var/log/fpexec_log\" \
|
|
|
|
-DFP_USERDIR_SUFFIX=\"public_html\" \
|
|
|
|
-DFP_DOC_ROOT=\"/var/www/htdocs\" \
|
|
|
|
-DFP_SAFE_PATH=\"/usr/bin:/bin:/usr/local/bin\" \
|
|
|
|
-DFPDIR=\"/usr/local/frontpage/version5.0/exes\" \
|
2003-05-12 15:39:34 -04:00
|
|
|
-DFPBASE=\"/usr/local/frontpage/version5.0\" \
|
2003-02-23 17:36:36 -05:00
|
|
|
-DFP_USER=\"bin\" -DFP_GROUP=\"bin\" \
|
|
|
|
-DFP_HTACCESS=\".htaccess\" -DFP_UMASK=022
|
2001-03-04 12:21:21 -05:00
|
|
|
|
2003-02-23 17:36:36 -05:00
|
|
|
INC= -I/usr/lib/apache/include
|
2001-03-04 12:21:21 -05:00
|
|
|
|
|
|
|
do-build:
|
2003-02-23 17:36:36 -05:00
|
|
|
cd ${WRKBUILD} && \
|
2003-05-12 15:39:34 -04:00
|
|
|
${APXS} -Wall -c ${DEF} ${DEF2} ${INC} \
|
2003-02-23 17:36:36 -05:00
|
|
|
-o ${WRKBUILD}/mod_frontpage.so ${WRKSRC}/mod_frontpage.c
|
|
|
|
${CC} ${CFLAGS} ${DEF2} ${INC} -o ${WRKBUILD}/fpexec ${WRKSRC}/fpexec.c
|
|
|
|
${CC} ${CFLAGS} ${DEF2} ${INC} \
|
|
|
|
-o ${WRKBUILD}/fpstatic ${WRKSRC}/fpstatic.c
|
2007-06-26 15:19:45 -04:00
|
|
|
@${MODAPACHE_CREATE_ENABLE_SCRIPT}
|
2001-03-04 12:21:21 -05:00
|
|
|
|
|
|
|
do-install:
|
2003-02-23 17:36:36 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/fpexec ${PREFIX}/sbin/
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/fpstatic ${PREFIX}/sbin/
|
|
|
|
@chown root:www ${PREFIX}/sbin/fpexec ${PREFIX}/sbin/fpstatic
|
2007-06-26 15:19:45 -04:00
|
|
|
${MODAPACHE_INSTALL}
|
2001-03-04 12:21:21 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|