# /usr/ports/sysutils/Makefile.local		by jhs_ERASE_@berklix.com
.include "../Makefile.undef"

.if defined(BERKLIX_CLIENT)	#{
SUBDIR += am-utils # Amd not built by default on src-13 & will be removed from base

# SUBDIR += bsdstats	# Uncomment after I have read what is sends.

SUBDIR += bsdadminscripts # for distviper to purge old distfiles
# To purge old distfiles, See Also:
#  http://lists.freebsd.org/pipermail/freebsd-ports/2015-October/100830.html
#  ports-mgmt/portmaster
#  ports-mgmt/portupgrade

SUBDIR += cdrtools	# For cdrecord, cdda2wav etc
.endif	#}

.if (defined(BERKLIX_CLIENT) ) #{
#	I used to keep binary ready on all machines, because if a machine ages,
#	it might be difficult to find a similar vintage release to perform
#	a rescue of a partition (assuming it will boot at all).
#	But now I expect to remove disk & perform rescue on another host.
SUBDIR += dd_rescue	# For disk rescue.

# SUBDIR += ddrescue	# I have not used this. For disk rescue.

# SUBDIR += fatback 	# I have not used this. For disk rescue.

# SUBDIR += foremost 	# I have not used this. For disk rescue.

# SUBDIR += magicrescue 	# I have not used this. For disk rescue.

# SUBDIR += testdisk 	# I have not used this. For disk rescue.

SUBDIR += ffs2recov	# I have used this.

# See Also ../graphics/recoverjpeg

# See Also:  http://www.sleuthkit.org fls, dls and ils documentation has been moved into a web page
# See Also:  http://www.pcinspector.de
# See Also:  http://sfdumper.sourceforge.net

# See Also: ntfsfix -b -d  /dev/da0s3       # From /usr/ports/sysutils/fusefs-ntfs 

.endif	#}

.if defined(BERKLIX_CLIENT)	#{
.if ( defined(BERKLIX_AMBITIOUS) ) #{
SUBDIR += dvdbackup	# for other dvd tools see /usr/ports/multimedia/
.endif	#}

SUBDIR += dvd+rw-tools	#  growisofs (DVD writer)

SUBDIR += e2fsprogs	# Could be handy for fsck''ing Linux ext2
#			  mount just needs kldload /boot/kernel/ext2fs.ko
#			  & will show capability with lsvfs
#	rwmaillists@@@googlemail.com wrote questions@freebsd.org 18 Apr 2012
#		"ext3 is ext2+journalling. If fsck supports ext3,
#		then it can sync the journal and the partition can
#		be safely mounted as ext2."
#	/usr/local/share/doc/e2fsprogs/
#		COPYING
#			http://e2fsprogs.sourceforge.net
#		RELEASE-NOTES:
#			E2fsprogs 1.19 (July 13, 2000)
#			Create a symbolic link for fsck.ext3, since the
#			e2fsprogs utilities are used for ext3 as well.
#	Also useful for creating a Linux FS for
#		../../../../../../txt/dvd/formats/	AV export to HUMAX
.endif	#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) || \
	 defined(BERKLIX_SERVER) )	#{
SUBDIR += etcmerge	# in place of mergemaster
.endif					#}

.if ( defined(BERKLIX_CLIENT) ) #{
# SUBDIR += fusefs-exfat	# for sdxc card >= 32G , supports write. Breaks on perl on 12.0-RELEASE
#			# http://en.wikipedia.org/wiki/Secure_Digital#SDXC
#			# (sdhc are <= 32G & fat32)

# See Also: ntfs-3g                         # /usr/ports/sysutils/fusefs-ntfs
SUBDIR += fusefs-ntfs	# NTFS in kernel is read only,
#	-------
#	Despite { man mount_ntfs: "There is limited writing ability." }
#	To mount with write, see man ntfs-3g from sysutils/fusefs-ntfs.
#	-------
#	pkg-descr
#		FreeBSD-8.3 & 9.0 http://www.tuxera.com/community/
#		ports-current 2012-10-17 (after 9.0 & 8.3):
#			http://www.tuxera.com/community/ntfs-3g-download/
#	-------
#	Differences in *bin* in pkg-plist between ntfs & fusefs-ntfs :
#		bin/lowntfs-3g		Only in fusefs-ntfs
#		bin/ntfs-3g		Only in fusefs-ntfs
#		bin/ntfs-3g.probe	Only in fusefs-ntfs
#		bin/ntfs-3g.secaudit	Only in fusefs-ntfs
#		bin/ntfs-3g.usermap	Only in fusefs-ntfs
#		bin/ntfsmount		Only in ntfs
.endif	#}

.if ( defined(BERKLIX_SERVER) ) #{ && ( $hostname==slim )
# SUBDIR += fusefs-libs
# Line above not explicity needed as
#	pkg_info -R fusefs-libs-2.9.2
#		Required by: open-vm-tools-nox11-425873_2,1
#	pkg_info -R fusefs-kmod-0.3.9.p1.20080208_11
#		Required by: open-vm-tools-nox11-425873_2,1
# ---------
#	kldstat: no fuse modules, just:  kernel vmmemctl.ko vmxnet.ko ipfw.ko
.endif	#}

.if ( defined(BERKLIX_CLIENT) ) #{
.if ( defined(BERKLIX_AMBITIOUS) ) #{
SUBDIR += ezjail	# Used by np# to create frame of land.b
#	Add to clients for testing jails localy before I try remote.
.endif	#}

SUBDIR += hw-probe	# info tool, rec. by gary 2021-11-04

SUBDIR += jailutils	# Tools to look at later.
# http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-tuning.html
.endif	#}


.if ( defined(BERKLIX_CLIENT) ) #{{
#	GTK based system monitor.
SUBDIR += gkrellm2
#		Gary & Maintainer have both hacked current after 7.2
#		to show both cores
.elif ( defined(BERKLIX_GATE) ) #}{
#		gkrellm2 on 6.4-RELEASE(BERKLIX_GATE) fails:
#		Glib 2.14.0 required
#	76 dependencies cd /var/db/pkg; pkg_info -r gkrellm-2* | wc -l
#	All were already present in the 135 already built by
#	cd /usr/ports ; xs make BERKLIX_SERVER=YES package
.if ( defined(BERKLIX_AMBITIOUS) ) #{
# SUBDIR += gkrellm	# gkrellm conflicts with gkrellm2
#	gkrellm not in 2015-09-18 current
#		gkrellm on 6.4-RELEASE make package: OK
.endif	#}
.endif	#}}

.if defined(BERKLIX_AMBITIOUS)	#{
# Not used on most hosts, but maybe handy for USB devices.
.if ( defined(BERKLIX_CLIENT) ) #{
.if ${ARCH} == "i386"	   # {
# SUBDIR += grub		# Grand Unified Bootloader. Just for i386
SUBDIR += grub2	#On 9.2-RELEASE & current. Builds on amd64. Conflicts with grub
.endif	#}
.endif	#}
.endif	#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) )	#{
#	No longer needed: BERKLIX_SERVER
SUBDIR += healthd	# see also mbmon
.endif					#}

.if defined(BERKLIX_CLIENT)	#{
.if defined(BERKLIX_AMBITIOUS)	#{

.if (( ${OSVERSION} == 802000 ) || ( ${OSVERSION} == 803000 ) \
	|| ( ${OSVERSION} == 900044 ))
# k3b-1.0.5_11 is marked as broken: does not compile on FreeBSD 9.X.
# 8.3-RELEASE: kdelibs-3.5.10_8 conflicts with installed package(s): openssl
.else				#}{
SUBDIR += k3b	# Burn DVD rec < gj.
.endif

.if (( ${OSVERSION} != 802000 ) && ( ${OSVERSION} != 803000 )) #{
#	8.2-RELEASE depends on x11-toolkits/qt33 breaks on KDE_PATCHES
#	8.3-RELEASE Bad
# SUBDIR += kdirstat	# graphical du
.endif				#} ${OSVERSION}
#				can keep a database
#				so perhaps could use it to figure
#				what suddenly used more disk ?
#		Compiles & run on 8.2 but not investigated yet.
#		10.0-RELEASE breaks on kdelibs4 > mDNSResponder
.endif					#} BERKLIX_AMBITIOUS

SUBDIR += libdvdread	# For vobcopy.

SUBDIR += libdvdcss	# For vobcopy, without it, vobcopy takes hours
#			  to produce a mere 24M, & floods of device errors.

.if ( ${MACHINE_ARCH} == "i386" )	#{
SUBDIR += libretto-config
.endif					#}	${MACHINE_ARCH} == "i386"
.endif					#}	BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) ) #{
#	No longer needed: BERKLIX_SERVER
SUBDIR += lmmon 	# see also mbmon
.endif	#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) || \
	 defined(BERKLIX_SERVER) )	#{
SUBDIR += lsof		# Trace open ports on firewall
.endif	#}

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) ) #{
#	No longer needed: BERKLIX_SERVER
SUBDIR += xmbmon 	# for mbmon.sh on local as well as remote.
#			See also man coretemp
.endif	#}

.if defined(BERKLIX_CLIENT)	#{
# SUBDIR += mkisofs	#Doesnt exist on 12.0-CURRENT-2017-11-15

SUBDIR += nut		# UPS power monitor

# SUBDIR += apcupsd	# not tried this. probably be less convenient for me 
#			# than nut, as I have both apc & compaq, apcupsd.org

SUBDIR += portupgrade	# < gnomelogalyzer.sh < sysutils/policykit

SUBDIR += psearch	# for searching the FreeBSD Ports - see also pib

# SUBDIR += portbrowser	# Note pib is often broken. Doesnt exist on 12.0-CURRENT-2017-11-15

SUBDIR += portupgrade

SUBDIR += smartmontools # smartctl -a /dev/ad0 extra to:
#			# "atacontrol cap ad0" & "atacontrol info ata0"

SUBDIR += tkdvd 	#  TkTcl front end for growisofs

SUBDIR += vobcopy	# DVD
# See Also, for others similar:
# /usr/ports/sysutils/vobcopy/work/vobcopy-1.1.1/alternative_programs.txt
#	dvdbackup
#	/usr/ports/multimedia/libdvdread/work/libdvdread-0.9.7/src/play_title
#	tccat:		../multimedia/transcode
#	multimedia/lxdvdrip

# SUBDIR += webmin	# Uwe likes it.
#			#  See also mail-toaster.org sysutils/dtc
#			# (lots of dependencies) ?/syscpm, ispman.net

.if ( ${OSVERSION} != 802000 )	#{	bad on 8.2-RELEASE
SUBDIR += xfburn	# gary uses at 2010.09
# USE_GNOME= intltool intlhack glib20 gtk20
# 11.0-CURRENT 2015-10-11 x11/libxfce4menu/ gtk/gtk.h' file not found
.endif				#} ${OSVERSION}
.endif	#} BERKLIX_CLIENT

.if ( defined(BERKLIX_CLIENT) || defined(BERKLIX_GATE) )	#{
SUBDIR += xmbmon	# remote servers fan speed & cpu temp. gj reckons
#			# prob. ok for my host=fire via chipset for voltage
#			# but maybe not for temp.
.endif	#}
