svn commit: r403980 - in head/net-mgmt/netdot: . files
Mathieu Arnold
mat at FreeBSD.org
Fri Dec 18 16:47:07 UTC 2015
Author: mat
Date: Fri Dec 18 16:47:05 2015
New Revision: 403980
URL: https://svnweb.freebsd.org/changeset/ports/403980
Log:
Fix build as a user.
Bump PORTREVISION because I think the package changed a bit.
Sponsored by: Absolight
Added:
head/net-mgmt/netdot/files/patch-Makefile (contents, props changed)
head/net-mgmt/netdot/files/patch-etc_Default.conf
- copied, changed from r403979, head/net-mgmt/netdot/files/patch-Default.conf
head/net-mgmt/netdot/files/patch-htdocs_Makefile (contents, props changed)
Deleted:
head/net-mgmt/netdot/files/patch-Default.conf
head/net-mgmt/netdot/files/patch-stagedir
Modified:
head/net-mgmt/netdot/Makefile
head/net-mgmt/netdot/files/patch-etc-netdot_apache2_local.conf
head/net-mgmt/netdot/pkg-plist
Modified: head/net-mgmt/netdot/Makefile
==============================================================================
--- head/net-mgmt/netdot/Makefile Fri Dec 18 16:46:05 2015 (r403979)
+++ head/net-mgmt/netdot/Makefile Fri Dec 18 16:47:05 2015 (r403980)
@@ -3,7 +3,7 @@
PORTNAME= netdot
PORTVERSION= 1.0.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://netdot.uoregon.edu/pub/dists/
Added: head/net-mgmt/netdot/files/patch-Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/netdot/files/patch-Makefile Fri Dec 18 16:47:05 2015 (r403980)
@@ -0,0 +1,11 @@
+--- Makefile.orig 2014-12-08 20:24:38 UTC
++++ Makefile
+@@ -96,8 +96,6 @@ dir:
+ mkdir -m $(DMOD) -p $(STAGEDIR)/$$dir ; \
+ fi ; \
+ done
+- chown -R $(APACHEUSER):$(APACHEGROUP) $(STAGEDIR)/tmp
+- chmod 750 $(STAGEDIR)/tmp
+
+ htdocs:
+ cd $@ ; $(MAKE) all DIR=$@
Modified: head/net-mgmt/netdot/files/patch-etc-netdot_apache2_local.conf
==============================================================================
--- head/net-mgmt/netdot/files/patch-etc-netdot_apache2_local.conf Fri Dec 18 16:46:05 2015 (r403979)
+++ head/net-mgmt/netdot/files/patch-etc-netdot_apache2_local.conf Fri Dec 18 16:47:05 2015 (r403980)
@@ -8,5 +8,5 @@
+LoadModule perl_module libexec/apache22/mod_perl.so
+LoadModule apreq_module libexec/apache22/mod_apreq2.so
- <Perl>
- use lib qw( <<Make:PREFIX>>/lib );
+ # Add Netdot's libraries to @INC
+ PerlSwitches -I<<Make:PREFIX>>/lib
Copied and modified: head/net-mgmt/netdot/files/patch-etc_Default.conf (from r403979, head/net-mgmt/netdot/files/patch-Default.conf)
==============================================================================
--- head/net-mgmt/netdot/files/patch-Default.conf Fri Dec 18 16:46:05 2015 (r403979, copy source)
+++ head/net-mgmt/netdot/files/patch-etc_Default.conf Fri Dec 18 16:47:05 2015 (r403980)
@@ -9,9 +9,7 @@
# Set DB_DBA to the name of a DB user with permission to create new databases
# Set DB_DBA_PASSWORD to that user's password (if you don't, you'll be prompted
---- etc/Default.conf.orig 2012-10-07 14:34:43.000000000 +0100
-+++ etc/Default.conf 2012-10-07 14:35:27.000000000 +0100
-@@ -213,7 +213,7 @@
+@@ -221,7 +221,7 @@ SNMP_QUERY_TIMEOUT => 90, #
# Netdot shares a set of workable MIBs with the Netdisco project.
# The following variable specifies where the netdisco MIBs were installed in
# this system.
Added: head/net-mgmt/netdot/files/patch-htdocs_Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/netdot/files/patch-htdocs_Makefile Fri Dec 18 16:47:05 2015 (r403980)
@@ -0,0 +1,21 @@
+--- htdocs/Makefile.orig 2014-12-14 15:02:04.000000000 +0000
++++ htdocs/Makefile 2014-12-14 15:02:12.000000000 +0000
+@@ -9,7 +9,7 @@
+
+ all: wipedir dir
+ $(substitute)
+- ln -s $(STAGEDIR)/doc/manual/netdot-manual.htm $(STAGEDIR)/$(DIR)/help/manual.html
++ ln -s $(PREFIX)/doc/manual/netdot-manual.htm $(STAGEDIR)/$(DIR)/help/manual.html
+
+ # Wipe out dir before installing
+ wipedir:
+@@ -21,9 +21,3 @@ dir:
+
+ @echo "Hacking together mason permissions fix..."
+ touch $(STAGEDIR)/$(DIR)/masondata/obj/.__obj_create_marker
+- chown -R $(APACHEUSER):$(APACHEGROUP) $(STAGEDIR)/$(DIR)/masondata
+- chmod 0755 $(STAGEDIR)/$(DIR)/masondata
+-# Graphs can be updated dynamically so apache needs +w
+- chown $(APACHEUSER):$(APACHEGROUP) $(STAGEDIR)/$(DIR)/img/graphs
+- chmod 0750 $(STAGEDIR)/$(DIR)/img/graphs
+-
Modified: head/net-mgmt/netdot/pkg-plist
==============================================================================
--- head/net-mgmt/netdot/pkg-plist Fri Dec 18 16:46:05 2015 (r403979)
+++ head/net-mgmt/netdot/pkg-plist Fri Dec 18 16:47:05 2015 (r403980)
@@ -328,7 +328,7 @@
@dir %%WWWDIR%%/htdocs/css
@dir %%WWWDIR%%/htdocs/generic
@dir %%WWWDIR%%/htdocs/help
- at dir %%WWWDIR%%/htdocs/img/graphs
+ at dir(www,www,750) %%WWWDIR%%/htdocs/img/graphs
@dir %%WWWDIR%%/htdocs/img
@dir %%WWWDIR%%/htdocs/java_script
@dir %%WWWDIR%%/htdocs/management
@@ -363,15 +363,15 @@
@dir %%WWWDIR%%/export/dhcpd
@dir %%WWWDIR%%/export/smokeping
@dir %%WWWDIR%%/export
- at dir %%WWWDIR%%/htdocs/masondata/obj
+ at dir(www,www,) %%WWWDIR%%/htdocs/masondata/obj
@unexec rm -rf %D/%%WWWDIR%%/htdocs/masondata/obj 2> /dev/null || true
- at dir %%WWWDIR%%/htdocs/masondata/cache
- at dir %%WWWDIR%%/htdocs/masondata
+ at dir(www,www,) %%WWWDIR%%/htdocs/masondata/cache
+ at dir(www,www,) %%WWWDIR%%/htdocs/masondata
@dir %%WWWDIR%%/htdocs
- at dir %%WWWDIR%%/tmp/sessions/locks
- at dir %%WWWDIR%%/tmp/sessions
+ at dir(www,www,) %%WWWDIR%%/tmp/sessions/locks
+ at dir(www,www,) %%WWWDIR%%/tmp/sessions
@unexec rm -rf %D/%%WWWDIR%%/tmp/sessions 2> /dev/null || true
- at dir %%WWWDIR%%/tmp
+ at dir(www,www,750) %%WWWDIR%%/tmp
@dir %%WWWDIR%%/upgrade
@dir %%WWWDIR%%/var
@dir %%WWWDIR%%
More information about the svn-ports-head
mailing list