Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1301915 Details for
Bug 1198723
[RFE] GPG support for Debian packages /repos
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh90 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
script for generating metafiles for repo signing
secureApt.sh (text/plain), 1.61 KB, created by
ppanon-avi
on 2017-07-20 17:21:23 UTC
(
hide
)
Description:
script for generating metafiles for repo signing
Filename:
MIME Type:
Creator:
ppanon-avi
Created:
2017-07-20 17:21:23 UTC
Size:
1.61 KB
patch
obsolete
>#!/bin/bash ># ># Creates the Release and Release.gpg files for APT repo ># based on Packages and Packages.gz files ># The created files make the repo a "signed" repo > >if [ "$1" = "" -o "$2" = "" ]; then echo "Usage: secureApt.sh DIST SUITE";exit 1;fi > >DATE=`date "+%a, %d %b %Y %H:%M:%S %z"` >GPG_PASS='foobar' > >HEADER="Origin: Ubuntu >Label: Ubuntu >Suite: $2 >Version: 12.04 >Codename: $1 >Date: ${DATE} >Architectures: amd64 >Components: repodata >Description: Ubuntu Precise 12.04 >MD5Sum:" > >PACKAGES_MD5=($(md5sum Packages)) >PACKAGES_SIZE=$(stat -c%s Packages) >PACKAGESGZ_MD5=($(md5sum Packages.gz)) >PACKAGESGZ_SIZE=$(stat -c%s Packages.gz) >PACKAGES_SHA256=($(sha256sum Packages)) >PACKAGESGZ_SHA256=($(sha256sum Packages.gz)) > ># write Release file with MD5s >rm -rf Release >echo -e "${HEADER}" > Release >echo -e " ${PACKAGES_MD5}\t${PACKAGES_SIZE}\trepodata/binary-amd64/Packages" >> Release >echo -e " ${PACKAGESGZ_MD5}\t${PACKAGESGZ_SIZE}\trepodata/binary-amd64/Packages.gz" >> Release >echo -e "SHA256:" >> Release >echo -e " ${PACKAGES_SHA256}\t${PACKAGES_SIZE}\trepodata/binary-amd64/Packages" >> Release >echo -e " ${PACKAGESGZ_SHA256}\t${PACKAGESGZ_SIZE}\trepodata/binary-amd64/Packages.gz" >> Release > ># write the signature for Release file >rm -rf Release.gpg >echo $GPG_PASS | gpg --armor --detach-sign -o Release.gpg --batch --no-tty --passphrase-fd 0 --sign Release > >#make room for the new InRelease file >rm -rf InRelease ># and sign the Release file as the InRelease file >echo $GPG_PASS | gpg --armor --output InRelease --clearsign --digest-algo SHA256 --batch --no-tty --passphrase-fd 0 --sign Release
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1198723
:
999611
|
999612
|
999613
|
999617
|
1301897
|
1301909
| 1301915