! ! Hook-up advistories and patches to be installed to ! www.freebsd.org/security/{advisories,patches}/... ! from the en_US.ISO8859-1 directory as we do for logos, etc. ! ! The magic is a bit special to avoid having to add each advisory ! or errata notice, and their patches and signatures individually. ! ! This is the second of three steps. The last one will be to link ! to these files locally rather than to security.freebsd.org. ! ! Reviewed by: ! Approved by: ! Index: en_US.ISO8859-1/htdocs/security/Makefile.inc =================================================================== --- en_US.ISO8859-1/htdocs/security/Makefile.inc (revision 0) +++ en_US.ISO8859-1/htdocs/security/Makefile.inc (working copy) @@ -0,0 +1,4 @@ +# $FreeBSD$ + +WEBBASE?= /data/security +DOC_PREFIX?= ${.CURDIR}/../../../.. Property changes on: en_US.ISO8859-1/htdocs/security/Makefile.inc ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: en_US.ISO8859-1/htdocs/security/patches/Makefile =================================================================== --- en_US.ISO8859-1/htdocs/security/patches/Makefile (revision 0) +++ en_US.ISO8859-1/htdocs/security/patches/Makefile (working copy) @@ -0,0 +1,62 @@ +# $FreeBSD$ + +# +# This is admittedly a bit special but does most of the job just nicely. +# -bz 20120818 +# + +.if exists(../Makefile.conf) +.include "../Makefile.conf" +.endif +.if exists(../Makefile.inc) +.include "../Makefile.inc" +.endif + +DATADIR= ${DOC_PREFIX}/share/security/patches + +# Things that went wrong in the past and had to be fixed. +# Source Target +FIXUPLINKS= +FIXUPLINKS+= SA-04:04/tcp47.patch tcp47.patch +FIXUPLINKS+= SA-04:04/tcp47.patch.asc tcp47.patch.asc +FIXUPLINKS+= SA-04:04/tcp52.patch tcp52.patch +FIXUPLINKS+= SA-04:04/tcp52.patch.asc tcp52.patch.asc +FIXUPLINKS+= SA-10:05 SA-10-05 +FIXUPLINKS+= SA-04:09/kadmin.patch SA-04:09/kadmind.patch +FIXUPLINKS+= SA-04:09/kadmin.patch.asc SA-04:09/kadmind.patch.asc +FIXUPLINKS+= SA-02:40/kadmind.patch SA-02:40/kadmin.patch +FIXUPLINKS+= SA-02:40/kadmind.patch.asc SA-02:40/kadmin.patch.asc +FIXUPLINKS+= SA-00:23/ip-options.diff SA-00:23/ip_options.diff +FIXUPLINKS+= SA-00:23/ip-options.diff.asc SA-00:23/ip_options.diff.asc +# Lost? +#FIXUPLINKS+= ../../tools/libfind.sh patches/SA-00:17/libfind.sh + +.include "${DOC_PREFIX}/share/mk/web.site.mk" + +_DIRS!= cd ${DATADIR} && ${FIND} . -type d +_FILES!= cd ${DATADIR} && ${FIND} . -type f +WEBDIRMODE?= 775 + +afterinstall: +.if defined(DATADIR) && !empty(DATADIR) + @${ECHO_CMD} "===> ${DATADIR} -> ${DOCINSTALLDIR}" + @${INSTALL} -o ${WEBOWN} -g ${WEBGRP} -m ${WEBDIRMODE} -d ${DOCINSTALLDIR} +.for d in ${_DIRS} + @${INSTALL} -o ${WEBOWN} -g ${WEBGRP} -m ${WEBDIRMODE} -d ${DOCINSTALLDIR}/${d} +.endfor +.for f in ${_FILES} + ${INSTALL_WEB} ${DATADIR}/${f} ${DOCINSTALLDIR}/${f:H}/ +.endfor +.if defined(FIXUPLINKS) && !empty(FIXUPLINKS) + @(cd ${DOCINSTALLDIR} && \ + set ${FIXUPLINKS}; \ + while test $$# -ge 2; do \ + l=$$1; \ + shift; \ + t=$$1; \ + shift; \ + ${ECHO_CMD} $$t -\> $$l; \ + ${LN} -fs $$l $$t; \ + done ) +.endif +.endif Property changes on: en_US.ISO8859-1/htdocs/security/patches/Makefile ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: en_US.ISO8859-1/htdocs/security/advisories/Makefile =================================================================== --- en_US.ISO8859-1/htdocs/security/advisories/Makefile (revision 0) +++ en_US.ISO8859-1/htdocs/security/advisories/Makefile (working copy) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +# +# This is admittedly a bit special but does most of the job just nicely. +# -bz 20120818 +# + +.if exists(../Makefile.conf) +.include "../Makefile.conf" +.endif +.if exists(../Makefile.inc) +.include "../Makefile.inc" +.endif + +DATADIR= ${DOC_PREFIX}/share/security/advisories + +# Things that went wrong in the past and had to be fixed. +# Source Target +FIXUPLINKS= +FIXUPLINKS+= FreeBSD-SA-09:06.ktimer.asc FreeBSD-SA-06:09.ktimer.asc + +.include "${DOC_PREFIX}/share/mk/web.site.mk" + +_FILES!= ${FIND} ${DATADIR} -type f +WEBDIRMODE?= 775 + +afterinstall: +.if defined(DATADIR) && !empty(DATADIR) + @${ECHO_CMD} "===> ${DATADIR} -> ${DOCINSTALLDIR}" + @${INSTALL} -o ${WEBOWN} -g ${WEBGRP} -m ${WEBDIRMODE} -d ${DOCINSTALLDIR} +.for f in ${_FILES} + ${INSTALL_WEB} ${f} ${DOCINSTALLDIR} +.endfor +.if defined(FIXUPLINKS) && !empty(FIXUPLINKS) + @(cd ${DOCINSTALLDIR} && \ + set ${FIXUPLINKS}; \ + while test $$# -ge 2; do \ + l=$$1; \ + shift; \ + t=$$1; \ + shift; \ + ${ECHO_CMD} $$t -\> $$l; \ + ${LN} -fs $$l $$t; \ + done ) +.endif +.endif Property changes on: en_US.ISO8859-1/htdocs/security/advisories/Makefile ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: en_US.ISO8859-1/htdocs/security/Makefile =================================================================== --- en_US.ISO8859-1/htdocs/security/Makefile (revision 39380) +++ en_US.ISO8859-1/htdocs/security/Makefile (working copy) @@ -7,6 +7,9 @@ .include "../Makefile.inc" .endif +SUBDIR= advisories +SUBDIR+= patches + DATA= so_public_key.asc DOCS= charter.sgml DOCS+= security.sgml