Changes

From SME Server
Jump to navigationJump to search
134 bytes added ,  11:56, 20 February 2016
no edit summary
Line 87: Line 87:  
  [root@sme8rpm]# gpg --export -a 'Foo' > RPM-GPG-KEY  
 
  [root@sme8rpm]# gpg --export -a 'Foo' > RPM-GPG-KEY  
   −
This file is necessary to import it to your RPM DB and verify a package with gpg key later on. If you're planning to share your custom built RPM packages with others, make sure to have your public key file available online in public so they can verify your custom RPM package. see [[http://wiki.contribs.org/Stephdl Stephdl repository]] for an example on how declare the pgp signature to the repository.
+
This file is necessary to import it to your RPM DB and verify a package with gpg key later on. If you're planning to share your custom built RPM packages with others, make sure to have your public key file available online in public (in the web folder of your repository) so they can verify your custom RPM package. see [[http://wiki.contribs.org/Stephdl Stephdl repository]] for an example on how declare the pgp signature to the repository.
    
* To import your public key to your RPM DB
 
* To import your public key to your RPM DB
Line 100: Line 100:     
  %_signature gpg
 
  %_signature gpg
  %_gpg_path /root/.gnupg
+
  %_gpg_path /home/youruser/.gnupg
 
  %_gpg_name Foo
 
  %_gpg_name Foo
 
  %_gpgbin /usr/bin/gpg  
 
  %_gpgbin /usr/bin/gpg  
   −
* Now, you're ready to sign your custom RPM package
+
* Now, you're ready to sign your custom RPM package (with el7 you must now install rpm-sign)
    
  root@sme8rpm]# rpmbuild -ba --sign smeserver-roundcube.spec
 
  root@sme8rpm]# rpmbuild -ba --sign smeserver-roundcube.spec
 
or
 
or
 
  root@sme8rpm]# rpm --addsign smeserver-roundcube-0.9-15.rpm
 
  root@sme8rpm]# rpm --addsign smeserver-roundcube-0.9-15.rpm
 +
or
 +
root@sme8rpm]# rpm --resign smeserver-roundcube-0.9-15.rpm
    
to verify if all is ok  
 
to verify if all is ok  
Line 115: Line 117:  
  smeserver-roundcube-0.9-15.src.rpm: (sha1) dsa sha1 md5 gpg OK
 
  smeserver-roundcube-0.9-15.src.rpm: (sha1) dsa sha1 md5 gpg OK
   −
[[Category:Howto]]
+
 
 
[[Category:SME Server Development Framework]]
 
[[Category:SME Server Development Framework]]
 
[[Category:Development Tools]]
 
[[Category:Development Tools]]
 
[[Category:SME9-Development]]
 
[[Category:SME9-Development]]

Navigation menu