Commit 7ec0a1a0 authored by Santiago Vila's avatar Santiago Vila Committed by Jonas Smedegaard
Browse files

Import Debian version 9.6

base-files (9.6) unstable; urgency=low

  * Add lintian override for /etc/os-release.
  * Add lintian overrides for /usr/share/common-licenses.
  * Standards-Version: 3.9.7 (no special changes for this).
  * Switch to dh. Hopefully this should make the package easier
    to fork. Closes: #693423.
  * Change default /etc/profile to not warn about possibly undefined
    variables PS1 and BASH. Closes: #776154.

base-files (9.5) unstable; urgency=medium

  * os-release: Drop trailing slash in SUPPORT_URL variable, as the URL
    is not supposed to have it. Closes: #781809, #800791.

base-files (9.4) unstable; urgency=medium

  * Fix two install_from_default() calls in postinst that were still
    using the old calling convention, making debootstrap to fail.
    Thanks to Steven Shiau for the report. Closes: #795952

base-files (9.3) unstable; urgency=medium

  * Change /usr/share/base-files/dot.profile (the default /root/.profile)
    to not fail with new mesg behaviour in stretch. Closes: #794727.
  * Add extra code in postinst so that people who never modified
    their /root/.profile from jessie get the fixed version. This is
    done by the update_to_current_default() function, which is now
    more general and allows updating files not in /etc.
  * While we are at it, modify install_from_default() function so that
    it's called in the same simplified way as update_to_current_default().

base-files (9.2) unstable; urgency=medium

  * Create md5sums in a reproducible way.
  * Use "dpkg-parsechangelog -S Date" to get the date.
  * Allow building with umasks other than 022, as far as
    they make a minimum of sense. Closes: #774498.

base-files (9.1) unstable; urgency=low

  * Use gzip -n to stop recording current time in gzip headers.
  * Fix mtimes before building the binary package.
  * The package should now build reproducibly. Closes: #774498.
    Thanks to Jérémy Bobbio <>.

base-files (9) unstable; urgency=medium

  * Changed issue,, debian_version and os-release to read
    "stretch/sid", and dropped VERSION and VERSION_ID from os-release.
  * Changed HOME_URL and SUPPORT_URL is os-release from http to https,
    as those are the preferred URLs now.

base-files (8) unstable; urgency=low

  * Release for jessie as stable:
  - Use "8" as version in /etc/issue and /etc/ As usual, this
    is never expected to change once that jessie is released as Debian 8.
  - Use 8.0 as version in /etc/debian_version. As usual, this is expected
    to change at every point release.
  - Changed PRETTY_NAME in /usr/lib/os-release, adding 8 as version number
    and "(jessie)" as codename. Added also VERSION_ID and VERSION.
    This file, /usr/lib/os-release, is not expected to change either.
  - Updated README (jessie -> stretch).
  * Packages are not expected to rely on the contents of any of these
    files, but if they do, they might better break now while we can still
    fix them.

base-files (7.10) unstable; urgency=low

  * Dropped "chown root:root" lines in postinst, as they are
    completely redundant. The postinst script is run by root.
    This might also help as a workaround for Bug#766459.

base-files (7.9) unstable; urgency=low

  * The change introduced in version 7.7 regarding /mnt seems to break
    the ability of debootstrap currently in wheezy to create a sid chroot.
    The case of initial install of /mnt is already handled by postinst line
    "install_directory mnt 755 root" inside the big "if" block that
    creates a bunch of other things, so we can restrict re-creating the /mnt
    directory on upgrades to the case when we are really upgrading.
    Therefore, the code is moved to the same "if" block where /etc/profile
    and /etc/nsswitch.conf are upgraded to their new defaults when unchanged.
    This might help as a workaround for Bug#766459.

base-files (7.8) unstable; urgency=low

  * The /etc/profile.d mechanism may be used to override PS1 setting
    in /etc/bash.bashrc, which is particularly nice because there is
    no need to modify /etc/profile or /etc/bash.bashrc for that,
    but this is no longer possible if /etc/profile.d is sourced
    before /etc/bash.bashrc. Therefore, /etc/profile.d is sourced
    after /etc/bash.bashrc again. Closes: #766351.

base-files (7.7) unstable; urgency=low

  * Updated FAQ to explain that only /etc/debian_version is updated at
    every point release, using Debian 8.x as an example, to be read by
    users of jessie during its lifetime as stable. Closes: #621757.
  * Changed default /etc/profile to source /etc/bash.bashrc after
    processing profile.d stuff, not before. Closes: #698479.
  * Drop comment lines about umask in /etc/profile, as it has been
    there for enough time for everybody to take note.
  * The directory /mnt is not included inside base-files.deb anymore.
    Instead, it is created by postinst the very first time base-files
    is installed (by debootstrap), or when upgrading from an earlier
    base-files version. This should make the usual upgrade at every point
    release to work even if /mnt is a stale mount point. Closes: #763405.

base-files (7.6) unstable; urgency=low

  * By default, when the computer is booting, green and red colors are used
    to signal that a service started successfully, or that it did not.
    In this context, trying to use colors for something else might be
    misleading or even confusing. For this reason, I'm dropping
    ANSI_COLOR from /usr/lib/os-release. Closes: #758246.
  * Clarified in the copyright file that the Artistic License currently
    in common-licenses is actually the one coming from Perl. Closes: #764553.

base-files (7.5) unstable; urgency=medium

  * Made /etc/os-release symlink to be relative, as an absolute symlink
    seems to break boot when using a dracut initrd. Thanks to Daniel Schaal
    for the report. Closes: #755394.

base-files (7.4) unstable; urgency=medium

  * Updated FAQ to match current policy wording about common-licenses.
    Thanks to Gioele Barabucci for the report. Closes: #723195.
  * Moved /etc/os-release to /usr/lib/os-release. Put a symlink pointing to
    the new place. Thanks to Marco d'Itri for the report. Closes: #753658.
  * Changed BUG_REPORT_URL in os-release to https, as the BTS has moved.
    Thanks to Martin Zobel-Helas for the report. Closes: #754455.

base-files (7.3) unstable; urgency=medium

  * Added gshadow entry to default /etc/nsswitch.conf. Closes: #699090.
  * Update /etc/nsswitch.conf if not modified by the user. Closes: #716786.
  * Added nsswitch.conf.md5sums which works exactly like profile.md5sums.
  * Changed debian/check-etc-profile-md5sum to debian/check-md5sum-etc.
    This is now used twice in debian/rules, for profile and nsswitch.conf.
  * Build package with -Zgzip to ease bootstrapping. Closes: #740278.
  * Reformat paragraph in previous changelog to avoid too long lines.
  * Added build-arch and build-indep targets to debian/rules.
  * Standards-Version: 3.9.5 (no special changes for this).

base-files (7.2) unstable; urgency=medium

  * Changed issue,, debian_version and os-release to read
    "jessie/sid", and dropped VERSION and VERSION_ID from os-release.

base-files (7.1) unstable; urgency=low

  * Added Multi-Arch: foreign. This is needed even if base-files is
    "Essential: yes" because there are quite a number of packages
    having versioned dependencies on it. Closes: #695863.

base-files (7.0) unstable; urgency=low

  * Oops. Even if the Breaks on sendfile does not help APT to decide about
    the configuration order, removing the breaks is wrong, because then it is
    possible to upgrade base-files and not sendfile, which would effectively
    break sendfile. Readded Breaks on sendfile.

base-files (7) unstable; urgency=low

  * Added 89126d8bba3325594e1539bcc97847f3 to the list of /etc/profile
    md5sums which are ok to be replaced by the current default version to
    help sendfile to fix its /etc/profile modification bug in a single
    upgrade (instead of waiting for the next point release). Closes: #689835.
    Drop "unmodified" word in postinst, as it may not always be true.
  * Dropped versioned Breaks on sendfile, as it had no effect.
  * Changed debian_version, issue, and os-release to read "7.0".
    Added also "(wheezy)" in VERSION and PRETTY_NAME.
  * Added VERSION and VERSION_ID to /etc/os-release, for release as stable.
    Please remember: Applications should not rely on these fields to be set.
  * Updated README (wheezy -> jessie).

base-files (6.12) unstable; urgency=low

  * Added HOME_URL, SUPPORT_URL and BUG_REPORT_URL to /etc/os-release.
    Reported by Raphaël Hertzog. Closes: #681480.
  * Added Breaks: sendfile (<< version in squeeze) to help sendfile bug
    regarding improper modification of /etc/profile to be fixed faster.
    Reported by Andreas Beckmann. Closes: #689835.
  * Make /var/run and /var/lock absolute again.
    Reported by Roger Leigh. Closes: #690345.

base-files (6.11) unstable; urgency=medium

  * Create /etc/motd instead of /etc/motd.tail, with same default contents,
    as initscripts is now using /etc/motd again as a real file.

base-files (6.10) unstable; urgency=low

  * Record md5sums of unmodified /etc/profile versions so that we can
    upgrade it automatically, as it's done in Ubuntu.
  * In the initial install, create /etc/motd.tail instead of /etc/motd,
    as /etc/motd is converted to a symlink by initscripts and /etc/motd.tail
    is since a long time the master copy to which the output of uname is added.
    Remove postinst code which tries to update /etc/motd, as it does no longer
    work and the file has not changed in a lot of time. Will add code to
    update /etc/motd.tail based on md5sum if it ever changes in a future.
  * Implement proposed transition plan for group staff in /usr/local.
    The file /etc/staff-group-for-usr-local is now created on upgrades
    from releases before 6.10 and (for now) also on initial install.
  * Removed reference to /etc/nsswitch.conf in extended description, as
    the file is being moved to libc-bin.

base-files (6.9) unstable; urgency=low

  * We can't make /etc/profile a conffile without triggering a piuparts
    check which is considered to be serious. Sorry, /etc/profile
    will be handled as before for now. Closes: #673767.

base-files (6.8) unstable; urgency=low

  * Added /etc/os-release. Closes: #659853. Note: for stable releases
    this file will look like it's suggested in the bug report above.
    Also, like /etc/debian_version, this file should only be considered
    meaningful for stable releases, which testing and unstable are not.
  * By popular demand, make /etc/profile a conffile. Closes: #668871.
  * Added /sys for all systems but the Hurd. Closes: #670091.
  * Added /proc for the Hurd, as it's already being used.
  * Added a lintian override for /root being 700.

base-files (6.7) unstable; urgency=low

  * Switch to "compat" again in default /etc/nsswitch.conf. It is not
    obsolete and it should not go away. Closes: #651356.
    Thanks a lot to Petter Reinholdtsen.

base-files (6.6) unstable; urgency=low

  * Switch to "files" instead of "compat" in default /etc/nsswitch.conf.
    That was only useful for libc5. The new default will only take
    effect for new installs. Thanks to Roger Leigh. Closes: #651356.
  * Reword the very first question in base-files FAQ. Closes: #622200.
  * When migrating /var/run and /var/lock, create relative symlinks
    instead of absolute ones. Useful for chroots. Closes: #652301.

base-files (6.5) unstable; urgency=low

  * Modified default /etc/profile to not read /etc/bash.bashrc if bash
    is invoked as /bin/sh. Closes: #632887.

base-files (6.4) unstable; urgency=low

  * Added /run. Closes: #620157.
  * On new installs:
    - Create /run/lock (debian-installer will remove it but this will
    ensure that it exists even on chroot environments).
    - Symlink /var/run to /run.
    - Symlink /var/lock to /run/lock.
  * On upgraded systems, initscripts will handle the transition to /run.
  * Added "Breaks: initscripts << (2.88dsf-13.3)" to ensure that initscripts
    is upgraded first, as otherwise udev would break.
  * Thanks a lot to Roger Leigh.

base-files (6.3) unstable; urgency=low

  * Dropped /run until everything else is ready for it. In particular,
    udev should not blindly assume that it works just because it exists.

base-files (6.2) unstable; urgency=low

  * Added /run. Requested by Roger Leigh. Closes: #620157.

base-files (6.1) unstable; urgency=medium

  * Changed issue, and debian_version to read "wheezy/sid".

base-files (6.0) unstable; urgency=low

  * Changed issue, and debian_version to read "6.0".
  * Updated README accordingly.

base-files (5.10) unstable; urgency=medium

  * Changed postinst to not reset /var/run/utmp permissions on every upgrade.
    It is definitely not base-files business to change the permissions of
    an already existing /var/run/utmp, as the system admin might have
    changed them on purpose after the file was created. Closes: #601746.

base-files (5.9) unstable; urgency=medium

  * Changed /etc/profile so that it defines PATH again. Closes: #571086.
    We will have plenty of time to discuss about this after the release
    of squeeze, but for now, this is the safe thing to do.

base-files (5.8) unstable; urgency=low

  * Added GPL version 1 from as there
    are a lot of packages still using it. Bug #436105.

base-files (5.7) unstable; urgency=low

  * Drop umask setting from /etc/profile, will be handled by pam_umask.
    Closes: #583967.

base-files (5.6) unstable; urgency=low

  * Ordinary user accounts start at UID 1000 by default, but they also
    end at 29999 by default. Modified default /etc/profile accordingly.

base-files (5.5) unstable; urgency=low

  * Changed default /etc/profile so that the new umask of 002 is only
    used for ordinary user accounts, which, according to policy, start
    at uid 1000 by default.

base-files (5.4) unstable; urgency=low

  * Changed umask in default /etc/profile to 002, which has a little bit
    more sense than 022 on systems like Debian having User Private Groups.
    As usual for /etc/profile, only new installs will have the new default,
    so nobody will be surprised by this on upgrades. Hopefully, this change
    will be documented in the release notes for squeeze as well, for users
    who install squeeze from scratch. Closes: #248140, #581434.
  * Refresh GNU licenses from, as they
    have expanded the embedded tabs. Closes: #572245.
  * Switch to "3.0 (native)" format.

base-files (5.3) unstable; urgency=low

  * Changed default /etc/profile so that it sources /etc/profile.d/*.sh
    as mandated by the LSB section 16.2. Closes: #545756.
    Package maintainers: Please don't use profile.d if you can avoid it,
    as policy says "A program must not depend on environment variables
    to get reasonable defaults".
  * Removed questions about profile.d from FAQ.

base-files (5.2) unstable; urgency=low

  * Added question in FAQ to document the fact that some configuration
    files in /etc are never updated on upgrades. Closes: #571083.
  * Changed default /usr/src to be root:root and 755. Closes: #573701.
    The old permissions were of little benefit, and the user can still
    change this after installing a new system anyway.
  * Renamed FAQ to README and added a compatibility symlink.
  * Removed obsolete Depends on base-passwd, as version is more
    than 10 years old and we don't support upgrades which skip releases.
  * Dropped preinst completely, as it was there just to support upgrades
    from very old releases (that we don't support anymore).
  * Removed postinst code that supports upgrades from very old releases.

base-files (5.1) unstable; urgency=low

  * Changed default permissions for /root to 700, as many admins consider
    it should be more private than other home directories. Closes: #514794.
  * Changed default permissions for /var/log/btmp to 660, to be in sync
    with permissions set by logrotate. Closes: #547407.
  * Do not export PS1 in /root/.bashrc, as it has bash escapes and it's
    inherited to subshells that do not have to be bash. Closes: #567733.
  * Added debian_chroot variable to default PS1 in /root/.bashrc.
  * Comment out PS1 in /root/.bashrc anyway, as /etc/profile and
    /etc/bash.bashrc already care about it. Closes: #443245.
  * Comment out umask as well, as it's already in /etc/profile.
  * Added /usr/local/games to default PATH in /etc/profile. Closes: #487105.
  * While we are at it, comment out everything about PATH, as /etc/login.defs
    should already care about this.
  * Changed default /etc/profile so that it sources /etc/bash.bashrc
    if the shell is bash. Closes: #275622.
  * Drop \u part from default PS1 in /etc/profile, as it's only useful
    for people with several non-root accounts. Most people are either root
    or an ordinary user, so $ and # are enough to differentiate between them.
  * Comment out PS1 setting in /etc/profile anyway, as we have bash.bashrc.

base-files (5.0.0) unstable; urgency=low

  * Drop README.base, remove-base, and the lines in postinst which checked
    for the old base package being present.
  * Do not fiddle with /etc/adjtime anymore, as it does not belong here.
  * Added file /etc/dpkg/origins/debian from dpkg package, for the benefit
    of Debian-derived distributions, as base-files is trivial to fork.
    Hopefully, this will be one less reason to fork dpkg. Closes: #487437.
  * Added dpkg (<= 1.15.0) to Replaces, because of the above.
  * On initial install and also on upgrades, create /etc/dpkg/origins/default
    as a symlink to /etc/dpkg/origins/debian, if it does not exist.
  * Updated copyright year in copyright file.

base-files (5.0) unstable; urgency=medium

  * Changed issue, and debian_version to read "squeeze/sid".
  * Added GFDL-1.3 from as new
    packages in unstable are starting to use it. Closes: #517196.
  * Updated generic GFDL symlink accordingly, as it is always supposed
    to point to the latest version.

base-files (5) unstable; urgency=low

  * Changed issue, and debian_version to read "5.0".
  * Changed FAQ so that users of lenny as stable will know what happens
    when they upgrade to the new testing.

base-files (4.0.6) unstable; urgency=low

  * Changed the way wtmp, btmp and lastlog are handled. They are no longer
    recreated at every base-files upgrade. Instead, they are only created
    once, when base-files is installed by debootstrap. It is really not
    base-files business to fiddle with those files, as it is documented
    that removing them is the standard way to disable logging to them.
    Closes: #488376.

base-files (4.0.5) unstable; urgency=low

  * Changed awk from Depends to Pre-Depends. Closes: #314571, #469552.
    This is required to make the awk virtual package to be truly essential,
    as only essential packages, their predependencies, and the dependencies
    of their predependencies are guaranteed to be "working at all times".
    Previously, the packaging system was allowed to remove an awk flavour
    and install another one in the middle of an upgrade, which may break
    packages using awk in their preinsts (and in fact, it happened).
    Tkanks a lot to Steve Langasek for clarifying this issue.
  * It's still soon to change /etc/debian_version. Please be patient.

base-files (4.0.4) unstable; urgency=low

  * Added Apache-2.0 to common-licenses. Closes: #471736.
    Retrieved from
  * Fixed typo in README.base. Closes: #475201.

base-files (4.0.3) unstable; urgency=low

  * Added md5sums. Closes: #464479.
  * Do not create /initrd at install time anymore. Closes: #467429.

base-files (4.0.2) unstable; urgency=low

  * Changed default /root/.profile so that it sources /root/.bashrc only
    if the shell is bash. Closes: #364326.

base-files (4.0.1) unstable; urgency=low

  * Added GPL-3 and LGPL-3 to common-licenses, as they are expected to
    become common licenses. Closes: #431176. Please note that GPL and LGPL
    will now point to GPL-3 and LGPL-3, as they are the most recent ones.
    Packages under GPLv2 without "or any later version" must definitely
    refer to the versioned file, not to the GPL symlink anymore.

base-files (4.0.0) unstable; urgency=low

  * Added GFDL-1.2 from
    to common-licenses, following policy (Closes: #420599).

base-files (4.0) unstable; urgency=low

  * Changed issue, and debian_version to read "lenny/sid".
  * Changed FAQ accordingly.

base-files (4) unstable; urgency=low

  * Changed issue, and debian_version to read "4.0".
  * Changed PATHs in default /etc/profile to not contain /usr/bin/X11,
    as this is no longer needed by the X packages in etch (Closes: #388586).

base-files (3.1.16) unstable; urgency=low

  * Changed comment in default /etc/nsswitch.conf so that it refers to
    glibc-doc-reference, not glibc-doc (Closes: #384722).

base-files (3.1.15) unstable; urgency=low

  * Added /usr/local/etc, required by FHS (Closes: #383493).
    [ As usual, please note that this will only affect new installs ].
    This directory is also allowed to be a symlink to /etc/local, but that's
    a decision to be made by the end user after installing the system.
  * Standards-Version: 3.7.2.

base-files (3.1.14) unstable; urgency=low

  * Removed (obsolete) order line from default host.conf (Closes: #354115).
  * Updated GPL-2 from (Closes: #380067).

base-files (3.1.13) unstable; urgency=low

  * Updated LGPL-2 from (Closes: #332390).

base-files (3.1.12) unstable; urgency=low

  * Changed default /usr/share/info/dir so that it does not refer to
    documentation not available in etch/main (Closes: #362597).

base-files (3.1.11) unstable; urgency=low

  * The file /etc/nsswitch.conf is now created by postinst in the first
    install (made by debootstrap), and it's no longer a conffile.

base-files (3.1.10) unstable; urgency=medium

  * Removed mdns item from hosts line in default /etc/nsswitch.conf, since
    it does not make everybody happy (Bugs #348578, #348580 and #351990).
  * Updated default /etc/adjtime to current year.

base-files (3.1.9) unstable; urgency=low

  * The file /etc/inputrc is now handled by readline-common.
  * Changed to section admin to match override file.

base-files (3.1.8) unstable; urgency=low

  * Added mdns to hosts line in default /etc/nsswitch.conf to support
    mDNS when available (Closes: #324954). Suggested by Joey Hess.
  * Dropped %h from, as it's not supported by all telnetd
    daemons and it's not even supported by ssh (Closes: #329682).
    Thanks to Dave Love for the report.

base-files (3.1.7) unstable; urgency=medium

  * Removed trailing spaces from default inputrc (Closes: #325007).

base-files (3.1.6) unstable; urgency=low

  * Removed /usr/doc and /usr/info.
  * Modified postinst to create /usr/share/info/dir, not /usr/info/dir.

base-files (3.1.5) unstable; urgency=medium

  * Updated GPL-2 and LGPL-2.1 from again.
    There should be no references to the old address anymore (Bug #312586).

base-files (3.1.4) unstable; urgency=medium

  * Updated GPL-2 and LGPL-2.1 from,
    as FSF has moved again (Closes: #312586).

base-files (3.1.3) unstable; urgency=low

  * Changed issue, and debian_release to "testing/unstable".
    Not that this is a lot useful, but at least is what people expect.
  * Made /home to be 755 and root:root by default, since nobody finds
    the sgid bit in such directory useful for anything.

base-files (3.1.2) unstable; urgency=low

  * Changed example line in default /root/.bashrc from eval `dircolors` to
    eval "`dircolors`" as the old form may be dangerous (Closes: #285836).
    Thanks a lot to Paul Eggert for the report.

base-files (3.1.1) unstable; urgency=low

  * The file /etc/profile is not a conffile anymore. Instead, it is created
    by postinst in the very first base-files install, made by debootstrap.
  * Accordingly, removed bash from Replaces field.

base-files (3.1.0) unstable; urgency=low

  * Moved PATH definition for root from the default /root/.profile to the
    default /etc/profile, by popular demand (Closes: #278865).
  * The file /etc/inputrc is now created by postinst in the first install.
    Removed libreadline incarnations from Replaces field accordingly.
    This file will probably be managed by libreadline-common some day.

base-files (3.1) unstable; urgency=high

  * Changed issue, and debian_version to read "3.1".

base-files (3.0.16) unstable; urgency=low

  * Changed -a to && in postinst (Closes #254781).
  * Updated copyright year.

base-files (3.0.15) unstable; urgency=low

  * FAQ: Documented the fact that some FHS "mandatory" directories are
    only created in the initial install (Closes: #242192).
  * Do not create /cdrom and /floppy anymore (Closes: #245188).
  * Use "ln -sf" to create /usr/local/man symlink (Closes: #245687).

base-files (3.0.14) unstable; urgency=low

  * Added /var/log/btmp, following /etc/login.defs (Closes: #239587).

base-files (3.0.13) unstable; urgency=low

  * Added /srv, /media and /usr/local/share/man (Closes: #230909).
  * Added /usr/local/man as a symlink to /usr/local/share/man,
    since FHS says both directories should be "synonymous".
  * I'm not populating /media because subdirectories are optional.
    They only must exist "if the corresponding subsystem is installed".
    Detecting such things is not really base-files business. I would
    expect debian-installer to create those subdirectories instead.
  * /cdrom and /floppy will still be created in the first install until
    debian-installer and/or apt stop using them for new installs.

base-files (3.0.12) unstable; urgency=low

  * Made issue and generated files, to prevent a double "GNU/"
    prefix on GNU/K*BSD systems (Closes: #217383).

base-files (3.0.11) unstable; urgency=low

  * Updated /etc/inputrc (from readline maintainer). Closes: #213666.

base-files (3.0.10) unstable; urgency=low

  * Use `:' for chown, not `.' (Closes: #204860).

base-files (3.0.9) unstable; urgency=low

  * Prevent OSNAME from having the GNU/ prefix twice (Closes: #200741).
  * Updated LGPL-2.1 from Instead of form feeds, the old
    version was using `^' followed by `L' (Closes: #201867).

base-files (3.0.8) unstable; urgency=low

  * Fixed the way /etc/motd is updated so that it still works when md5sum
    prints a `-' after the md5sum value (Closes: #180920).

base-files (3.0.7) unstable; urgency=low

  * Added "Why isn't license `foo' included in common-licenses?" to the FAQ.
    Thanks to Colin Watson for the suggestion.

base-files (3.0.6) unstable; urgency=low

  * Changed /etc/profile so that PS1 isn't set for non-interactive shells.
    This should make the usual way of testing for interactive shells
    (checking for PS1) to always work (Closes: #164846).
  * Changed /etc/motd to better reflect the truth about Debian: s/Most of//
    and s/freely redistributable/free software/ (Closes: #169543).

base-files (3.0.5) unstable; urgency=low

  * Added a small FAQ. The current topics are:
  - Why Debian does not have a profile.d directory?
  - I upgraded to testing, why /etc/issue does not read "testing"?
  * Standards-Version: 3.5.7 (do not create or remove doc symlinks).
    Note: In theory, packages still creating doc symlinks are allowed
    to blindly assume /usr/doc exists, so /usr/doc will still be part of
    base-files for some time.
  * Removed prerm, since it's not required anymore.

base-files (3.0.4) unstable; urgency=low

  * /etc/profile does no longer export PS1. This should prevent
    strange prompts to be shown when switching from bash to a shell which
    does not understand bash escapes (Closes: #141193).
  * Set distribution to "testing/unstable".

base-files (3.0.3) unstable; urgency=low

  * Fixed wrong group ownerships under GNU/Hurd. This may also happen under
    Linux when using the `bsdgroups' mount option, but even in this case
    it will not happen if the package is built using fakeroot.

base-files (3.0.2) unstable; urgency=medium

  * Made /usr/share/doc/base-files/remove-base more robust (Closes: #132969).

base-files (3.0.1) unstable; urgency=medium

  * Modified postinst to use awk only on upgrades, not in the first install.
    This should help debootstrap (Closes: #130056, #130087).

base-files (3.0.0) unstable; urgency=medium

  * Restored /usr/doc since it's still required by the system according
    to the doc transition plan.

base-files (3.0) unstable; urgency=medium

  * Changed issue, and debian_version to read "3.0".

base-files (2.2.15) unstable; urgency=low

  * Removed /usr/doc.

base-files (2.2.14) unstable; urgency=low

  * Created /opt, /etc/opt and /var/opt in the first install.
    They are mentioned in FHS 2.1 and required in FHS 2.2 (Closes: #118505).
  * The copyright file now refers to GNU/Linux or GNU/Hurd as appropriate.
  * Updated README.base and postinst to refer to /usr/share/doc.
  * Updated default /etc/adjtime to current millenium.

base-files (2.2.13) unstable; urgency=low

  * GPL is now a symlink to GPL-2, which is the real file.

base-files (2.2.12) unstable; urgency=low

  * s/info readline/info rluserman/ in /etc/inputrc (Closes: #109110).
  * Updated LGPL-2.1 from to fix line breaks (Closes: #109319).

base-files (2.2.11) unstable; urgency=low

  * In the first install, populate /usr/local even if it exists.
    Allows /usr/local to be mounted in a separate partition during the
    install process (Closes: #107662).

base-files (2.2.10) unstable; urgency=low

  * Removed /var/state and /var/state/misc, added /usr/local/games.
    Reported by Sebastian Riedel.
  * Made /boot mode 755 and owned by root group, since no part of the system
    seems to require special permissions here (Closes: #102080).

base-files (2.2.9) unstable; urgency=medium

  * Creates /etc/motd in the initial install (now made by debootstrap).
    Forgot to do this in 2.2.7. Reported by Matt Kraai (Closes: #101342).

base-files (2.2.8) unstable; urgency=low

  * Made /etc/debian_version a `conffile' (Closes: #81249). To prevent
    unneeded dpkg prompting, this file is overwritten in the preinst
    if upgrading from a base-files release previous to 2.2.6
    (thanks to Joey Hess for suggesting this solution).

base-files (2.2.7) unstable; urgency=low

  * The file /etc/motd is no longer a conffile. Instead, it will be updated
    if its md5sum (minus its first two lines) matches the one in a list of
    md5sums of previous Debian releases. This will reduce dpkg prompting
    on upgrades (Closes: #71083).

base-files (2.2.6) unstable; urgency=medium

  * Use "testing/unstable" instead of "2.2" for the distribution number.
    It seems everybody prefers to see something else other than "2.2".

base-files (2.2.5) unstable; urgency=low

  * Modified debian_version, issue and in /etc so that they
    read "2.2" again, since this is the last Debian *stable* release so far.
    Since packages in `unstable' are now automatically moved to `testing',
    a codename in /etc/debian_version will never be "right" for everybody, so
    the only sensible thing to do here is to wait until a new release number
    has been officially decided (Closes: #80784).

base-files (2.2.4) unstable; urgency=low

  * Restored LGPL -> LGPL-2.1 symlink, which was mistakenly removed
    in base-files_2.2.1 (Bug #75949).

base-files (2.2.3) unstable; urgency=low

  * Added /var/lib/misc, since it's required by FHS (Closes: Bug #74317).

base-files (2.2.2) unstable; urgency=low

  * Reduced verbosity, as suggested by Sean Perry (Closes: #70686).

base-files (2.2.1) unstable; urgency=low

  * Release for woody (debian_version, issue and
  * /etc/motd now refers to /usr/share/doc/*/copyright.
  * Removed /usr/doc/copyright and /usr/man.

base-files (2.2.0) frozen unstable; urgency=high

  * The recipe in README.base does not work properly because dpkg
    removes the conffiles listed in the status file (Bug #64734).
    So, getting rid of base involves editing the status file.
    To avoid mistakes, a shell script is now provided for that.
    Thanks to Kevin Dalley <> for the report.

base-files (2.2) frozen unstable; urgency=low

  * preinst and postinst: Do not deal with /dev/pts anymore.
  * issue and Removed the `frozen' word.
  * Final release for potato (hopefully).

base-files (2.1.20) frozen unstable; urgency=high

  * Made /var/log mode 755 and root.root (Bug #35504).
  * Made /cdrom and /floppy mode 755 and root.root (Bug #25847).
  * Removed /dev/pts. It made the package impossible to upgrade when
    using devfs with Linux 2.4. libc6 is already supposed to deal
    with /dev/pts (Bug #61408).
  * postinst removes base.conffiles as well (otherwise, some files
    like /etc/motd or /root/.bash_profile may disappear).
    Thanks a lot to Mikko Oilinki for the report.
  * Slightly improved README.base.

base-files (2.1.19) frozen unstable; urgency=low

  * Removed /usr/dict (Bug #60118).
  * Minimal handling of the old base package (Bug #32888).
  * Removed redundant directive in /etc/inputrc (Bug #59689).
  * Do not reference /usr/share/doc in /etc/motd yet (Bug #61116).

base-files (2.1.18) frozen unstable; urgency=low

  * Handle better the /var/spool/mail-being-a-symlink case.
  * Added /dev/pts for UNIX98-style pty handling under Linux.
  * Added a README.FHS.

base-files (2.1.17) frozen unstable; urgency=high

  * Some people has /var/spool/mail symlinked to somewhere else.
    For this case, preinst now saves the symlink target before dpkg
    removes it and postinst restores it.
  * Do not fiddle with /usr/local on upgrades. From now on, users
    will be free to remove it if they wish.

base-files (2.1.16) frozen unstable; urgency=low

  * Generate default info dir file from /usr/share/base-files/info.dir.
  * Do not generate an info dir file if one exists at /usr/share/info.
  * Updated LGPL version 2 from to fix a typo.
  * Mail spool is /var/mail as per FHS (only in new installs).
  * Acknowledge in the copyright file that the GNU Public Licenses are
    copyrighted by the Free Software Foundation, Inc.

base-files (2.1.15) frozen unstable; urgency=low

  * Removed misleading copyright notice in /etc/motd.
  * Distribution set to "2.2" (adding `frozen' in issue and
  * Use DEB_HOST_GNU_SYSTEM for the architecture stuff wherever possible.

base-files (2.1.14) unstable; urgency=high

  * Swap binary-arch and binary-indep targets in debian/rules, since this
    is now Architecture: any. Thanks to Roman Hodek for the report.

base-files (2.1.13) unstable; urgency=low

  * Made "Architecture: any" for /etc/motd to be os-dependant.
    [ A binary-all-<os> scheme would simplify this ].
  * Exclude /proc from the .deb under GNU/Hurd (reported by Marcus Brinkmann).
  * Added `set -e' to postinst.
  * Standards-Version: 3.1.1 (doc symlinks).
  * Removed obsolete README. If someone still asks about /usr/spool or
    /var/adm then a paragraph could be added to the Debian FAQ.
  * Follow changes suggested by Branden Robinson:
  * Removed remaining bashisms in default /root/.profile and use
    /usr/bin/X11 for X11 binaries.
  * Improved package description.
  * Removed unused bin/edit in the source.
  * Changed root test in /etc/profile to use id -u.

base-files (2.1.12) unstable; urgency=high

  * Fixed Replaces field (reported a zillion times).
  * Updated /etc/profile to use '$ ' as the shell prompt for normal
    users and '# ' for the superuser if $BASH is not set.

base-files (2.1.11) unstable; urgency=low

  * Include /etc/inputrc and /etc/profile from readline and bash,
    as suggested by Matthias Klose.

base-files (2.1.10) unstable; urgency=low

  * Create /var/log/lastlog as root.utmp, mode 664.
  * Removed Linuxisms from /etc/motd.
  * Updated GPL from to be Y2K-compliant.

base-files (2.1.9) unstable; urgency=low

  * Removed the advertising clause from BSD license (Bug #43347).
    Thanks to J.H.M. Dassen for the report.

base-files (2.1.8) unstable; urgency=low

  * Added base-passwd (>= to the Depends field.
  * utmp and wtmp are now root.utmp and mode 664 (Bug #41569).
  * Updated extended description regarding the common licenses.

base-files (2.1.7) unstable; urgency=low

  * LGPL is now the Lesser Gnu Public License (Bug #40759).
    For now, the old version is renamed to "LGPL-2".
  * Changed compatibility symlink /usr/doc/copyright/LGPL so that it
    points to the old version.
  * Moved docs to /usr/share/doc/base-files.
  * Changed default /etc/motd so that it refers both to /usr/doc/*/copyright
    and /usr/share/doc/*/copyright.

base-files (2.1.6) unstable; urgency=low

  * preinst: Do not fiddle with /etc/ anymore.
  * Changed the way /cdrom, /floppy and /initrd are handled.
    These directories will now be created by postinst in the initial install.
    This is a compromise after discussing in debian-policy about Bug #35928.
    It will save people who like them the work of creating them after
    installing a new system, and it will save people who dislike them the
    work of removing them every time base-files is upgraded.
    Since these directories are only a convenience for the user, who
    is free to use them or not, the spirit of FHS is preserved.
  * preinst and postinst: Following the principle of least surprise,
    added code so that existing directories are not removed when upgrading
    this package from previous releases.

base-files (2.1.5) unstable; urgency=low

  * When /usr/local does not exist, create also /usr/local/src.
  * Added /var/cache, /var/state and /var/state/misc.
  * Added /usr/share/info and /usr/share/man.

base-files (2.1.4) unstable; urgency=low

  * Removed the utmpx/wtmpx stuff from postinst.
  * Updated the Artistic License (Bug #34685).

base-files (2.1.3) unstable; urgency=low

  * Use `nis' for the `netgroup:' entry in /etc/nsswitch.conf (Bug #33091).

base-files (2.1.2) unstable; urgency=high

  * Fixed a typo in postinst (Bug #34094).

base-files (2.1.1) unstable; urgency=low

  * postinst: touch /var/log/wtmpx and /var/run/utmpx to support
    the utmpd in glibc 2.1 (reported by Joel Klecker).
  * Replaced "Debian Linux" by just "Debian" in the default info dir file.
  * Updated for potato.

base-files (2.1.0) frozen unstable; urgency=medium

  * Updated copyright date in /etc/motd (Bug #32646).

base-files (2.1) frozen unstable; urgency=low

  * debian_version, issue and `slink' replaced by `2.1'.
  * Added /usr/share/dict, since there are already some packages
    using it.

base-files (2.0.3) unstable; urgency=low

  * Moved common licenses to /usr/share/common-licenses.
  * Default dotfiles for root are now installed only the first time.
  * /usr/local and subdirectories are now created mode 2775
    and root.staff, according to policy.
  * Added /usr/local/share.

base-files (2.0.2) unstable; urgency=low

  * If it does not exist, now a default /root/.profile file is installed,
    not a /root/.bash_profile file, for slightly better POSIX compliance.

base-files (2.0.1) unstable; urgency=low

  * Added (commented out) some more alias for root's default .bashrc.
  * issue, and debian_version: updated for slink (Bug #26325).
  * Changed the way /etc/adjtime is handled (Bug #23255).
  * Removed usr/man/man8 from directory-list.

base-files (2.0) frozen unstable; urgency=medium

  * Removed the "frozen" word from /etc/debian_version.
  * Removed the use of the ROOT variable in preinst and postinst for two
    reasons: a) It is no longer needed, since the base system is built
    by using dpkg's --root=dir option, which works in a chrooted environment;
    and b) Unexpected results would be obtained if user root had actually
    defined a variable named ROOT.

base-files (1.9) frozen unstable; urgency=low

  * Default prompt for root is now '\h:\w\$ '.
  * issue and Removed the "frozen" word.
  * Added a README explaining the /usr/spool symlink removal.
  * nsswitch.conf: Use "compat" instead of "db files" for passwd, group
    and shadow (Bug #10896).

base-files (1.8) unstable; urgency=low

  * Added /usr/share/misc.
  * Removed /var/local/usr.
  * Distribution set to "frozen".
  * Moved root's default dotfiles to /usr/share/base-files.

base-files (1.7) unstable; urgency=low

  * Added "Depends: awk", so that awk is a "virtual essential package".
  * /root/.bash_profile and /root/.bashrc are not `conffiles' anymore.
    Instead, they are created from /root/.bash_profile.dpkg-dist and
    /root/.bashrc.dpkg-dist if they do not exist.
  * Default /root/.bash_profile sources /root/.bashrc.
  * PS1 and umask are now set only once in default /root/.bashrc.
  * Replaced /usr/bin/X11 by /usr/X11R6/bin in root's PATH.
  * Manpage hierarchy is no longer created under /usr/local/man.
  * Added a small comment in /etc/nsswitch.conf saying where
    to find documentation about this file (libc6-doc package).
  * Added some aliases for colorized `ls' commented out in .bashrc, so
    that the user will simply have to uncomment them.

base-files (1.6.1) unstable; urgency=low

  * Removed "Depends: awk". It has not been discussed yet.

base-files (1.6) unstable; urgency=low

  * Default prompt for root is now PS1='\u@\h:\w\$ ', which may not
    please everybody and/or generate a flame war, but at least is better
    than nothing (previosuly it was PS1='\h\$ ').
  * Added two blank lines to /etc/motd to keep Copyright notice from being
    overwritten by /etc/init.d/
  * Removed compatibility symlinks /usr/spool, /usr/tmp, /usr/adm
    and /var/adm. Now is when we have to see if something breaks.
  * Removed /usr/lib/locale. Added /usr/share and /usr/include.
  * Removed the /bin/edit script.

base-files (1.5) unstable; urgency=medium

  * Removed "dns" from the "networks:" line in /etc/nsswitch.conf.

base-files (1.4) unstable; urgency=medium

  * Uncompressed copyright files.
  * debian/rules: package does no longer need to be built by root.
    Changed `prototype' directory by an install -d `cat directories`,
    and then set special permissions and ownerships directly.
  * Added "Depends: awk", so that awk is a "virtual essential package".
  * Updated GPL and LGPL. FSF's address changed some time ago to:
    59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
  * /bin/edit is now #!/bin/sh.
  * /etc/debian_version, /etc/issue and /etc/ now read
    "2.0 (unstable)" instead of "1.3".
  * /etc/issue now reads "GNU/Linux" (not "GNU Linux").
  * Updated copyright year for /etc/motd.
  * Added an extended description.
  * Removed debstd dependency.
  * New maintainer.

base-files (1.3.5) frozen unstable; urgency=low

  * Synchronization release to make sure my latest version is in 1.3 .
    This is my last release before going on vacation, if anything
    needs to be fixed in this package for 1.3, someone else must
    fix it.

base-files (1.3.4) frozen unstable; urgency=low

  * /etc/issue had the wrong escapes.

base-files (1.3.3) frozen unstable; urgency=low

  * Add "frozen" to the distribution.

base-files (1.3.2) unstable; urgency=low

  * Remove /etc/ -> /etc/issue symlink in the preinst if it

base-files (1.3.1) unstable; urgency=low

  * Install nsswitch.cnf, required for libc 6 name service .

base-files (1.3.0) unstable; urgency=low

  * Edit for Debian 1.3

base-files (1.2.4) unstable; urgency=low

  * Add "Provides: base", and "Requires: base-passwd, makedev".

base-files (1.2.0-4) unstable; urgency=low

  * Symlink /var/run/wtmp -> /var/log/wtmp. Create utmp and wtmp if they
    don't exist, but don't clobber them if they do exist.

base-files (1.2.0-3) unstable; urgency=low

  * Wrong modes on /tmp. Set explicit umask 0 before copying files.

base-files (1.2.0-2) unstable; urgency=low

  * Don't clobber utmp and wtmp. Take spurious "Inc." off of SPI name,
    California corporations aren't required to say "Inc." at the end of
    their names.

base-files (1.2.0-1) unstable; urgency=low

  * Initial Release.
  * Removed devices, passwd, and group. Devices are made by the C MAKEDEV at
    run-time. /etc/MAKEDEV is installed by the "makedev" package.
    /etc/passwd and /etc/group are installed by the "base-passwd" package.
Frequently Asked Questions about base-files
* Questions about /etc/issue and /etc/debian_version:
Q. I upgraded my system to the testing distribution and now my /etc/issue
says "stretch/sid". Should it not read "stretch" or "testing"?
Q. I upgraded my system to the unstable distribution and now my /etc/issue
says "stretch/sid". Should it not read "sid" or "unstable"?
A. That would be nice, but it is not possible because of the way the
testing distribution works. Packages uploaded for unstable reach
testing after ten days, provided they are built for every released
architecture, have no RC-bugs and their dependencies may be met in
testing. You should consider the testing and unstable distributions as
two sides of the same coin. Since the base-files package in testing
was initially uploaded for unstable, the only sensible /etc/issue to
have is one that is both valid for testing and unstable, hence
"stretch/sid" (or whatever is appropriate).
Q. Why "stretch/sid" and not "testing/unstable" as it used to be?
A. The codename is a little bit more informative, as the meaning of
"testing" changes over time.
Q. Ok, but how do I know which distribution I'm running?
A. If you are running testing or unstable, then /etc/debian_version is
not a reliable way to know that anymore. Looking at the contents of
your /etc/apt/sources.list file is probably a much better way.
Q. There is a new point release and I've just upgraded my system.
The /etc/debian_version file now says 8.x but /etc/issue still says 8.
Is this ok?
A. Yes. The release managers asked me not to touch /etc/issue, as that's
a file which is often customized by the user. The /etc/debian_version file,
on the other side, is updated at every point release, so that the exact
Debian version is shown when used by tools like reportbug.
* Other questions:
Q. After upgrading my system recently, I noticed that some files from
base-files do not match the ones which are installed on a fresh install
of squeeze. Should I not be warned about that?
A. Those files are configuration files, so they are completely under
the control of the system admin. The files installed by base-files are
just defaults. Changes in the default files are not important enough
to warn the user, as it is also policy that prompting should be
reduced to a minimum. This is also the reason they are not handled via
dpkg's conffile mechanism.
In either case, if you want to "upgrade" those files, just look at the
postinst for base-files (i.e. /var/lib/dpkg/info/base-files.postinst)
and you will see how they are created and where their master copies are:
install_from_default /usr/share/base-files/nsswitch.conf /etc/nsswitch.conf
install_from_default /usr/share/base-files/dot.profile /root/.profile
install_from_default /usr/share/base-files/dot.bashrc /root/.bashrc
install_from_default /usr/share/base-files/profile /etc/profile
install_from_default /usr/share/base-files/motd /etc/motd
So, if you want your system to be as similar as possible to a newly
installed squeeze system, you might want to sync these files manually.
Note 1: Since base-files version 6.10, /etc/profile is automatically
upgraded if it has not been modified from a previous default.
Note 2: The file /etc/nsswitch.conf is going to be moved to libc-bin.
Q. Why isn't license "foo" included in common-licenses?
A. I delegate such decisions to the policy group. If you want to
propose a new license you should make a policy proposal to modify the
paragraph in policy saying "Packages distributed under the Apache
license (version 2.0), the Artistic license, the GNU GPL (versions 1,
2, or 3), the GNU LGPL (versions 2, 2.1, or 3), and the GNU FDL
(versions 1.2 or 1.3) should refer to the corresponding files under
/usr/share/common-licenses". The way of doing this is explained in the
debian-policy package. As usual, you should always take a look at
already reported bugs against debian-policy before submitting a new
Q. I upgraded from woody to sarge. Should my system be FHS-compliant now?
A. Achieving FHS compliance by upgrading would be tricky and prone to
error in certain cases, so it is not a goal of base-files, nor it is
planned to be. By default, some "mandatory" directories (like /opt,
/srv or /media) are only created in the first install (performed by
debootstrap), to keep the code as simple as possible, follow the
principle of least surprise on upgrades, and also to give people the
freedom to remove those directories without them being created again
when base-files is upgraded. Therefore, if you are running any sort of
compliance tests, you should do it on newly installed systems only.
Santiago Vila <>
The FHS standard specifies /var/mail as the mail spool, but it also says
/var/mail may be a symbolic link to another directory, and there is no
requirement to physically move the mail spool to this location.
Therefore, no package will move files around from one location to another
on upgrades, and /var/mail will be the real directory only in newly
installed systems.
Since /var/spool/mail has been in use for several years now, we need
also to provide backwards compatibility for some time yet.
So, to summarize:
* New systems (Debian 2.2 or later) will have /var/mail as a real
directory and /var/spool/mail as a symlink to it.
* Upgraded systems will have /var/spool/mail as the real directory
and /var/mail as a symlink to it.
People upgrading from previous releases who prefer the new physical
location /var/mail over the old one may do the required changes in their
systems if they do it with extreme care and know what they are doing. The
packages in charge of ensuring that /var/mail exists (currently, libc6 and
base-files) will not touch it at all if it already exists as a directory
or a symlink.
Santiago Vila <>
usr/share/doc/base-files/README usr/share/doc/base-files/FAQ
usr/share/common-licenses/GFDL-1.3 usr/share/common-licenses/GFDL
usr/share/common-licenses/LGPL-3 usr/share/common-licenses/LGPL
usr/share/common-licenses/GPL-3 usr/share/common-licenses/GPL
# Permissions 0700 on /root are intentional as people expect
# the /root directory to be more private than /home/* directories.
base-files: non-standard-dir-perm root/ 0700 != 0755
# The /etc/os-release symlink is relative on purpose to avoid breaking dracut.
# See Bug #755394 for details.
base-files: symlink-should-be-absolute etc/os-release ../usr/lib/os-release
# The purpose of having licenses here is precisely to allow
# other packages to reference them.
base-files: extra-license-file usr/share/common-licenses/Artistic
base-files: extra-license-file usr/share/common-licenses/BSD
base-files: extra-license-file usr/share/common-licenses/GPL-1
base-files: extra-license-file usr/share/common-licenses/GPL-2
base-files: extra-license-file usr/share/common-licenses/GPL-3
base-files: extra-license-file usr/share/common-licenses/LGPL-2
base-files: extra-license-file usr/share/common-licenses/LGPL-2.1
base-files: extra-license-file usr/share/common-licenses/LGPL-3
This diff is collapsed.
md5=`md5sum share/${file} | cut -f 1 -d " "`
if ! grep -q "$md5" share/${file}.md5sums; then
echo Error: share/${file}.md5sums is incomplete.
echo Need to add "$md5" with current version.
exit 1
Source: base-files
Section: admin
Priority: required
Maintainer: Santiago Vila <>
Standards-Version: 3.9.7
Build-Depends: debhelper (>= 9)
Package: base-files
Provides: base
Architecture: any
Pre-Depends: awk
Depends: ${misc:Depends}
Essential: yes
Priority: required
Replaces: base, miscutils, dpkg (<= 1.15.0)
Breaks: initscripts (<< 2.88dsf-13.3), sendfile (<< 2.1b.20080616-5.2~)
Multi-Arch: foreign
Description: Debian base system miscellaneous files
This package contains the basic filesystem hierarchy of a Debian system, and
several important miscellaneous files, such as /etc/debian_version,
/etc/host.conf, /etc/issue, /etc/motd, /etc/profile, and others,
and the text of several common licenses in use on Debian systems.
This is the Debian #OSNAME# prepackaged version of the Debian Base System
Miscellaneous files. These files were written by Ian Murdock
<> and Bruce Perens <>.
This package was first put together by Bruce Perens <>,
from his own sources.
The GNU Public Licenses in /usr/share/common-licenses were taken from and are copyrighted by the Free Software Foundation, Inc.
The Artistic License in /usr/share/common-licenses is the one coming
from Perl and its SPDX name is "Artistic License 1.0 (Perl)".
Copyright (C) 1995-2011 Software in the Public Interest.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
On Debian #OSNAME# systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
sed -e "s&#OSNAME#&GNU/Linux&" etc/motd | awk 'NR > 2' | md5sum
sed -e "s&#OSNAME#&GNU/Hurd&" etc/motd | awk 'NR > 2' | md5sum
set -e
install_local_dir() {
if [ ! -d $1 ]; then
mkdir -p $1
if [ -f /etc/staff-group-for-usr-local ]; then
chown root:staff $1 2> /dev/null || true
chmod 2775 $1 2> /dev/null || true
install_from_default() {
if [ ! -f $2 ]; then
cp -p /usr/share/base-files/$1 $2
install_directory() {
if [ ! -d /$1 ]; then
mkdir /$1
chown root:$3 /$1
chmod $2 /$1
migrate_directory() {
if [ ! -L $1 ]; then
rmdir $1
ln -s $2 $1
update_to_current_default() {
if [ -f $2 ]; then
md5=`md5sum $2 | cut -f 1 -d " "`
if grep -q "$md5" /usr/share/base-files/$1.md5sums; then
if ! cmp -s /usr/share/base-files/$1 $2; then
cp -p /usr/share/base-files/$1 $2
echo Updating $2 to current default.
if [ ! -e /etc/dpkg/origins/default ]; then
if [ -e /etc/dpkg/origins/#VENDORFILE# ]; then
ln -sf #VENDORFILE# /etc/dpkg/origins/default
if [ "$1" = "configure" ] && [ "$2" = "" ]; then
install_from_default staff-group-for-usr-local \
install_from_default nsswitch.conf /etc/nsswitch.conf
install_from_default dot.profile /root/.profile
install_from_default dot.bashrc /root/.bashrc
install_from_default profile /etc/profile
install_from_default motd /etc/motd
install_directory mnt 755 root
install_directory srv 755 root
install_directory opt 755 root
install_directory etc/opt 755 root
install_directory var/opt 755 root
install_directory media 755 root
install_directory var/mail 2775 mail
if [ ! -L /var/spool/mail ]; then
ln -s ../mail /var/spool/mail
install_directory run/lock 1777 root
migrate_directory /var/run /run
migrate_directory /var/lock /run/lock
install_local_dir /usr/local
install_local_dir /usr/local/share
install_local_dir /usr/local/share/man
install_local_dir /usr/local/bin
install_local_dir /usr/local/games
install_local_dir /usr/local/lib
install_local_dir /usr/local/include
install_local_dir /usr/local/sbin
install_local_dir /usr/local/src
install_local_dir /usr/local/etc
ln -sf share/man /usr/local/man
if [ ! -f /var/log/wtmp ]; then
echo -n>/var/log/wtmp
if [ ! -f /var/log/btmp ]; then
echo -n>/var/log/btmp
if [ ! -f /var/log/lastlog ]; then
echo -n>/var/log/lastlog
chown root:utmp /var/log/wtmp /var/log/btmp /var/log/lastlog
chmod 664 /var/log/wtmp /var/log/lastlog
chmod 660 /var/log/btmp
if [ ! -f /var/run/utmp ]; then
echo -n>/var/run/utmp
chown root:utmp /var/run/utmp
chmod 664 /var/run/utmp
if [ ! -d /var/lib/dpkg ]; then
mkdir -m 755 -p /var/lib/dpkg
if [ ! -f /var/lib/dpkg/status ]; then
echo > /var/lib/dpkg/status
chmod 644 /var/lib/dpkg/status
if [ ! -f /usr/info/dir ] && [ ! -f /usr/share/info/dir ]; then
install_from_default info.dir /usr/share/info/dir
chmod 644 /usr/share/info/dir
if [ "$1" = "configure" ] && [ "$2" != "" ]; then
update_to_current_default profile /etc/profile
update_to_current_default nsswitch.conf /etc/nsswitch.conf
update_to_current_default dot.profile /root/.profile
if dpkg --compare-versions "$2" lt-nl "7.7"; then
install_directory mnt 755 root
if dpkg --compare-versions "$2" lt-nl "6.10"; then
install_from_default staff-group-for-usr-local \
#!/usr/bin/make -f
OSNAME = "GNU/`uname | sed -e 's/GNU\///'`"
ifeq ($(DEB_HOST_GNU_SYSTEM),linux)
ifeq ($(DEB_HOST_GNU_SYSTEM),gnu)
dh $@
sh debian/check-md5sum-etc profile
sh debian/check-md5sum-etc nsswitch.conf
sed -e "s&#OSNAME#&$(OSNAME)&g" debian/ > debian/copyright
sed -e "s/#VENDORFILE#/$(VENDORFILE)/g" debian/ > debian/postinst
debian/rules install DESTDIR=`pwd`/debian/base-files
dh_link -X os-release
dh_compress -X README
cd debian/base-files && chown root:staff var/local
cd debian/base-files && chmod 755 `find . -type d`
cd debian/base-files && chmod 1777 `cat ../1777-dirs`
cd debian/base-files && chmod 2775 `cat ../2775-dirs`
cd debian/base-files && chmod 700 root
dh_builddeb -- -Zgzip
install -p -m 644 etc/* $(DESTDIR)/etc
install -p -m 644 licenses/* $(DESTDIR)/usr/share/common-licenses
install -p -m 644 origins/* $(DESTDIR)/etc/dpkg/origins
install -p -m 644 share/* $(DESTDIR)/usr/share/base-files
ifeq ($(DEB_HOST_GNU_SYSTEM),gnu)
rmdir $(DESTDIR)/sys
sed -e "s&#OSNAME#&$(OSNAME)&g" share/motd > $(DESTDIR)/usr/share/base-files/motd
sed -e "s&#OSNAME#&$(OSNAME)&g" share/info.dir > $(DESTDIR)/usr/share/base-files/info.dir
sed -e "s&#OSNAME#&$(OSNAME)&g" etc/issue > $(DESTDIR)/etc/issue
sed -e "s&#OSNAME#&$(OSNAME)&g" etc/ > $(DESTDIR)/etc/
sed -e "s&#OSNAME#&$(OSNAME)&g" etc/os-release > $(DESTDIR)/etc/os-release
mv $(DESTDIR)/etc/os-release $(DESTDIR)/usr/lib/os-release
ln -s ../usr/lib/os-release $(DESTDIR)/etc/os-release
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment