aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-04-09 07:42:31 +0800
committersat <sat@FreeBSD.org>2007-04-09 07:42:31 +0800
commit153839556c8359505626ebf9fa43a822f58538cb (patch)
tree0038e7953b20ecbd9b952548fa8201afc304b6b3 /net-mgmt
parent02e68c72eded6d44dcbabbd87a4c49e57555f0a5 (diff)
downloadfreebsd-ports-gnome-153839556c8359505626ebf9fa43a822f58538cb.tar.gz
freebsd-ports-gnome-153839556c8359505626ebf9fa43a822f58538cb.tar.zst
freebsd-ports-gnome-153839556c8359505626ebf9fa43a822f58538cb.zip
- Introduce bsd.horde.mk
- Convert most horde ports - Tested vigorously, but hastily Prodded by: pointyhats via kris Approved by: Beech Rintoul <beech@alaskaparadise.com> (maintainer)
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/horde-nic/Makefile67
-rw-r--r--net-mgmt/horde-nic/files/httpd.conf.nic31
-rw-r--r--net-mgmt/horde-nic/files/pkg-deinstall.in24
-rw-r--r--net-mgmt/horde-nic/files/pkg-install.in24
-rw-r--r--net-mgmt/horde-nic/files/pkg-message.in11
-rw-r--r--net-mgmt/horde-nic/pkg-plist172
6 files changed, 90 insertions, 239 deletions
diff --git a/net-mgmt/horde-nic/Makefile b/net-mgmt/horde-nic/Makefile
index daef49645ce8..33dc5d8e49f4 100644
--- a/net-mgmt/horde-nic/Makefile
+++ b/net-mgmt/horde-nic/Makefile
@@ -6,6 +6,7 @@
#
PORTNAME= nic
+DISTVERSIONPREFIX=
DISTVERSION= 0.1.beta20070316
CATEGORIES= net-mgmt
MASTER_SITES= CENKES http://freebsd.alaskaparadise.com/source/
@@ -14,69 +15,9 @@ 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_HORDE= base pkg-message
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 <bsd.port.pre.mk>
-
-.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 <bsd.port.post.mk>
+.include "${.CURDIR}/../../www/horde-base/bsd.horde.mk"
+.include <bsd.port.mk>
diff --git a/net-mgmt/horde-nic/files/httpd.conf.nic b/net-mgmt/horde-nic/files/httpd.conf.nic
deleted file mode 100644
index 29a493425a83..000000000000
--- a/net-mgmt/horde-nic/files/httpd.conf.nic
+++ /dev/null
@@ -1,31 +0,0 @@
-# This is included in Apache's httpd.conf for nic
-#
-# For security, don't serve pages from the nic configuration and
-# library directories.
-#
-<Directory "/home/httpd/html/horde/nic/config">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/nic/lib">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/nic/locale">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/nic/po">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/nic/scripts">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/nic/templates">
- order deny,allow
- deny from all
-</Directory>
-# End of nic configuration ================
-
diff --git a/net-mgmt/horde-nic/files/pkg-deinstall.in b/net-mgmt/horde-nic/files/pkg-deinstall.in
deleted file mode 100644
index 1ec68c56a52f..000000000000
--- a/net-mgmt/horde-nic/files/pkg-deinstall.in
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# Backup trean config files, if needed.
-
-if [ x$2 != xDEINSTALL ]; then
- exit
-fi
-
-if [ -z "${PACKAGE_BUILDING}" ]; then
- for cf in `ls %%NICDIR%%/config/*php`; do
- diff -bBqw $cf $cf.dist >/dev/null 2>&1
- case $? in
- 0) # original config file, delete it
- rm -f $cf
- ;;
- 1) # config file has been updated, leave it alone
- ;;
- *) # not found?
- ;;
- esac
- done
-fi
diff --git a/net-mgmt/horde-nic/files/pkg-install.in b/net-mgmt/horde-nic/files/pkg-install.in
deleted file mode 100644
index d75112eb3810..000000000000
--- a/net-mgmt/horde-nic/files/pkg-install.in
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-#
-
-PATH=/usr/sbin:/usr/bin:/bin ; export PATH
-
-case $2 in
- PRE-INSTALL)
- ;;
-
- POST-INSTALL)
- if [ -z "${PACKAGE_BUILDING}" ]; then
- # Copy over sample config files unless they already exist
-
- for cf in `ls %%NICDIR%%/config/*.dist | sed -e 's/\.dist//g'`; do
- if [ ! -f $cf ]; then
- cp -p $cf.dist $cf
- fi
- done
- fi
- ;;
-esac
diff --git a/net-mgmt/horde-nic/files/pkg-message.in b/net-mgmt/horde-nic/files/pkg-message.in
deleted file mode 100644
index 8fb0fff164d7..000000000000
--- a/net-mgmt/horde-nic/files/pkg-message.in
+++ /dev/null
@@ -1,11 +0,0 @@
-************************************************************************
-NIC has been installed in %%NICDIR%% with your blank
-configuration files.
-
-Nic must be configured; if not, see `pkg_info -D -x horde'.
-
-Finally, you must login to Horde as a Horde Administrator to finish the
-configuration.
-
-To protect your configuration files, you have to restart Apache.
-************************************************************************
diff --git a/net-mgmt/horde-nic/pkg-plist b/net-mgmt/horde-nic/pkg-plist
index 55fc1d21e768..6972df183113 100644
--- a/net-mgmt/horde-nic/pkg-plist
+++ b/net-mgmt/horde-nic/pkg-plist
@@ -1,86 +1,86 @@
-%%NICDIR%%/config/.cvsignore
-%%NICDIR%%/config/conf.xml
-%%NICDIR%%/config/devices.php.dist
-%%NICDIR%%/config/prefs.php.dist
-%%NICDIR%%/graph.php
-%%NICDIR%%/index.php
-%%NICDIR%%/lib/Device.php
-%%NICDIR%%/lib/Device/SNMP.php
-%%NICDIR%%/lib/Device/SNMPCustom.php
-%%NICDIR%%/lib/Device/apache.php
-%%NICDIR%%/lib/Device/dns.php
-%%NICDIR%%/lib/Device/imap.php
-%%NICDIR%%/lib/Device/jetdirect.php
-%%NICDIR%%/lib/Device/mysql.php
-%%NICDIR%%/lib/Device/pop3.php
-%%NICDIR%%/lib/Device/smtp.php
-%%NICDIR%%/lib/Device/squid.php
-%%NICDIR%%/lib/Device/win2k.php
-%%NICDIR%%/lib/Device/www.php
-%%NICDIR%%/lib/Device/www_secure.php
-%%NICDIR%%/lib/Device/xi1510.php
-%%NICDIR%%/lib/Nic.php
-%%NICDIR%%/lib/Status.php
-%%NICDIR%%/lib/Status/sql.php
-%%NICDIR%%/lib/Storage.php
-%%NICDIR%%/lib/Storage/rrd.php
-%%NICDIR%%/lib/Storage/sql.php
-%%NICDIR%%/lib/base.php
-%%NICDIR%%/lib/version.php
-%%NICDIR%%/locale/de_DE/LC_MESSAGES/nic.mo
-%%NICDIR%%/locale/en_US/help.xml
-%%NICDIR%%/locale/es_ES/LC_MESSAGES/nic.mo
-%%NICDIR%%/locale/fi_FI/LC_MESSAGES/nic.mo
-%%NICDIR%%/po/de_DE.po
-%%NICDIR%%/po/es_ES.po
-%%NICDIR%%/po/fi_FI.po
-%%NICDIR%%/po/nic.pot
-%%NICDIR%%/rrdgraph.php
-%%NICDIR%%/rrdviews.php
-%%NICDIR%%/scripts/.htaccess
-%%NICDIR%%/scripts/createRRDFiles.php
-%%NICDIR%%/scripts/sql/nic.sql
-%%NICDIR%%/scripts/statusMonitor.php
-%%NICDIR%%/status.php
-%%NICDIR%%/subsystem.php
-%%NICDIR%%/templates/common-header.inc
-%%NICDIR%%/templates/device/footer.inc
-%%NICDIR%%/templates/device/header.inc
-%%NICDIR%%/templates/device/row-graph.inc
-%%NICDIR%%/templates/device/row.inc
-%%NICDIR%%/templates/device/rrd-graph.inc
-%%NICDIR%%/templates/menu.inc
-%%NICDIR%%/templates/status/header.inc
-%%NICDIR%%/templates/status/list-footer.inc
-%%NICDIR%%/templates/status/list-header.inc
-%%NICDIR%%/templates/status/list-row.inc
-%%NICDIR%%/templates/subsystem/footer.inc
-%%NICDIR%%/templates/subsystem/subsystem.inc
-%%NICDIR%%/test.php
-%%NICDIR%%/themes/graphics/favicon.ico
-%%NICDIR%%//themes/graphics/nic.png
-%%NICDIR%%/themes/screen.css
-%%HORDE_INC%%httpd-nic.conf
-@dirrm %%NICDIR%%/themes/graphics
-@dirrm %%NICDIR%%/themes
-@dirrm %%NICDIR%%/templates/subsystem
-@dirrm %%NICDIR%%/templates/status
-@dirrm %%NICDIR%%/templates/device
-@dirrm %%NICDIR%%/templates
-@dirrm %%NICDIR%%/scripts/sql
-@dirrm %%NICDIR%%/scripts
-@dirrm %%NICDIR%%/po
-@dirrm %%NICDIR%%/locale/fi_FI/LC_MESSAGES
-@dirrm %%NICDIR%%/locale/fi_FI
-@dirrm %%NICDIR%%/locale/es_ES/LC_MESSAGES
-@dirrm %%NICDIR%%/locale/es_ES
-@dirrm %%NICDIR%%/locale/en_US
-@dirrm %%NICDIR%%/locale/de_DE/LC_MESSAGES
-@dirrm %%NICDIR%%/locale/de_DE
-@dirrm %%NICDIR%%/locale
-@dirrm %%NICDIR%%/lib/Storage
-@dirrm %%NICDIR%%/lib/Status
-@dirrm %%NICDIR%%/lib/Device
-@dirrm %%NICDIR%%/lib
-@dirrm %%NICDIR%%/config
-@dirrm %%NICDIR%%
+%%HORDIR%%/config/.cvsignore
+%%HORDIR%%/config/conf.xml
+%%HORDIR%%/config/devices.php.dist
+%%HORDIR%%/config/prefs.php.dist
+%%HORDIR%%/graph.php
+%%HORDIR%%/index.php
+%%HORDIR%%/lib/Device/SNMP.php
+%%HORDIR%%/lib/Device/SNMPCustom.php
+%%HORDIR%%/lib/Device/apache.php
+%%HORDIR%%/lib/Device/dns.php
+%%HORDIR%%/lib/Device/imap.php
+%%HORDIR%%/lib/Device/jetdirect.php
+%%HORDIR%%/lib/Device/mysql.php
+%%HORDIR%%/lib/Device/pop3.php
+%%HORDIR%%/lib/Device/smtp.php
+%%HORDIR%%/lib/Device/squid.php
+%%HORDIR%%/lib/Device/win2k.php
+%%HORDIR%%/lib/Device/www.php
+%%HORDIR%%/lib/Device/www_secure.php
+%%HORDIR%%/lib/Device/xi1510.php
+%%HORDIR%%/lib/Device.php
+%%HORDIR%%/lib/Nic.php
+%%HORDIR%%/lib/Status/sql.php
+%%HORDIR%%/lib/Status.php
+%%HORDIR%%/lib/Storage/rrd.php
+%%HORDIR%%/lib/Storage/sql.php
+%%HORDIR%%/lib/Storage.php
+%%HORDIR%%/lib/base.php
+%%HORDIR%%/lib/version.php
+%%HORDIR%%/locale/de_DE/LC_MESSAGES/nic.mo
+%%HORDIR%%/locale/en_US/help.xml
+%%HORDIR%%/locale/es_ES/LC_MESSAGES/nic.mo
+%%HORDIR%%/locale/fi_FI/LC_MESSAGES/nic.mo
+%%HORDIR%%/po/de_DE.po
+%%HORDIR%%/po/es_ES.po
+%%HORDIR%%/po/fi_FI.po
+%%HORDIR%%/po/nic.pot
+%%HORDIR%%/rrdgraph.php
+%%HORDIR%%/rrdviews.php
+%%HORDIR%%/scripts/.htaccess
+%%HORDIR%%/scripts/createRRDFiles.php
+%%HORDIR%%/scripts/sql/nic.sql
+%%HORDIR%%/scripts/statusMonitor.php
+%%HORDIR%%/status.php
+%%HORDIR%%/subsystem.php
+%%HORDIR%%/templates/common-header.inc
+%%HORDIR%%/templates/device/footer.inc
+%%HORDIR%%/templates/device/header.inc
+%%HORDIR%%/templates/device/row-graph.inc
+%%HORDIR%%/templates/device/row.inc
+%%HORDIR%%/templates/device/rrd-graph.inc
+%%HORDIR%%/templates/menu.inc
+%%HORDIR%%/templates/status/header.inc
+%%HORDIR%%/templates/status/list-footer.inc
+%%HORDIR%%/templates/status/list-header.inc
+%%HORDIR%%/templates/status/list-row.inc
+%%HORDIR%%/templates/subsystem/footer.inc
+%%HORDIR%%/templates/subsystem/subsystem.inc
+%%HORDIR%%/test.php
+%%HORDIR%%/themes/graphics/favicon.ico
+%%HORDIR%%/themes/graphics/nic.png
+%%HORDIR%%/themes/screen.css
+@dirrmtry %%HORDIR%%/config
+@dirrm %%HORDIR%%/lib/Device
+@dirrm %%HORDIR%%/lib/Status
+@dirrm %%HORDIR%%/lib/Storage
+@dirrm %%HORDIR%%/lib
+@dirrm %%HORDIR%%/locale/de_DE/LC_MESSAGES
+@dirrm %%HORDIR%%/locale/de_DE
+@dirrm %%HORDIR%%/locale/en_US
+@dirrm %%HORDIR%%/locale/es_ES/LC_MESSAGES
+@dirrm %%HORDIR%%/locale/es_ES
+@dirrm %%HORDIR%%/locale/fi_FI/LC_MESSAGES
+@dirrm %%HORDIR%%/locale/fi_FI
+@dirrm %%HORDIR%%/locale
+@dirrm %%HORDIR%%/po
+@dirrm %%HORDIR%%/scripts/sql
+@dirrm %%HORDIR%%/scripts
+@dirrm %%HORDIR%%/templates/device
+@dirrm %%HORDIR%%/templates/status
+@dirrm %%HORDIR%%/templates/subsystem
+@dirrm %%HORDIR%%/templates
+@dirrm %%HORDIR%%/themes/graphics
+@dirrm %%HORDIR%%/themes
+@dirrmtry %%HORDIR%%
+@dirrmtry %%HORBAS%%