deb

package
v0.0.0-...-3332e6e Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const (
	//AMD64 amd664 arch
	AMD64 = "amd64"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	Package      string `json:"-"`
	Version      string `json:"-"`
	Source       string `json:"source"`
	Depends      string `json:"depends"`
	Architecture string `json:"-"`
	Maintainer   string `json:"maintainer"`
	Conflicts    string `json:"conflicts"`
	Section      string `json:"section"`
	Homepage     string `json:"homepage"`
	Description  string `json:"description"`
}

Control represents debian control structure

type Deb

type Deb struct {
	Data     *canonical `json:"-"`
	Control  *canonical `json:"-"`
	Info     Control    `json:"control"`
	PreInst  string     `json':"pre_inst"`
	PostInst string     `json':"post_inst"`
	PreRm    string     `json:"pre_rm"`
	PostRm   string     `json:"post_rm"`
	//A package declares its list of conffiles by including a conffiles file in its control archive
	ConfFiles string `json:"conf_files"`
}

Deb represents a deb package

func New

func New(name, version, revision, arch string) (*Deb, error)

New creates new deb writer

func (*Deb) AddEmptyFolder

func (d *Deb) AddEmptyFolder(name string) error

AddEmptyFolder adds empty folder to package

func (*Deb) AddFile

func (d *Deb) AddFile(sourcePath string, targetPath string) error

AddFile adds a file to package

func (*Deb) AddFolder

func (d *Deb) AddFolder(path string, prefix string) error

AddFolder adds folder to package

func (*Deb) Create

func (d *Deb) Create(folder string) (string, error)

Create creates the deb file

Jump to

Keyboard shortcuts

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