diff options
author | Andrew Pantyukhin <sat@FreeBSD.org> | 2006-05-10 18:48:39 +0000 |
---|---|---|
committer | Andrew Pantyukhin <sat@FreeBSD.org> | 2006-05-10 18:48:39 +0000 |
commit | bf23ffbcb02e16e8afdfded232b5a388260db59c (patch) | |
tree | 828170eb83e8d8446a3d6c7a44fe7a584344db6a /www/eyeos/Makefile | |
parent | 2e84f9cc1f98493872be8e362570956bb8fd02f8 (diff) | |
download | ports-bf23ffbcb02e16e8afdfded232b5a388260db59c.tar.gz ports-bf23ffbcb02e16e8afdfded232b5a388260db59c.zip |
Notes
Diffstat (limited to 'www/eyeos/Makefile')
-rw-r--r-- | www/eyeos/Makefile | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/www/eyeos/Makefile b/www/eyeos/Makefile new file mode 100644 index 000000000000..ad2e0e84b07c --- /dev/null +++ b/www/eyeos/Makefile @@ -0,0 +1,58 @@ +# New ports collection makefile for: eyeOS +# Date created: 2006-04-04 +# Whom: Nicola Vitale <nivit@email.it> +# +# $FreeBSD$ +# + +PORTNAME= eyeOS +DISTVERSION= 0.8.15r1 +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 system +SUB_FILES= pkg-message +PKGMESSAGE= ${WRKDIR}/pkg-message +PLIST_SUB+= EYEDIR="${EYEDIR:S,^${PREFIX}/,,}" +SUB_LIST+= EYEDIR=${EYEDIR} + +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: + ${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}#@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> |