2004-05-21 15:37:24 +02:00
|
|
|
# New ports collection makefile for: rssh
|
|
|
|
# Date created: Fri Apr 16 02:04:33 CEST 2004
|
|
|
|
# Whom: enigmatyc
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rssh
|
2006-03-11 18:47:22 +01:00
|
|
|
PORTVERSION= 2.3.2
|
2004-05-21 15:37:24 +02:00
|
|
|
CATEGORIES= shells security
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
2006-07-17 22:03:19 +02:00
|
|
|
MAINTAINER= thomas@goodking.ca
|
2004-05-21 15:37:24 +02:00
|
|
|
COMMENT= A Restricted Secure SHell only for sftp or/and scp
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2004-09-21 22:37:18 +02:00
|
|
|
|
2004-05-21 15:37:24 +02:00
|
|
|
MAN1= rssh.1
|
2004-09-21 22:37:18 +02:00
|
|
|
MAN5= rssh.conf.5
|
2004-05-21 15:37:24 +02:00
|
|
|
|
2004-09-21 22:37:18 +02:00
|
|
|
OPTIONS= RSYNC "rsync support" off \
|
|
|
|
RDIST "rdist support" off
|
|
|
|
|
2004-05-23 15:31:11 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-09-21 22:37:18 +02:00
|
|
|
|
2004-05-23 15:31:11 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
IGNORE= wordexp() is not supported on 4.x
|
|
|
|
.endif
|
2004-09-21 22:37:18 +02:00
|
|
|
|
|
|
|
.if defined(WITH_RSYNC)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/rsync:${PORTSDIR}/net/rsync
|
|
|
|
CONFIGURE_ARGS+=--with-rsync=${LOCALBASE}/bin/rsync
|
|
|
|
.endif
|
|
|
|
|
2004-11-03 10:17:41 +01:00
|
|
|
.if defined(WITH_RDIST)
|
2004-09-21 22:37:18 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/rdist6:${PORTSDIR}/net/rdist6
|
|
|
|
CONFIGURE_ARGS+=--with-rdist=${LOCALBASE}/bin/rdist6
|
|
|
|
.endif
|
|
|
|
|
2004-11-03 10:17:41 +01:00
|
|
|
post-patch:
|
2006-03-11 18:47:22 +01:00
|
|
|
@${REINPLACE_CMD} -E -e 's,(\$$\(DESTDIR\)\$$\(sysconfdir\)/\$$\$$f),\1.dist,g' \
|
2004-11-03 10:17:41 +01:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
2005-06-05 22:12:49 +02:00
|
|
|
post-install:
|
|
|
|
@${ECHO_MSG} "updating /etc/shells"
|
|
|
|
@${CP} /etc/shells /etc/shells.bak
|
|
|
|
@(${GREP} -v ${PREFIX}/bin/${PORTNAME} /etc/shells.bak; \
|
2006-03-11 18:47:22 +01:00
|
|
|
${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
|
2005-06-05 22:12:49 +02:00
|
|
|
@${RM} /etc/shells.bak
|
|
|
|
|
2004-05-23 15:31:11 +02:00
|
|
|
.include <bsd.port.post.mk>
|