0d0d56457b
devel/portcheckout -> ports-mgmt/portcheckout devel/portlint -> ports-mgmt/portlint devel/portmk -> ports-mgmt/portmk devel/porttools -> ports-mgmt/porttools misc/instant-tinderbox -> ports-mgmt/instant-tinderbox misc/porteasy -> ports-mgmt/porteasy misc/portell -> ports-mgmt/portell misc/portless -> ports-mgmt/portless misc/tinderbox -> ports-mgmt/tinderbox security/jailaudit -> ports-mgmt/jailaudit security/portaudit -> ports-mgmt/portaudit security/portaudit-db -> ports-mgmt/portaudit-db security/vulnerability-test-port -> ports-mgmt/vulnerability-test-port sysutils/barry -> ports-mgmt/barry sysutils/bpm -> ports-mgmt/bpm sysutils/kports -> ports-mgmt/kports sysutils/managepkg -> ports-mgmt/managepkg sysutils/newportsversioncheck -> ports-mgmt/newportsversioncheck sysutils/pib -> ports-mgmt/pib sysutils/pkgfe -> ports-mgmt/pkgfe sysutils/pkg-orphan -> ports-mgmt/pkg-orphan sysutils/pkg_cutleaves -> ports-mgmt/pkg_cutleaves sysutils/pkg_install -> ports-mgmt/pkg_install sysutils/pkg_install-devel -> ports-mgmt/pkg_install-devel sysutils/pkg_remove -> ports-mgmt/pkg_remove sysutils/pkg_rmleaves -> ports-mgmt/pkg_rmleaves sysutils/pkg_trackinst -> ports-mgmt/pkg_trackinst sysutils/pkg_tree -> ports-mgmt/pkg_tree sysutils/portbrowser -> ports-mgmt/portbrowser sysutils/portconf -> ports-mgmt/portconf sysutils/portdowngrade -> ports-mgmt/portdowngrade sysutils/portcheck -> ports-mgmt/portcheck sysutils/portmanager -> ports-mgmt/portmanager sysutils/portmaster -> ports-mgmt/portmaster sysutils/portscout -> ports-mgmt/portscout sysutils/portsearch -> ports-mgmt/portsearch sysutils/portsman -> ports-mgmt/portsman sysutils/portsnap -> ports-mgmt/portsnap sysutils/portsopt -> ports-mgmt/portsopt sysutils/portupgrade -> ports-mgmt/portupgrade sysutils/portupgrade-devel -> ports-mgmt/portupgrade-devel sysutils/port-authoring-tools -> ports-mgmt/port-authoring-tools sysutils/port-maintenance-tools -> ports-mgmt/port-maintenance-tools sysutils/psearch -> ports-mgmt/psearch sysutils/p5-FreeBSD-Portindex -> ports-mgmt/p5-FreeBSD-Portindex sysutils/qtpkg -> ports-mgmt/qtpkg textproc/p5-FreeBSD-Ports -> ports-mgmt/p5-FreeBSD-Ports Repocopies by: marcus
82 lines
2.3 KiB
Makefile
82 lines
2.3 KiB
Makefile
# New ports collection makefile for: portaudit
|
|
# Date created: 25 Jan 2004
|
|
# Whom: Oliver Eikemeier
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= portaudit
|
|
PORTVERSION= 0.5.11
|
|
CATEGORIES= ports-mgmt
|
|
DISTFILES=
|
|
|
|
MAINTAINER= secteam@FreeBSD.org
|
|
COMMENT= Checks installed ports against a list of security vulnerabilities
|
|
|
|
MAN1= portaudit.1
|
|
|
|
PERIODICDIR?= ${PREFIX}/etc/periodic
|
|
DATABASEDIR?= /var/db/portaudit
|
|
|
|
PKGREQ= ${WRKDIR}/pkg-req
|
|
PKGINSTALL= ${WRKDIR}/pkg-install
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
|
|
|
|
PLIST_SUB+= PERIODICDIR="${PERIODICDIR:S,^${PREFIX}/,,}" \
|
|
DATABASEDIR="${DATABASEDIR}"
|
|
|
|
REQPKGVER= 20040623
|
|
|
|
SED_SCRIPT= -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
-e "s|%%PORTSDIR%%|${PORTSDIR}|g" \
|
|
-e "s|%%INDEXFILE%%|${INDEXFILE}|g" \
|
|
-e "s|%%DATABASEDIR%%|${DATABASEDIR}|g" \
|
|
-e "s|%%PORTVERSION%%|${PORTVERSION}|g" \
|
|
-e "s|%%REQPKGVER%%|${REQPKGVER}|g" \
|
|
-e "s|%%BZIP2_CMD%%|${BZIP2_CMD}|g" \
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(DFOSVERSION)
|
|
.if ${OSVERSION} < 491101 || ${OSVERSION} >= 500000 && ${OSVERSION} < 502120
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/pkg_info:${PORTSDIR}/ports-mgmt/pkg_install-devel
|
|
.endif
|
|
.else
|
|
.if ${DFOSVERSION} < 110000
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/pkg_info:${PORTSDIR}/ports-mgmt/pkg_install-devel
|
|
.endif
|
|
.endif
|
|
|
|
.if defined(BZIP2DEPENDS)
|
|
RUN_DEPENDS+= bzip2:${PORTSDIR}/archivers/bzip2
|
|
.endif
|
|
|
|
do-build:
|
|
.for f in portaudit-cmd.sh portaudit.sh portaudit.1 portaudit.conf
|
|
@${SED} ${SED_SCRIPT} ${FILESDIR}/${f} >${WRKDIR}/${f}
|
|
.endfor
|
|
|
|
post-build:
|
|
.for f in pkg-req pkg-install pkg-deinstall
|
|
@${SED} ${SED_SCRIPT} ${PKGDIR}/${f} >${WRKDIR}/${f}
|
|
.endfor
|
|
|
|
pre-install:
|
|
.if !defined(PACKAGE_BUILDING)
|
|
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGREQ} ${PKGNAME} INSTALL
|
|
.endif
|
|
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
do-install:
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/portaudit-cmd.sh ${PREFIX}/sbin/portaudit
|
|
@${INSTALL_DATA} ${WRKDIR}/portaudit.conf ${PREFIX}/etc/portaudit.conf.sample
|
|
@${INSTALL_MAN} ${WRKDIR}/portaudit.1 ${MAN1PREFIX}/man/man1
|
|
@${MKDIR} ${PERIODICDIR}/security
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/portaudit.sh ${PERIODICDIR}/security/410.portaudit
|
|
@${MKDIR} ${DATABASEDIR}
|
|
|
|
post-install:
|
|
@${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.post.mk>
|