team:kang:doc:apt
=>  Releases

Current version
Git/Latestdiff: 1.5.6

Latest Snapshots
Produced after each commit or rebase to new upstream version

GIT
RSBAC source code, can be unstable sometimes

=>  Events

No events planned

The repository generation is handled by reprepro.

It is stored on http://debian.rsbac.org

Reprepro store it's configuration in the /conf and /db directories. These are available through SFTP, so that it can be imported anywhere you want to update the repository.

Import & update

Get the repos

# mkdir repos && cd repos
# lftp sftp://***@rsbac.org
Password:
mirror *

Check it's complete and functional

# reprepro -Vb . check

It will output anything you need to do to fix it, if required (eg new version of reprepro need config upgrade, etc)

Usage

Add a new .deb file or it's changes file (will include all packages for this source package)

# reprepro -Vb . includedeb sid /path/to/package.deb
# reprepro -Vb . include sid /path/to/package.changes

Remove a .deb file

# reprepro -Vb . remove sid package

Check whats in the repos

# reprepro -Vb . dumpreferences

Check package version in the repos

# reprepro -b . list sid package

Cleanup the repos

# reprepro -Vb . check
# reprepro -Vb . checkpool

(And follow any indication given during the check)

The (mostly) complete manual is available on the website: http://mirrorer.alioth.debian.org/

Explanation how to set the client side to get the package is explained here: debian_ubuntu_packages_and_repository

Kernel package

The easiest is just to make a .deb with make-kpkg!

Find the debian kernel configurations here: http://merkel.debian.org/~jurij/

And adapt them to the current kernel, adding regular RSBAC options (take a look at the previous packaged kernels) Until now, kernels on this repos have usually been 686 only. However you may add any architecture.

Example:

# wget http://merkel.debian.org/~jurij/2.6.26-9/i386/config-2.6.26-1-686.gz
# gzip -d config-2.6.26-1-686.gz
# mv config-2.6.26-1-686 .config
# make oldconfig
<correct stuff>
<you might to add kernel .config option at this point>
# make menuconfig
<check and add RSBAC options, dont forget those kernels require delayed init ramdisk support>
<you might want to remove SELinux support at this point, no sense to have both enabled>

Once you are done, cleanup and build the kernel ;)

# fakeroot make-kpkg clean
# fakeroot make-kpkg --initrd 113 kernel_image
# fakeroot make-kpkg kernel_source
# fakeroot make-kpkg kernel_headers

If it fails on Ubuntu Karmic do that: http://ubuntuforums.org/showpost.php?p=8688831&postcount=1403

When done, remove the old package and add the new:

# reprepro -Vb . remove sid linux-image-2.6.24.3-rsbac
# reprepro -Vb . includedeb sid path/to/linux-image-2.6.27.10-1.4.0....deb

Tools package

Just as simple:

# cd rsbac-admin-1.4.0 && dpkg-buildpackage -rfakeroot
# reprepro -Vb . remove sid libnss-rsbac2  libpam-rsbac  rsbac-klogd librsbac-dev librsbac1 rsbac-admin rsbac-pam rsbac-doc
# reprepro -Vb . include path/to/rsbac-admin...changes
//
team/kang/doc/apt.txt · Last modified: 2010/04/22 13:40 by 127.0.0.1

team/kang/doc/apt.txt · Last modified: 2010/04/22 13:40 by 127.0.0.1
This website is kindly hosted by m-privacy