summaryrefslogtreecommitdiff
path: root/ports-mgmt/portaudit-db/Makefile
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-06-12 22:43:44 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-06-12 22:43:44 +0000
commit53ec7442a9325113735ee05e7835d4ac9f2b4c7c (patch)
treedf3c2f585996309f1dd45175706e6ec349c8c84f /ports-mgmt/portaudit-db/Makefile
parentFix build with gcc34 (diff)
portaudit-db generates a portaudit database from a current
ports tree. It also features a file `database/portaudit.txt' where UUIDs for vulnerabilities can be allocated quickly before they are moved to the VuXML database. Call `packaudit' after upgrading your ports tree.
Diffstat (limited to 'ports-mgmt/portaudit-db/Makefile')
-rw-r--r--ports-mgmt/portaudit-db/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/ports-mgmt/portaudit-db/Makefile b/ports-mgmt/portaudit-db/Makefile
new file mode 100644
index 000000000000..2a48688047d5
--- /dev/null
+++ b/ports-mgmt/portaudit-db/Makefile
@@ -0,0 +1,41 @@
+# New ports collection makefile for: portaudit-db
+# Date created: 12 Jun 2004
+# Whom: Oliver Eikemeier
+#
+# $FreeBSD$
+#
+
+PORTNAME= portaudit-db
+PORTVERSION= 0.1
+CATEGORIES= security
+DISTFILES=
+
+MAINTAINER= eik@FreeBSD.org
+COMMENT= Creates a portaudit database from a current ports tree
+
+RUN_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
+
+DATABASEDIR?= ${AUDITFILE:H}
+
+PLIST_SUB+= DATABASEDIR="${DATABASEDIR}"
+
+SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \
+ -e "s|%%DATADIR%%|${DATADIR}|g" \
+ -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ -e "s|%%PORTSDIR%%|${PORTSDIR}|g" \
+ -e "s|%%PORTVERSION%%|${PORTVERSION}|g" \
+ -e "s|%%DATABASEDIR%%|${DATABASEDIR}|g"
+
+do-build:
+ @for f in packaudit.sh packaudit.conf; do \
+ ${SED} ${SED_SCRIPT} "${FILESDIR}/$$f" > "${WRKDIR}/$$f"; \
+ done
+
+do-install:
+ @${INSTALL_SCRIPT} ${WRKDIR}/packaudit.sh ${PREFIX}/bin/packaudit
+ @${INSTALL_DATA} ${WRKDIR}/packaudit.conf ${PREFIX}/etc/packaudit.conf.sample
+ @${MKDIR} ${DATADIR}
+ @${INSTALL_DATA} ${FILESDIR}/vuxml2html.xslt ${FILESDIR}/vuxml2portaudit.xslt ${DATADIR}
+ @${MKDIR} ${DATABASEDIR}
+
+.include <bsd.port.mk>