Skip to content

Commit 091f414

Browse files
committed
added rulse for updating and synchronizing a weewx apt repository at godaddy
1 parent a724342 commit 091f414

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

DEV_NOTES.txt

+7
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ update debian repo using aptly:
145145
aptly snapshot create weewx-3.0.1 from repo weewx
146146
aptly -architectures="all" publish switch squeeze weewx-3.0.1
147147

148+
clone the published apt repo at godaddy to local space:
149+
mkdir -p ~/.aptly
150+
rsync -arv --rsync-path /home/content/t/o/m/tomkeffer/bin/rsync -e ssh [email protected]:/home/content/t/o/m/tomkeffer/html/aptly/ ~/.aptly
151+
152+
synchronize local aptly changes with the published apt repo at godaddy:
153+
rsync -arv --rsync-path /home/content/t/o/m/tomkeffer/bin/rsync -e ssh ~/.aptly/ [email protected]:/home/content/t/o/m/tomkeffer/html/aptly
154+
148155
for clients to use an apt repo at weewx.com:
149156
sudo echo "deb [arch=all] http://weewx.com/apt/ squeeze main" > /etc/apt/sources.list.d/weewx.list
150157
curl -s http://weewx.com/keys/mwall.gpg.key | sudo apt-key add -

makefile

+10
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,16 @@ ifeq ("$(SIGN)","1")
238238
# rpm --addsign $(DSTDIR)/weewx-$(RPMVER)$(RPMOS).src.rpm
239239
endif
240240

241+
# add the latest version to the local apt repo using aptly
242+
update-apt-repo:
243+
aptly repo add weewx $(DSTDIR)/$(DEBPKG)
244+
aptly snapshot create weewx-$(VERSION) from repo weewx
245+
aptly -architectures="all" publish switch squeeze weewx-$(VERSION)
246+
247+
# publish apt repo changes to the public weewx apt repo
248+
publish-apt-repo:
249+
rsync -arv --rsync-path /home/content/t/o/m/tomkeffer/bin/rsync -e ssh ~/.aptly/ $(USER)@weewx.com:/home/content/t/o/m/tomkeffer/html/aptly
250+
241251
# run rpmlint on the redhat package
242252
check-rpm:
243253
rpmlint $(DSTDIR)/$(RPMPKG)

0 commit comments

Comments
 (0)