337c6b1297
all PEAR packages to php?-pear-* and all Apache packages to ap13-* or ap2-* respectively. Add new variables to simplify the Makefile handling. Add CONFLICTS on the old names. Reset revisions of bumped packages. ap-php will now depend on the default Apache and PHP version. All programs using it have an implicit option of the Apache version as well. OK from jlam@ and adrianp@.
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.19 2006/06/02 18:28:00 joerg Exp $
|
|
|
|
DISTNAME= apc_gui-1.0.3
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
|
PKGREVISION= 5
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://apc.neuropeans.com/download/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://apc.neuropeans.com/
|
|
COMMENT= Web interface for managing APC (php-apc)
|
|
|
|
PHP_VERSIONS_ACCEPTED= 4
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-apc>=1.1.0.1:../../www/php4-apc
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd-4.[0-9]*:../../graphics/php-gd
|
|
|
|
NO_BUILD= YES
|
|
|
|
PKG_SYSCONFSUBDIR?= httpd
|
|
APC_GUI_DIR= ${PREFIX}/share/apc-gui
|
|
EGDIR= ${PREFIX}/share/examples/apc-gui
|
|
PLIST_SUBST+= PKGBASE=${PKGBASE:Q}
|
|
MESSAGE_SUBST+= APC_GUI_DIR=${APC_GUI_DIR}
|
|
|
|
CONF_FILES= ${EGDIR}/apc_gui.conf ${PKG_SYSCONFDIR}/apc_gui.conf
|
|
CONF_FILES+= /dev/null ${APC_GUI_DIR}/apc_config_local.php
|
|
|
|
SUBST_CLASSES+= paths
|
|
SUBST_FILES.paths= ${WRKDIR}/apc_gui.conf.dist
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
SUBST_SED.paths+= -e 's,@APC_GUI_DIR@,${APC_GUI_DIR},g'
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/apc_gui.conf.dist ${WRKDIR}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${APC_GUI_DIR}
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_DATA} ${WRKDIR}/apc_gui.conf.dist ${EGDIR}/apc_gui.conf
|
|
${CP} -R ${WRKSRC}/* ${APC_GUI_DIR}
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${APC_GUI_DIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|