# Ports collection makefile for: nic # Date created: Fri Mar 16, 2007 # Whom: Beech Rintoul # # $FreeBSD$ # PORTNAME= nic DISTVERSION= 0.1.beta20070316 CATEGORIES= net-mgmt MASTER_SITES= CENKES http://freebsd.alaskaparadise.com/source/ PKGNAMEPREFIX= horde- MAINTAINER= beech@alaskaparadise.com COMMENT= Very basic network service monitor RUN_DEPENDS+= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde-base NO_BUILD= yes USE_APACHE= 1.3+ # needed to test APACHE_VERSION USE_GETTEXT= yes REINPLACE_ARGS= -i "" PORTDOCS= CHANGES CREDITS INSTALL TODO README CONFFILE= conf.xml .htaccess SUB_DIRS= config lib locale po scripts templates themes LHORDEDIR?= www/horde LNICDIR= ${LHORDEDIR}/nic PEARDIR?= ${LOCALBASE}/share/pear PLIST_SUB= NICDIR=${LNICDIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||} PKGMESSAGE= ${WRKDIR}/pkg-message PKGDEINSTALL= ${WRKDIR}/pkg-deinstall SUB_FILES= pkg-message pkg-install pkg-deinstall SUB_LIST= NICDIR=${NICDIR} PORTSDIR=${PORTSDIR} CONFDIR=${CONFDIR} NICDIR= ${PREFIX}/${LNICDIR} CONFDIR= ${NICDIR}/config HOSTNAME?= `/bin/hostname` SERVOS?= ${OPSYS}-${OSREL} PORTREV_H?= ${LOCALBASE}/include/c-client/portrevision.h .include .if ${APACHE_VERSION} >= 20 HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes/ .else HORDE_INC= ${LOCALBASE}/etc/horde/ .endif post-extract: @${MV} ${WRKSRC}/README ${WRKSRC}/docs/ pre-configure: @${REINPLACE_CMD} -e "s:/usr/local:${LOCALBASE}:" ${WRKSRC}/config/conf.xml @${SED} -e "s:/home/httpd/html/horde/nic:${NICDIR}:" \ ${FILESDIR}/httpd.conf.nic > ${WRKDIR}/httpd-nic.conf do-install: @${INSTALL} -d ${NICDIR}/ @${CP} -Rp ${SUB_DIRS:S|^|${WRKSRC}/|} ${NICDIR}/ @${CP} -p ${WRKSRC}/*.php ${NICDIR}/ @${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/ @${INSTALL_DATA} ${WRKDIR}/httpd-nic.conf ${HORDE_INC}/ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${NICDIR}/ @${CHMOD} -R o-rwx ${CONFDIR}/ .if !defined(NOPORTDOCS) @${INSTALL} -d ${DOCSDIR}/ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}/ @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." .endif post-install: @${SETENV} ${SCRIPTS_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${ECHO_MSG} @${CAT} ${PKGMESSAGE} @${ECHO_MSG} .include