Subject: CVS commit: pkgsrc/mk/install
To: None <pkgsrc-changes@netbsd.org>
From: Stoned Elipot <seb@netbsd.org>
List: pkgsrc-changes
Date: 06/25/2003 20:51:26
Module Name:	pkgsrc
Committed By:	seb
Date:		Wed Jun 25 20:51:26 UTC 2003

Modified Files:
	pkgsrc/mk/install: install-info

Log Message:
At DEINSTALL time after un-registering info files from the Info
directory file remove it if it is empty i.e. if it contains only one
menu/entry line i.e. only one line starting with '*'.

This allow INFO_DIR to be set to a package specific directory while
not registering in the PLIST the Info directory file (${INFOR_DIR}/dir).

Registering such an Info directory file in the PLIST is not really
possible as a md5 signature of it holding the registered info entries
would be stored in PKG_DBDIR. At deinstall time this signature would not be
matched because the DEINSTALL script would have modified it by
un-registering the info files from it. Hence the package removal would
be reported as incomplete...

You are probably right if this looks like a hack to you...


To generate a diff of this commit:
cvs rdiff -r1.1 -r1.2 pkgsrc/mk/install/install-info

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.