diff options
author | pav <pav@FreeBSD.org> | 2007-03-24 22:04:36 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-03-24 22:04:36 +0800 |
commit | 3e32701b9f418b2a116f23f45273f81622a20834 (patch) | |
tree | 5e4faebb47590f6e64af256b4b2c207bb57fc0d6 /net-mgmt | |
parent | 1b95307a29820e5b97fcc60a906b3ae93ea5a9f0 (diff) | |
download | freebsd-ports-gnome-3e32701b9f418b2a116f23f45273f81622a20834.tar.gz freebsd-ports-gnome-3e32701b9f418b2a116f23f45273f81622a20834.tar.zst freebsd-ports-gnome-3e32701b9f418b2a116f23f45273f81622a20834.zip |
- WWWDIR is now defined in bsd.ports.mk
PR: ports/105529
Submitted by: laszlof
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/netdisco/Makefile | 22 | ||||
-rw-r--r-- | net-mgmt/netdisco/files/patch-netdisco_apache.conf | 8 | ||||
-rw-r--r-- | net-mgmt/netdisco/files/patch-netdisco_apache_dir.conf | 4 |
3 files changed, 15 insertions, 19 deletions
diff --git a/net-mgmt/netdisco/Makefile b/net-mgmt/netdisco/Makefile index 9108e6afa1ee..563a9217d5b5 100644 --- a/net-mgmt/netdisco/Makefile +++ b/net-mgmt/netdisco/Makefile @@ -39,17 +39,13 @@ USE_RC_SUBR= netdisco.sh NO_BUILD= yes -WWWOWN?= www -WWWGRP?= www -WWWDIR?= www/${PORTNAME} -WWWDATADIR= ${PREFIX}/${WWWDIR} RUNDIR?= /var/run DBDIR?= /var/db APACHE_CFG= ${APACHE_CFGDIR}/httpd.conf SUB_FILES= pkg-message pkg-install -SUB_LIST= WWWDIR=${WWWDIR} DBDIR=${DBDIR} -PLIST_SUB= WWWDIR=${WWWDIR} DBDIR=${DBDIR} +SUB_LIST= DBDIR=${DBDIR} +PLIST_SUB= DBDIR=${DBDIR} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} @@ -83,7 +79,7 @@ pre-install: . endfor cd ${WRKSRC} && \ - ${REINPLACE_CMD} -e 's#%%WWWDATADIR%%#${WWWDATADIR}#g' \ + ${REINPLACE_CMD} -e 's#%%WWWDIR%%#${WWWDIR}#g' \ -e 's#%%PREFIX%%#${PREFIX}#g' \ -e 's#%%DATADIR%%#${DATADIR}#g' \ -e 's#%%RUNDIR%%#${RUNDIR}#g' \ @@ -96,15 +92,15 @@ do-install: cd ${WRKSRC} && ${INSTALL_SCRIPT} ${i} ${PREFIX}/bin . endfor - ${MKDIR} ${WWWDATADIR} - cd ${WRKSRC}/html && ${INSTALL_DATA} autohandler *.* ${WWWDATADIR} + ${MKDIR} ${WWWDIR} + cd ${WRKSRC}/html && ${INSTALL_DATA} autohandler *.* ${WWWDIR} - ${MKDIR} ${WWWDATADIR}/doc - cd ${WRKSRC}/html/doc && ${INSTALL_DATA} *.* ${WWWDATADIR}/doc + ${MKDIR} ${WWWDIR}/doc + cd ${WRKSRC}/html/doc && ${INSTALL_DATA} *.* ${WWWDIR}/doc - ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDATADIR} + ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} - ${MKDIR} ${WWWDATADIR}/mason + ${MKDIR} ${WWWDIR}/mason ${INSTALL_DATA} ${WRKSRC}/netdisco.pm ${SITE_PERL} diff --git a/net-mgmt/netdisco/files/patch-netdisco_apache.conf b/net-mgmt/netdisco/files/patch-netdisco_apache.conf index 816517be41eb..602d1448d9a8 100644 --- a/net-mgmt/netdisco/files/patch-netdisco_apache.conf +++ b/net-mgmt/netdisco/files/patch-netdisco_apache.conf @@ -18,12 +18,12 @@ +%%APACHE2%%PerlModule Apache2::compat +#-------------- + -+<Directory %%WWWDATADIR%%> ++<Directory %%WWWDIR%%> order allow,deny allow from all </Directory> -+<Directory %%WWWDATADIR%%/mason> ++<Directory %%WWWDIR%%/mason> + order allow,deny + deny from all +</Directory> @@ -49,8 +49,8 @@ my $ah = new HTML::Mason::ApacheHandler( - comp_root => '/usr/local/netdisco/html', - data_dir => '/usr/local/netdisco/mason', -+ comp_root => '%%WWWDATADIR%%', -+ data_dir => '%%WWWDATADIR%%/mason', ++ comp_root => '%%WWWDIR%%', ++ data_dir => '%%WWWDIR%%/mason', request_class => 'MasonX::Request::WithApacheSession', session_class => 'Apache::Session::Postgres', +%%APACHE2%% args_method => 'mod_perl', diff --git a/net-mgmt/netdisco/files/patch-netdisco_apache_dir.conf b/net-mgmt/netdisco/files/patch-netdisco_apache_dir.conf index 8426d95bbbce..019a9cb4b826 100644 --- a/net-mgmt/netdisco/files/patch-netdisco_apache_dir.conf +++ b/net-mgmt/netdisco/files/patch-netdisco_apache_dir.conf @@ -6,8 +6,8 @@ -Alias /netdisco "/usr/local/netdisco/html/" -Alias /netdisco/ "/usr/local/netdisco/html/" -+Alias /netdisco "%%WWWDATADIR%%" -+Alias /netdisco/ "%%WWWDATADIR%%" ++Alias /netdisco "%%WWWDIR%%" ++Alias /netdisco/ "%%WWWDIR%%" <Location /netdisco> Options +Indexes |