blob: 870c27b2b5d881f9661f68697cb0d106fcbf4c91 (
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
|
# New ports collection makefile for: rssh
# Date created: Fri Apr 16 02:04:33 CEST 2004
# Whom: enigmatyc
#
# $FreeBSD$
#
PORTNAME= rssh
PORTVERSION= 2.2.3
CATEGORIES= shells security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= enigmatyc@laposte.net
COMMENT= A Restricted Secure SHell only for sftp or/and scp
FORBIDDEN= http://vuxml.FreeBSD.org/e34d0c2e-9efb-11da-b410-000e0c2e438a.html
GNU_CONFIGURE= yes
USE_REINPLACE= yes
MAN1= rssh.1
MAN5= rssh.conf.5
OPTIONS= RSYNC "rsync support" off \
RDIST "rdist support" off
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
IGNORE= wordexp() is not supported on 4.x
.endif
.if defined(WITH_RSYNC)
RUN_DEPENDS+= ${LOCALBASE}/bin/rsync:${PORTSDIR}/net/rsync
CONFIGURE_ARGS+=--with-rsync=${LOCALBASE}/bin/rsync
.endif
.if defined(WITH_RDIST)
RUN_DEPENDS+= ${LOCALBASE}/bin/rdist6:${PORTSDIR}/net/rdist6
CONFIGURE_ARGS+=--with-rdist=${LOCALBASE}/bin/rdist6
.endif
post-patch:
${REINPLACE_CMD} -E -e 's,(\$$\(DESTDIR\)\$$\(sysconfdir\)/\$$\$$f),\1.dist,g' \
${WRKSRC}/Makefile.in
post-install:
@${ECHO_MSG} "updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/${PORTNAME} /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
@${RM} /etc/shells.bak
.include <bsd.port.post.mk>
|