RazWall Community

Development => Dev Stuff => Topic started by: razwall on March 07, 2025, 08:46:17 AM

Title: razwall package build instructions - test 1
Post by: razwall on March 07, 2025, 08:46:17 AM
Slackware package step‐by‐step guide:

1. Create a Temporary Packaging Directory
Set up a directory that mirrors where your files will be installed. For example, if files need to go in /razwall and your configuration files in /etc/razconfig and /var/razlib something like:
mkdir -p razwallpkg/razwall
mkdir -p razwallpkg/etc/razconfig..
mkdir -p razwallpkg/var/razlib..
Then copy your files into these directories.

2. Create the Package Metadata
Inside your package root, create an install directory (if it doesn’t already exist) and add a slack-desc file. This file is a plain-text description of your package. A minimal example might look like:
                    |-----handy-ruler------------------------------------------------------|

razwall: RazWall Firewall - Simple is Safe
razwall:
razwall: RazWall Firewall is a small linux firewall package built
razwall: on Slackware 15. This release uses iptables, OpenVPN, bind9
razwall: isc-dhcp-server, and Apache.
razwall:
razwall: Homepage:  https://razwall.com
razwall: Support:  https://razwall.com/forum
razwall: Download:  https://sourceforge.com/projects/razwall
razwall: Source:    https://github.com/p3rlphr33k/razwall
razwall:

Maximum of 11 lines! – Ruler just for line length, do not include.
Place this file at razwallpkg/install/slack-desc.
3. (Optional) Add Installation Scripts
If you need to run any pre- or post-install to update configurations or set permissions, you can include scripts like doinst.sh in the razwallpkg/install directory. However, this isn’t necessary.
4. Build the Package
Change to your package root directory and use Slackware’s makepkg tool to create your package archive. For example:
cd razwallpkg
makepkg -l y -c n ../razwall-1.0.txz
Here:
• -l y tells makepkg to preserve the file permissions.
• -c n tells it not to compress the package contents (you can adjust these flags as needed).
This command creates a Slackware package (either .txz or .tgz, depending on your system’s default) in the parent directory.

5. Test Your Package
Finally, install your package on a test system using Slackware’s installpkg:
installpkg razwall-1.0.txz