Skip to content
gnuu-dePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Taylor UUCP in Go

This project ports the 18 executable programs in Ubuntu's uucp 1.07-27build1 package to Go for Linux/amd64. The original software is Taylor UUCP by Ian Lance Taylor, which transfers files, mail, and news between systems over TCP, serial links, or modems. The original Debian source package and the Ubuntu binary package provide the reference code and installation layout. See LICENSE and the original original/usr/share/doc/uucp/copyright for licensing and attribution.

The eleven core tools are mechanically translated C-to-Go using ccgo and modernc libc; they are not a new Go implementation of the protocol stack. Six shell/Perl helpers and in.uucpd are Go implementations. Small cgo interfaces call system PAM, NSS, utmp and libcrypt functions. The uucp-go Debian package replaces uucp and retains its configuration, manuals, services, and spool layout.

Build and test

On Linux/amd64, install Go 1.27.x, Python 3.11+, GNU make, dpkg-deb, dpkg-source, readelf, a C compiler and libc headers, plus the PAM and crypt runtime libraries. Go modules are included under vendor/; build and packaging disable module downloads. The original Ubuntu .deb and original/ are required inputs for the existing package inventory, retained configuration/docs, and comparison tests. The two archives under sources/ are only needed to regenerate the checked-in translated Go programs using ccgo v4.38.0; the extracted sources/uucp-1.07/ tree and build/ are generated data.

make build      # build all 18 programs under build/bin/
make test       # unit/race and original-versus-Go integration tests
make package    # dist/uucp-go_<version>_amd64.deb, plus package smoke test
make source     # Debian source package: .dsc, .orig.tar.xz, .debian.tar.xz
python3 tools/verify_release.py  # rebuild source and compare binary package bytes

The integration suite tests local and recursive copies, queued execution, TCP authentication, and t/g/e/f transfers between original and Go programs in isolated test directories. The port is experimental: serial/modem operation, other protocols, PAM policies and privileged package lifecycle are not fully integration-tested. For package contents, ownership, permissions and lifecycle details, see packaging/README.md. Installing the .deb replaces the system's uucp package and restores its privileged file modes; inspect package configuration before deploying.

Versioned releases

Set the same Debian version in VERSION, debian/changelog, and packaging/control. +go1.27.1 identifies the Go-port series/revision, not the exact compiler patch version; each binary records its compiler in the installed build manifest. Tag a release v<version> (for example v1.07-27build1+go1.27.1). The GitHub Actions workflow checks version tags, builds and tests the binary and Debian source packages, publishes workflow artifacts, and attaches package files to tagged GitHub releases. The source package includes vendored Go dependencies, both upstream/Debian translation archives, the original Ubuntu package and extracted original installation payload, because packaging and interoperability tests require them. Generated objects, extracted C build trees, logs and previous package builds are excluded.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages