Line 512: |
Line 512: |
| Remote MyWest - WAN IP %variable Local IP 10.0.0.1 Subnet 10.0.0.0/24 | | Remote MyWest - WAN IP %variable Local IP 10.0.0.1 Subnet 10.0.0.0/24 |
| db ipsec_connections set MyWest ipsec status enabled iptype dyntostat auto start leftsourceip 10.0.0.1 leftsubnet 10.0.0.0/24 right 5.6.7.8 rightsubnet 192.168.20.0/24 security rsasig leftid West rightid East leftrsasig SomeLongPassFromWest rightrsasig SomeLongEastPasswordFromEast | | db ipsec_connections set MyWest ipsec status enabled iptype dyntostat auto start leftsourceip 10.0.0.1 leftsubnet 10.0.0.0/24 right 5.6.7.8 rightsubnet 192.168.20.0/24 security rsasig leftid West rightid East leftrsasig SomeLongPassFromWest rightrsasig SomeLongEastPasswordFromEast |
| + | |
| + | == Package modification with Git == |
| + | |
| + | ==Server Setup= |
| + | |
| + | Packages: |
| + | |
| + | To pull and read |
| + | mock,git, git-lfs |
| + | |
| + | To commit |
| + | koji |
| + | |
| + | ==For anonymous access and test building locally== |
| + | |
| + | ===Setup Mock=== |
| + | |
| + | Install /etc/mock/smeserver-11-x86_64-base.cfg |
| + | |
| + | Set up the mock files: |
| + | |
| + | mock -r smeserver-11-x86_64-base --init |
| + | |
| + | ===Clone your repo=== |
| + | |
| + | mkdir git; cd git |
| + | git clone https://src.koozali.org/smeserver/ulogd.git |
| + | cd ulogd |
| + | git clone https://src.koozali.org/smeserver/common.git common |
| + | |
| + | Do some stuff. |
| + | |
| + | Update the spec file |
| + | Bump the version |
| + | Add your changelog entry |
| + | |
| + | Test build |
| + | |
| + | make clean;prep;make mockbuild |
| + | |
| + | You should now have a rpm that you can install |
| + | |
| + | |
| + | ==For user access, test building locally and committing== |
| + | |
| + | ===Setup Koji=== |
| + | |
| + | Drop the supplied Koji files into ~/.koji |
| + | |
| + | ===Setup Mock=== |
| + | |
| + | Install /etc/mock/smeserver-11-x86_64-base.cfg |
| + | |
| + | Set up the mock files: |
| + | |
| + | mock -r smeserver-11-x86_64-base --init |
| + | |
| + | ===Clone your repo=== |
| + | |
| + | mkdir git; cd git |
| + | git clone ssh://src.koozali.org/smeserver/ulogd.git |
| + | cd ulogd |
| + | git clone ssh://src.koozali.org/smeserver/common.git common |
| + | |
| + | Do some stuff. |
| + | |
| + | Update the spec file |
| + | Bump the version |
| + | Add your changelog entry |
| + | |
| + | ===Test build=== |
| + | This will overwrite your changes and build the EXISTING version. |
| + | How do we build with the fixes? |
| + | |
| + | make clean;make prep;make mockbuild |
| + | |
| + | You should now have a rpm that you can install |
| + | |
| + | ===Committing=== |
| + | |
| + | See what has changed |
| + | git status |
| + | |
| + | Only add the required files. Beware of adding common. Should we have a .gitignore for that? |
| + | git add your.modifiedfiles |
| + | git commit -m " My new patch to fix [SME:12345]" |
| + | git push |
| + | make tag; make build |