The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
OpenClaw FreeBSD Port
This directory contains the FreeBSD port files for OpenClaw, a personal assistant application.
Directory Structure
ports/openclaw/
├── Makefile # Port configuration and build instructions
├── distinfo # Checksum file (SHA256, SIZE)
├── pkg-descr # Short package description
├── pkg-plist # File list with installation details
├── files/
│ ├── openclaw.in # rc.d service script template
│ └── openclaw.conf.sample # Sample configuration file
└── README.md # This file
Files Overview
Makefile
- PORTNAME: openclaw
- PORTVERSION: 1.0.0
- CATEGORIES: sysutils, www
- LICENSE: MIT
- Node.js Version: node20 (Node.js 20.x)
- Installation Path: /usr/local/lib/openclaw
- User/Group: openclaw (created automatically)
- RC Script: openclaw
Key variables:
- Uses npm for dependency management
- Installs production dependencies only
- Creates openclaw user and group
- Sets up rc.d service script
pkg-descr
Package description displayed during installation. Includes:
- Brief overview of OpenClaw
- Key features
- Link to GitHub repository
pkg-plist
Package file list using standard FreeBSD conventions:
- %%PORTNAME%% macros for dynamic path substitution
- Directory ownership settings for openclaw user/group
- Staged installation (STAGEDIR)
- Configuration file marked as @sample (not overwritten on upgrades)
- Log, cache, and runtime directories with proper permissions
distinfo
Contains checksum information:
- Current Status: Placeholder values
- Update Method: Run
make makesumafter fetching the actual source - This will automatically generate correct SHA256 and SIZE values
openclaw.in (rc.d script)
FreeBSD daemon script located at files/openclaw.in:
- Installed to
/usr/local/etc/rc.d/openclaw - Configurable via
/etc/rc.conf:openclaw_enable=YESto start automaticallyopenclaw_user(default: openclaw)openclaw_group(default: openclaw)openclaw_home(default: /var/lib/openclaw)openclaw_flags(default: "gateway")
- Creates required directories with proper permissions
- Manages PID file at
/var/run/openclaw/openclaw.pid
openclaw.conf.sample
Sample configuration file:
- Copied to
/usr/local/etc/openclaw.conf.sample - Contains basic gateway and agent settings
- Users should copy to
/etc/openclaw.confand customize
Usage in FreeBSD Ports Tree
Installation Steps:
Place port in tree:
cp -r ports/openclaw /usr/ports/sysutils/Generate checksums (after obtaining source):
cd /usr/ports/sysutils/openclaw make makesumThis updates
distinfowith actual SHA256 and SIZE values.Build and install:
cd /usr/ports/sysutils/openclaw make install cleanEnable in rc.conf (optional, for automatic startup):
echo 'openclaw_enable=YES' >> /etc/rc.confStart the service:
service openclaw start
Directory Permissions
The port automatically creates:
/var/lib/openclaw/- Data directory (openclaw:openclaw)/var/log/openclaw/- Log directory (openclaw:openclaw)/var/cache/openclaw/- Cache directory (openclaw:openclaw)/var/run/openclaw/- Runtime directory (openclaw:openclaw)
Dependencies
- Runtime: node20 (Node.js 20.x)
- Build: npm (included with node20)
Compliance
This port follows FreeBSD Ports Guidelines:
- ✅ Proper PORTNAME, PORTVERSION, CATEGORIES
- ✅ LICENSE and LICENSE_FILE declarations
- ✅ Staged installation (STAGEDIR)
- ✅ User/Group management
- ✅ RC script support
- ✅ Sample configuration handling
- ✅ Proper file list (pkg-plist)
- ✅ Checksum file (distinfo)
Notes for Maintainers
- Updating Source URL: Modify
MASTER_SITESandDISTFILESin Makefile - Version Bumps: Update PORTVERSION and run
make makesum - Configuration Changes: Update pkg-plist and files/* as needed
- Testing: Use
poudrierefor build testing before submission
Next Steps
After placing in ports tree:
- Verify build:
make describe - Check dependencies:
make build-depends-list - Run checks:
portlint - Test installation:
make install -DINSTALL_AS_USER - Verify service:
service openclaw status
References
- FreeBSD Ports Developer's Handbook: https://docs.freebsd.org/en/books/porters-handbook/
- Node.js Port: https://www.freshports.org/www/node20/
- rc.d scripts guide: https://docs.freebsd.org/en/articles/rc-scripting/
- Downloads last month
- 27