mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
c8b43047a2
- Use correct OSVERSION for the dig(1) / drill(1) change - Don't add anything to rc.conf and periodic.conf when WITH_PACKAGE_BUILDING is set to pet poudriere and tinderbox - Re-word pkg-message - Bump PORTREVISION PR: ports/175879 Submitted by: Alex Keda <admin@lissyara.su> Approved by: maintainer Reported by: Alex Keda, 2A, and dvl Patched by: A.J. Kehoe and me
37 lines
777 B
Makefile
37 lines
777 B
Makefile
# Created by: Marc G. Fournier <scrappy@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bsdstats
|
|
PORTVERSION= 5.5
|
|
PORTREVISION= 5
|
|
CATEGORIES= sysutils
|
|
DISTFILES=
|
|
|
|
MAINTAINER= bsdstats@nanoman.ca
|
|
COMMENT= Monthly script for reporting anonymous statistics about your machine
|
|
|
|
NO_BUILD= yes
|
|
USE_RC_SUBR= bsdstats
|
|
SUB_FILES= 300.statistics pkg-message
|
|
SUB_LIST+= DIG=${DIG}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 1000500
|
|
DIG= drill
|
|
.else
|
|
DIG= dig
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/monthly
|
|
${INSTALL_SCRIPT} ${WRKDIR}/300.statistics \
|
|
${STAGEDIR}${PREFIX}/etc/periodic/monthly
|
|
|
|
post-install:
|
|
.if ! defined(BATCH) && ! defined(PACKAGE_BUILDING)
|
|
@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|