Add rss feed support for the FreeBSD security advisories.
Reviewed by: simon
This commit is contained in:
parent
3fde65f11e
commit
513b27c144
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=20998
3 changed files with 85 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/security/Makefile,v 1.11 2004/01/17 18:58:07 hrs Exp $
|
||||
# $FreeBSD: www/en/security/Makefile,v 1.12 2004/04/13 17:27:43 trhodes Exp $
|
||||
|
||||
.if exists(../Makefile.conf)
|
||||
.include "../Makefile.conf"
|
||||
|
|
@ -10,15 +10,19 @@
|
|||
DOCS= charter.sgml
|
||||
DOCS+= security.sgml
|
||||
|
||||
INDEXLINK= security.html
|
||||
INDEXLINK= security.html
|
||||
DATA+= advisories.rdf
|
||||
CLEANFILES+= advisories.html.inc advisories.rdf
|
||||
|
||||
.include "${WEB_PREFIX}/share/mk/web.site.mk"
|
||||
|
||||
CLEANFILES+= advisories.html.inc
|
||||
|
||||
security.html: advisories.html.inc
|
||||
security.html: advisories.html.inc advisories.rdf
|
||||
|
||||
advisories.html.inc: mkindex.xsl ${XML_ADVISORIES} ${XML_INCLUDES}
|
||||
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
|
||||
--param "advisories.xml" "'${XML_ADVISORIES}'" \
|
||||
${.CURDIR}/mkindex.xsl ${XML_ADVISORIES}
|
||||
advisories.rdf: security-rdf.xsl ${XML_ADVISORIES} ${XML_INCLUDES}
|
||||
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
|
||||
--param "advisories.xml" "'${XML_ADVISORIES}'" \
|
||||
${.CURDIR}/security-rdf.xsl ${XML_ADVISORIES}
|
||||
|
|
|
|||
20
en/security/security-rdf.xsl
Normal file
20
en/security/security-rdf.xsl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD$ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:import href="../includes.xsl"/>
|
||||
|
||||
<xsl:output method="xml" indent="yes"/>
|
||||
|
||||
<xsl:variable name="base" select="'..'"/>
|
||||
<xsl:variable name="date" select="'$FreeBSD$'"/>
|
||||
<xsl:variable name="title" select="'untitled'"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:call-template name="rdf-security-advisories">
|
||||
<xsl:with-param name="advisories.xml" select="$advisories.xml" />
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
Loading…
Add table
Add a link
Reference in a new issue