blob: a0ff2708a25723ca21bec13812246998bc52eead (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Created by: Peter Wemm <peter@netplex.com.au>
# $FreeBSD$
PORTNAME= conserver
PORTVERSION= 8.5
PORTREVISION= 4
CATEGORIES= comms
MASTER_SITES= ftp://ftp.physics.purdue.edu/pub/pundits/ \
http://www.komquats.com/distfiles/ \
http://people.freebsd.org/~cy/distfiles/
EXTRACT_SUFX= .tgz
MAINTAINER= cy@FreeBSD.org
COMMENT= Manage remote serial consoles via TCP/IP
BUILD_DEPENDS= makeme:devel/msrc0 \
mkcmd:devel/mkcmd
CONFLICTS_INSTALL= conserver-com-[0-9]*
# Set this to where you want console(8) to connect to by default
# or use something like ``make DEFAULTHOST=myserver.mydomain.net''
DEFAULTHOST?= localhost
DEFAULTPORT?= 782
MAKE_ENV+= DEFAULTHOST="${DEFAULTHOST}" DEFAULTPORT="${DEFAULTPORT}"
#PKGMESSAGE= ${WRKDIR}/MESSAGE
USE_RC_SUBR= conserver
do-build:
${REINPLACE_CMD} -e 's:/usr/local/lib:${PREFIX}/etc:g' \
${WRKSRC}/etc/conserver/cons.h
.for d in etc/conserver etc/console etc/autologin
@(cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} makeme \
${MAKE_ARGS} ${ALL_TARGET})
.endfor
#@${SED} -e 's:/usr/local:${PREFIX}:g' \
# ${.CURDIR}/pkg-message > ${PKGMESSAGE}
do-install:
.for d in etc/conserver etc/console etc/autologin
(cd ${WRKSRC}/$d && ${SETENV} ${MAKE_ENV} makeme \
${MAKE_ARGS} ${INSTALL_TARGET})
.endfor
@${INSTALL_DATA} ${WRKSRC}/lib/conserver.cf/conserver.cf \
${STAGEDIR}${PREFIX}/etc/conserver.cf.eg
@${SED} -e 's:/usr/local/lib:${PREFIX}/etc:g' \
${WRKSRC}/lib/conserver.cf/conserver.cf.man \
> ${STAGEDIR}${PREFIX}/man/man5/conserver.cf.5
@${SED} -e 's:/usr/local/etc:${PREFIX}/sbin:g' \
${WRKSRC}/etc/autologin/autologin.man \
> ${STAGEDIR}${PREFIX}/man/man8/autologin.8
@${SED} -e 's:/usr/local/lib:${PREFIX}/etc:g' \
${WRKSRC}/etc/conserver/conserver.man \
> ${STAGEDIR}${PREFIX}/man/man8/conserver.8
@${SED} -e 's:console\.itsd\.fedex\.com:${DEFAULTHOST}:g' \
${WRKSRC}/etc/console/console.man \
> ${STAGEDIR}${PREFIX}/man/man8/console.8
@${CHMOD} 0444 ${STAGEDIR}${PREFIX}/man/man5/conserver.cf.5 \
${STAGEDIR}${PREFIX}/man/man8/autologin.8 \
${STAGEDIR}${PREFIX}/man/man8/conserver.8 \
${STAGEDIR}${PREFIX}/man/man8/console.8
.include <bsd.port.mk>
|