1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

o Update to 7.4.8

o Do not overwrite existing files during installation
o Respect WWWDOCROOT

PR:		89190
Submitted by:	infofarmer@gmail.com (maintainer)
This commit is contained in:
Marcus Alves Grando 2005-11-17 18:02:39 +00:00
parent 9b1be7c2c9
commit 7ff50fde20
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148639
3 changed files with 16 additions and 15 deletions

View File

@ -7,8 +7,7 @@
#
PORTNAME= plans
PORTVERSION= 7.4.7
PORTREVISION= 1
PORTVERSION= 7.4.8
CATEGORIES= deskutils www
MASTER_SITES= http://www.planscalendar.com/release/:plans \
http://www.freebsd.org/gifs/:logo
@ -25,10 +24,13 @@ USE_PERL5_RUN= yes
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION}
DIR= www/data/plans
PLIST_SUB+= DIR=${DIR}
WWWDOCROOT?= www/data
PLANSSUBDIR?= plans
PLANSDIR?= ${WWWDOCROOT}/${PLANSSUBDIR}
PLIST_SUB+= DIR=${PLANSDIR}
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
DIR= ${PREFIX}/${PLANSDIR}
post-extract:
${CP} ${DISTDIR}/powerani.gif ${WRKSRC}/theme/graphics/freebsd.gif
@ -37,12 +39,12 @@ post-patch:
@${RM} -f ${WRKSRC}/theme/plans.template.orig
do-install:
@${MKDIR} ${PREFIX}/${DIR}
@${CP} -R ${WRKSRC}/* ${PREFIX}/${DIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DIR}
@${FIND} ${PREFIX}/${DIR} -type f -exec ${CHMOD} 644 {} \;
@${FIND} ${PREFIX}/${DIR} -name '*.cgi' -exec ${CHMOD} 755 {} \;
@${FIND} ${PREFIX}/${DIR} -name '*.xml' -exec ${CHMOD} 664 {} \;
@${INSTALL} -d ${DIR}
@${CP} -nR ${WRKSRC}/ ${DIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${DIR}
@${FIND} ${DIR} -type f -exec ${CHMOD} 644 {} \;
@${FIND} ${DIR} -name '*.cgi' -exec ${CHMOD} 755 {} \;
@${FIND} ${DIR} -name '*.xml' -exec ${CHMOD} 664 {} \;
post-install:
@${CAT} ${PKGMESSAGE}

View File

@ -1,6 +1,6 @@
MD5 (plans_7.4.7.zip) = 75e77cf0b50e378a9cadb0c39f703947
SHA256 (plans_7.4.7.zip) = 38bec8aa2c0d2a174717b423e94b7f7364b002316d6b310cefb526ff24530dbf
SIZE (plans_7.4.7.zip) = 585978
MD5 (plans_7.4.8.zip) = 46a1d95b6264247088f56b0faa86b020
SHA256 (plans_7.4.8.zip) = 6be1f2176a93cd76a7c75b4bf0a83bcd6ea1dac1c2b2512c722da8ac8feee94f
SIZE (plans_7.4.8.zip) = 587278
MD5 (powerani.gif) = b0f85a6c41817a2dcad0ffe6f0729fa8
SHA256 (powerani.gif) = d01c1c8299aa6c0eda0cd7c202bdf5a4ad49400377596fc2e114db6591c66d97
SIZE (powerani.gif) = 7203

View File

@ -323,10 +323,9 @@
%%DIR%%/theme/upcoming_events.css
%%DIR%%/theme/upcoming_events.js
%%DIR%%/us_english.pl
@dirrm %%DIR%%/theme/icons
@dirrm %%DIR%%/theme/graphics
@dirrm %%DIR%%/theme
@unexec rmdir %D/%%DIR%%/theme 2>/dev/null || true
@unexec rmdir %D/%%DIR%%/sessions 2>/dev/null || true
@unexec rmdir %D/%%DIR%%/data 2>/dev/null || true
@unexec rmdir %D/%%DIR%% 2>/dev/null || echo "Note: %D/%%DIR%% not empty -- not deleted!"