freebsd-ports/sysutils/uschedule/Makefile
Ion-Mihai Tetcu fd9efe4747 - move setup of compiler and compiler flags to the pre-build target
- no longer override do-build
- define a new regression-test target depending on build that calls the
  package's regression test scripts and allows for automated regression
  testing on the ports cluster

PR:		ports/99427
Submitted by:	maintainer
2006-06-24 18:15:11 +00:00

55 lines
1.5 KiB
Makefile

# New ports collection makefile for: uschedule
# Date created: 2004-02-19
# Whom: Thomas Seck <tmseck@netcologne.de>
#
# $FreeBSD$
#
PORTNAME= uschedule
PORTVERSION= 0.7.1
CATEGORIES= sysutils
MASTER_SITES= http://www.ohse.de/uwe/uschedule/
MAINTAINER= tmseck@netcologne.de
COMMENT= A scheduler program, designed to replace cron(8) and at(1)
BUILD_DEPENDS= ${LOCALBASE}/bin/tai64nlocal:${PORTSDIR}/sysutils/daemontools
RUN_DEPENDS= ${LOCALBASE}/bin/multilog:${PORTSDIR}/sysutils/daemontools
NO_SIZE= yes
WRKSRC= ${WRKDIR}/admin/${DISTNAME}
MAN1= uschedule.1 uschedulecmd.1 uscheduleconf.1 uschedulecp.1 \
uscheduleedit.1 uschedulelist.1 uschedulerm.1 \
uscheduleruntimelimit.1
MAN7= uschedule_intro.7
MAN8= uscheduled.8
PORTDOCS= ChangeLog NEWS SECURITY-BUG
bin= uschedule uschedulecmd uscheduleconf uschedulecp \
uscheduleedit uschedulelist uschedulerm uscheduleruntimelimit
sbin= uscheduled
PLIST_FILES= ${bin:S,^,bin/,}
PLIST_FILES+= ${sbin:S,^,sbin/,}
pre-build:
${ECHO_CMD} "${CC}" > ${WRKSRC}/src/conf-cc
${ECHO_CMD} "${CFLAGS}" > ${WRKSRC}/src/conf-cflags
regression-test: build
cd ${WRKSRC} && ${MAKE} check
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.for section in 1 7 8
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN${section}} \
${MAN${section}PREFIX}/man/man${section}
.endfor
.for d in bin sbin
cd ${WRKSRC}/command && ${INSTALL_PROGRAM} ${${d}} ${PREFIX}/${d}
.endfor
@${CAT} pkg-message
.include <bsd.port.mk>