2002-06-23 12:01:25 +00:00
|
|
|
# Ports collection makefile for: Nic
|
|
|
|
# Date created: Sun Dec 30, 2001
|
|
|
|
# Whom: Thierry Thomas (<thierry@pompo.net>)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= nic
|
|
|
|
PORTVERSION= 0.0.2.011230
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 1
|
2002-06-23 12:01:25 +00:00
|
|
|
CATEGORIES= net www
|
|
|
|
MASTER_SITES= http://pompo.net/horde/nic/
|
|
|
|
|
2004-12-26 10:27:34 +00:00
|
|
|
MAINTAINER= thierry@FreeBSD.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= Nic is a set of small web-based network applications
|
2002-06-23 12:01:25 +00:00
|
|
|
|
2004-12-26 10:27:34 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/www/horde/index.php:${PORTSDIR}/www/horde
|
|
|
|
|
|
|
|
BROKEN= "Not compatible with Horde 3 - to be refreshed."
|
2002-06-23 12:01:25 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2002-06-30 16:45:40 +00:00
|
|
|
REINPLACE_ARGS= -i.beforeNic
|
2002-06-23 12:01:25 +00:00
|
|
|
DOCS= LICENSE README docs/CHANGES docs/CREDITS docs/INSTALL
|
|
|
|
CONFFILE= conf.php html.php menu.php
|
2002-06-30 16:45:40 +00:00
|
|
|
SUB_DIRS= config graphics lib templates
|
2002-06-23 12:01:25 +00:00
|
|
|
|
|
|
|
LHORDEDIR?= www/horde
|
|
|
|
LNICDIR?= ${LHORDEDIR}/nic
|
|
|
|
|
|
|
|
PLIST_SUB= HORDEDIR=${LHORDEDIR} NICDIR=${LNICDIR}
|
|
|
|
|
|
|
|
HORDEDIR= ${PREFIX}/${LHORDEDIR}
|
|
|
|
NICDIR= ${PREFIX}/${LNICDIR}
|
|
|
|
CONFDIR= ${NICDIR}/config
|
|
|
|
|
|
|
|
HORDE_INC= ${LOCALBASE}/etc/horde
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${NICDIR}
|
2002-06-30 16:45:40 +00:00
|
|
|
.for REP in ${SUB_DIRS}
|
|
|
|
@${CP} -Rp ${WRKSRC}/${REP} ${NICDIR}
|
|
|
|
.endfor
|
2002-06-23 12:01:25 +00:00
|
|
|
@${CP} -p ${WRKSRC}/*.php ${NICDIR}
|
|
|
|
.for FILE in ${CONFFILE}
|
|
|
|
@if [ ! -f ${CONFDIR}/${FILE} ]; then \
|
|
|
|
${CP} ${CONFDIR}/${FILE}.dist ${CONFDIR}/${FILE} ; \
|
|
|
|
fi
|
|
|
|
.endfor
|
|
|
|
@${CHOWN} -R www:www ${NICDIR}
|
|
|
|
@${CHMOD} -R o-rwx ${CONFDIR}
|
|
|
|
@${CP} -p ${FILESDIR}/httpd.conf.nic ${HORDE_INC}
|
|
|
|
@${REINPLACE_CMD} -e "s:/home/httpd/html/horde/nic:${NICDIR}:g" \
|
|
|
|
${HORDE_INC}/httpd.conf.nic
|
2002-06-30 16:45:40 +00:00
|
|
|
@${RM} ${HORDE_INC}/httpd.conf.nic.beforeNic
|
2002-06-23 12:01:25 +00:00
|
|
|
@${REINPLACE_CMD} -e "s://UNCOMMENTWHENINSTNIC::" \
|
|
|
|
${HORDEDIR}/config/registry.php
|
2002-06-30 16:45:40 +00:00
|
|
|
@${CP} -p ${HORDEDIR}/config/registry.php \
|
|
|
|
${HORDEDIR}/config/registry.php.afterNic
|
2002-06-23 12:01:25 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${CAT} ${PKGMESSAGE} | \
|
|
|
|
${SED} -e "s:%%NICDIR%%:${NICDIR}:g;s:%%CONFDIR%%:${CONFDIR}:g"
|
|
|
|
@${ECHO_MSG}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|