Commit Graph

14 Commits

Author SHA1 Message Date
Lukas Vrabec
4052eb0456
Add macro-expander to sources during creating rhat patches 2019-03-24 11:22:34 +01:00
Lukas Vrabec
b9e53a5846
Put macro expander to distgit sources 2019-03-23 18:20:45 +01:00
Lukas Vrabec
735de0477d
Update make-rhat-patches.sh script to allow everyone to download SELinux policy sources 2018-09-26 19:09:42 +02:00
Lukas Vrabec
5e55c3a415
Fix https query to download policy sources 2018-08-19 16:57:26 +02:00
Petr Lautrbach
b719841045 Improve make-rhat-patches.sh for local development
make-rhat-patches.sh had everything hard coded and didn't update spec file so it
was hard to use for local selinux-policy development. This patch doesn't change
default behavior, but makes this script configurable using environmental
variables and one option.

Usage:

If you want to change location of repositories set the following variables:

REPO_SELINUX_POLICY
  selinux-policy repository

REPO_SELINUX_POLICY_BRANCH
  selinux-policy repository branch

REPO_SELINUX_POLICY_CONTRIB
  selinux-policy repository

REPO_SELINUX_POLICY_CONTRIB_BRANCH
  selinux-policy-contrib repository branch

REPO_CONTAINER_SELINUX
  container-selinux repository

If you want to use locally created tarball (and don't download tarballs from
github), use '-l' option.

Example:

  export REPO_SELINUX_POLICY=~/devel/local/selinux-policy.git
        export REPO_SELINUX_POLICY_BRANCH=WIP-my-new-fix
        export REPO_SELINUX_POLICY_CONTRIB=~/devel/local/selinux-policy-contrib.git
        export REPO_SELINUX_POLICY_CONTRIB_BRANCH=WIP-some-contrib-fix
        export REPO_CONTAINER_SELINUX=~/devel/local/container-selinux.git

  ./make-rhat-patches.sh -l
2018-06-15 15:09:26 +02:00
Lukas Vrabec
51dc83b2d4 Commit removes big SELinux policy patches against tresys refpolicy.
We're quite diverted from upstream policy. This change will use tarballs
from github projects:
https://github.com/fedora-selinux/selinux-policy
https://github.com/fedora-selinux/selinux-policy-contrib
2018-01-08 18:28:27 +01:00
Petr Lautrbach
e55ea9eb7a make-rhat-patches.sh - Ignore submodules when generating diff
Fixes:
File policy/modules/contrib is not a regular file -- refusing to patch
1 out of 1 hunk ignored -- saving rejects to file policy/modules/contrib.rej
2017-12-06 09:56:06 +01:00
Lukas Vrabec
9d87d07100 Fix make-rhat-patches script to reflect the latest changes in fedora github repos 2017-02-20 13:55:22 +01:00
Lukas Vrabec
47948f528c Update make-rhat-patches.sh script to download patches from selinux-policy-contrib repo 2017-02-15 15:34:56 +01:00
Lukas Vrabec
ab3db24c9e Rename docker-selinux to container-selinux package 2016-10-10 16:34:35 +02:00
Lukas Vrabec
d9322551de Fix make-rhel-patches script, docker-selinux policy files are in master branch so checkout to another branch is no more needed. 2016-03-08 15:38:07 +01:00
Lukas Vrabec
b040fbf78d Fix make-rhat-patches.sh script to download right version of docker policy. 2016-03-02 17:43:18 +01:00
Miroslav Grepl
856e20097e Update make-rhat-patches.sh to avoid git-checkout for patches creation. 2015-10-23 11:06:11 +02:00
Lukas Vrabec
03d22f204f Add smart script to create the latest selinux-policy patches from github and also download the latest docker policy from github 2015-10-22 16:39:15 +02:00