Edit

IABSD.fr/ports/www/mod_frontpage/Makefile

Branch :

  • Show log

    Commit

  • Author : sturm
    Date : 2003-10-18 19:44:41
    Hash : e77d2a51
    Message : license markers and some corrections

  • www/mod_frontpage/Makefile
  • # $OpenBSD: Makefile,v 1.13 2003/10/18 19:44:47 sturm Exp $
    
    COMMENT=	"Microsoft FrontPage Server extensions for Apache"
    
    ONLY_FOR_ARCHS=	i386
    
    VERSION=	1.6.2
    DISTNAME=	mod_frontpage_mirfak-${VERSION}
    PKGNAME=	mod_frontpage-${VERSION}
    CATEGORIES=	www
    MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=mirfak/}
    
    HOMEPAGE=	http://mirfak.sourceforge.net
    
    MAINTAINER=	Dan Harnett <danh@openbsd.org>
    
    # Apache
    PERMIT_PACKAGE_CDROM=	Yes
    PERMIT_PACKAGE_FTP=	Yes
    PERMIT_DISTFILES_CDROM=	Yes
    PERMIT_DISTFILES_FTP=	Yes
    
    SEPARATE_BUILD=	concurrent
    
    APXS=		/usr/sbin/apxs
    CC!=		${APXS} -q CC
    CFLAGS!=	${APXS} -q CFLAGS
    INCLUDES!=	${APXS} -q INCLUDEDIR
    
    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\" \
    	-DFPBASE=\"/usr/local/frontpage/version5.0\" \
    	-DFP_USER=\"bin\" -DFP_GROUP=\"bin\" \
    	-DFP_HTACCESS=\".htaccess\" -DFP_UMASK=022
    
    INC=	-I/usr/lib/apache/include
    
    do-build:
    	cd ${WRKBUILD} && \
    	    ${APXS} -Wall -c ${DEF} ${DEF2} ${INC} \
    	       -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
    	@sed 's,!!PREFIX!!,${PREFIX},' ${FILESDIR}/mod_frontpage-enable > \
    	    ${WRKBUILD}/mod_frontpage-enable
    
    do-install:
    	${INSTALL_DATA} ${WRKBUILD}/mod_frontpage.so ${PREFIX}/lib/
    	${INSTALL_SCRIPT} ${WRKBUILD}/mod_frontpage-enable ${PREFIX}/sbin/
    	${INSTALL_PROGRAM} ${WRKBUILD}/fpexec ${PREFIX}/sbin/
    	${INSTALL_PROGRAM} ${WRKBUILD}/fpstatic ${PREFIX}/sbin/
    	@chown root:www ${PREFIX}/sbin/fpexec ${PREFIX}/sbin/fpstatic
    
    .include <bsd.port.mk>