View | Details | Raw Unified | Return to bug 105053
Collapse All | Expand All

(-)webcalendar/Makefile (-12 / +18 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	WebCalendar
8
PORTNAME=	WebCalendar
9
DISTVERSION=	1.0.4
9
PORTVERSION=	1.0.4
10
PORTREVISION=	1
10
CATEGORIES=	www
11
CATEGORIES=	www
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	webcalendar
13
MASTER_SITE_SUBDIR=	webcalendar
Lines 19-29 Link Here
19
WANT_PHP_WEB=	yes
20
WANT_PHP_WEB=	yes
20
NO_BUILD=	yes
21
NO_BUILD=	yes
21
22
22
WRKSRC=		${WRKDIR}/WebCalendar-${DISTVERSION}
23
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
23
24
24
WEBWCDIR?=	www/data/WebCalendar
25
WCURL?=		${PORTNAME:L}
26
WCDIR?=		www/${WCURL}
25
PLIST=		${WRKDIR}/pkg-plist
27
PLIST=		${WRKDIR}/pkg-plist
26
28
29
SUB_FILES=	pkg-message
30
SUB_LIST=	WCURL=${WCURL} WCDIR=${WCDIR}
31
27
DOCSDIR?=	${PREFIX}/share/doc/${PORTNAME}
32
DOCSDIR?=	${PREFIX}/share/doc/${PORTNAME}
28
DOCS=		docs/README \
33
DOCS=		docs/README \
29
		docs/WebCalendar-Database.html \
34
		docs/WebCalendar-Database.html \
Lines 87-112 Link Here
87
92
88
pre-install:
93
pre-install:
89
	cd ${WRKSRC} && ${FIND} -s * -type f | \
94
	cd ${WRKSRC} && ${FIND} -s * -type f | \
90
		${SED} -e 's|^|${WEBWCDIR}/|' > ${PLIST} \
95
		${SED} -e 's|^|${WCDIR}/|' > ${PLIST} \
91
		&& ${FIND} -d * -type d | \
96
		&& ${FIND} -d * -type d | \
92
		${SED} -e 's|^|@dirrm ${WEBWCDIR}/|' >> ${PLIST} \
97
		${SED} -e 's|^|@dirrm ${WCDIR}/|' >> ${PLIST} \
93
		&& ${ECHO_CMD} @dirrm ${WEBWCDIR} >> ${PLIST}
98
		&& ${ECHO_CMD} @dirrm ${WCDIR} >> ${PLIST}
94
	@${CAT} pkg-plist >> ${PLIST}
99
	@${CAT} pkg-plist >> ${PLIST}
95
	@${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST}
100
	@${ECHO_CMD} @dirrmtry www/data-dist >> ${PLIST}
96
	@${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
101
	@${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
97
102
98
do-install:
103
do-install:
99
	@${MKDIR} ${PREFIX}/${WEBWCDIR}
104
	@${MKDIR} ${PREFIX}/${WCDIR}
100
	${CP} -R ${WRKSRC}/* ${PREFIX}/${WEBWCDIR}
105
	${CP} -R ${WRKSRC}/* ${PREFIX}/${WCDIR}
101
	${CHOWN} -R www:www ${PREFIX}/${WEBWCDIR}
106
	${CHOWN} -R www:www ${PREFIX}/${WCDIR}
102
	${FIND} ${PREFIX}/${WEBWCDIR} -type f | ${XARGS} ${CHMOD} 644
107
	${FIND} ${PREFIX}/${WCDIR} -type f | ${XARGS} ${CHMOD} 644
103
108
104
post-install:
109
post-install:
110
.if !defined(NOPORTDOCS)
105
	@${MKDIR} ${DOCSDIR}
111
	@${MKDIR} ${DOCSDIR}
106
.for i in ${DOCS}
112
.for i in ${DOCS}
107
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
113
	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
108
.endfor
114
.endfor
109
	@${CAT} ${PKGMESSAGE} | ${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
115
.endif
110
		-e 's|%%WEBWCDIR%%|${WEBWCDIR}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g'
116
	@${CAT} ${PKGMESSAGE}
111
117
112
.include <bsd.port.post.mk>
118
.include <bsd.port.post.mk>
(-)webcalendar/files/pkg-message.in (+18 lines)
Line 0 Link Here
1
*************************************************
2
Post-installation instructions:
3
4
First, Add the following line to your httpd.conf:
5
 
6
Alias /%%WCURL%%/ "%%PREFIX%%/%%WCDIR%%"
7
 
8
Next, to configure WebCalendar, please read
9
%%DOCSDIR%%/WebCalendar-SysAdmin.html
10
for information about creating the database, installing
11
the database tables and other post-installation tasks,
12
such as setting up email reminders.
13
14
Finally copy
15
%%PREFIX%%/%%WCDIR%%/includes/settings.php.orig to
16
%%PREFIX%%/%%WCDIR%%/includes/settings.php and edit it
17
for your installation.
18
*************************************************
(-)webcalendar/pkg-message (-13 lines)
Lines 1-13 Link Here
1
2
Post-installation instructions:
3
4
To configure WebCalendar, please read
5
%%DOCSDIR%%/WebCalendar-SysAdmin.html
6
for information about creating the database, installing
7
the database tables and other post-installation tasks,
8
such as setting up email reminders.
9
10
Then copy
11
%%PREFIX%%/%%WEBWCDIR%%/includes/settings.php.orig to
12
%%PREFIX%%/%%WEBWCDIR%%/includes/settings.php and edit it
13
for your installation.

Return to bug 105053