Project

General

Profile

Actions

Bug #14548

closed

snoop has strange bedfellows

Added by Joshua M. Clulow about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
packaging
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

To get the snoop utility, one must presently install the pkg:/service/network/network-clients package. This, regrettably, brings with it a variety of other programs that nobody should install anymore:

$ pkg contents -Ha path='*bin/*' network-clients
usr/bin/filesync
usr/bin/rcp
usr/bin/rdate
usr/bin/rdist
usr/bin/remsh
usr/bin/rlogin
usr/bin/rsh
usr/bin/rup
usr/bin/ruptime
usr/bin/rusers
usr/bin/whois
usr/sbin/rmt
usr/sbin/rwall
usr/sbin/snoop
usr/sbin/spray

We should just create a pkg:/network/snoop and put it in there. Presumably the existing package should then depend on the new package so that we don't inhibit any coping mechanisms people may already have in place.

Actions #1

Updated by Joshua M. Clulow about 2 years ago

  • Assignee set to Joshua M. Clulow
Actions #2

Updated by Electric Monk about 2 years ago

  • Gerrit CR set to 2058
Actions #3

Updated by Joshua M. Clulow over 1 year ago

Testing Notes

I built and installed the bits on a machine that already had the original network-clients package installed. I confirmed that the update kept snoop on the system, and that I was then able to remove the unwanted software without removing snoop.

Before onu:

root@jmctest:~# uname -a
SunOS jmctest 5.11 helios-1.0.21248 i86pc i386 i86pc

root@jmctest:~# cat /etc/versions/build
heads/master-0-g4f9241761d

root@jmctest:~# pkg contents network-clients | grep snoop
usr/sbin/snoop
usr/share/man/man8/snoop.8

root@jmctest:~# pkg list network-clients
NAME (PUBLISHER)                  VERSION                    IFO
service/network/network-clients   0.5.11-1.0.21248           i--

root@jmctest:~# pkg contents network-clients | grep snoop
usr/sbin/snoop
usr/share/man/man8/snoop.8

updating to new bits:

# pkg -R /a update -v
...
Changed packages:
helios-dev -> on-nightly
...
  service/network/network-clients
    0.5.11-1.0.21248 -> 0.5.11-1.0.999999
...
on-nightly
  network/snoop
    None -> 0.5.11-1.0.999999

After onu:

root@jmctest:~# uname -a
SunOS jmctest 5.11 rti/14548-0-g4e964cffcd i86pc i386 i86pc

root@jmctest:~# cat /etc/versions/build
heads/rti/14548-0-g4e964cffcd

root@jmctest:~# pkg list network-clients snoop
NAME (PUBLISHER)                  VERSION                    IFO
network/snoop                     0.5.11-1.0.999999          i--
service/network/network-clients   0.5.11-1.0.999999          i--

root@jmctest:~# pkg contents network-clients | grep snoop

root@jmctest:~# pkg contents snoop
PATH
usr
usr/sbin
usr/sbin/snoop
usr/share
usr/share/man
usr/share/man/man8
usr/share/man/man8/snoop.8

root@jmctest:~# pkg uninstall -v network-clients
...
            Packages to remove:        1
...
Changed packages:
on-nightly
  service/network/network-clients
    0.5.11-1.0.999999 -> None
...

root@jmctest:~# which rsh
no rsh in /usr/sbin /sbin /usr/bin

root@jmctest:~# which snoop
/usr/sbin/snoop
Actions #4

Updated by Electric Monk over 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 470204d3561e07978b63600336e8d47cc75387fa

commit  470204d3561e07978b63600336e8d47cc75387fa
Author: Joshua M. Clulow <josh@sysmgr.org>
Date:   2022-10-19T04:48:17.000Z

    14548 snoop has strange bedfellows
    Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
    Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
    Reviewed by: Marcel Telka <marcel@telka.sk>
    Reviewed by: Toomas Soome <tsoome@me.com>
    Approved by: Dan McDonald <danmcd@mnx.io>

Actions

Also available in: Atom PDF