mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# Created by: Greg Larkin <glarkin@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= phpdeadlock
|
|
PORTVERSION= 1.01
|
|
PORTREVISION= 1
|
|
CATEGORIES= security www
|
|
MASTER_SITES= SF/${PORTNAME}/Deadlock/${PORTVERSION}%20Stable
|
|
DISTNAME= Deadlock-${PORTVERSION}-Stable
|
|
|
|
MAINTAINER= glarkin@FreeBSD.org
|
|
COMMENT= Web-based user authentication/password protection system
|
|
|
|
WRKSRC= ${WRKDIR}/Deadlock-1.01
|
|
DLURL?= ${PORTNAME}
|
|
DLDIR= www/${DLURL}
|
|
PORTDOCS= CHANGES.txt COPYING.txt UPGRADE.txt
|
|
|
|
USE_DOS2UNIX= yes
|
|
USE_APACHE_RUN= 22+
|
|
USE_PHP= mysql session ctype pcre
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= DLURL=${DLURL} DLDIR=${DLDIR}
|
|
|
|
NO_STAGE= yes
|
|
post-extract:
|
|
@cd ${WRKDIR} && ${MV} "Deadlock v1.01" Deadlock-1.01
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \;
|
|
|
|
do-install:
|
|
@cd ${WRKSRC}/deadlock && ${COPYTREE_SHARE} . ${WWWDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \
|
|
${WWWDIR:S|^${PREFIX}/|%D/|}' >> ${TMPPLIST}
|
|
@${CHMOD} 777 ${WWWDIR}/db_config.php
|
|
@${ECHO_CMD} '@exec ${CHMOD} 777 \
|
|
${WWWDIR:S|^${PREFIX}/|%D/|}/db_config.php' >> ${TMPPLIST}
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${INSTALL} -d ${DOCSDIR}
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|