Explorar el Código

provide support for debian/apt.conf.$(lsb_release -i -s) vendor specific config files

Michael Vogt hace 12 años
padre
commit
12701ee3e5
Se han modificado 3 ficheros con 16 adiciones y 0 borrados
  1. 6 0
      debian/apt.conf.Ubuntu
  2. 3 0
      debian/apt.maintscript
  3. 7 0
      debian/rules

+ 6 - 0
debian/apt.conf.Ubuntu

@@ -0,0 +1,6 @@
+// Server information for apt-changelog
+APT {
+  Changelogs {
+    Server "http://changelogs.ubuntu.com/changelogs";
+  };
+};

+ 3 - 0
debian/apt.maintscript

@@ -0,0 +1,3 @@
+rm_conffile /etc/apt/apt.conf.d/20changelog 1.0.3 -- "@"
+
+

+ 7 - 0
debian/rules

@@ -56,6 +56,9 @@ endif
 # APT Programs in apt-utils
 APT_UTILS=ftparchive sortpkgs extracttemplates
 
+# get distro
+APT_VENDOR_CONF := $(shell lsb_release -i -s)
+
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
@@ -191,6 +194,10 @@ apt: build-binary build-manpages debian/apt.install
 	chmod 755 debian/$@/etc/kernel/postinst.d/apt-auto-removal
 	# install bash completion
 	cp share/bash-completions/* debian/$@/usr/share/bash-completion/completions/
+	# install distro specific apt conf
+	if [ -e debian/apt.conf.${APT_VENDOR_CONF} ]; then \
+		cp debian/apt.conf.${APT_VENDOR_CONF} debian/$@/etc/apt/apt.conf.d/01-vendor-${APT_VENDOR_CONF}; \
+	fi
 
 	# make rosetta happy and remove pot files in po/ (but leave stuff
 	# in po/domains/* untouched) and cp *.po into each domain dir