summaryrefslogtreecommitdiff
path: root/README.vserver.md
blob: cfd3ee9e6a2b38a9c18b5ee4a590ba635e745ca6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# cleanbuild vserver engine

cleanbuild vserver engine requires vserver with special customizations.

Dependencies:
- git-core
- mount
- perl-base
- poldek
- rpm-build-tools >= 4.5-3
- subversion
- sudo

# Setup

## Install all dependencies

configure passwordless sudo for user you use for cleanbuild

    visudo

add something like (assuming you have 'builder' as dedicated account)

    builder ALL=(ALL) NOPASSWD: ALL
    Defaults:builder env_keep += USER

create rpm dir

    builder --init-rpm-dir

create directories

    mkdir ~/rpm/cleanRPMS
    mkdir ~/rpm/cleanRPMS.repo

checkout the repo

    git clone ssh://git@git.pld-linux.org/projects/cleanbuild

set local user name

    echo 'USER="builder"' > .cleanbuildrc

Notes for vserver:

  If you are inside vserver, you need to have following context capabilities
  (add these lines to `/etc/vserver/<name>/ccapabilities`):

    SECURE_MOUNT
    BINARY_MOUNT

  And following system capabilities (add these lines to
  `/etc/vserver/<name>/bcapabilities`):

    MKNOD
    SYS_ADMIN