mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
f148cdb4ad
Update port to version 1.0.2 to track official release (security fixes) PR: ports/90663 Submitted by: Greg Larkin <glarkin@sourcehosting.net> Security: http://www.ush.it/2005/11/28/webcalendar-multiple-vulnerabilities/
55 lines
1.4 KiB
Makefile
55 lines
1.4 KiB
Makefile
# New ports collection makefile for: WebCalendar
|
|
# Date created: 21 June 2005
|
|
# Whom: glarkin
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= WebCalendar
|
|
DISTVERSION= 1.0.2
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= webcalendar
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= glarkin@sourcehosting.net
|
|
COMMENT= A web-based calendar application
|
|
|
|
USE_PHP= yes
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/WebCalendar-${DISTVERSION}
|
|
|
|
WEBWCDIR?= www/data/WebCalendar
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
DOCSDIR?= ${PREFIX}/share/doc/${PORTNAME}
|
|
DOCS= docs/README \
|
|
docs/WebCalendar-Database.html \
|
|
docs/WebCalendar-DeveloperGuide.html \
|
|
docs/WebCalendar-Styling.html \
|
|
docs/WebCalendar-SysAdmin.html \
|
|
docs/newwin.gif
|
|
|
|
pre-install:
|
|
cd ${WRKSRC} && ${FIND} -s * -type f | \
|
|
${SED} -e 's|^|${WEBWCDIR}/|' > ${PLIST} \
|
|
&& ${FIND} -d * -type d | \
|
|
${SED} -e 's|^|@dirrm ${WEBWCDIR}/|' >> ${PLIST} \
|
|
&& ${ECHO_CMD} @dirrm ${WEBWCDIR} >> ${PLIST}
|
|
${CAT} pkg-plist >> ${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
|
|
|
|
post-install:
|
|
${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'
|
|
|
|
.include <bsd.port.mk>
|