www/137564: [patch] www/Makefile : add update sup target

Sofian Brabez sbrabez at gmail.com
Sat Aug 8 10:00:14 UTC 2009


>Number:         137564
>Category:       www
>Synopsis:       [patch] www/Makefile : add update sup target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 08 10:00:13 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Sofian Brabez
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
FreeBSD freebsd.ifr.lan 7.2-STABLE FreeBSD 7.2-STABLE #0: Thu Jul 2 23:42:18 CEST 2009 root at freebsd.ifr.lan:/usr/obj/usr/src/sys/FREEBSD i386
>Description:
It would be nice to update /usr/www local directory with make update command as for /usr/src and /usr/ports to easily mirror sites. This patch add this feature using a WWWSUPFILE variable in /etc/make.conf file.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- Makefile.orig	2009-08-08 11:20:39.000000000 +0200
+++ Makefile	2009-08-08 11:18:13.000000000 +0200
@@ -2,8 +2,35 @@
 
 WEB_PREFIX=	${.CURDIR}
 
-SUBDIR= en
+SUBDIR= da \
+		de \
+		el \
+		en \
+		es \
+		fr \
+		hu \
+		it \
+		ja \
+		mn \
+		nl \
+		pt_BR \
+		ru \
+		tr \
+		zh_CN \
+		zh_TW 
 
 links:
 
+update:
+.if defined(SUPHOST)
+SUPFLAGS+=	-h ${SUPHOST}
+.endif
+update:
+.if defined(SUP_UPDATE) && defined(WWWSUPFILE)
+	@echo "--------------------------------------------------------------"
+	@echo ">>> Running ${SUP}"
+	@echo "--------------------------------------------------------------"
+	@${SUP} ${SUPFLAGS} ${WWWSUPFILE}
+.endif
+
 .include <bsd.obj.mk>


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-www mailing list