- Install in the correct directory (/usr/local/www/data -> /usr/local/www).
PR: ports/105053 Submitted by: Greg Larkin <glarkin@sourcehosting.net> (maintainer)
This commit is contained in:
parent
1f917e575e
commit
2a26c0c7b5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=176730
@ -6,7 +6,8 @@
|
||||
#
|
||||
|
||||
PORTNAME= WebCalendar
|
||||
DISTVERSION= 1.0.4
|
||||
PORTVERSION= 1.0.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= webcalendar
|
||||
@ -19,11 +20,15 @@ USE_PHP= pcre session
|
||||
WANT_PHP_WEB= yes
|
||||
NO_BUILD= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/WebCalendar-${DISTVERSION}
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
WEBWCDIR?= www/data/WebCalendar
|
||||
WCURL?= ${PORTNAME:L}
|
||||
WCDIR?= www/${WCURL}
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
SUB_LIST= WCURL=${WCURL} WCDIR=${WCDIR}
|
||||
|
||||
DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME}
|
||||
DOCS= docs/README \
|
||||
docs/WebCalendar-Database.html \
|
||||
@ -87,26 +92,27 @@ USE_PHP+= ldap
|
||||
|
||||
pre-install:
|
||||
cd ${WRKSRC} && ${FIND} -s * -type f | \
|
||||
${SED} -e 's|^|${WEBWCDIR}/|' > ${PLIST} \
|
||||
${SED} -e 's|^|${WCDIR}/|' > ${PLIST} \
|
||||
&& ${FIND} -d * -type d | \
|
||||
${SED} -e 's|^|@dirrm ${WEBWCDIR}/|' >> ${PLIST} \
|
||||
&& ${ECHO_CMD} @dirrm ${WEBWCDIR} >> ${PLIST}
|
||||
${SED} -e 's|^|@dirrm ${WCDIR}/|' >> ${PLIST} \
|
||||
&& ${ECHO_CMD} @dirrm ${WCDIR} >> ${PLIST}
|
||||
@${CAT} pkg-plist >> ${PLIST}
|
||||
@${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST}
|
||||
@${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/${WEBWCDIR}
|
||||
${CP} -R ${WRKSRC}/* ${PREFIX}/${WEBWCDIR}
|
||||
${CHOWN} -R www:www ${PREFIX}/${WEBWCDIR}
|
||||
${FIND} ${PREFIX}/${WEBWCDIR} -type f | ${XARGS} ${CHMOD} 644
|
||||
@${MKDIR} ${PREFIX}/${WCDIR}
|
||||
${CP} -R ${WRKSRC}/* ${PREFIX}/${WCDIR}
|
||||
${CHOWN} -R www:www ${PREFIX}/${WCDIR}
|
||||
${FIND} ${PREFIX}/${WCDIR} -type f | ${XARGS} ${CHMOD} 644
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for i in ${DOCS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
||||
.endfor
|
||||
@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
||||
-e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g'
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
18
www/webcalendar/files/pkg-message.in
Normal file
18
www/webcalendar/files/pkg-message.in
Normal file
@ -0,0 +1,18 @@
|
||||
*************************************************
|
||||
Post-installation instructions:
|
||||
|
||||
First, Add the following line to your httpd.conf:
|
||||
|
||||
Alias /%%WCURL%%/ "%%PREFIX%%/%%WCDIR%%"
|
||||
|
||||
Next, to configure WebCalendar, please read
|
||||
%%DOCSDIR%%/WebCalendar-SysAdmin.html
|
||||
for information about creating the database, installing
|
||||
the database tables and other post-installation tasks,
|
||||
such as setting up email reminders.
|
||||
|
||||
Finally copy
|
||||
%%PREFIX%%/%%WCDIR%%/includes/settings.php.orig to
|
||||
%%PREFIX%%/%%WCDIR%%/includes/settings.php and edit it
|
||||
for your installation.
|
||||
*************************************************
|
@ -1,13 +0,0 @@
|
||||
|
||||
Post-installation instructions:
|
||||
|
||||
To configure WebCalendar, please read
|
||||
%%DOCSDIR%%/WebCalendar-SysAdmin.html
|
||||
for information about creating the database, installing
|
||||
the database tables and other post-installation tasks,
|
||||
such as setting up email reminders.
|
||||
|
||||
Then copy
|
||||
%%PREFIX%%/%%WEBWCDIR%%/includes/settings.php.orig to
|
||||
%%PREFIX%%/%%WEBWCDIR%%/includes/settings.php and edit it
|
||||
for your installation.
|
Loading…
Reference in New Issue
Block a user