Slackware packaging
Mike Mohr <[email protected]> Sun, 13 Nov 2005 19:27:34 -0800
| Newsgroups | gmane.comp.emulators.winex.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello, I just wanted to let TG staff know that with minimal changes to the TGZ packaging, you can support the Slackware packaging system natively and allow easy upgrading/removal. Essentially it involves several things: a) removing all symlinks from the package b) creating an install/ directory with information regarding the package (covered below) c) change your package naming conventions (also covered below) The archive name the package is distributes as determines its entry in the package management database. Generally speaking, you name it as follows: $PKGNAME-$VERSION-$ARCH-$REL.tgz In your case, for the latest release: cedega-5.0.1-i386-1.tgz You'd increment $REL if you had a bugfix release, but not a new version. As for the install directory, it must be placed in the root of the archive, right next to etc/ and usr/. There must be two text files therein: doinst.sh: this script serves two purposes: placing symlinks where they need to go and executing post-install procedures. slack-desc: this file must be formatted carefully, and is the text displayed while the package is installed. Generally it is a short blurb regarding the usefulness of the software being installed.=20 Search google for examples of how this file must be formatted. Once this heirarchy has been created and permissions properly set, the package is then tarred and gzipped, then the extension is renamed from tar.gz to tgz. Installation, removal, and upgrades (executed as root): installpkg cedega-5.0.1-i386-1.tgz removepkg cedega-5.0.1-i386-1.tgz upgradepkg cedega-5.0.1-i386-1.tgz There is no dependency checking in Slackware, so the "light" packages will probably not work on most Slackware installs unless the required libraries are installed separately (as you know). I have already built a package suitable for Slackware 10.2 for installation on my desktop system. If the Transgaming team wants me to upload it somewhere for them to review, I'll be happy to put it on my personal website. Contact me directly if you want a link. Regards, Michael Mohr