Lines 7-15
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= WebCalendar |
8 |
PORTNAME= WebCalendar |
9 |
PORTVERSION= 1.0.5 |
9 |
PORTVERSION= 1.0.5 |
|
|
10 |
PORTREVISION= 1 |
10 |
CATEGORIES= www |
11 |
CATEGORIES= www |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= SF |
12 |
MASTER_SITE_SUBDIR= webcalendar |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME:L} |
13 |
DISTNAME= ${PORTNAME}-${PORTVERSION} |
14 |
DISTNAME= ${PORTNAME}-${PORTVERSION} |
14 |
|
15 |
|
15 |
MAINTAINER= glarkin@sourcehosting.net |
16 |
MAINTAINER= glarkin@sourcehosting.net |
Lines 18-40
Link Here
|
18 |
USE_PHP= pcre session |
19 |
USE_PHP= pcre session |
19 |
WANT_PHP_WEB= yes |
20 |
WANT_PHP_WEB= yes |
20 |
NO_BUILD= yes |
21 |
NO_BUILD= yes |
|
|
22 |
CONFLICTS= WebCalendar-devel-[0-9]* |
21 |
|
23 |
|
22 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
24 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
23 |
|
25 |
|
24 |
WCURL?= ${PORTNAME:L} |
26 |
WCURL?= ${MASTER_SITE_SUBDIR} |
25 |
WCDIR?= www/${WCURL} |
27 |
WCDIR?= www/${WCURL} |
26 |
PLIST= ${WRKDIR}/pkg-plist |
28 |
PLIST= ${WRKDIR}/pkg-plist |
27 |
|
29 |
|
28 |
SUB_FILES= pkg-message |
30 |
SUB_FILES= pkg-message |
29 |
SUB_LIST= WCURL=${WCURL} WCDIR=${WCDIR} |
31 |
SUB_LIST= WCURL=${WCURL} WCDIR=${WCDIR} |
30 |
|
32 |
|
31 |
DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME} |
33 |
DOCSDIR= ${PREFIX}/share/doc/${MASTER_SITE_SUBDIR} |
32 |
DOCS= docs/README \ |
34 |
PORTDOCS= README \ |
33 |
docs/WebCalendar-Database.html \ |
35 |
WebCalendar-Database.html \ |
34 |
docs/WebCalendar-DeveloperGuide.html \ |
36 |
WebCalendar-DeveloperGuide.html \ |
35 |
docs/WebCalendar-Styling.html \ |
37 |
WebCalendar-Styling.html \ |
36 |
docs/WebCalendar-SysAdmin.html \ |
38 |
WebCalendar-SysAdmin.html \ |
37 |
docs/newwin.gif |
39 |
newwin.gif |
38 |
|
40 |
|
39 |
OPTIONS= MYSQL "Use MySQL database backend (default)" On \ |
41 |
OPTIONS= MYSQL "Use MySQL database backend (default)" On \ |
40 |
PGSQL "Use PostgreSQL database backend" Off \ |
42 |
PGSQL "Use PostgreSQL database backend" Off \ |
Lines 92-113
Link Here
|
92 |
&& ${FIND} -d * -type d | \ |
94 |
&& ${FIND} -d * -type d | \ |
93 |
${SED} -e 's|^|@dirrm ${WCDIR}/|' >> ${PLIST} \ |
95 |
${SED} -e 's|^|@dirrm ${WCDIR}/|' >> ${PLIST} \ |
94 |
&& ${ECHO_CMD} @dirrm ${WCDIR} >> ${PLIST} |
96 |
&& ${ECHO_CMD} @dirrm ${WCDIR} >> ${PLIST} |
95 |
@${CAT} pkg-plist >> ${PLIST} |
|
|
96 |
@${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST} |
97 |
@${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST} |
97 |
@${ECHO_CMD} @dirrmtry www/data >> ${PLIST} |
98 |
@${ECHO_CMD} @dirrmtry www/data >> ${PLIST} |
98 |
|
99 |
|
99 |
do-install: |
100 |
do-install: |
100 |
@${MKDIR} ${PREFIX}/${WCDIR} |
101 |
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${PREFIX}/${WCDIR} |
101 |
${CP} -R ${WRKSRC}/* ${PREFIX}/${WCDIR} |
102 |
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WCDIR} |
102 |
${CHOWN} -R www:www ${PREFIX}/${WCDIR} |
103 |
@${FIND} ${PREFIX}/${WCDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644 |
103 |
${FIND} ${PREFIX}/${WCDIR} -type f | ${XARGS} ${CHMOD} 644 |
104 |
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} \ |
|
|
105 |
${WCDIR:S|^|%D/|}' >> ${TMPPLIST} |
104 |
|
106 |
|
105 |
post-install: |
107 |
post-install: |
106 |
.if !defined(NOPORTDOCS) |
108 |
.if !defined(NOPORTDOCS) |
107 |
@${MKDIR} ${DOCSDIR} |
109 |
@${MKDIR} ${DOCSDIR} |
108 |
.for i in ${DOCS} |
110 |
@cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} |
109 |
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
|
|
110 |
.endfor |
111 |
.endif |
111 |
.endif |
112 |
@${CAT} ${PKGMESSAGE} |
112 |
@${CAT} ${PKGMESSAGE} |
113 |
|
113 |
|