bsdpkg

command
v0.0.0-...-04e40b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2018 License: GPL-3.0 Imports: 14 Imported by: 0

README

bsdpkg

notes

Since this is a new language, pick small problems to solve before stitching them all together.

  • how to traverse directories for file info
  • sha265 a file
  • deal with and use command-line options (flag pkg)
  • read in a JSON manifest file
  • interpolate file chsecksums into manifest
  • how to print out a compact version of the manifest (omitempty?)
  • interpolate pre/post de/install scripts into manifest
  • add files to a tar
  • gzip compress a tar
  • assert /usr/local/* paths in the archive? (Yes)
  • flags to set app version and pkg number
  • move this to cmd/bsdpkg/readme.md
  • tests

If I can get this working, packaging scripts can focus mostly on moving files into an appropriate hierarchy (see kmake), then invoking this.

So, this doesn't have to be complete enough to compete with the true pkg-create command. Just be something good enough for Clojure (or similar) apps.

License

Copyright (c) 2017 Keith Irwin

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL