Browse Source

Install default configuration file

Wichert Akkerman 26 years ago
parent
commit
76ff6a8827
2 changed files with 13 additions and 0 deletions
  1. 7 0
      debian/dpkg.cfg
  2. 6 0
      debian/rules

+ 7 - 0
debian/dpkg.cfg

@@ -0,0 +1,7 @@
+# dpkg configuration file
+#
+# This file can contain default options for dpkg. All commandline
+# options are allowed. Values can be specific by putting them after
+# the option, seperated by whitespace and/or an `=' sign.
+#
+

+ 6 - 0
debian/rules

@@ -105,6 +105,11 @@ binary-dpkg: stamp-binary
 			fi ; \
 		done ; \
 	done
+
+	install -d -m 755 -o root -g root $(TMP_DPKG)/etc/dpkg
+	install -p -m 644 -o root -g root debian/dpkg.cfg \
+		$(TMP_DPKG)/etc/dpkg/dpkg
+
 # Now that dpkg has been installed, Debianize it
 # Policy stuff
 	find $(TMP_DPKG)/usr/share/man -type f | xargs gzip -9f
@@ -121,6 +126,7 @@ binary-dpkg: stamp-binary
 
 # Final package creation
 	install -d -m 755 -o root -g root $(TMP_DPKG)/DEBIAN
+	install -p -m 644 -o root -g root debian/dpkg.conffiles $(TMP_DPKG)/DEBIAN/conffiles
 	install -p -m 755 -o root -g root debian/dpkg.preinst $(TMP_DPKG)/DEBIAN/preinst
 	install -p -m 755 -o root -g root debian/dpkg.prerm $(TMP_DPKG)/DEBIAN/prerm
 	install -p -m 755 -o root -g root debian/dpkg.postinst $(TMP_DPKG)/DEBIAN/postinst