summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Berg2013-12-26 16:03:38 +0000
committerChristoph Berg2013-12-26 16:03:38 +0000
commitfbcf50457226a2002f6cd99dfb43f2a8e2eeb10c (patch)
treefd5618ef397caa509e6f805001266a86d2e481b7
parentd472b09d7de62b3e0acb550b9ff4526648cd2b95 (diff)
Update sources.list and apt preferences.9
-rw-r--r--debian/changelog6
-rw-r--r--debian/postinst9
-rw-r--r--etc/apt/preferences.d/pgdg.pref4
3 files changed, 19 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 57159da..1eb4731 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pgdg-buildenv (9) sid-pgdg; urgency=medium
+
+ * Update sources.list and apt preferences.
+
+ -- Christoph Berg <myon@debian.org> Thu, 26 Dec 2013 18:03:14 +0200
+
pgdg-buildenv (8) sid-pgdg; urgency=medium
* Add autopkgtest.
diff --git a/debian/postinst b/debian/postinst
index 341f108..ac3aa6a 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -8,11 +8,20 @@ case $1 in
dpkg-divert --add --package pgdg-buildenv --rename /usr/bin/mandb
test -e /usr/bin/mandb || ln -s /bin/true /usr/bin/mandb
+ # update sources.list
+ dist=$(lsb_release -cs)
+ cat > /etc/apt/sources.list.d/pgdg.list <<-EOF
+ # do not edit, file maintained by pgdg-buildenv
+ deb http://apt.postgresql.org/pub/repos/apt/ $dist-pgdg main
+ deb http://atalia.postgresql.org/pub/repos/apt/ $dist-pgdg-testing main
+ EOF
+
# remove existing apt translations so apt does not try to refresh them
rm -vf /var/lib/apt/lists/*Translation*
# don't create clusters on postgresql-* installation
cat > /etc/postgresql-common/createcluster.conf <<-EOF
+ # do not edit, file maintained by pgdg-buildenv
create_main_cluster = false
start_conf = manual
EOF
diff --git a/etc/apt/preferences.d/pgdg.pref b/etc/apt/preferences.d/pgdg.pref
new file mode 100644
index 0000000..a726957
--- /dev/null
+++ b/etc/apt/preferences.d/pgdg.pref
@@ -0,0 +1,4 @@
+# do not edit, file maintained by pgdg-buildenv
+Package: *
+Pin: release o=apt.postgresql.org
+Pin-Priority: 900