summaryrefslogtreecommitdiffstats
path: root/sysutils/uschedule/Makefile
blob: c3675277bd0b378c62fb90f87a946f3df9966974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Created by: Thomas Seck <tmseck@netcologne.de>
# $FreeBSD$

PORTNAME=	uschedule
PORTVERSION=	0.7.1
PORTREVISION=	1
CATEGORIES=	sysutils
MASTER_SITES=	http://www.ohse.de/uwe/uschedule/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Scheduler program, designed to replace cron(8) and at(1)

BUILD_DEPENDS=	${LOCALBASE}/bin/tai64nlocal:sysutils/daemontools
RUN_DEPENDS=	${LOCALBASE}/bin/multilog:sysutils/daemontools

BROKEN_aarch64=		fails to build: regparm is not valid on this platform
BROKEN_armv6=		fails to build: regparm is not valid on this platform

WRKSRC=		${WRKDIR}/admin/${DISTNAME}

TEST_TARGET=	check

PORTDOCS=	ChangeLog NEWS SECURITY-BUG
bin=		uschedule uschedulecmd uscheduleconf uschedulecp \
		uscheduleedit uschedulelist uschedulerm uscheduleruntimelimit
sbin=		uscheduled
PLIST_FILES=	${bin:S,^,bin/,} ${bin:S,^,man/man1/,:S,$,.1.gz,} \
		man/man7/uschedule_intro.7.gz man/man8/uscheduled.8.gz \
		sbin/uscheduled

OPTIONS_DEFINE=	DOCS

pre-build:
	${ECHO_CMD} "${CC}" > ${WRKSRC}/src/conf-cc
	${ECHO_CMD} "${CFLAGS}" > ${WRKSRC}/src/conf-cflags

do-install:
	(cd ${WRKSRC}/command && ${INSTALL_PROGRAM} ${bin} \
		${STAGEDIR}${PREFIX}/bin)
	${INSTALL_PROGRAM} ${WRKSRC}/command/${sbin} ${STAGEDIR}${PREFIX}/sbin
	(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${bin:S,$,.1,} \
		${STAGEDIR}${MANPREFIX}/man/man1)
	${INSTALL_MAN} ${WRKSRC}/doc/uschedule_intro.7 \
		${STAGEDIR}${MANPREFIX}/man/man7
	${INSTALL_MAN} ${WRKSRC}/doc/uscheduled.8 \
		${STAGEDIR}${MANPREFIX}/man/man8

do-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC}/src && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>
OpenPOWER on IntegriCloud