2002-03-13 18:36:35 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2002/03/13 17:37:50 fredb Exp $
|
2001-10-29 20:35:04 +01:00
|
|
|
|
|
|
|
DISTNAME= apc_gui-1.0.3
|
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2002-03-13 18:36:35 +01:00
|
|
|
PKGREVISION= 1
|
2001-10-29 20:35:04 +01:00
|
|
|
CATEGORIES= www
|
|
|
|
MASTER_SITES= http://apc.neuropeans.com/download/
|
|
|
|
|
|
|
|
MAINTAINER= jlam@netbsd.org
|
|
|
|
HOMEPAGE= http://apc.neuropeans.com/
|
|
|
|
COMMENT= web interface for managing APC (php-apc)
|
|
|
|
|
|
|
|
DEPENDS+= php-apc>=1.1.0.1:../../www/php4-apc
|
|
|
|
DEPENDS+= php-gd>=4.0.1:../../graphics/php4-gd
|
|
|
|
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
2001-11-25 19:59:45 +01:00
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
2001-10-29 20:35:04 +01:00
|
|
|
APC_GUI_DIR= ${PREFIX}/share/${PKGBASE}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
PLIST_SUBST+= PKGBASE=${PKGBASE}
|
|
|
|
MESSAGE_SUBST+= APC_GUI_DIR=${APC_GUI_DIR}
|
|
|
|
|
2001-11-25 19:59:45 +01:00
|
|
|
CONF_FILES= ${EGDIR}/apc_gui.conf ${PKG_SYSCONFDIR}/apc_gui.conf
|
2001-11-19 17:23:08 +01:00
|
|
|
CONF_FILES+= /dev/null ${APC_GUI_DIR}/apc_config_local.php
|
|
|
|
OWN_DIRS= ${APC_GUI_DIR}
|
2001-10-29 20:35:04 +01:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${SED} ${FILES_SUBST_SED} ${FILESDIR}/apc_gui.conf.dist \
|
|
|
|
> ${WRKDIR}/apc_gui.conf.dist
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${APC_GUI_DIR} ${EGDIR}
|
2001-11-19 17:23:08 +01:00
|
|
|
cd ${WRKDIR}; ${INSTALL_DATA} apc_gui.conf.dist \
|
2001-10-29 20:35:04 +01:00
|
|
|
${EGDIR}/apc_gui.conf
|
|
|
|
${CP} -R ${WRKSRC}/* ${APC_GUI_DIR}
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${APC_GUI_DIR}
|
|
|
|
${CHMOD} -R a-w ${APC_GUI_DIR}
|
|
|
|
|
2001-11-19 17:23:08 +01:00
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
2001-10-29 20:35:04 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|