[Pkg-postgresql-public] disable sysctl stuff on non-linux
Peter Eisentraut
petere at debian.org
Sat Apr 6 04:17:46 UTC 2013
I propose this patch:
=== modified file 'debian/changelog'
--- debian/changelog 2013-04-02 13:34:33 +0000
+++ debian/changelog 2013-04-06 03:52:32 +0000
@@ -39,8 +39,11 @@
- pg_upgradecluster: Add options to select pg_upgrade instead of
dump/restore, and call pg_upgrade when selected.
- t/040_upgrade.t: Test all upgrade methods.
+ * debian/rules: Install sysctl file only on linux. procps currently only
+ supports sysctl.d on linux. The sysctl keys in the file would also
+ need to be changed for other kernels.
- -- Christoph Berg <myon at debian.org> Tue, 02 Apr 2013 15:33:34 +0200
+ -- Peter Eisentraut <petere at debian.org> Fri, 05 Apr 2013 23:51:27 -0400
postgresql-common (140) experimental; urgency=low
=== modified file 'debian/rules'
--- debian/rules 2013-02-21 09:34:05 +0000
+++ debian/rules 2013-04-06 03:57:27 +0000
@@ -9,12 +9,16 @@
LOGROTATE38=$(shell dpkg --compare-versions $(LOGROTATE_VER) ge 3.8 && echo yes)
VERSION=$(shell dpkg-parsechangelog | awk '/^Version:/ { print $$2 }')
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
%:
dh "$@"
override_dh_install:
dh_install
+ifeq ($(DEB_HOST_ARCH_OS),linux)
install -m 644 -D debian/postgresql-common.sysctl debian/postgresql-common/etc/sysctl.d/30-postgresql-shm.conf
+endif
for p in $(POD1PROGS); do $(POD2MAN) --quotes=none --section 1 $$p > $$p.1 || exit 1; done
for p in $(POD1PROGS_POD); do $(POD2MAN) --quotes=none --section 1 $$p.pod > $$p.1 || exit 1; done
for p in $(POD8PROGS); do $(POD2MAN) --quotes=none --section 8 $$p > $$p.8 || exit 1; done
More information about the Pkg-postgresql-public
mailing list