freebsd-ports/ports-mgmt/portaudit-db/Makefile
Eygene Ryabinkin 8f2ef95e34 Packaudit: switch to Subversion
- use links to Subversion tree, HTTPS-flavored ones;

 - extract revision using Subversion format of $FreeBSD$;

 - refuse to work with vuln.xml that comes from CVS:
   automated exporter is switched off, so this source of
   vulnerabilities is stale.

Reviewed by:	simon, bz (partly), gavin
Approved by:	portmgr (tabthorpe), so (des), secteam (simon)
2013-04-09 17:36:29 +00:00

45 lines
1.2 KiB
Makefile

# New ports collection makefile for: portaudit-db
# Date created: 12 Jun 2004
# Whom: Oliver Eikemeier
#
# $FreeBSD$
#
PORTNAME= portaudit-db
PORTVERSION= 0.2.3
PORTREVISION= 2
CATEGORIES= ports-mgmt
DISTFILES=
MAINTAINER= secteam@FreeBSD.org
COMMENT= Creates a portaudit database from a current ports tree
RUN_DEPENDS= xsltproc:${PORTSDIR}/textproc/libxslt
DEPENDS_ARGS+= WITHOUT_PYTHON=yes
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_SCRIPT} ${FILESDIR}/portaudit2vuxml.awk ${DATADIR}
@${INSTALL_DATA} ${FILESDIR}/vuxml2html.xslt ${FILESDIR}/vuxml2portaudit.xslt ${DATADIR}
@${MKDIR} ${DATABASEDIR}
.include <bsd.port.mk>