tarakbumba / zeynep

RPM packages build tool in a clean Mageia chroot environment for Mageia Linux distribution
GNU General Public License v2.0
2 stars 0 forks source link

zeynep

RPM packages build tool in a clean Mageia chroot environment for Mageia Linux distribution

Zeynep is a bash script which generates a chroot environment, installs basesystem, compresses it into a tar.xz archive for future uses. It can creates a chroot environment using its own generated tar.xz archive; copies source rpm package into chroot; installs build dependencies and creates rpm packages.

I tried to use "iurt" but could not find a guide enough to understand. I tried "aum" (perl version) and it was very useful. Unfortunately i needed some futures that aum does not have:

So, zeynep born.

Usage

Examples:

Installation:

You should have at least autoconf and gettext-devel packages installed to build and install zeynep. Normally you should run

    ./autogen.sh

    ./configure

    make

and as root

    make install

Without any option specified zeynep will install in /usr directory. Please refer to the INSTALL file for installation steps and options.

Runtime Dependencies:

Zeynep needs to rpm, urpmi, rpmbuild, sed and sudo be install to run. For localization support you should have gettext package installed. Also rpm-tidy and rpm-sign should be installed to clean older rpms and rpm signing features.

Configuration of /etc/sudoers (optional)

This may be harmful for your setup and YOU'VE BEEN WARNED!

You can configure your /etc/sudoers file in a way that you won't need to type your sudo password everytime needed. Add below lines at the end of your /etc/sudoers file. Note that you should use "visudo" command to do this:

    your_username ALL=(root) NOPASSWD: /whare/zeynep_is_installed/zeynep

Known Limitations:

You should notice that "Z" option follows "-m" option which requires an argument which is "4" here. Getopts parse these in a way that "Z" becomes argument for "-m" and this will result as mageia_version="Z" and of course zeynep will fail. So, do not use options like that. Altough this should work:

    zeynep -Zm 4 -s foo.src.rpm

Authors:

Atilla ÖNTAŞ

Bugs:

Please report any bugs you've found to https://github.com/tarakbumba/zeynep/issues/new