Changes between Version 70 and Version 71 of BuildingDebianPackages
- Timestamp:
- 06/30/13 14:40:21 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingDebianPackages
v70 v71 139 139 login = anonymous 140 140 allow_unsigned_uploads = 0 141 142 [bcfg2-testing-force-hardy]143 fqdn = ppa.launchpad.net144 method = ftp145 incoming = ~bcfg2/hardytesting/ubuntu/hardy146 login = anonymous147 allow_unsigned_uploads = 0148 149 [bcfg2-testing-force-lucid]150 fqdn = ppa.launchpad.net151 method = ftp152 incoming = ~bcfg2/lucidtesting/ubuntu/lucid153 login = anonymous154 allow_unsigned_uploads = 0155 156 [bcfg2-testing-force-maverick]157 fqdn = ppa.launchpad.net158 method = ftp159 incoming = ~bcfg2/mavericktesting/ubuntu/maverick160 login = anonymous161 allow_unsigned_uploads = 0162 163 [bcfg2-testing-force-natty]164 fqdn = ppa.launchpad.net165 method = ftp166 incoming = ~bcfg2/nattytesting/ubuntu/natty167 login = anonymous168 allow_unsigned_uploads = 0169 141 }}} 170 142 171 143 ==== bcfg2 ==== 172 144 173 ===== upload bcfg2 =====145 ===== upload bcfg2 to ppa ===== 174 146 175 Upload: 147 A `dists` file contains a space-separated list of all distributions you want to build PPA packages for. 148 176 149 {{{ 177 #!/bin/sh -x 150 #!/bin/sh 151 152 . ./dists 153 154 # Replace 0xAA95C349 with your GnuPG Key ID 155 export GPGKEY=0xAA95C349 178 156 179 157 sudo apt-get build-dep bcfg2 bcfg2-server 180 158 sudo aptitude install git 181 159 182 VERSION=1.2.3-1 160 VERSION=1.3.2-1 161 if [ ! -d testing ]; then 162 mkdir testing 163 fi 164 DATE=$(date +%F-%H%M) 165 ppa="testing" # "testing" or "ppa" (for stable) 166 167 # download source 183 168 cd testing 184 169 git clone git://git.mcs.anl.gov/bcfg2 … … 186 171 GITID=$(git log --oneline | head -n 1 | cut -d' ' -f1) 187 172 cp debian/changelog ../changelog.orig 188 ppa="testing" # "testing" or "ppa" (for stable)189 try="1"190 attempt="1"191 173 192 for dist in hardy lucid maverick natty oneiric precise; do 174 for dist in $DISTS 175 do 193 176 cp ../changelog.orig debian/changelog 194 (cd debian && debchange --distribution ${dist} --force-bad-version --preserve --newversion \ 195 "${VERSION}~${ppa}${try}~${dist}${attempt}+${GITID}" \ 196 backport to ppa ${ppa}, dist ${dist}, try ${try}, attepmt ${attempt}, git commit ${GITID}) 197 # Replace 0xAA95C349 to your GnuPG Key ID 198 debuild -rfakeroot -S -k0xAA95C349 177 (cd debian && dch --distribution ${dist} \ 178 --force-bad-version \ 179 --preserve \ 180 --force-distribution \ 181 --newversion "${VERSION}~${ppa}~${dist}${DATE}+${GITID}" \ 182 "bcfg2 backport for ${dist} release ${VERSION} git commit ${GITID}") 183 debuild --no-tgz-check -rfakeroot -I -S -k${GPGKEY} 199 184 done 200 for dist in hardy lucid maverick natty oneiric precise; do 201 dput ppa:bcfg2/${dist}testing ../bcfg2_${VERSION}~${ppa}${try}~${dist}${attempt}+${GITID}_source.changes 185 186 for dist in $DISTS 187 do 188 dput ppa:bcfg2/${dist}testing ../bcfg2_${VERSION}~${ppa}~${dist}${DATE}+${GITID}_source.changes 202 189 done 203 190 }}}