summaryrefslogtreecommitdiff
path: root/sysutils/uptimed/Makefile
blob: 5ad809bbaff0d8c5bee8e618854a3cfb410ad3cf (plain) (blame)
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
# Created by: Andy Fawcett <andy@athame.co.uk>
# $FreeBSD$

PORTNAME=	uptimed
PORTVERSION=	0.3.17
CATEGORIES=	sysutils
MASTER_SITES=	http://podgorny.cz/uptimed/releases/ \
		http://www.predatorlabs.net/dl/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Uptime daemon

LICENSE=	GPLv2

USE_BZIP2=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtoolize aclocal autoheader automake autoconf
LIBTOOLIZE_ARGS=--copy --force
ACLOCAL_ARGS=	# empty
AUTOMAKE_ARGS=	--copy --add-missing --foreign
USE_LDCONFIG=	yes

USE_RC_SUBR=	${PORTNAME}

MAN1=		uprecords.1
MAN8=		uptimed.8

post-patch:
	@${REINPLACE_CMD} -e \
		's|/usr/lib/sendmail|/usr/sbin/sendmail| ; \
		 s|/var/run/uptimed|/var/run/uptimed.pid|' \
		${WRKSRC}/etc/uptimed.conf-dist

post-install:
	@${MKDIR} ${PREFIX}/www/cgi-bin
	(cd ${PREFIX}/bin && ${INSTALL_PROGRAM} uprecords \
		${PREFIX}/www/cgi-bin/uprecords.cgi)
	(cd ${WRKSRC}/sample-cgi && ${INSTALL_DATA} * \
		${PREFIX}/www/cgi-bin)
	@${MKDIR} /var/spool/uptimed

.include <bsd.port.mk>