1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

Allow staging as a regular user

This commit is contained in:
Antoine Brodin 2014-09-07 11:01:53 +00:00
parent 0805aa448c
commit ee4e63a05c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367511
2 changed files with 12 additions and 12 deletions

View File

@ -7,8 +7,8 @@ PORTREVISION= 1
CATEGORIES= databases www
MASTER_SITES= SF/${PORTNAME}/Adminer/Adminer%20${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PORTNAME}-${PORTVERSION}.php ${PORTNAME}-${PORTVERSION}-en.php \
${PORTNAME}-${PORTVERSION}-mysql.php ${PORTNAME}-${PORTVERSION}-mysql-en.php
${PORTNAME}-${PORTVERSION}.php ${PORTNAME}-${PORTVERSION}-en.php \
${PORTNAME}-${PORTVERSION}-mysql.php ${PORTNAME}-${PORTVERSION}-mysql-en.php
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= udvzsolt@gmail.com
@ -20,6 +20,7 @@ USES= zip
NO_BUILD= yes
USE_PHP= mysql session
SUB_FILES= pkg-message
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
OPTIONS_SINGLE= VERSION
OPTIONS_SINGLE_VERSION= LITE FULL
@ -51,18 +52,11 @@ POSTFIX=${POSTFIX_MYSQL}${POSTFIX_NLS}
.endif
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
.if ${PORT_OPTIONS:MFULL}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
.else
${MKDIR} ${STAGEDIR}${WWWDIR}/${PORTNAME}
${CP} ${DISTDIR}/${ADMINER_FILE}${POSTFIX}.php ${STAGEDIR}${WWWDIR}/${PORTNAME}/index.php
${MKDIR} ${STAGEDIR}${WWWDIR}/${PORTNAME}
${CP} ${DISTDIR}/${ADMINER_FILE}${POSTFIX}.php ${STAGEDIR}${WWWDIR}/${PORTNAME}/index.php
.endif
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
>> ${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' \
>> ${TMPPLIST}
.include <bsd.port.mk>

View File

@ -1,3 +1,6 @@
@owner %%WWWOWN%%
@group %%WWWGRP%%
@mode 0755
%%FULL%%%%WWWDIR%%/adminer/call.inc.php
%%FULL%%%%WWWDIR%%/adminer/create.inc.php
%%FULL%%%%WWWDIR%%/adminer/database.inc.php
@ -228,3 +231,6 @@
%%FULL%%@dirrm %%WWWDIR%%/plugins
%%FULL%%@dirrm %%WWWDIR%%/tests
@dirrm %%WWWDIR%%
@owner root
@group wheel
@mode