aboutsummaryrefslogtreecommitdiffstats
path: root/shells/rssh
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-06-06 04:12:49 +0800
committerpav <pav@FreeBSD.org>2005-06-06 04:12:49 +0800
commit58a32fe72c1292ed78cf91f30a7116e186a532c6 (patch)
treeb9da15a97e4504c7feabad7b9a2f8cf7c170adc3 /shells/rssh
parent8c7895d34bb474e40b41720d3141362fc4f0c1e9 (diff)
downloadfreebsd-ports-gnome-58a32fe72c1292ed78cf91f30a7116e186a532c6.tar.gz
freebsd-ports-gnome-58a32fe72c1292ed78cf91f30a7116e186a532c6.tar.zst
freebsd-ports-gnome-58a32fe72c1292ed78cf91f30a7116e186a532c6.zip
- 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/Makefile8
-rw-r--r--shells/rssh/pkg-plist6
2 files changed, 13 insertions, 1 deletions
diff --git a/shells/rssh/Makefile b/shells/rssh/Makefile
index a9421c80b4a4..8f368e602924 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 000000000000..4bfa5f99c1a6
--- /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