diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-04-26 13:31:41 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-04-26 13:46:23 +0200 |
commit | c1b3d18934ce35f6a82b05207f53bf9b0cbfb961 (patch) | |
tree | 16a9b51b6404f3d3bbb8e58458649745e312f52d /debian | |
parent | 05eab8afb692823f86c53c4c2ced783a7c185cf9 (diff) |
allow vendors to install configuration files
Vendors like ubuntu need to change some options, so giving them
a way to do this less painfully avoids reducing differences.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/apt.conf.Ubuntu | 6 | ||||
-rwxr-xr-x | debian/rules | 9 |
2 files changed, 2 insertions, 13 deletions
diff --git a/debian/apt.conf.Ubuntu b/debian/apt.conf.Ubuntu deleted file mode 100644 index c4092ff44..000000000 --- a/debian/apt.conf.Ubuntu +++ /dev/null @@ -1,6 +0,0 @@ -// Server information for apt-changelog -APT { - Changelogs { - Server "http://changelogs.ubuntu.com/changelogs"; - }; -}; diff --git a/debian/rules b/debian/rules index 300c0f756..fc0e9e8f6 100755 --- a/debian/rules +++ b/debian/rules @@ -56,9 +56,6 @@ 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 @@ -194,10 +191,8 @@ 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 + # install vendor specific apt confs + find -L vendor/current -name 'apt.conf-*' | while read conf; do cp "$${conf}" "debian/$@/etc/apt/apt.conf.d/$${conf#*-}"; done # make rosetta happy and remove pot files in po/ (but leave stuff # in po/domains/* untouched) and cp *.po into each domain dir |