Russ Allbery [Wed, 4 Nov 2009 05:44:55 +0000 (21:44 -0800)]
Remove the openafs module from DKMS if necessary before adding
* In the postinst of openafs-modules-dkms, if the openafs module is
already added in DKMS, try to remove it first before adding it. This
should more correctly handle the case of a user installing this
package without the correct kernel headers, having it fail in
postinst, and then installing the correct headers and having dpkg
attempt to configure the package again. Thanks, Philipp Kaluza.
(Closes: #553542)
(cherry picked from commit c07b0b751d7e768a50f3594e13c8221a304bb455)
Russ Allbery [Thu, 1 Oct 2009 01:05:09 +0000 (18:05 -0700)]
Also change the source package name in the module changelog file
* When changing the name of the source package built by
openafs-modules-source, we need to change the package name in the
changelog as well or dpkg-gencontrol explodes. Thanks, Aaron M.
Ucko. (Closes: #549140)
Russ Allbery [Sat, 22 Aug 2009 19:24:47 +0000 (12:24 -0700)]
Change default permissions of /etc/openafs/server to 0755
* Change the default permissions of /etc/openafs/server to 0755 to match
upstream defaults, but do not change permissions on upgrade. The only
file in that directory that needs to be protected is KeyFile, which
should be mode 0600 anyway. Drop the patch to bosserver to allow more
restrictive permissions. bosserver will complain about directory
permissions after upgrade until the directory is manually changed.
Russ Allbery [Sat, 22 Aug 2009 19:17:45 +0000 (12:17 -0700)]
Change /var/lib/openafs/local permissions to 700
* Change the permissions of /var/lib/openafs/local to 0700 to match
upstream defaults. This directory contains the fssync.sock file used
for coordination between the fileserver and the volserver, and
commands sent to that socket are not authenticated. Linux protects
the socket from unprivileged writes by default, but other operating
systems do not. Upstream therefore wants this directory to be 0700
and bosserver will complain by default if it's not. Changing the
permissions let us drop a patch to bosserver.
Russ Allbery [Sat, 22 Aug 2009 18:10:20 +0000 (11:10 -0700)]
Change the source package name of the module source
* Change the source package name of the stripped package generated by
openafs-modules-source so that, should someone build a Debian source
package from it, it won't have the same name as the main openafs
source package.
Russ Allbery [Sat, 22 Aug 2009 18:06:14 +0000 (11:06 -0700)]
Update ABI version of the OpenAFS kernel module
* The openafs-modules package now provides openafs-modules3 and
conflicts on pre-1.5.61 openafs-client packages since the interface
between afsd and the module has changed. openafs-client now conflicts
with openafs-modules2 and recommends openafs-modules3.
Russ Allbery [Sat, 22 Aug 2009 07:13:03 +0000 (00:13 -0700)]
Update configure flags for DKMS builds
Enable disconnected mode for DKMS builds as well, and pass the configure
flag for the Linux kernel packaging rather than relying on local patches
to change the module name.
Russ Allbery [Sat, 22 Aug 2009 07:08:54 +0000 (00:08 -0700)]
Add NEWS files documenting disconnected and demand-attach
Add a NEWS file to openafs-fileserver saying that this package is built
with demand-attach, and add a NEWS file to openafs-client saying that
it's built with experimental disconnected support.
Russ Allbery [Sat, 22 Aug 2009 06:34:15 +0000 (23:34 -0700)]
Enable demand-attach, disconnected, and bos restricted
Enable demand attach for the file server, bos restricted mode for
bosserver, and disconnected mode for the client. Use the new flag
for Linux module packaging and adjust the installation rule
accordingly.
Russ Allbery [Thu, 20 Aug 2009 21:48:18 +0000 (14:48 -0700)]
Update to standards version 3.8.3
* Update standards version to 3.8.3.
- Change section of packages generated by openafs-modules-source to
kernel.
- Add Homepage to packages generated by openafs-modules-source.
* Bring src/config/linux-version closer to upstream since upstream now
handles unversioned source directories. There is one remaining change
required to search for UTS_RELEASE in the correct header path.
Ignore dkms failure in the prerm of openafs-modules-dkms
* Ignore failures to remove an existing DKMS tree in the prerm of the
openafs-modules-dkms package. In the possible cases where the tree
may not be present to be removed, failing package removal doesn't
make sense. (Further addresses LP #368471.)
Russ Allbery [Wed, 17 Jun 2009 20:50:09 +0000 (13:50 -0700)]
Build and install the new DocBook manuals
Install generated PDF and HTML from the new DocBook manuals. Install
only ka2heim.txt from the txt directory; the other things in there aren't
horribly useful. Stop installing the old HTML documentation. Add the
required additional configure options for the DocBook documentation build.
* Apply upstream CVS deltas:
- STABLE14-memcache-write-on-laststore-20090512: write back dirty
pages on last store with memcache to avoid losing changes.
* Apply upstream CVS deltas:
- STABLE14-linux-mmap-antirecursion-fix-20090512: improvements in
flag setting and locking around recursive mmap protection.
* Apply upstream CVS deltas:
- STABLE14-linux26-defer-cred-changing-20090511: defer changing groups
when the real and effective credentials of a process differ to avoid
running afoul of checks in newer Linux kernels that cause oops.
(Closes: #528785)
Russ Allbery [Tue, 26 May 2009 23:28:10 +0000 (16:28 -0700)]
Dynamically determine versions for dkms.conf and get-orig-source
* Dynamically determine the Debian and upstream versions for dkms.conf
and get-orig-source from debian/changelog. Thanks, Anders Kaseorg.
(LP: #364426)
Russ Allbery [Tue, 26 May 2009 19:00:29 +0000 (12:00 -0700)]
Enable DKMS support
* Provide an openafs-modules-dkms package that uses DKMS to dynamically
build kernel modules for the local kernel and document this option in
README.modules. This is an alternative to installing
openafs-modules-source and building kernel modules for each new kernel
with module-assistant or make-kpkg. (Closes: #168852, #525131)
(LP: #52786, #364426, #369875)
* Have openafs-client recommend at least the current source version of
openafs-modules-source or openafs-modules-dkms instead of any old
version. While the API probably hasn't changed, it's best practice to
keep a relatively close match between the userspace andn the kernel
module version. (LP: #369875)