blob: 6c23cb45e3eeb2382ec83446e07ec1555c67ea51 (
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
|
PORTNAME= uptimed
PORTVERSION= 0.4.6
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= pkubaj@FreeBSD.org
COMMENT= Uptime daemon
LICENSE= GPLv2 # only
LICENSE_FILE= ${WRKSRC}/COPYING
#USES= autoreconf gmake libtool
USES= autoreconf libtool
USE_GITHUB= yes
GH_ACCOUNT= rpodgorny
USE_LDCONFIG= yes
USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
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} ${STAGEDIR}${PREFIX}/www/cgi-bin
${INSTALL_PROGRAM} ${STAGEDIR}${PREFIX}/bin/uprecords \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.cgi
${INSTALL_DATA} ${WRKSRC}/sample-cgi/uprecords.conf \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.conf.sample
${INSTALL_DATA} ${WRKSRC}/sample-cgi/uprecords.header \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.header.sample
${INSTALL_DATA} ${WRKSRC}/sample-cgi/uprecords.footer \
${STAGEDIR}${PREFIX}/www/cgi-bin/uprecords.footer.sample
@${MKDIR} ${STAGEDIR}/var/spool/uptimed
.include <bsd.port.mk>
|