diff options
author | antoine <antoine@FreeBSD.org> | 2014-09-07 19:01:53 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-09-07 19:01:53 +0800 |
commit | 1ed9f8a802f32b1143892c27e27b9757ea174232 (patch) | |
tree | a4388c19bcf6501fcf6e7753ffc2c09c7a9f1cde /databases/adminer | |
parent | 5a4e31270fed0463cb0cc0b6db6caf5775bfd6d4 (diff) | |
download | freebsd-ports-gnome-1ed9f8a802f32b1143892c27e27b9757ea174232.tar.gz freebsd-ports-gnome-1ed9f8a802f32b1143892c27e27b9757ea174232.tar.zst freebsd-ports-gnome-1ed9f8a802f32b1143892c27e27b9757ea174232.zip |
Allow staging as a regular user
Diffstat (limited to 'databases/adminer')
-rw-r--r-- | databases/adminer/Makefile | 18 | ||||
-rw-r--r-- | databases/adminer/pkg-plist | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/databases/adminer/Makefile b/databases/adminer/Makefile index 197c55cd65bc..e7043939aa07 100644 --- a/databases/adminer/Makefile +++ b/databases/adminer/Makefile @@ -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> diff --git a/databases/adminer/pkg-plist b/databases/adminer/pkg-plist index b0fd74945347..c2b07f358e69 100644 --- a/databases/adminer/pkg-plist +++ b/databases/adminer/pkg-plist @@ -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 |