Skip to content

Commit

Permalink
- Allow staging as a regular user
Browse files Browse the repository at this point in the history
- Bump portrevision as files were not packaged with intended ownership
  • Loading branch information
ant1 committed Sep 11, 2014
1 parent 8637a72 commit 30056fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions deskutils/phpicalendar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PORTNAME= phpicalendar
PORTVERSION= 2.24
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= deskutils www
MASTER_SITES= SF/${PORTNAME}/OldFiles

Expand All @@ -13,6 +13,7 @@ COMMENT= Webbased calendar with iCal support
USES= tar:tgz
NO_BUILD= yes
USE_PHP= session pcre
PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
SUB_FILES= pkg-message
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}

Expand All @@ -24,13 +25,10 @@ do-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
.for dir in admin calendars functions images includes languages rss templates
@${CP} -Rv ${WRKSRC}/${dir} ${STAGEDIR}${WWWDIR}
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/${dir}
.endfor
.for f in index.php TIMEZONES error.php day.php preferences.php print.php search.php week.php month.php year.php README COPYING AUTHORS
@${CP} -v ${WRKSRC}/${f} ${STAGEDIR}${WWWDIR}
${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/${f}
.endfor
@${CP} -v ${WRKSRC}/config.inc-dist.php ${STAGEDIR}${WWWDIR}/config.inc.php.sample
${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/config.inc.php.sample

.include <bsd.port.mk>
4 changes: 4 additions & 0 deletions deskutils/phpicalendar/pkg-plist
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@owner %%WWWOWN%%
@group %%WWWGRP%%
%%WWWDIR%%/AUTHORS
%%WWWDIR%%/COPYING
%%WWWDIR%%/README
Expand Down Expand Up @@ -393,3 +395,5 @@
@dirrm %%WWWDIR%%/calendars
@dirrm %%WWWDIR%%/admin
@dirrmtry %%WWWDIR%%
@owner root
@group wheel

0 comments on commit 30056fc

Please sign in to comment.