1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/www/eyeos/Makefile
Rong-En Fan d2dd660d53 - Update to 0.9.0.4
PR:		99872
Submitted by:	Nicola Vitale <nivit email.it> (maintainer)
Approved by:	delphij (mentor, implicit)
2006-07-08 05:01:57 +00:00

64 lines
1.9 KiB
Makefile

# New ports collection makefile for: eyeOS
# Date created: 2006-04-04
# Whom: Nicola Vitale <nivit@email.it>
#
# $FreeBSD$
#
PORTNAME= eyeOS
DISTVERSION= 0.9.0-4
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
MAINTAINER= nivit@email.it
COMMENT= Web Based Desktop System
NO_BUILD= yes
USE_PHP= pcre session
WRKSRC= ${WRKDIR}/${PORTNAME}
EYEDIR?= ${PREFIX}/www/${PORTNAME}
RWDIRS= etc home usr
RODIRS= apps login system
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
PLIST_SUB+= EYEDIR="${EYEDIR:S,^${PREFIX}/,,}"
SUB_LIST+= EYEDIR=${EYEDIR}
post-extract:
@${RM} -f ${WRKSRC}/DOCS/gpl-license.txt
do-install:
@${INSTALL} -d ${EYEDIR}
@${CP} -Rp ${WRKSRC}/[a-z]* ${EYEDIR}/
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${EYEDIR}/
@${CHMOD} 775 ${RWDIRS:S,^,${EYEDIR}/,}
${ECHO_CMD} @exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} %D/${EYEDIR:S,^${PREFIX}/,,}/ >> ${TMPPLIST}
${ECHO_CMD} @exec ${CHMOD} 775 ${RWDIRS:S,^,%D/${EYEDIR:S,^${PREFIX}/,,}/,} >> ${TMPPLIST}
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}
@${CP} -Rp ${WRKSRC}/DOCS/ ${DOCSDIR}/
@${CHMOD} -R ${SHAREMODE} ${DOCSDIR}/
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/
.endif
post-install:
@${CAT} ${PKGMESSAGE}
# Maintainer section
create-plist: build
${FIND} -s ${WRKSRC} -type f -or -type l | \
${SED} -e 's#^${WRKSRC}/DOCS#%%PORTDOCS%%%%DOCSDIR%%#' \
-e 's#^${WRKSRC}#%%EYEDIR%%#' > ${PLIST}
${FIND} -ds ${WRKSRC}/DOCS ${RODIRS:S,^,${WRKSRC}/,} -type d | \
${SED} -e 's#^${WRKSRC}/DOCS#%%PORTDOCS%%@dirrm %%DOCSDIR%%#' \
-e 's#^${WRKSRC}/system/themes$$#@dirrmtry %%EYEDIR%%/system/themes#' \
-e 's#^${WRKSRC}/system$$#@dirrmtry %%EYEDIR%%/system#' \
-e 's#^${WRKSRC}#@dirrm %%EYEDIR%%#' >> ${PLIST}
${FIND} -ds ${RWDIRS:S,^,${WRKSRC}/,} -type d | \
${SED} -e 's#^${WRKSRC}#@dirrmtry %%EYEDIR%%#' >> ${PLIST}
${ECHO_CMD} @dirrmtry %%EYEDIR%% >> ${PLIST}
.include <bsd.port.mk>