Skip to content

Commit

Permalink
Remove portsnap(8)
Browse files Browse the repository at this point in the history
Rather than having a tool in the FreeBSD base system for obtaining
the FreeBSD ports tree, users are encouraged to `pkg install git`
and then `git clone https://git.FreeBSD.org/ports.git /usr/ports`.

The portsnap servers will continue operating until FreeBSD 13 reaches
its End-of-Life, and portsnap is available from the ports tree as
ports-mgmt/portsnap.

Requested by:	portmgr
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D39563
X-MFC:		no
  • Loading branch information
cperciva committed Apr 23, 2023
1 parent fb30bb0 commit df53ae0
Show file tree
Hide file tree
Showing 22 changed files with 16 additions and 2,222 deletions.
7 changes: 7 additions & 0 deletions ObsoleteFiles.inc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
# xargs -n1 | sort | uniq -d;
# done

# 20230420: portsnap.8 removed
OLD_FILES+=etc/portsnap.conf
OLD_FILES+=usr/libexec/make_index
OLD_FILES+=usr/sbin/portsnap
OLD_FILES+=usr/share/examples/etc/portsnap.conf
OLD_FILES+=usr/share/man/man8/portsnap.8.gz

# 20230331: libpcap updated to 1.10.3
OLD_FILES+=usr/include/fmtutils.h

Expand Down
4 changes: 4 additions & 0 deletions UPDATING
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 14.x IS SLOW:
world, or to merely disable the most expensive debugging functionality
at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".)

20230422:
Remove portsnap(8). Users are encouraged to obtain the ports tree
using git instead.

20230420:
Add jobs.mk to save typing. Enables -j${JOB_MAX} and logging
eg.
Expand Down
2 changes: 1 addition & 1 deletion libexec/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ SUBDIR+= bootpd
SUBDIR+= fingerd
.endif

.if ${MK_FREEBSD_UPDATE} != "no" || ${MK_PORTSNAP} != "no"
.if ${MK_FREEBSD_UPDATE} != "no"
_phttpget= phttpget
.endif

Expand Down
5 changes: 2 additions & 3 deletions share/examples/etc/README.examples
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ nsmb.conf - smbfs lookups configuration file
pf.conf - pf(4) example configuration file
pf.os - SYN fingerprint database
phones - phone number database for tip(1)
portsnap.conf - portsnap(8) configuration file
printcap - configuration file for lpr(1)
profile - system-wide .profile for sh(1)
protocols - see protocols(5)
rc - system startup script (see init(8))
rc.bsdextended - startup policy for the mac_bsdextended(4) security module.
rc.bsdextended - startup policy for the mac_bsdextended(4) security module.
rc.firewall - ipfw(8) setup script with basic rulesets
rc.initdiskless - configuration file to boot a diskless machine
rc.resume - sample run command file for APM Resume Event
Expand All @@ -65,7 +64,7 @@ snmpd.config - example configuration file for bsnmpd(1)
sysctl.conf - configuration file for sysctl(8)
syslog.conf - configuration file for syslogd(8)
ttys - defines port configuration for init(8)
defaults/bluetooth.device.conf -
defaults/bluetooth.device.conf -
defaults/devfs.rules - default configuration rules for devfs(8)
defaults/periodic.conf - default configuration file for periodic(8)
defaults/rc.conf - default system configuration info (see rc.conf(5))
3 changes: 1 addition & 2 deletions share/man/man5/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ MAN= acct.5 \
periodic.conf.5 \
phones.5 \
portindex.5 \
portsnap.conf.5 \
procfs.5 \
protocols.5 \
quota.user.5 \
Expand Down Expand Up @@ -103,7 +102,7 @@ MAN+= freebsd-update.conf.5
.endif

.if ${MK_HESIOD} != "no"
MAN+= hesiod.conf.5
MAN+= hesiod.conf.5
.endif

.if ${MK_PF} != "no"
Expand Down
147 changes: 0 additions & 147 deletions share/man/man5/portsnap.conf.5

This file was deleted.

4 changes: 0 additions & 4 deletions share/man/man5/src.conf.5
Original file line number Diff line number Diff line change
Expand Up @@ -1437,10 +1437,6 @@ bootstrap tool.
Do not build
.Xr pmccontrol 8
and related programs.
.It Va WITHOUT_PORTSNAP
Do not build or install
.Xr portsnap 8
and related files.
.It Va WITHOUT_PPP
Do not build
.Xr ppp 8
Expand Down
1 change: 0 additions & 1 deletion share/mk/src.opts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ __DEFAULT_YES_OPTIONS = \
PF \
PKGBOOTSTRAP \
PMC \
PORTSNAP \
PPP \
QUOTAS \
RADIUS_SUPPORT \
Expand Down
3 changes: 0 additions & 3 deletions targets/pseudo/userland/Makefile.depend
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,6 @@ DIRDEPS+= \
usr.sbin/pmccontrol \
usr.sbin/pmcstat \
usr.sbin/pmcstudy \
usr.sbin/portsnap/make_index \
usr.sbin/portsnap/phttpget \
usr.sbin/portsnap/portsnap \
usr.sbin/powerd \
usr.sbin/ppp \
usr.sbin/pppctl \
Expand Down
10 changes: 1 addition & 9 deletions tools/build/mk/OptionalObsoleteFiles.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,7 @@ OLD_FILES+=usr/share/man/man5/freebsd-update.conf.5.gz
OLD_FILES+=usr/share/man/man8/freebsd-update.8.gz
.endif

.if ${MK_FREEBSD_UPDATE} == no && ${MK_PORTSNAP} == no
.if ${MK_FREEBSD_UPDATE} == no
OLD_FILES+=usr/libexec/phttpget
OLD_FILES+=usr/share/man/man8/phttpget.8.gz
.endif
Expand Down Expand Up @@ -6843,14 +6843,6 @@ OLD_FILES+=usr/share/man/man8/pmcstat.8.gz
OLD_FILES+=usr/share/man/man8/pmcstudy.8.gz
.endif

.if ${MK_PORTSNAP} == no
OLD_FILES+=etc/portsnap.conf
OLD_FILES+=usr/libexec/make_index
OLD_FILES+=usr/sbin/portsnap
OLD_FILES+=usr/share/examples/etc/portsnap.conf
OLD_FILES+=usr/share/man/man8/portsnap.8.gz
.endif

.if ${MK_PPP} == no
OLD_FILES+=etc/newsyslog.conf.d/ppp.conf
OLD_FILES+=etc/ppp/ppp.conf
Expand Down
4 changes: 0 additions & 4 deletions tools/build/options/WITHOUT_PORTSNAP

This file was deleted.

1 change: 0 additions & 1 deletion usr.sbin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ SUBDIR.${MK_OPENSSL_KTLS}+= rpc.tlsservd
SUBDIR.${MK_PF}+= ftp-proxy
SUBDIR.${MK_PKGBOOTSTRAP}+= pkg
SUBDIR.${MK_PMC}+= pmc pmcannotate pmccontrol pmcstat pmcstudy
SUBDIR.${MK_PORTSNAP}+= portsnap
SUBDIR.${MK_PPP}+= ppp
SUBDIR.${MK_QUOTAS}+= edquota
SUBDIR.${MK_QUOTAS}+= quotaon
Expand Down
5 changes: 0 additions & 5 deletions usr.sbin/portsnap/Makefile

This file was deleted.

5 changes: 0 additions & 5 deletions usr.sbin/portsnap/Makefile.inc

This file was deleted.

8 changes: 0 additions & 8 deletions usr.sbin/portsnap/make_index/Makefile

This file was deleted.

16 changes: 0 additions & 16 deletions usr.sbin/portsnap/make_index/Makefile.depend

This file was deleted.

Loading

0 comments on commit df53ae0

Please sign in to comment.