# New ports collection makefile for: portaudit # Date created: 25 Jan 2004 # Whom: Oliver Eikemeier # # $FreeBSD$ # PORTNAME= portaudit PORTVERSION= 0.2 CATEGORIES= security DISTFILES= MAINTAINER= eik@FreeBSD.org COMMENT= Checks installed ports against a list of security vulnerabilities MAN1= portaudit.1 PERIODICDIR?= ${PREFIX}/etc/periodic DATABASEDIR?= /var/db/portaudit PLIST_SUB+= PERIODICDIR="${PERIODICDIR:S,^${PREFIX}/,,}" \ DATABASEDIR="${DATABASEDIR}" PKG_INFO_BASE?= /usr/sbin/pkg_info BASEPKGVER!= ${PKG_INFO_BASE} -qP 2>/dev/null .if ${BASEPKGVER} < 20040125 RUN_DEPENDS= ${LOCALBASE}/sbin/pkg_info:${PORTSDIR}/sysutils/pkg_install-devel .endif .include .if ${OSVERSION} < 420001 || ${OSVERSION} >= 500000 && ${OSVERSION} < 500014 IGNORE= "You need tar with bzip support to run portaudit" .endif do-build: .for f in portaudit-cmd.sh portaudit.sh fetchaudit.sh portaudit.functions portaudit.1 @${SED} -e "s|%%DATADIR%%|${DATADIR}|g" \ -e "s|%%DATABASEDIR%%|${DATABASEDIR}|g" \ -e "s|%%PREFIX%%|${PREFIX}|g" \ -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ -e "s|%%PORTVERSION%%|${PORTVERSION}|g" \ ${FILESDIR}/${f} > ${WRKDIR}/${f} .endfor do-install: @${INSTALL_SCRIPT} ${WRKDIR}/portaudit-cmd.sh ${PREFIX}/bin/portaudit @${INSTALL_MAN} ${WRKDIR}/portaudit.1 ${MAN1PREFIX}/man/man1 @${MKDIR} ${PERIODICDIR}/security @${INSTALL_SCRIPT} ${WRKDIR}/portaudit.sh ${PERIODICDIR}/security/910.portaudit @${MKDIR} ${PERIODICDIR}/daily @${INSTALL_SCRIPT} ${WRKDIR}/fetchaudit.sh ${PERIODICDIR}/daily/330.fetchaudit @${MKDIR} ${DATADIR} @${INSTALL_DATA} ${WRKDIR}/portaudit.functions ${DATADIR} @${MKDIR} ${DATABASEDIR} .include