freebsdpkg

package module
v0.0.0-...-79e7db0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

README

FreeBSD-pkg

Golang library for generating FreeBSD +MANIFEST JSON files

Documentation

Index

Constants

View Source
const (
	HashSHA256_Base32 hashType = iota
	HashSHA256_Hex
	HashBLAKE2_Base32
	HashSHA256_Raw
	HashBLAKE2_Raw
	HashBLAKE2S_Base32
	HashBLAKE2S_Raw
	HashUnknown
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies map[string]struct {
	Origin  string // category/package for example x11-toolkits/libgdiplus
	Version string // "5.6_2"
}

type Files

type Files map[string]string // [filename]checksum

type Manifest

type Manifest struct {
	Name         string       `json:"name"`   // Package name
	Origin       string       `json:"origin"` // category/package
	Version      string       `json:"version"`
	Comment      string       `json:"comment"` // Short description
	Maintainer   string       `json:"maintainer"`
	Url          string       `json:"www"`          // Project WWW address
	Abi          string       `json:"abi"`          // "FreeBSD:13:*"
	Architecture string       `json:"arch"`         // "freebsd:13:*"
	Prefix       string       `json:"prefix"`       // "/usr/local"
	Flatsize     int          `json:"flatsize"`     // Size when all files are unpacked
	LicenseLogic string       `json:"licenselogic"` // "single"
	Licenses     []string     `json:"licenses"`     // List of licenses
	Description  string       `json:"desc"`         // Long description
	Dependencies Dependencies `json:"deps"`
	Categories   []string     `json:"categories"`
	Options      Options      `json:"options"`
	Files        Files        `json:"files"` // [filename]checksum
	Scripts      Scripts      `json:"scripts"`
}

format for +MANIFEST file

func (*Manifest) ToCompact

func (m *Manifest) ToCompact() ManifestCompact

type ManifestCompact

type ManifestCompact struct {
	Name         string       `json:"name"`   // Package name
	Origin       string       `json:"origin"` // category/package
	Version      string       `json:"version"`
	Comment      string       `json:"comment"` // Short description
	Maintainer   string       `json:"maintainer"`
	Url          string       `json:"www"`    // Project WWW address
	Abi          string       `json:"abi"`    // "FreeBSD:13:*"
	Architecture string       `json:"arch"`   // "freebsd:13:*"
	Prefix       string       `json:"prefix"` // "/usr/local"
	Flatsize     int          `json:"flatsize"`
	LicenseLogic string       `json:"licenselogic"` // "single"
	Licenses     []string     `json:"licenses"`     // List of licenses
	Description  string       `json:"desc"`         // Long description
	Dependencies Dependencies `json:"deps"`
	Categories   []string     `json:"categories"`
	Options      Options      `json:"options"`
}

format for +MANIFEST_COMPACT file

type Options

type Options struct {
	TEST string `json:"TEST"` // "off"
}

type Scripts

type Scripts struct {
	PostInstall   string `json:"post-install"`   // Shell command(s)
	PostDeinstall string `json:"post-deinstall"` // Shell command(s)
}

Shell commands

Jump to

Keyboard shortcuts

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