diff options
author | jlam <jlam> | 2001-10-29 19:35:04 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-10-29 19:35:04 +0000 |
commit | cbc1a6c7369d91362284d2d848e79da27b81c191 (patch) | |
tree | 881ae308448337ce4b7e5e1ebd620c11b37dfd14 /www/apc-gui | |
parent | 2c1f845d35784e15b8d814fcc867c697d05fabc1 (diff) | |
download | pkgsrc-cbc1a6c7369d91362284d2d848e79da27b81c191.tar.gz |
www/apc-gui - web interface for managing APC (php-apc)
APC GUI is an add on for APC to provide a comprehensive, easy to use and, of
course, good-looking web-based GUI. APC GUI not only gives access to
statistical parameters of APC, it also makes it easier to administer
web-servers running APC by providing comfortable features for restarting the
cache and deleting scripts from the cache.
Diffstat (limited to 'www/apc-gui')
-rw-r--r-- | www/apc-gui/Makefile | 65 | ||||
-rw-r--r-- | www/apc-gui/distinfo | 4 | ||||
-rw-r--r-- | www/apc-gui/files/apc_gui.conf.dist | 14 | ||||
-rw-r--r-- | www/apc-gui/pkg/DEINSTALL | 103 | ||||
-rw-r--r-- | www/apc-gui/pkg/DESCR | 5 | ||||
-rw-r--r-- | www/apc-gui/pkg/INSTALL | 63 | ||||
-rw-r--r-- | www/apc-gui/pkg/MESSAGE | 20 | ||||
-rw-r--r-- | www/apc-gui/pkg/PLIST | 71 |
8 files changed, 345 insertions, 0 deletions
diff --git a/www/apc-gui/Makefile b/www/apc-gui/Makefile new file mode 100644 index 00000000000..70b7edc7349 --- /dev/null +++ b/www/apc-gui/Makefile @@ -0,0 +1,65 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/10/29 19:35:04 jlam Exp $ + +DISTNAME= apc_gui-1.0.3 +PKGNAME= ${DISTNAME:S/_/-/} +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 + +APACHE_SYSCONFDIR?= ${LOCALBASE}/etc/httpd +BUILD_DEFS+= APACHE_SYSCONFDIR +MESSAGE_SUBST+= APACHE_SYSCONFDIR=${APACHE_SYSCONFDIR} + +APC_GUI_DIR= ${PREFIX}/share/${PKGBASE} +EGDIR= ${PREFIX}/share/examples/${PKGBASE} +PLIST_SUBST+= PKGBASE=${PKGBASE} +MESSAGE_SUBST+= APC_GUI_DIR=${APC_GUI_DIR} + +PLIST_SUBST+= PKGBASE=${PKGBASE} + +DEINSTALL_FILE= ${WRKDIR}/DEINSTALL +INSTALL_FILE= ${WRKDIR}/INSTALL + +FILES_SUBST= APC_GUI_DIR=${APC_GUI_DIR:S/^${PREFIX}\///} +FILES_SUBST+= APACHE_SYSCONFDIR=${APACHE_SYSCONFDIR} +FILES_SUBST+= PREFIX=${PREFIX} +FILES_SUBST+= PKGBASE=${PKGBASE} +FILES_SUBST+= CAT=${CAT:Q} +FILES_SUBST+= CHMOD=${CHMOD:Q} +FILES_SUBST+= CMP=${CMP:Q} +FILES_SUBST+= CP=${CP:Q} +FILES_SUBST+= ECHO=${ECHO:Q} +FILES_SUBST+= MKDIR=${MKDIR:Q} +FILES_SUBST+= RM=${RM:Q} +FILES_SUBST+= RMDIR=${RMDIR:Q} +FILES_SUBST+= TR=${TR:Q} +FILES_SUBST+= TRUE=${TRUE:Q} +FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/} + +pre-install: + ${SED} ${FILES_SUBST_SED} ${FILESDIR}/apc_gui.conf.dist \ + > ${WRKDIR}/apc_gui.conf.dist + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE} + ${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE} + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL + +do-install: + ${INSTALL_DATA_DIR} ${APC_GUI_DIR} ${EGDIR} + cd ${WRKDIR}; ${INSTALL_DATA} apc_gui.conf.dist \ + ${EGDIR}/apc_gui.conf + ${CP} -R ${WRKSRC}/* ${APC_GUI_DIR} + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${APC_GUI_DIR} + ${CHMOD} -R a-w ${APC_GUI_DIR} + +post-install: + PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + +.include "../../mk/bsd.pkg.mk" diff --git a/www/apc-gui/distinfo b/www/apc-gui/distinfo new file mode 100644 index 00000000000..7fa9f26ce78 --- /dev/null +++ b/www/apc-gui/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/10/29 19:35:04 jlam Exp $ + +SHA1 (apc_gui-1.0.3.tar.gz) = 45f1697d0fa8d473be53b9e711eb3cee933d43df +Size (apc_gui-1.0.3.tar.gz) = 56066 bytes diff --git a/www/apc-gui/files/apc_gui.conf.dist b/www/apc-gui/files/apc_gui.conf.dist new file mode 100644 index 00000000000..653cbc695e8 --- /dev/null +++ b/www/apc-gui/files/apc_gui.conf.dist @@ -0,0 +1,14 @@ +# $NetBSD: apc_gui.conf.dist,v 1.1.1.1 2001/10/29 19:35:05 jlam Exp $ +# +# APC-GUI configuration file fragment for Apache + +<IfModule mod_alias.c> + Alias /apc_gui/ "@PREFIX@/@APC_GUI_DIR@/" +</IfModule> + +<Directory "@PREFIX@/@APC_GUI_DIR@"> + Options Indexes MultiViews + AllowOverride None + Order allow,deny + Allow from all +</Directory> diff --git a/www/apc-gui/pkg/DEINSTALL b/www/apc-gui/pkg/DEINSTALL new file mode 100644 index 00000000000..09b46222cf0 --- /dev/null +++ b/www/apc-gui/pkg/DEINSTALL @@ -0,0 +1,103 @@ +#!/bin/sh +# +# $NetBSD: DEINSTALL,v 1.1.1.1 2001/10/29 19:35:05 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CMP="@CMP@" +ECHO="@ECHO@" +RM="@RM@" +RMDIR="@RMDIR@" +TR="@TR@" +TRUE="@TRUE@" + +APACHE_SYSCONFDIR=@APACHE_SYSCONFDIR@ +APC_GUI_DIR=${PKG_PREFIX}/@APC_GUI_DIR@ +SAMPLECONFDIR=${PKG_PREFIX}/share/examples/@PKGBASE@ + +CONFFILES=" \ + ${SAMPLECONFDIR}/apc_gui.conf ${APACHE_SYSCONFDIR}/apc_gui.conf : \ + /dev/null ${APC_GUI_DIR}/apc_config_local.php \ + " + +case ${STAGE} in +DEINSTALL) + # Remove configuration files if they don't differ from the default + # config file. + # + ${ECHO} ${CONFFILES} | ${TR} ":" "\012" | while read SAMPLEFILE FILE + do + ${ECHO} "|${SAMPLEFILE}|${FILE}|" + if ${CMP} -s ${FILE} ${SAMPLEFILE} + then + ${RM} -f ${FILE} + fi + done + ;; + +POST-DEINSTALL) + modified_files='' + for FILE in ${CONFFILES} + do + if [ -f ${FILE} ] + then + modified_files="${modified_files} ${FILE}" + fi + done + + ${RMDIR} ${APC_GUI_DIR} 2>/dev/null || ${TRUE} + ${RMDIR} ${APACHE_SYSCONFDIR} 2>/dev/null || ${TRUE} + + existing_dirs='' + for dir in ${APC_GUI_DIR} ${APACHE_SYSCONFDIR} + do + if [ -d ${dir} ] + then + existing_dirs="${existing_dirs} ${dir}" + fi + done + + if [ -n "${modified_files}" -o -n "${existing_dirs}" ] + then + ${CAT} << EOF +=========================================================================== +If you won't be using ${PKGNAME} any longer, you may want to remove: +EOF + if [ -n "${modified_files}" ] + then + ${CAT} << EOF + + * the following files: + +EOF + for file in ${modified_files} + do + ${ECHO} " ${file}" + done + fi + if [ -n "${existing_dirs}" ] + then + ${CAT} << EOF + + * the following directories: + +EOF + for dir in ${existing_dirs} + do + ${ECHO} " ${dir}" + done + fi + ${CAT} << EOF +=========================================================================== +EOF + fi + ;; + +*) + ${ECHO} "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/www/apc-gui/pkg/DESCR b/www/apc-gui/pkg/DESCR new file mode 100644 index 00000000000..32bfac6db87 --- /dev/null +++ b/www/apc-gui/pkg/DESCR @@ -0,0 +1,5 @@ +APC GUI is an add on for APC to provide a comprehensive, easy to use and, of +course, good-looking web-based GUI. APC GUI not only gives access to +statistical parameters of APC, it also makes it easier to administer +web-servers running APC by providing comfortable features for restarting the +cache and deleting scripts from the cache. diff --git a/www/apc-gui/pkg/INSTALL b/www/apc-gui/pkg/INSTALL new file mode 100644 index 00000000000..f139c1c989a --- /dev/null +++ b/www/apc-gui/pkg/INSTALL @@ -0,0 +1,63 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/10/29 19:35:05 jlam Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CP="@CP@" +ECHO="@ECHO@" +MKDIR="@MKDIR@" +TR="@TR@" + +APACHE_SYSCONFDIR=@APACHE_SYSCONFDIR@ +APC_GUI_DIR=${PKG_PREFIX}/@APC_GUI_DIR@ +SAMPLECONFDIR=${PKG_PREFIX}/share/examples/@PKGBASE@ + +CONFFILES=" \ + ${SAMPLECONFDIR}/apc_gui.conf ${APACHE_SYSCONFDIR}/apc_gui.conf : \ + /dev/null ${APC_GUI_DIR}/apc_config_local.php \ + " + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + ${MKDIR} ${APACHE_SYSCONFDIR} + + ${ECHO} "Installing configuration files:" + ${ECHO} ${CONFFILES} | ${TR} ":" "\012" | while read SAMPLEFILE FILE + do + if [ -f ${FILE} ] + then + ${ECHO} " ${FILE} already exists" + else + ${ECHO} " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 664 ${FILE} + fi + done + ${CAT} << EOF + +=========================================================================== +You may wish to customize the following files: + +EOF + ${ECHO} ${CONFFILES} | ${TR} ":" "\012" | while read SAMPLEFILE FILE + do + ${ECHO} " ${FILE}" + done + ${CAT} << EOF +=========================================================================== +EOF + ;; + +*) + ${ECHO} "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 diff --git a/www/apc-gui/pkg/MESSAGE b/www/apc-gui/pkg/MESSAGE new file mode 100644 index 00000000000..6aa1c36759b --- /dev/null +++ b/www/apc-gui/pkg/MESSAGE @@ -0,0 +1,20 @@ +========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2001/10/29 19:35:05 jlam Exp $ + +You will need to make APC GUI accessible through your HTTP server. +If you are running Apache and ap-php, then you may either symlink + + ${APC_GUI_DIR} + +into DocumentRoot, or add the following line to httpd.conf: + + Include ${APACHE_SYSCONFDIR}/apc_gui.conf + +to make the APC web interface accessible through: + + http://www.domain.com/apc_gui/ + +You will need to protect your APC GUI directory with an authentication +method, such as .htaccess, to prevent general control access to the PHP +cache. +========================================================================== diff --git a/www/apc-gui/pkg/PLIST b/www/apc-gui/pkg/PLIST new file mode 100644 index 00000000000..302568375b4 --- /dev/null +++ b/www/apc-gui/pkg/PLIST @@ -0,0 +1,71 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/29 19:35:05 jlam Exp $ +share/${PKGBASE}/CHANGES +share/${PKGBASE}/CREDITS +share/${PKGBASE}/INSTALL +share/${PKGBASE}/LICENSE +share/${PKGBASE}/apc_cache_info.php +share/${PKGBASE}/apc_functions.php +share/${PKGBASE}/chart.php +share/${PKGBASE}/config.php +share/${PKGBASE}/download.php +share/${PKGBASE}/empty.php +share/${PKGBASE}/faq.php +share/${PKGBASE}/functions.php +share/${PKGBASE}/hosts.php +share/${PKGBASE}/index.php +share/${PKGBASE}/main.php +share/${PKGBASE}/navi.php +share/${PKGBASE}/pics/b_del_marked.gif +share/${PKGBASE}/pics/b_del_this.gif +share/${PKGBASE}/pics/b_go.gif +share/${PKGBASE}/pics/b_refresh_data.gif +share/${PKGBASE}/pics/b_restart.gif +share/${PKGBASE}/pics/b_scripts_fth.gif +share/${PKGBASE}/pics/b_view_h_stats.gif +share/${PKGBASE}/pics/balken.gif +share/${PKGBASE}/pics/balken.png +share/${PKGBASE}/pics/btm_greystrip.gif +share/${PKGBASE}/pics/diagramm_tit.gif +share/${PKGBASE}/pics/download.gif +share/${PKGBASE}/pics/download_off.gif +share/${PKGBASE}/pics/faq.gif +share/${PKGBASE}/pics/faq_off.gif +share/${PKGBASE}/pics/header_00.gif +share/${PKGBASE}/pics/hits2.gif +share/${PKGBASE}/pics/hosts.gif +share/${PKGBASE}/pics/kuchen_hg.gif +share/${PKGBASE}/pics/kuchen_hg.png +share/${PKGBASE}/pics/last_access.gif +share/${PKGBASE}/pics/last_modified.gif +share/${PKGBASE}/pics/orange_space.gif +share/${PKGBASE}/pics/runtimeset_titel.gif +share/${PKGBASE}/pics/scriptname.gif +share/${PKGBASE}/pics/scripts.gif +share/${PKGBASE}/pics/shim.gif +share/${PKGBASE}/pics/size.gif +share/${PKGBASE}/pics/table_l_roundgrey.gif +share/${PKGBASE}/pics/table_r_roundgrey.gif +share/${PKGBASE}/pics/table_tit_cacheinfo.gif +share/${PKGBASE}/pics/table_tit_classes.gif +share/${PKGBASE}/pics/table_tit_functions.gif +share/${PKGBASE}/pics/table_tit_genericinfos.gif +share/${PKGBASE}/pics/table_tit_hitrate.gif +share/${PKGBASE}/pics/table_tit_hits.gif +share/${PKGBASE}/pics/table_tit_hits2.gif +share/${PKGBASE}/pics/table_tit_hosts.gif +share/${PKGBASE}/pics/table_tit_line.gif +share/${PKGBASE}/pics/table_tit_memfree.gif +share/${PKGBASE}/pics/table_tit_memtotal.gif +share/${PKGBASE}/pics/table_tit_memused.gif +share/${PKGBASE}/pics/table_tit_misses.gif +share/${PKGBASE}/pics/table_tit_opcodes.gif +share/${PKGBASE}/pics/table_tit_prim_opkot.gif +share/${PKGBASE}/pics/table_tit_sec_opkot.gif +share/${PKGBASE}/pics/table_tit_status.gif +share/${PKGBASE}/pics/table_tit_version.gif +share/${PKGBASE}/pics/ttl.gif +share/${PKGBASE}/scripts.php +share/${PKGBASE}/top.php +share/examples/${PKGBASE}/apc_gui.conf +@dirrm share/examples/${PKGBASE} +@dirrm share/${PKGBASE}/pics |