summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2017-06-29Merge branch 'pkgimg-refactor'HEADv1.0.0masterAaron Ball
* pkgimg-refactor: Refactored pkgimg.sh
2017-06-29Refactored pkgimg.shAaron Ball
This changes the manifest format to somewhat match the Pkgfile format (shell syntax, requiring name, version, release, and a depends array). This enables better naming of the built packages. Implemented support for soon-to-come pkgmk.sh script. Rather than calling the library, we now call the same process that pkgmk uses, enabling this script to be a bit more flexible as it not longer needs to adhere to function signatures. Added helptext switch. Implemented support for external config files that provide additional variables for ports at build time. This will enable more flexible builds, which may have use when building the same package for different custom environments.
2017-06-29Refactored pkgmk.sh and libpkgAaron Ball
libpkg: Removed pkg_download_src function. This one is superceeded by the new port_download_src. libpkg: Added pkg_setup_src. This function breaks out the src setup process during the build process away from the source download process. This will enable exclusively source downloads in the future, when the switch is implemented for that. Updated pkgmk.sh to use the new functions, with their new signatures. NOTE: This commit changes behavior of pkgmk. It is now required that the cwd to be the port's directory [that contains the Pkgfile] at runtime, rather than attempting to intelligently figure out what the user meant at runtime. If the cwd does not contain a Pkgfile, the build process is aborted.
2017-06-26pkgmk.sh:Added complete supportAaron Ball
Previously, pkgmk.sh was committed in an incomplete state. This adds complete support for current project capabilities. Not pkgmk can read a Pkgfile, build it in a working directory, and convert the built product into a package file, saving the binary package to the port directory. It also now cleans up after itself, provided the KEEP_BUILD variable is set to 0.
2017-06-26Implement pkgadd supportAaron Ball
The new libpkg pkgadd function performs the installation of a compiled port. This also adds the pkgadd.sh [basic wrapper] script, which provides easy access to the process.
2017-06-26libconfig:Removed library and inclusionsAaron Ball
The only functionality using this library previously was libtemplate. Since it was recently refactored to no longer require libconfig, it is now being removed, as its functionality is a bit overengineered for the current project needs. Also removed source statements from pkgmk.sh and pkgimg.sh.
2017-06-23Restructured manifest file formatAaron Ball
Now the manifest files have a shell syntax, which contains the following required variables: * name * version * release * depends These are loaded at runtime and are now used to name the port image files (tarball, footprint, workspace, etc). This will allow easier building of an image library, as the names are no longer randomly generated, plus they are now versioned as well.
2017-06-23Cleanup of pkgmk processAaron Ball
Prefixed most internal variables pertinent to the pkgmk function and pkgimg main function with a '_' to indicate local scope. Also changed the function signature of the pkgmk function to include a variable reference which will return the package temporary working directory path. This was returned using the PKGTMP variable, which was global, and thus a bit dangerous. Not we use a local and its path is returned in the referenced variable (arg 2) Added manifest existence check.
2017-06-23Merge branch 'port-fail-exit'Aaron Ball
2017-06-23Merge branch 'footprinting'Aaron Ball
2017-06-23Merge branch 'fix-multi-ports-bug'Aaron Ball
2017-06-23Added footprinting supportAaron Ball
This adds libcommon, which contains the footprint_dir function. Also added calls to it in pkgimg.sh. Added more user messages to indicate the build destination path, footprint path, and compressed tarball/package path.
2017-06-23pkgimg:Added pkgmk exit on failure.Aaron Ball
This will make debugging problems a lot easier, and the problems much more obvious.
2017-06-23pkgimg:Added KEEP_BUILD supportAaron Ball
This new flag will prevent the port build cleanup process. This is useful for package devs to check the contents of the source path, pkg build destination, make manual changes to test things, etc. KEEP_BUILD defaults to 0 (don't keep builds). Just export to 1 (or anything but 0 really) and individual port builds will persist.
2017-06-23pkgimg:Fixed problem with multiple portsAaron Ball
When a relative PORTSDIR path was used, all ports after the first would fail because the relative path was wrong after the first build. This changes the specified path to absolute, which ensures subsequent builds do not fail for this reason.
2016-12-11Initial commitAaron Ball
Includes the GPLv3 license and headers. This version builds a basic composite port filesystem overlay from the specified manifest list. It also provides a very basic file templating system using a pseudo jinja syntax for variables (no conditional support yet). There is also a basic logging library included that outputs standardized log output indirectoy to stdout (to prevent mucking with function return vals).

Generated by cgit