Another package providing mkfs.ufs on linux. See also: http://packages.qa.debian.org/u/ufsutils.html
The package can be compiled and at least mkfs.ufs works. However, it requires 'operator' in /etc/group (I saw a patch on the Debian site for this in bugzilla). Further, it should be linked against -lncurses instead of -ltermcap.
Created attachment 193269 [details] libbsd-0.1.4.ebuild
Created attachment 193271 [details] ufsutils-7.2.ebuild
since libbsd conflicts with glibc's libbsd.a i've rename libbsd to libbsd_fd (freedesktop)
I've been looking for this as well. It compiles, but doesn't work on two boxes. First box - emerge --info: Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.4, glibc-2.10.1-r0, 2.6.30-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r5-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.0.1 Timestamp of tree: Fri, 18 Sep 2009 06:00:01 +0000 ccache version 2.4 [disabled] app-shells/bash: 4.0_p33 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.2-r1, 3.1.1 dev-util/ccache: 2.4-r8 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=core2 -mtune=generic -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="en en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/local" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac acl acpi alsa berkdb branding bzip2 cli cracklib crypt dbus djvu dri emacs ffmpeg firefox flac fortran gcj gd gdbm glitz gstreamer gtk hal iconv imlib isdnlog java jpeg jpeg2k kdehiddenvisibility lame laptop latex mad mime mmx mp3 mpeg mudflap ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre pdf perl png pppd python qt3 readline reflection session smp spl sse sse2 sse3 ssl svg sysfs tcpd themes theora tiff unicode v4l v4l2 vorbis wifi x264 x86 xcb xcomposite xorg xv xvid zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="intel" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS and output from mkfs.ufs/fdisk - mini ufsutils # mkfs.ufs /dev/sdb1 preposterous size -404366 mini ufsutils # fdisk -l /dev/sdb Disk /dev/sdb: 4095 MB, 4095737856 bytes 255 heads, 63 sectors/track, 497 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x8bb29e24 Device Boot Start End Blocks Id System /dev/sdb1 1 497 3992121 a6 OpenBSD mini ufsutils # mkfs.ufs -s 3992121 /dev/sdb1 mkfs.ufs: /dev/sdb1: maximum file system size is -404366 For the other box, it will create the partition, but claims maximum size is about 338MB, though the partition itself is 47GB. I'm assuming bad code...but not too much of a developer...learning...
UFS Support in both kernels, btw.
I cleaned up the ebuild and updated it to the latest version in Debian. Unfortunately, the growfs.ufs utility was never properly ported, the compiler generates some warnings and the build system does not support parallel compilation. However, the package itself is rather useful and the current issues are not serious enough to block inclusion into the main tree. I have committed sys-fs/ufsutils-8.2_p3 to the main tree, with the caveat that growfs.ufs is not built and the build system is passed -j1. Any bugs regarding it will be assigned to the BSD team and handled in a more prompt manner than this one was.