1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Add itself to /etc/shells

PR:		ports/81257
Submitted by:	Hirohisa Yamaguchi <umq@ueo.co.jp>
Approved by:	maintainer timeout (16 days)
This commit is contained in:
Pav Lucistnik 2005-06-05 20:12:49 +00:00
parent 045dcdcadc
commit c52df97c06
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136855
2 changed files with 13 additions and 1 deletions

View File

@ -19,7 +19,6 @@ USE_REINPLACE= yes
MAN1= rssh.1
MAN5= rssh.conf.5
PLIST_FILES= bin/rssh etc/rssh.conf.dist libexec/rssh_chroot_helper
OPTIONS= RSYNC "rsync support" off \
RDIST "rdist support" off
@ -44,4 +43,11 @@ 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>

6
shells/rssh/pkg-plist Normal file
View File

@ -0,0 +1,6 @@
@comment $FreeBSD$
bin/rssh
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
etc/rssh.conf.dist
libexec/rssh_chroot_helper