debpack

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DEB

type DEB struct {
	DEBMetaData
	// contains filtered or unexported fields
}

func NewDEB

func NewDEB(meta DEBMetaData) (*DEB, error)

NewDEB is a constructor for the debian package builder.

func (*DEB) AddFile

func (deb *DEB) AddFile(file DEBFile)

func (*DEB) AddPostin

func (deb *DEB) AddPostin(s string)

func (*DEB) AddPostun

func (deb *DEB) AddPostun(s string)

func (*DEB) AddPrein

func (deb *DEB) AddPrein(s string)

func (*DEB) AddPreun

func (deb *DEB) AddPreun(s string)

func (*DEB) Write

func (deb *DEB) Write(w io.Writer) error

type DEBFile

type DEBFile struct {
	Name  string
	Body  []byte
	Mode  uint
	Owner string
	Group string
	MTime time.Time
	Type  FileType
}

type DEBMetaData

type DEBMetaData struct {
	Package,
	Version,
	Maintainer,
	Summary,
	Description,
	Section,
	Priority string
	Essential bool
	Architecture,
	Origin,
	Bugs,
	Homepage string
	Tag    []string
	Source string
	Depends,
	PreDepends,
	Recommends,
	Suggests,
	Breaks,
	Conflicts,
	Replaces,
	Provides Relations
}

func (*DEBMetaData) MakeControl

func (meta *DEBMetaData) MakeControl() []byte

type FileType

type FileType int32

FileType is a type identifier in debian package.

const (
	Directory FileType = 1 << iota >> 1

	// GenericFile is just a basic file. if value is not specified, this file is a directory
	GenericFile

	// ConfigFile is a configuration file, and an existing file should be saved during a package
	// upgrade operation and not removed during a package removal time. This file will be stored
	// in conffile text based file in deb package archive.
	ConfigFile

	// ExcludeFile is not a part of the package, and should not be installed.
	ExcludeFile
)

type Relations

type Relations []string

func (*Relations) Set

func (r *Relations) Set(pkgString string) error

Jump to

Keyboard shortcuts

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