Geoffrey Thomas [Tue, 25 Sep 2012 16:52:28 +0000 (12:52 -0400)]
Undivert on deconfigure, not just on remove
See http://debathena.mit.edu/trac/ticket/388 for discussion. There are
more cases to think through here, but adding the deconfigure behavior is
correct and the most useful.
Geoffrey Thomas [Tue, 18 Sep 2012 04:48:19 +0000 (21:48 -0700)]
debathena-transform-example: Transform lynx.cfg instead of syslog.conf
syslog.conf comes from sysklogd, which is unlikely to exist on a modern
system, and is likely to cause unwanted side effects if installed. lynx
can fairly safely be installed on most systems, so it makes a better example.
Geoffrey Thomas [Sun, 9 Sep 2012 23:37:17 +0000 (16:37 -0700)]
Don't remove DEB_DIVERT_EXTENSION from DEB_CHECK_FILES_SOURCEs
The purpose of removing the extension is to determine the name of the
source file to be transformed. If that name is explicitly specified,
it's incorrect to further process it.
Anders Kaseorg [Sat, 6 Nov 2010 23:20:29 +0000 (23:20 +0000)]
* Fix a quoting bug that failed to disallow transformation of generated
conffiles. (Patch from Evan Broder.)
* Remove DEB_UNDIVERT_VERSION_file and DEB_UNREMOVE_VERSION_file, and
instead test for the undiverted file in the postinst. (Patch from
Evan Broder.)
Tim Abbott [Sun, 9 May 2010 18:19:25 +0000 (18:19 +0000)]
* Allow specifying DEB_TRANSFORM_SCRIPT_$package_$file in case you want
multiple binary packages transforming the same file differently.
(Thanks to Evan Broder for this patch).
* Add a decode script for undoing the file to virtual package name
transformation. (Thanks to Patrick Hurst for writing decode).
Tim Abbott [Wed, 31 Dec 2008 21:38:30 +0000 (21:38 +0000)]
Add a bug number and uploaders entry for config-package-dev 4.9 (for upload to Debian upstream).
I should have done this before we distributed it to debathena, but the
changes are only to metadata only relevant to Debian upstream, so I'm
not bumping the version number.
Tim Abbott [Mon, 5 May 2008 20:42:45 +0000 (20:42 +0000)]
* Move homepage field to source package section, so it works.
* Make DEB_TRANSFROM_FILES targets depend on common-build-arch and
common-build-indep, so it works with architecture-dependent packages.
* Remove useless clean code from transform-files.mk.
* Move divert.mk from binary-fixup to binary-post-install.
* Add debhelper.mk to divert.mk, since we use its
binary-post-install/package target.
* Change maintainer to me, rather than debathena@mit.edu, since I'll be
maintaining config-package-dev in Debian.
* Upload to Debian (Closes: #469107)
Tim Abbott [Mon, 21 Apr 2008 23:30:56 +0000 (23:30 +0000)]
* Rename DEB_REPLACE_FILES to DEB_TRANSFORM_FILES
* Create new config-package.mk as the outward-facing makefile fragment.
* Replace DEB_{UNREMOVE,UNDIVERT}_FILES_VERSION_file with
DEB_$1_VERSION_file
* Version bump, since 4.4~ << 4.4 causes build failures on Debathena.
Tim Abbott [Mon, 21 Apr 2008 20:34:25 +0000 (20:34 +0000)]
* Add new DEB_REMOVE_FILES_$package variable designed for removing
files in .d directories.
* Move the "configure-" in the filename encoding from the encode script
to divert.mk, so that we can re-use the encoder for DEB_REMOVE_FILES.
* Add new DEB_UNDIVERT_FILES_package and DEB_UNREMOVE_FILES_package
API variables for having a new version of the package stop diverting a
file.
* Correct check for not generating an empty if clause when no files are
being diverted.
* Remove only the last DEB_DIVERT_EXTENSION from filenames.