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

(-)plans/Makefile (-1 / +8 lines)
Lines 8-13 Link Here
8
8
9
PORTNAME=	plans
9
PORTNAME=	plans
10
PORTVERSION=	7.5.4
10
PORTVERSION=	7.5.4
11
PORTREVISION=	1
11
CATEGORIES=	deskutils www
12
CATEGORIES=	deskutils www
12
MASTER_SITES=	http://www.planscalendar.com/release/:plans \
13
MASTER_SITES=	http://www.planscalendar.com/release/:plans \
13
		http://www.planscalendar.com/addons/:addons \
14
		http://www.planscalendar.com/addons/:addons \
Lines 31-37 Link Here
31
32
32
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}
33
WRKSRC=		${WRKDIR}/${PORTNAME}_${PORTVERSION}
33
34
34
WWWDOCROOT?=	www/data
35
WWWDOCROOT?=	www
35
PLANSSUBDIR?=	plans
36
PLANSSUBDIR?=	plans
36
PLANSDIR?=	${WWWDOCROOT}/${PLANSSUBDIR}
37
PLANSDIR?=	${WWWDOCROOT}/${PLANSSUBDIR}
37
PLIST_SUB+=	DIR=${PLANSDIR}
38
PLIST_SUB+=	DIR=${PLANSDIR}
Lines 43-48 Link Here
43
post-extract:
44
post-extract:
44
	${CP} ${_DISTDIR}/powerani.gif ${WRKSRC}/theme/graphics/freebsd.gif
45
	${CP} ${_DISTDIR}/powerani.gif ${WRKSRC}/theme/graphics/freebsd.gif
45
	${CP} ${_DISTDIR}/*.pl ${WRKSRC}/
46
	${CP} ${_DISTDIR}/*.pl ${WRKSRC}/
47
	for i in ${WRKSRC}/data/*xml ${WRKSRC}/*config.pl; \
48
		do ${MV} $$i $$i.default; done
49
	cd ${WRKSRC} && \
50
	${SED} -e 's/iso-8859-1/utf-8/' us_english.pl > us_english_utf8.pl
46
51
47
post-patch:
52
post-patch:
48
	@${RM} -f ${WRKSRC}/theme/plans.template.orig
53
	@${RM} -f ${WRKSRC}/theme/plans.template.orig
Lines 56-61 Link Here
56
	@${FIND} ${DIR} -name '*.xml' -exec ${CHMOD} 664 {} \;
61
	@${FIND} ${DIR} -name '*.xml' -exec ${CHMOD} 664 {} \;
57
62
58
post-install:
63
post-install:
64
	for i in ${DIR}/data/*default ${DIR}/*default; \
65
		do cp -np $$i $${i%.default}; done;
59
	@${CAT} ${PKGMESSAGE}
66
	@${CAT} ${PKGMESSAGE}
60
67
61
.include <bsd.port.mk>
68
.include <bsd.port.mk>
(-)plans/files/pkg-message.in (-4 / +6 lines)
Lines 1-4 Link Here
1
Plans is now available via http://localhost/plans/
1
===========================================================
2
Please make sure that your webserver is configured to accept
2
Plans is now installed at %%DIR%%
3
CGI scripts in %%DIR%%
3
You'll need to configure your server to accept CGI scripts
4
Plans can be configured by editing %%DIR%%/plans_config.pl
4
in the directory. Plans can be configured by editing
5
%%DIR%%/plans_config.pl
6
===========================================================
(-)plans/pkg-plist (-7 / +22 lines)
Lines 1-13 Link Here
1
%%DIR%%/data/calendars.xml
1
@unexec if cmp -s %D/%%DIR%%/data/calendars.xml.default %D/%%DIR%%/data/calendars.xml; then rm -f %D/%%DIR%%/data/calendars.xml; fi
2
%%DIR%%/data/email_reminders.xml
2
%%DIR%%/data/calendars.xml.default
3
%%DIR%%/data/events.xml
3
@exec   if [ ! -f %D/%%DIR%%/data/calendars.xml ] ; then cp -p %D/%F %B/calendars.xml; fi
4
%%DIR%%/data/new_calendars.xml
4
@unexec if cmp -s %D/%%DIR%%/data/email_reminders.xml.default %D/%%DIR%%/data/email_reminders.xml; then rm -f %D/%%DIR%%/data/email_reminders.xml; fi
5
%%DIR%%/data/pending_actions.xml
5
%%DIR%%/data/email_reminders.xml.default
6
%%DIR%%/data/users.xml
6
@exec   if [ ! -f %D/%%DIR%%/data/email_reminders.xml ] ; then cp -p %D/%F %B/email_reminders.xml; fi
7
@unexec if cmp -s %D/%%DIR%%/data/events.xml.default %D/%%DIR%%/data/events.xml; then rm -f %D/%%DIR%%/data/events.xml; fi
8
%%DIR%%/data/events.xml.default
9
@exec   if [ ! -f %D/%%DIR%%/data/events.xml ] ; then cp -p %D/%F %B/events.xml; fi
10
@unexec if cmp -s %D/%%DIR%%/data/new_calendars.xml.default %D/%%DIR%%/data/new_calendars.xml; then rm -f %D/%%DIR%%/data/new_calendars.xml; fi
11
%%DIR%%/data/new_calendars.xml.default
12
@exec   if [ ! -f %D/%%DIR%%/data/new_calendars.xml ] ; then cp -p %D/%F %B/new_calendars.xml; fi
13
@unexec if cmp -s %D/%%DIR%%/data/pending_actions.xml.default %D/%%DIR%%/data/pending_actions.xml; then rm -f %D/%%DIR%%/data/pending_actions.xml; fi
14
%%DIR%%/data/pending_actions.xml.default
15
@exec   if [ ! -f %D/%%DIR%%/data/pending_actions.xml ] ; then cp -p %D/%F %B/pending_actions.xml; fi
16
@unexec if cmp -s %D/%%DIR%%/data/users.xml.default %D/%%DIR%%/data/users.xml; then rm -f %D/%%DIR%%/data/users.xml; fi
17
%%DIR%%/data/users.xml.default
18
@exec   if [ ! -f %D/%%DIR%%/data/users.xml ] ; then cp -p %D/%F %B/users.xml; fi
19
@unexec if cmp -s %D/%%DIR%%/plans_config.pl.default %D/%%DIR%%/plans_config.pl; then rm -f %D/%%DIR%%/plans_config.pl; fi
20
%%DIR%%/plans_config.pl.default
21
@exec   if [ ! -f %D/%%DIR%%/plans_config.pl ] ; then cp -p %D/%F %B/plans_config.pl; fi
7
%%DIR%%/email_reminders.cgi
22
%%DIR%%/email_reminders.cgi
8
%%DIR%%/gpl.txt
23
%%DIR%%/gpl.txt
9
%%DIR%%/plans.cgi
24
%%DIR%%/plans.cgi
10
%%DIR%%/plans_config.pl
11
%%DIR%%/plans_lib.pl
25
%%DIR%%/plans_lib.pl
12
%%DIR%%/theme/color_select.css
26
%%DIR%%/theme/color_select.css
13
%%DIR%%/theme/color_select.js
27
%%DIR%%/theme/color_select.js
Lines 323-328 Link Here
323
%%DIR%%/theme/upcoming_events.css
337
%%DIR%%/theme/upcoming_events.css
324
%%DIR%%/theme/upcoming_events.js
338
%%DIR%%/theme/upcoming_events.js
325
%%DIR%%/us_english.pl
339
%%DIR%%/us_english.pl
340
%%DIR%%/us_english_utf8.pl
326
%%DIR%%/danish.pl
341
%%DIR%%/danish.pl
327
%%DIR%%/de_german.pl
342
%%DIR%%/de_german.pl
328
%%DIR%%/fr_french.pl
343
%%DIR%%/fr_french.pl

Return to bug 92280