diff options
author | pav <pav@FreeBSD.org> | 2005-06-05 20:12:49 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-06-05 20:12:49 +0000 |
commit | 58a32fe72c1292ed78cf91f30a7116e186a532c6 (patch) | |
tree | b9da15a97e4504c7feabad7b9a2f8cf7c170adc3 /shells/rssh | |
parent | 8c7895d34bb474e40b41720d3141362fc4f0c1e9 (diff) | |
download | FreeBSD-ports-58a32fe72c1292ed78cf91f30a7116e186a532c6.zip FreeBSD-ports-58a32fe72c1292ed78cf91f30a7116e186a532c6.tar.gz |
- Add itself to /etc/shells
PR: ports/81257
Submitted by: Hirohisa Yamaguchi <umq@ueo.co.jp>
Approved by: maintainer timeout (16 days)
Diffstat (limited to 'shells/rssh')
-rw-r--r-- | shells/rssh/Makefile | 8 | ||||
-rw-r--r-- | shells/rssh/pkg-plist | 6 |
2 files changed, 13 insertions, 1 deletions
diff --git a/shells/rssh/Makefile b/shells/rssh/Makefile index a9421c8..8f368e6 100644 --- a/shells/rssh/Makefile +++ b/shells/rssh/Makefile @@ -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> diff --git a/shells/rssh/pkg-plist b/shells/rssh/pkg-plist new file mode 100644 index 0000000..4bfa5f9 --- /dev/null +++ b/shells/rssh/pkg-plist @@ -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 |