项目作者: holocm

项目描述 :
Cross-distribution system package compiler
高级语言: Go
项目地址: git://github.com/holocm/holo-build.git
创建时间: 2015-12-03T21:34:57Z
项目社区:https://github.com/holocm/holo-build

开源协议:GNU General Public License v3.0

下载


holo-build - cross-distribution system package compiler

Build Status

Holo relies on system packages to deploy
configuration files and install applications. Distributions offer tooling to
build such packages, but most of the time, these tools impose an unnecessary
overhead when the goal is just to package up a few static files and list some
dependencies. holo-build provides a simple, distribution-independent package
description language and generates a system package from such a description.
Supported package formats include dpkg, pacman and RPM.

  1. [package]
  2. name = "hologram-systemd-timesyncd"
  3. version = "1.0"
  4. author = "Jane Doe <jane.doe@example.org>"
  5. requires = ["systemd"]
  6. [[file]]
  7. path = "/etc/systemd/timesyncd.conf.d/server.conf"
  8. content = """
  9. [Time]
  10. NTP=ntp.someserver.local
  11. """
  12. [[symlink]]
  13. # as created by `systemctl enable systemd-timesyncd`
  14. path = "/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service"
  15. target = "/usr/lib/systemd/system/systemd-timesyncd.service"
  16. [[action]]
  17. on = "setup"
  18. script = "systemctl daemon-reload && systemctl start systemd-timesyncd"
  19. [[action]]
  20. on = "cleanup"
  21. script = "systemctl stop systemd-timesyncd"

Installation

It is recommended to install holo-build as a package.
The website lists distributions that have a holo-build
package available.

holo-build requires Go and Perl as
build-time dependencies. There are no runtime dependencies other than a libc.
Once you’re all set, the build is done with

  1. make
  2. make check
  3. sudo make install

Documentation

User documentation is available in man page form.

For further information, visit holocm.org.