Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kakwa/amkecpak

Amkecpak, a makefile based packaging framework.
https://github.com/kakwa/amkecpak

deb debian makefile package packaging redhat rpm shell

Last synced: 26 days ago
JSON representation

Amkecpak, a makefile based packaging framework.

Awesome Lists containing this project

README

        

Amkecpak, a makefile based packaging framework.

.. image:: https://travis-ci.org/kakwa/amkecpak.svg?branch=master
:target: https://travis-ci.org/kakwa/amkecpak

.. image:: https://readthedocs.org/projects/amkecpak/badge/?version=latest
:target: http://amkecpak.readthedocs.org/en/latest/?badge=latest
:alt: Documentation Status

----

:Doc: `Documentation on ReadTheDoc `_
:Dev: `GitHub `_
:Author: Pierre-Francois Carpentier - copyright © 2017

----

Packaging documentation in a nutshell
-------------------------------------

.. sourcecode:: bash

# Install the packaing tools
$ apt-get install make debhelper reprepro cowbuilder wget
# or
$ yum install make rpm-sign expect rpm-build createrepo mock wget

# Init a package foo
$ ./common/init_pkg.sh -n foo

$ cd foo/

# Implementing the package
$ vim Makefile
$ make manifest
$ vim debian/rules ; vim debian/control
$ vim rpm/component.spec

# Help for the various targets
$ make help

# Building the packages
$ make deb
$ make rpm

# Same in chroots, targeting specific distribution versions
$ make deb_chroot DIST=jessie
$ make rpm_chroot DIST=el7

$ cd ../

# gpg key generation (one time thing)
$ gpg --gen-key

# editing the global configuration
$ vim common/buildenv/Makefile.config

# Building the repositories
# Use ERROR=skip to ignore package build failures and continue building the repo
$ make deb_repo -j 4 DIST=jessie # ERROR=skip
$ make rpm_repo -j 1 DIST=el7 # ERROR=skip

If you need more information, read the `detailed documentation `_.